test-xvasprintf: disable some -Wformat-security diagnostics
[gnulib.git] / ChangeLog
1 2013-12-03  Ivailo  <xakepa10@gmail.com>
2
3         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
4         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
5         -Wformat-nonliteral checks, as these edge cases are part of the test.
6
7 2013-12-03  Eric Blake  <eblake@redhat.com>
8
9         regex: avoid glibc deadlock during configure
10         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
11         glibc bug 15078 in turn triggers bug 16159.
12         Reported by Michal Privoznik.
13
14 2013-12-02  Pádraig Brady <P@draigBrady.com>
15
16         md5, sha1, sha256, sha512: use openssl routines if available.
17         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
18         routines will be used if available, requiring apps to link @LIB_CRYPTO@
19         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
20         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
21         in the standard system location.
22         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
23         * m4/sha256.m4: Likewise with SHA256.
24         * m4/sha512.m4: Likewise with SHA512.
25         * m4/md5.m4: Likewise with MD5.
26         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
27         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
28         * lib/sha256.h: Likewise with SHA256.
29         * lib/sha512.h: Likewise with SHA512.
30         * lib/md5.h: Likewise with MD5.
31         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
32         * lib/sha256.c: Likewise with SHA256.
33         * lib/sha512.c: Likewise with SHA512.
34         * lib/md5.c: Likewise with MD5.
35         * modules/crypto/sha1 (Link:): Add the new optional lib.
36         (Depends-on:): Add dependency on extern-inline.
37         * modules/crypto/sha256: Likewise.
38         * modules/crypto/sha512: Likewise.
39         * modules/crypto/md5: Likewise.
40         * modules/crypto/sha1-tests: Reference the lib here too.
41         * modules/crypto/md5-tests: Likewise.
42         * modules/crypto/gc-des-tests: Likewise.
43         * modules/crypto/gc-hmac-md5-tests: Likewise.
44         * modules/crypto/gc-hmac-sha1-tests: Likewise.
45         * modules/crypto/gc-hmac-sha256-tests: Likewise.
46         * modules/crypto/gc-hmac-sha512-tests: Likewise.
47         * modules/crypto/gc-md5-tests: Likewise.
48         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
49         * modules/crypto/gc-sha1-tests: Likewise.
50         * modules/crypto/gc-tests: Likewise.
51         * modules/crypto/hmac-md5-tests: Likewise.
52         * modules/crypto/hmac-sha1-tests: Likewise.
53         * modules/crypto/hmac-sha256-tests: Likewise.
54         * modules/crypto/hmac-sha512-tests: Likewise.
55
56 2013-11-29  RV1971  <rv1971@web.de>
57
58         base64: (trivial) fix compilation regression on some compilers
59         * lib/base64.c: Don't return the void function,
60         instead split to a separate return statement.
61
62 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63
64         ignore-value: revert previous code change
65         * lib/ignore-value.h (ignore_value): Use __extension__ and
66         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
67         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
68         Change the comment to try to explain this better.
69
70 2013-11-27  Pádraig Brady <P@draigBrady.com>
71
72         selinux-h: improve stub types and add more stub functions
73
74         * lib/se-selinux.in.h: Change security_context_t to a typedef
75         rather than a define, as it's a pointer type and so is better
76         as a typedef to avoid issues declaring multiple variables
77         with the comma operator.  Also add stub for string_to_security_class().
78         * lib/se-context.in.h: Add stub functions for
79         context_{type,range,role,user}_get().
80
81 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
82
83         ignore-value: prefer GCC version back through 2.0
84         The code didn't match the comments, so I did a bit of software
85         archaeology.  GCC 2.0 seems to support __extension__ and
86         __typeof__, so fix both code and comments to use 2.0.
87         * lib/ignore-value.h (ignore_value): Use __extension__ and
88         __typeof__ for GCC 2.0 through 3.3, too.
89
90 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
91
92         pty: Activate the signature wrapper of forkpty.
93         The intended preprocessor macro HAVE_FORKPTY is
94         never defined, yet `lib/forkpty.c' depends on it.
95
96         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
97         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
98         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
99
100 2013-11-18  Jim Meyering  <meyering@fb.com>
101         and Paul Eggert  <eggert@cs.ucla.edu>
102
103         quotearg: don't attempt to store 1 << 31 into an "int"
104         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
105         gcc's new -fsanitize=undefined and running its tests triggered some
106         new test failures due to undefined behavior, all with this diagnostic:
107           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
108             cannot be represented in type int
109         Rather than shifting "1" left to form a mask, shift the bits right and
110         simply use "1" as the mask.
111
112 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
113
114         error: depend on stdio
115         Problem reported by Nikos Mavrogiannopoulos in
116         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
117         * modules/error (Depends-on): Add stdio.
118
119 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
120
121         * doc/relocatable-maint.texi (Supporting Relocation): Improve
122         wording.
123         Reported by Reuben Thomas <rrt@sc3d.org>.
124
125 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
126
127         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
128         New function and macro, to work around _DARWIN_C_SOURCE problem.
129         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
130
131 2013-11-11  Pádraig Brady <P@draigBrady.com>
132
133         base64: provide a fast path for encoding well sized buffers
134         Avoid conditionals in the base64 encoding loop,
135         which was seen to give 60% better throughput.
136         * lib/base64.c (base64_encode_fast): A new function to be called
137         when we don't want to NUL terminate, and we have enough space
138         in the output to encode the given input.
139         (base64_encode): Call the _fast() version when appropriate.
140         Also remove a redundant mask with 0x3F on the first encoded byte.
141
142 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
143
144         extern-inline: port better to OS X 10.9
145         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
146         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
147         OS X 10.9, except for g++ where the bug is still present.
148         See <http://trac.macports.org/ticket/41033>.
149
150 2013-11-08  Eric Blake  <eblake@redhat.com>
151
152         fpending: fix regression on DragonFly BSD
153         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
154         * lib/fpending.h (__fpending): Don't declare twice.
155         Reported by GW in
156         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
157
158 2013-11-05  Jim Meyering  <meyering@fb.com>
159
160         hash: relax license to LGPLv2+, for libguestfs
161         * modules/hash (License): Change from GPL to LGPLv2+.
162
163 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
164
165         intprops: port to Oracle Studio c99
166         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
167         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
168
169 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
170
171         obstack: pacify HP C
172         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
173         warning "conversion from pointer to smaller integer" from HP
174         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
175         C89 or later nowadays, so cast to void instead of int.  Privately
176         reported by H.Merijn Brand.  Also, change header to match glibc's,
177         to make checking against glibc easier.
178
179 2013-10-29  Jim Meyering  <meyering@fb.com>
180
181         maint.mk: prefer gpgv2 over gpgv
182         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
183         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
184         Reported by Gary Vaughan.
185
186 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
187
188         isnan: port to VAX
189         Reported by John Klos for NetBSD-5/VAX in
190         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
191         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
192         (FUNC): Use it.
193
194 2013-10-28  Jim Meyering  <meyering@fb.com>
195
196         gnulib-tool: protect against CDPATH
197         * gnulib-tool: Many "cd" built-in functions print a directory name
198         to stdout when CDPATH is set, e.g.,
199           $ bash -c 'CDPATH=/; cd tmp'
200           /tmp
201         Unset it, when possible.  Prompted by a comment from Bruce Korb.
202
203         maint.mk: restore functionality removed by recent change...
204         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
205         the context of a shallow-cloned gnulib repository: "git describe"
206         would fail in such a directory.  However, that change made it so
207         the reported gnulib revision no longer includes the version number
208         or a commit count, even when run from a full clone.
209         * top/maint.mk (gnulib-version): Use the full "git describe"
210         output when possible, e.g., the form above, rather than the
211         abbreviated, no-tag, no-commit-count string, and fall back to
212         using a 10-byte hash, rather than the default minimal-length
213         hash prefix, since while the minimal-length one may be fine today,
214         it is likely not to be unique for very long.
215
216 2013-10-26  Jim Meyering  <meyering@fb.com>
217
218         maint.mk: fix "release" target to build _version
219         This fixes a bug in README-release whereby following the outlined
220         steps, one would publish a tarball whose programs would report
221         --version output not consistent with the package version number.
222         This bug caused grep-2.15 to produce a grep program whose
223         --version option made it print 2.14.56-1e3d rather than 2.15.
224         * top/maint.mk (release): Making this target build "_version"
225         ensures that the new version number is reflected in configure.
226
227 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
228
229         install-reloc: Support multi-binary installation.
230         * build-aux/install-reloc: Support installing multiple programs in
231         one invocation, as done by Automake starting with commit
232         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
233         Haible <bruno@clisp.org>, archived at
234         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
235         Reported by Sylvain <beuc@gnu.org>.
236
237 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
238
239         selinux-h: Really build without selinux when library is missing.
240         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
241         continue without selinux, as already told in the warning message.
242
243 2013-10-21  Jim Meyering  <meyering@fb.com>
244
245         regex: also remove dependency on HAVE_WCSCOLL
246         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
247
248 2013-10-21  Reuben Thomas <rrt@sc3d.org>
249
250         xfreopen: Fix typo. s/frepoen/freopen/
251         * lib/xfreopen.c: Fix description.
252         * modules/xfreopen: Likewise.
253
254 2013-10-21  Jim Meyering  <meyering@fb.com>
255
256         regex: don't depend on wcscoll
257         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
258         It is no longer used.
259
260 2013-10-20  Jim Meyering  <meyering@fb.com>
261
262         error: add the printf attribute to a static function
263         * lib/error.c (error_tail): Add the printf attribute, to placate
264         gcc's -Werror=suggest-attribute=format option.
265
266 2013-09-30  Jim Meyering  <meyering@fb.com>
267
268         fpending, obstack, strerror-override: use pure+const function attrs
269         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
270         * lib/obstack.c (_obstack_allocated_p): Likewise.
271         * lib/obstack.h (_obstack_memory_used): Likewise.
272         (_obstack_memory_used): Likewise.
273         * lib/strerror-override.h (strerror_override): Declare with
274         the "const" attribute.
275
276 2013-10-18  Eric Blake  <eblake@redhat.com>
277
278         extern-inline: make safe for -Wundef usage
279         Reported by Vladimir 'phcoder' Serbinenko in
280         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
281         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
282
283 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
284
285         mkfifo-tests, etc.: allow HP-UX 11.11 bug
286         Problem reported by Daniel Richard G. in
287         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
288         * doc/posix-functions/mkfifo.texi (mkfifo):
289         * doc/posix-functions/mkfifoat.texi (mkfifoat):
290         * doc/posix-functions/mknod.texi (mknod):
291         * doc/posix-functions/mknodat.texi (mknodat):
292         Document the HP-UX 11.11 bug.
293         * tests/test-mkfifo.h (test_mkfifo):
294         Allow the HP-UX 11.11 bug.
295
296 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
297
298         acl: allow cross-compilation to Gentoo
299         Problem reported by Gabriel Marcano in
300         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
301         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
302         test only whether it links.
303
304 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
305
306         mgetgroups: remove dependency on realloc-gnu
307         The dependency violates the comment in realloc-gnu, which
308         says that tests can't depend on realloc-gnu; some tests depend
309         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
310         Problem reported by Daniel Richard G. in
311         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
312         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
313         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
314         not realloc-gnu.
315
316 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
317
318         regex-tests: port to HP-UX 11.11
319         Problem reported by Daniel Richard G. in
320         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
321         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
322
323 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
324
325         verify: document some 'assume' pitfalls
326         * doc/verify.texi (Compile-time Assertions):
327         Mention that 'assume (E)' can sometimes slow things down.
328         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
329
330 2013-10-10  Eric Blake  <eblake@redhat.com>
331
332         strtoumax: fix typo in previous commit.
333         * modules/strtoumax (Depends-on): Fix typo.
334         * modules/strtoimax (Depends-on): Likewise.
335
336 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
337
338         strtoumax: port to Solaris 8
339         This problem was introduced in the recent HP-UX patch.
340         Reported by Tom G. Christensen in
341         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
342         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
343         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
344
345 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
346
347         strtoimax, strtoumax: port to HP-UX 11.11
348         Problem reported by Daniel Richard G. in
349         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
350         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
351         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
352         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
353         REPLACE_STRTOUMAX.
354         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
355         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
356         Replace the function if defined as a macro but not as a function.
357         * modules/inttypes-incomplete (inttypes.h): Substitute
358         REPLACE_STRTOUMAX.
359         * modules/strtoumax (configure.ac): Replace strtoumax if
360         REPLACE_STRTOUMAX.
361
362 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
363
364         strtoimax: port to HP-UX 11.11
365         Problem reported by Daniel Richard G.
366         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
367         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
368         they might clash with inttypes.h.
369
370 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
371
372         New module 'count-trailing-zeros'.
373         * MODULES.html.sh: Mention it.
374         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
375         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
376         * modules/count-trailing-zeros-tests:
377         * tests/test-count-trailing-zeros.c:
378         New files.
379
380         count-leading-zeros: port to MSC; support types wider than 64 bits
381         The ideas behind the MSC port are stolen from Emacs.
382         * lib/count-leading-zeros.h:
383         Don't include verify.h: it's no longer needed, as types wider than
384         64 bits are now supported.
385         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
386         performance with MSC.  All uses changed.  Do not assume that TYPE
387         has at most 64 bits.
388         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
389         All uses changed.  Fold the subtraction from 31 into the table.
390
391         count-one-bits: port to MSC; support types wider than 64 bits
392         The ideas behind the MSC port are stolen from Emacs.
393         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
394         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
395         Don't include verify.h: it's no longer needed, as types wider than
396         64 bits are now supported.
397         (COUNT_ONE_BITS_GENERIC): New macro.
398         (popcount_supported) [_MSC_VER]: New inline function.
399         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
400         performance with MSC.  All uses changed.  Do not assume that TYPE
401         has at most 64 bits.
402         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
403
404 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
405
406         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
407         * lib/mountlist.c (read_file_system_list): fix leak of directory
408         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
409
410 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
411
412         tests: improve diagnostic when an assertion fails
413         * tests/macros.h (ASSERT): Report the assertion that failed.
414
415 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
416
417         verify: new macro 'assume'
418         This is taken from Emacs, and should be generally useful.
419         * doc/verify.texi (assume): Document it.
420         * lib/verify.h (assume): New macro.
421         (__has_builtin): Expand to 0 if not defined.
422
423 2013-09-26  Eric Blake  <eblake@redhat.com>
424
425         dup2, dup3: work around another cygwin crasher
426         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
427         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
428         * tests/test-dup2.c (main): Likewise.
429         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
430         * lib/dup3.c (dup3): Likewise.
431         * doc/posix-functions/dup2.texi (dup2): Document it.
432         * doc/glibc-functions/dup3.texi (dup3): Likewise.
433
434         getdtablesize: work around cygwin issue
435         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
436         * modules/getdtablesize (configure.ac): Build replacement.
437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
438         * modules/unistd (Makefile.am): Expose the witness.
439         * lib/unistd.in.h (getdtablesize): Declare replacement.
440         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
441         * tests/test-getdtablesize.c (main): Test it.
442         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
443
444 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
445
446         pmccabe2html: escaping of special characters
447         Escape all '<', '>', and '&' in HTML output.
448         * build-aux/pmccabe2html (html_fnc): Call gsub()
449         instead of sub() to capture all '<', '>', and '&'.
450         Neither of '<' and '>' is special in a regexp,
451         so first arguments to gsub() are corrected. Also,
452         in replacement strings, ampersand must be escaped.
453         Finally, '&' must be handled first, then '<' and '>'.
454
455 2013-09-24  Eric Blake  <eblake@redhat.com>
456
457         manywarnings: enable nicer gcc warning messages
458         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
459         some -f options for optimal warnings.
460
461 2013-09-21  Jim Meyering  <meyering@fb.com>
462
463         timespec: use the new TIMESPEC_RESOLUTION in a few more places
464         * lib/timespec-add.c (timespec_add): Also replace 999999999
465         with TIMESPEC_RESOLUTION - 1.
466         * lib/timespec-sub.c (timespec_sub): Likewise.
467
468 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
469
470         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
471         Problem reported by Dagobert Michelsen via Eric Blake in
472         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
473         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
474         not AC_COMPILE_IFELSE.
475
476 2013-09-23  Eric Blake  <eblake@redhat.com>
477
478         configmake: support new --runstatedir option
479         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
480         even if autoconf was too old to provide the command line option.
481         * modules/configmake (Makefile.am): Propagate it to .h file.
482
483 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
484
485         ctype, string: depend on extern-inline
486         This is needed to complete the recent OS X fixes.
487         Also, fix related documentation as suggested by Eric Blake.
488         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
489         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
490         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
491         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
492         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
493         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
494         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
495         * doc/posix-functions/toupper.texi:
496         List the 'ctype' gnulib module.
497         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
498         * doc/posix-functions/strncpy.texi:
499         List the 'string' gnulib module.
500         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
501         Add string.
502         * modules/ctype, modules/string (Depends-on): Add extern-inline.
503
504 2013-09-19  Pádraig Brady  <P@draigBrady.com>
505
506         userspec: support optional parameters to parse_user_spec()
507         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
508         then avoid group processing and treat the full spec as a user.
509         (parse_with_separator): Allow the USERNAME and GROUPNAME to
510         be optional params (NULL), in which case they're ignored.
511
512 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
513
514         timespec: new function make_timespec, and new constants
515         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
516         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
517         (make_timespec): New function.
518         * lib/dtotimespec.c (dtotimespec):
519         * lib/timespec-add.c (timespec_add):
520         * lib/timespec-sub.c (timespec_sub):
521         * lib/utimens.c (validate_timespec):
522         * lib/utimensat.c (rpl_utimensat):
523         Use these new constants and functions.
524
525         stdio: OS X port of putc_unlocked + extern inline
526         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
527         * doc/posix-functions/putc_unlocked.texi:
528         * doc/posix-functions/putchar_unlocked.texi:
529         Document this portability problem.
530
531         signal: OS X port of sigaddset etc. + extern inline
532         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
533         (sigismember): #undef on problematic Apple platforms.
534         * doc/posix-functions/sigaddset.texi:
535         * doc/posix-functions/sigdelset.texi:
536         * doc/posix-functions/sigemptyset.texi:
537         * doc/posix-functions/sigfillset.texi:
538         * doc/posix-functions/sigismember.texi:
539         Document this portability problem.
540
541         extern-inline: do not always suppress extern inline on OS X
542         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
543         extern inline on Apple only if the particular compile-time
544         configuration is known to have the problem.
545         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
546         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
547         other Gnulib modules.
548
549         extern-inline: document fixes for ctype and wctype macros
550         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
551         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
552         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
553         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
554         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
555         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
556         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
557         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
558         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
559         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
560         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
561         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
562         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
563         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
564         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
565         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
566         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
567         * doc/posix-functions/strncpy.texi:
568         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
569         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
570         Document that Gnulib fixes portability problems with these
571         functions on OS X 10.8 and earlier when called from plain inline
572         or extern inline functions.
573
574 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
575
576         fflush, freadahead, fseeko: Fix for Android
577         Suggested by Bruno Haible in:
578         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
579         * lib/stdio-impl.h: Use local __sfileext definition.
580
581 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
582
583         pmccabe2html: Portability to other awk versions.
584         The functions systime() and strftime() are available
585         in Gawk only.  Properly close two HTML-tags 'style'
586         and 'span'.
587         * build-aux/pmccabe2html (BEGIN): Store timing
588         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
589         systime() in HTML_COMMENT.
590         (html_header): Correctly close tag 'style'.
591         (END): Replace strftime() by CHRONOS_TIME.  Close
592         tag 'span' correctly, not as 'div'.
593
594 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
595
596         getgroups: statement without effect
597         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
598         Change equality conditional to expected assignment.
599
600 2013-09-09  Eric Blake  <eblake@redhat.com>
601
602         glob: fix compilation
603         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
604
605 2013-09-07  Eric Blake  <eblake@redhat.com>
606
607         glob: fix build for platforms without __THROW
608         * lib/glob.in.h (__THROW): Add definition again.
609
610 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
611
612         regex-quote: fix buffer access out of bounds
613         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
614         * lib/regex-quote.c (regex_quote_spec_pcre):
615         Fix typo that resulted in an out-of-bounds read.
616
617 2013-09-04  Eric Blake  <eblake@redhat.com>
618
619         glob: avoid -Wattribute warnings on glibc
620         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
621         __THROWNL, not __THROW, on static functions.
622         * lib/glob.in.h (__THROW): Adjust...
623         (__THROWNL): ...accordingly.
624
625 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
626
627         headers: check that _GL_INLINE_HEADER_BEGIN is defined
628         Suggested by Bruce Korb in:
629         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
630         * doc/extern-inline.texi (extern inline):
631         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
632         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
633         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
634         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
635         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
636         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
637         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
638         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
639         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
640         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
641         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
642         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
643         * lib/xtime.h:
644         Check that _GL_INLINE_HEADER_BEGIN is defined.
645
646 2013-08-29  Pádraig Brady  <P@draigBrady.com>
647
648         bootstrap: remove the --version requirement from ancillary tools
649         * build-aux/bootstrap (check_exists): A new refactored function to
650         determine if a command exists.
651         (find_tool): Use the new function which does not require the
652         --version option to be supported.
653         (check_versions): Use the new function.
654
655 2013-08-26  Simon Josefsson  <simon@josefsson.org>
656
657         gc: support HMAC-SHA256 and HMAC-SHA512.
658         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
659         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
660         functions.
661         (gc_hmac_md5): Use symbolic constant.
662         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
663         (gc_hmac_sha256, gc_hmac_sha512): New functions.
664         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
665         * m4/sha256.m4: Protect against empty expansion.
666         * m4/sha512.m4: Likewise.
667         * lib/hmac-sha256.c: New file.
668         * lib/hmac-sha512.c: Likewise.
669         * m4/gc-hmac-sha256.m4: Likewise.
670         * m4/gc-hmac-sha512.m4: Likewise.
671         * m4/gc-sha256.m4: Likewise.
672         * m4/gc-sha512.m4: Likewise.
673         * modules/crypto/gc-hmac-sha256: Likewise.
674         * modules/crypto/gc-hmac-sha256-tests: Likewise.
675         * modules/crypto/gc-hmac-sha512: Likewise.
676         * modules/crypto/gc-hmac-sha512-tests: Likewise.
677         * modules/crypto/hmac-sha256: Likewise.
678         * modules/crypto/hmac-sha256-tests: Likewise.
679         * modules/crypto/hmac-sha512: Likewise.
680         * modules/crypto/hmac-sha512-tests: Likewise.
681         * tests/test-gc-hmac-sha256.c: Likewise.
682         * tests/test-gc-hmac-sha512.c: Likewise
683         * tests/test-hmac-sha256.c: Likewise.
684         * tests/test-hmac-sha512.c: Likewise
685
686 2013-08-24  Daiki Ueno  <ueno@gnu.org>
687
688         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
689         of AC_CHECK_DECLS.
690
691 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
692
693         selinux-at: omit unnecessary include
694         * lib/selinux-at.c: Don't include dosname.h; not needed, since
695         this source file doesn't use its macros, and subsidiary files that
696         use the macros already include it.
697
698 2013-08-21  Eric Blake  <eblake@redhat.com>
699
700         d-ino: avoid false negative on symlink
701         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
702         Reported by Stephane Chazelas.
703
704 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
705
706         bootstrap: port to OpenBSD sed
707         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
708         does not interpret `-' as a file argument to mean stdin.
709
710 2013-08-15  Eric Blake  <eblake@redhat.com>
711
712         warnings: minor optimization
713         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
714
715         warnings: check -Wfoo rather than -Wno-foo
716         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
717         -Wno-, test if the compiler recognizes the positive form instead.
718
719 2013-08-15  Karl Berry  <karl@gnu.org>
720
721         * config/srclist-update: add option "doclicense" to placate
722         pulling *.texi files from Emacs.  Write terse usage
723         documentation at the top.
724
725 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
726
727         xvasprintf-tests: port to GCC with hardening flags
728         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
729         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
730         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
731
732 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
733
734         fpending: port to recent Cygwin change to stdio_ext.h
735         Reported by LRN in
736         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
737         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
738         just declare __fpending unless it's a macro.
739         A duplicate decl shouldn't hurt.
740         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
741         call compiles and links, instead of separately checking for
742         decl and lib function.
743         * modules/fpending (configure-ac):
744         Adjust to fpending.m4's renaming of shell variable.
745
746 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
747
748         sys_time: port to OpenBSD
749         * lib/sys_time.in.h: Simply delegate to the system's header
750         in the BSDish cases as well.  Problem reported by Mike Miller in
751         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
752         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
753         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
754         wider than time_t.
755
756 2013-08-09  Pádraig Brady <P@draigBrady.com>
757
758         bootstrap: support checksum utils having -c but not --status
759         * build-aux/bootstrap: Only look for sha1sum if updating po files.
760         Add sha1 to the list of supported checksum utils since it's now
761         supported through adjustments below.
762         (update_po_files): Remove the use of --status
763         in a way that will suppress all error messages, but since this is
764         only used to minimize updates, it shouldn't cause an issue.
765         Exit early if there is a problem updating the po file checksums.
766         (find_tool): Remove the check for --version support as this
767         is optional as per commit 86186b17.  Don't even check for the
768         presence of the command as if that is needed, it's supported
769         through configuring prerequisites in bootstrap.conf.
770         Prompt that when a tool isn't found, one can define an environment
771         variable to add to the hardcoded search list.
772
773 2013-08-05  Jim Meyering  <meyering@fb.com>
774
775         regex: port to non-glibc/lock-using systems
776         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
777         system with GNULIB_LOCK would fail due to absence of the
778         included "glthread/lock.h".  This would affect any package
779         for which the "lock" module is used only by the regex module,
780         and not explicitly used.
781         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
782         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
783         Add a dependency on the "lock" module.
784
785 2013-07-20  Daiki Ueno  <ueno@gnu.org>
786
787         localecharset: make locale_charset thread-safe on Mac OS X
788         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
789         instead of MB_CUR_MAX.
790
791 2013-07-20  Daiki Ueno  <ueno@gnu.org>
792
793         gettext: update to version 0.18.3
794         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
795         require AC_PROG_SED to allow user to specify custom sed command when
796         generating en@quot PO file.
797
798 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
799
800         bootstrap: use correct source when copying build-aux files
801         * build-aux/bootstrap (gnulib_extra_files): This variable is
802         relative to upstream gnulib layout, not downstream.
803
804 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
805
806         tmpdir: fix bug in VMS port
807         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
808         See Steven M. Schweda in
809         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
810
811 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
812
813         tmpdir: port to VMS, to // != /, and to long dirs
814         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
815         __secure_getenv, so that we're more like the glibc version.
816         All uses changed.
817         (path_search): Don't put slash after directory if __VMS.
818         Problem reported by Steven M. Schweda in
819         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
820         Simplify code to add slash; no need for a loop.
821         Do not remove trailing slash from "//".
822         Do not assume dlen <= INT_MAX.
823
824 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
825
826         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
827         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
828         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
829         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
830
831         accept4, dup3, pipe2: port to Cygwin
832         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
833         * lib/accept4.c (accept4) [O_BINARY]:
834         * lib/dup3.c (dup3) [O_BINARY]:
835         * lib/pipe2.c (pipe2) [O_BINARY]:
836         Use set_binary_mode, not setmode.
837         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
838         * modules/binary-io (Depends-on): Remove module indicator.
839         These last two bits undo the previous change to pipe2 and binary-io.
840
841 2013-07-09  Pádraig Brady  <P@draigBrady.com>
842
843         mountlist: add support for deallocating returned list entries
844         * lib/mountlist.c (free_mount_entry): A new exported function
845         to deallocate a mount list entry.
846         (read_file_system_list): Refactor to use the new deallocation function.
847         Suggested by Anton Ovchinnikov.
848
849 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
850
851         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
852         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
853         * lib/stdalign.in.h (_Alignas, _Alignof):
854         Port to FreeBSD 9.1, and to C11 and C++11.
855         (_Alignas): Also support ICC.
856         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
857         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
858
859 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
860
861         fnmatch: don't goto over declaration
862         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
863         undefined behavior for goto over a declaration.
864         Problem reported by Charlie Brown in
865         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
866
867         pipe2: decouple from binary-io a bit
868         This is for Emacs, which needs pipe2 but not binary-io.
869         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
870         * modules/binary-io (Depends-on): Add module indicator.
871
872 2013-07-03  Eric Blake  <eblake@redhat.com>
873
874         mgetgroups: relax license to LGPLv2+
875         * modules/getugroups (License): Change from GPLv3+.
876         * modules/mgetgroups (License): Likewise.
877         * modules/getgroups (License): Change from LGPLv3+.
878
879         xalloc-oversized: relax license to LGPLv2+
880         * modules/xalloc-oversized (License): Change from GPLv3+.
881
882         nproc: relax license to LGPLv2+
883         * modules/nproc (License): Change from LGPLv3+.
884
885         bootstrap: honor --no-git
886         * build-aux/bootstrap: Don't even try to use git when user is
887         pointing to a static checkout.
888
889 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
890
891         ignore-value: port to gcc -pedantic
892         * lib/ignore-value.h (ignore_value):
893         Port to gcc -pedantic, by using __extension__.
894         Reindent as per usual gnulib style nowadays.
895         Simplify GCC version check.
896
897 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
898
899         extern-inline: port to gcc -std=c89
900         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
901         Do not use __gnu_inline__ if pedantic and pre-C99.
902
903 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
904
905         doc: document extern-inline
906         * doc/extern-inline.texi: New file.
907         * doc/gnulib.texi (alloca-opt): Include it.
908         * m4/extern-inline.m4: Move some comments to documentation,
909         and others closer to what they describe.
910
911         doc: chatter less
912         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
913         (updated-stamp): Use it.  This causes 'make' to output just
914         one file name rather than zillions.
915
916         fflush, fseeko: port to musl cross-compiles
917         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
918         on some implementation that (1) is not known to be buggy,
919         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
920         cross-compiled to so we can't easily check for lack of
921         conformance.  This is for cross-compiling to musl.
922         Reported by Rich Felker in
923         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
924         * m4/fclose.m4 (gl_FUNC_FCLOSE):
925         * m4/fflush.m4 (gl_FUNC_FFLUSH):
926         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
927         Adjust to above change.
928         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
929         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
930         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
931         known not to work, or unknown.
932
933 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
934
935         msvc-inval: port to mingw-w64
936         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
937         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
938         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
939
940 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
941
942         getcwd-lgpl: port to Tru64
943         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
944         Problem reported by Steven M. Schweda in
945         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
946
947         tests: port large-fd POSIX spawn tests to OS X
948         Problem reported by Daiki Ueno in
949         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
950         * tests/test-posix_spawn_file_actions_addclose.c:
951         * tests/test-posix_spawn_file_actions_adddup2.c:
952         * tests/test-posix_spawn_file_actions_addopen.c:
953         Include <limits.h>, for OPEN_MAX, if available.
954         (big_fd): New static function.
955         (main): Use it.
956
957 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
958
959         tests/nap.h: use an adaptive delay to avoid ctime update issues
960         The recent change in nap.h (5191133e) decreased the probability of lost
961         races to about a third, however such problems could still be observed
962         in virtual machines and openSUSE's OBS.
963         Before, nap() detected the needed time once empirically and then used
964         that delay (together with a small correction multiplier) in further
965         calls.  This problem has been reported and discussed several times,
966         including guesses about possible kernel issues:
967         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
968         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
969         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
970         http://bugs.gnu.org/12820
971         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
972         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
973         Now, nap() avoids the race alltogether by verifying on a reference
974         file whether a timestamp difference has happened.
975         * tests/nap.h (nap_fd): Define file descriptor variable for the
976         witness file.
977         (nap_works): Change return value to bool.  Change passing
978         the old file's status by value instead of by reference as this function
979         does no longer update that timestamp; rename the function argument from
980         st to old_st.  Remove the local variables cdiff and mdiff because that
981         function now returns true/false instead of the precise delay.
982         (guess_delay): Remove function.
983         (clear_tmp_file): Add new function to close and unlink the witness file.
984         (nap): Instead of re-using the delay which has been calculated during
985         the first call, avoid the race by actually verifying that a timestamp
986         difference can be observed on the current file system.  Use an adaptive
987         approach for the delay to minimize execution time.  Assert that the
988         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
989         = 2^31 - 1 = 2.1s.
990         Use atexit to call clear_tmp_file when the process terminates.
991
992 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
993
994         sig2str: port to C++
995         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
996         Reported by Daniel J Sebald in
997         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
998
999 2013-05-30  Eric Blake  <eblake@redhat.com>
1000
1001         docs: mention cygwin shortcoming in <sys/un.h>
1002         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1003
1004         vasnprintf: silence mingw compiler warning
1005         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1006
1007 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1010         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1011         This fixes a porting bug I recently reintroduced in regex, and
1012         some other instances that I discovered while testing the fix.
1013         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1014         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1015         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1016         with an empty argument if this is a pedantic pre-C99 GCC.
1017         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1018         pre-C11 GCC.
1019
1020         regex: adapt to locking regime instead of depending on pthread
1021         Instead of depending on pthread, adapt to whatever thread
1022         modules are in use.  Problem reported by Ludovic Courtès in
1023         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1024         and by Mats Erik Andersson in
1025         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1026         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1027         Support either the 'lock' module, or the 'pthread' module, or
1028         no module.
1029         (lock_lock, lock_unlock): New macros.
1030         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1031         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1032         * modules/regex (Depends-on): Remove pthread.
1033
1034 2013-05-22  Eric Blake  <eblake@redhat.com>
1035
1036         getgroups: document portability issues
1037         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1038         multithread safety.
1039         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1040         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1041         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1042         getugroups.
1043         * doc/posix-functions/getgroups.texi (getgroups): Mention
1044         multithread safety and mgetgroups.
1045
1046 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1047
1048         test-lchown, test-chown: also skip test if chown fails with EPERM
1049         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1050         skip this test, to handle FAT file systems.
1051         * tests/test-chown.h (test_chown): Likewise.
1052
1053 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1054
1055         regex: fix dfa race in multithreaded uses
1056         Problem reported by Ludovic Courtès in
1057         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1058         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1059         New macros.  All uses of __libc_lock_define, __libc_lock_init
1060         changed to use the first two of these.
1061         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1062         non-glibc platforms.
1063         (struct re_dfa_t): Define the lock unconditionally.
1064         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1065         '#ifdef _LIBC"s.
1066         * modules/regex (Depends-on): Add pthread, if we use the
1067         included regex.
1068
1069         * lib/regcomp.c: Do actions that are not needed for glibc,
1070         but may be needed elsewhere.
1071         (regfree, re_compile_internal): Destroy the lock.
1072         (re_compile_internal): Check for lock-initialization failure.
1073
1074         malloca: port to compilers that reject size-zero arrays
1075         This fixes a bug introduced in my previous patch.
1076         * lib/malloca.c (struct preliminary_header): Use an int
1077         rather than a character array of size int; that's simpler.
1078         (struct header): Remove, replacing with ...
1079         (union header): New type.  This avoids the need for declaring a
1080         character array of size zero, which is not allowed on some platforms.
1081         All uses changed.
1082
1083 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         parse-datetime, tests: don't use "string" + int
1086         Recent versions of 'clang' complain about C source code that
1087         uses expressions of the form '"string literal" + integer',
1088         I guess on the theory that it's confusing for readers who are
1089         used to C++.  On those grounds I suppose it's OK to make this
1090         minor style change.
1091         * lib/parse-datetime.y (parse_datetime):
1092         * tests/test-fchdir.c (main):
1093         * tests/test-snprintf-posix.h (test_function):
1094         * tests/test-snprintf.c (main):
1095         * tests/test-vasnprintf-posix.c (test_function):
1096         * tests/test-vasnprintf.c (test_function):
1097         * tests/test-vsnprintf.c (main):
1098         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1099         Rewrite '"str" + E' to '&"str"[E]'.
1100
1101 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1102
1103         argmatch: port to C++
1104         * lib/argmatch.h [__cplusplus]: Add extern "C".
1105
1106         argp: typo fix
1107         * lib/argp-help.c: Typo in comment.
1108
1109 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1110
1111         manywarnings: update for GCC 4.8.0
1112         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1113         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1114         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1115         -Wmissing-noreturn, as they are duplicates of other warnings.
1116         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1117         was documented to be flaky in earlier versions of GCC.
1118
1119         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1120         * tests/test-spawn.c (main):
1121         * tests/test-sys_socket.c (main):
1122         * tests/test-sys_wait.c (main):
1123         Don't have a switch value that isn't covered by a case.
1124
1125         getaddrinfo-tests: port --enable-gcc-warnings to clang
1126         * tests/test-getaddrinfo.c (simple):
1127         Avoid casts from looser to stricter-aligned pointers.
1128
1129         thread: port --enable-gcc-warnings to clang
1130         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1131         Include <signal.h>, to pacify a warning about pthread_sigmask.
1132
1133         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1134         * lib/stdio.in.h (fwrite):
1135         When working around bug 11959, use __REDIRECT rather than '#define
1136         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1137         fix the -Wunused-value issue with clang, and it works with GCC too.
1138         Problem with targeting reported by Eric Blake in
1139         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1140         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1141         debugging the fwrite issue.
1142
1143         stdio: port --enable-gcc-warnings to clang
1144         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1145         since the GCC workaround for fwrite does not pacify clang.
1146
1147         sig2str: port --enable-gcc-warnings to clang
1148         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1149
1150         obstack: port --enable-gcc-warnings to clang
1151         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1152         Avoid casts from looser to stricter-aligned pointers.
1153
1154         memchr2: port --enable-gcc-warnings to clang
1155         * lib/memchr2.c (memchr2):
1156         Avoid casts from looser to stricter-aligned pointers.
1157
1158         mbsstr: port --enable-gcc-warnings to clang
1159         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1160         Avoid casts from looser to stricter-aligned pointers.
1161
1162         malloca: port --enable-gcc-warnings to clang
1163         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1164         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1165
1166         inttostr: port --enable-gcc-warnings to clang
1167         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1168
1169         warnings: port to clang
1170         Problem reported by Daniel P. Berrange via Eric Blake in
1171         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1172         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1173         (gl_WARN_ADD): Use it.
1174
1175 2013-05-11  Jim Meyering  <meyering@fb.com>
1176
1177         quotearg: do not read beyond end of buffer
1178         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1179         end of an ARG for which no length was specified.  With an N-byte
1180         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1181         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1182         via coreutils' misc/sort-debug-keys.sh test and detected by running
1183         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1184         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1185         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1186         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1187         characters correctly."
1188
1189 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1190
1191         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1192         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1193         compilation target is Mac OS X 10.6.
1194         Problem reported by parafin and Andoni Morales in
1195         <http://savannah.gnu.org/bugs/?37844> and
1196         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1197
1198 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1199
1200         mkdir-p: remove assumptions about umask and mode
1201         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1202         umask is 0, or that MODE is a subset of MODE_BITS.
1203
1204 2013-05-10  Eric Blake  <eblake@redhat.com>
1205
1206         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1207         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1208
1209 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1210
1211         deps: require Automake >= 1.9.6 in generated Makefile fragments
1212
1213         That is the same minimal version required in the DEPENDENCIES file.
1214         Moreover, the old code generated a requirement of Automake >= 1.5,
1215         and that is an insanely outdated version.
1216
1217         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1218         * tests/havelib/rpathlx/Makefile.am: Likewise.
1219         * tests/havelib/rpathly/Makefile.am: Likewise.
1220         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1221         * tests/havelib/rpathlz/Makefile.am: Likewise.
1222         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1223         * tests/havelib/rpathx/Makefile.am: Likewise.
1224         * tests/havelib/rpathy/Makefile.am: Likewise.
1225         * tests/havelib/rpathz/Makefile.am: Likewise.
1226
1227 2013-05-08  Eric Blake  <eblake@redhat.com>
1228
1229         bootstrap: AC_INIT may have more than four parameters
1230         * build-aux/bootstrap (extract_package_name): Correctly extract
1231         non-empty tarname field.  Avoid range in regex.
1232         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1233
1234 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1235
1236         qacl: port to MS-Windows port of GNU Emacs
1237         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1238         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1239         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1240         <http://bugs.gnu.org/14295#14>.
1241
1242 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1243
1244         acl: include quote.h
1245         * lib/copy-acl.c: Include quote.h.
1246         * lib/set-acl.c: Likewise.
1247
1248 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1249
1250         fchownat, renameat, unlinkat: update statat dependencies
1251         These modules use statat and lstatat, not fstatat; so depend on
1252         the statat module, which was split out recently from fstatat.
1253         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1254         * modules/renameat: Likewise.  Also delete fstat.
1255         URL: http://bugs.gentoo.org/468790
1256
1257 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1258
1259         Assume gnulib is checked out from Git, not CVS
1260
1261         In fact, access to the gnulib repository through CVS has been
1262         disabled, or more precisely, got broken and was never restored; see:
1263         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1264
1265         Note that support for CVS is not removed completely and unthinkingly
1266         by this change: only support for CVS checkouts of gnulib itself is
1267         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1268         files and CVS directories, for the benefit of those poor gnulib clients
1269         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1270
1271         * gnulib-tool: Simplify accordingly.
1272         * posix-modules: Likewise.
1273         * MODULES.html.sh: Likewise.
1274         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1275         repository.
1276         * doc/gnulib-intro.texi: Likewise.
1277         * doc/gnulib-readme.texi: Likewise.
1278         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1279         sample '.gitignore' file rather than a sample '.cvsignore'.
1280         * NEWS: Update.
1281         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1282         to "CVS Autoconf" rather than "git Autoconf".
1283
1284 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1285
1286         utimensat-tests, etc.: try to fix some races
1287         Problem reported by Bernhard Voelker in
1288         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1289         I don't know whether this patch fixes that race condition, but it
1290         fixes *some* race conditions, so it should be a win.
1291         * modules/chown-tests (Depends-on):
1292         * modules/fchownat-tests (Depends-on):
1293         * modules/fdutimensat-tests (Depends-on):
1294         * modules/futimens-tests (Depends-on):
1295         * modules/lchown-tests (Depends-on):
1296         * modules/stat-time-tests (Depends-on):
1297         * modules/utimens-tests (Depends-on):
1298         * modules/utimensat-tests (Depends-on):
1299         Depend on nanosleep, not usleep.
1300         * modules/chown-tests (test_chown_LDADD):
1301         * modules/lchown-tests (test_lchown_LDADD):
1302         * modules/stat-time-tests (test_stat_time_LDADD):
1303         New macro.
1304         * modules/fchownat-tests (test_fchownat_LDADD):
1305         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1306         * modules/futimens-tests (test_futimens_LDADD):
1307         * modules/utimens-tests (test_utimens_LDADD):
1308         * modules/utimensat-tests (test_utimensat_LDADD):
1309         Add $(LIB_NANOSLEEP).
1310         * modules/stat-time-tests (Files): Add tests/nap.h.
1311         * tests/nap.h: Include <limits.h>, for INT_MAX.
1312         (lt_mtime): Remove.
1313         (diff_timespec): New function.
1314         (get_stat): Rename from get_mtime.  All callers changed.
1315         (nap_works): Determine the needed delay by inspecting the
1316         file system's timestamp jumps; this should be more reliable.
1317         Look at both mtime and ctime, and take the maximum of the two jumps.
1318         (nap_works, guess_delay):
1319         Return a nanosecond cound, not a microsecond count.
1320         All callers changed.
1321         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1322         failure.
1323         (nap): Multiply the guess by 1.125, to accommodate the case where
1324         the file system's clock is a bit slower than nanosleep's clock.
1325         * tests/test-stat-time.c (BASE): New macro.
1326         Include nap.h.
1327         (nap): Remove; nap.h now defines this.  This removes a duplicate
1328         implementation of 'nap'.
1329
1330         utimens, utimensat: work around Solaris UTIME_OMIT bug
1331         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1332         Linux kernel 2.6.32 does.  Work around it in the same way.
1333         * doc/posix-functions/futimens.texi (futimens):
1334         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1335         * lib/utimens.c (fdutimens, lutimens):
1336         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1337
1338         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1339         Formerly, it was your responsibility to do this for all Makefile.ams
1340         other than Gnulib's.  Now it's your responsibility to do it for
1341         Gnulib's Makefile.am, too.
1342         * NEWS: Document this.
1343         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1344
1345         acl: include errno.h to get errno
1346         Reported by Daiki Ueno in
1347         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1348         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1349
1350 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1351
1352         tests: don't assume getdtablesize () <= 10000000
1353         * modules/cloexec-tests:
1354         * modules/dup2-tests:
1355         * modules/dup3-tests:
1356         * modules/nonblocking-tests:
1357         * modules/posix_spawn_file_actions_addclose-tests:
1358         * modules/posix_spawn_file_actions_adddup2-tests:
1359         * modules/posix_spawn_file_actions_addopen-tests:
1360         * modules/unistd-safer-tests:
1361         Depend on the getdtablesize module.
1362         * tests/test-cloexec.c:
1363         * tests/test-dup-safer.c:
1364         * tests/test-dup2.c:
1365         * tests/test-dup3.c:
1366         * tests/test-fcntl.c:
1367         * tests/test-nonblocking.c:
1368         * tests/test-posix_spawn_file_actions_addclose.c:
1369         * tests/test-posix_spawn_file_actions_adddup2.c:
1370         * tests/test-posix_spawn_file_actions_addopen.c:
1371         Don't assume getdtablesize () <= 10000000.
1372
1373 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1374
1375         extern-inline: work around bug in Sun c99
1376         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1377         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1378
1379 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1380
1381         qacl: new module, broken out from the acl module
1382         This is for GNU Emacs, which wants the acl functions but does
1383         not want 'error' invoked when they fail.
1384         * lib/acl-internal.h: Do not include error.h, quote.h.
1385         (ENOSYS, ENOTSUP): Remove; no longer needed.
1386         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1387         * lib/acl.h: Include <stdbool.h>.
1388         (acl_errno_valid): New function.
1389         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1390         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1391         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1392         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1393         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1394         * lib/file-has-acl.c (file_has_acl):
1395         * lib/qcopy-acl.c (qcopy_acl):
1396         * lib/qset-acl.c (qset_acl):
1397         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1398         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1399         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1400         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1401         Add lib/set-acl.c.
1402         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1403         Add qacl.
1404         (configure.ac): Move gl_FUNC_ACL to qacl module.
1405         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1406         Rename set-mode-acl.c to set-acl.c.
1407         * lib/acl-errno-valid.c: New file.
1408         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1409         copy_acl function remains in copy-acl.c.
1410         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1411         (_): Remove; not needed.
1412         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1413         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1414         * modules/qacl: New file, moved from the old modules/acl.
1415         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1416         Remove set-mode-acl.c, copy-acl.c.
1417         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1418
1419         alignof, intprops, malloca: port better to IBM's C compiler
1420         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1421         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1422         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1423
1424 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1425
1426         wctype-h: fix gettext link error on mingw
1427         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1428         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1429         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1430         rpl_towupper and rpl_towupper.
1431
1432 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1433
1434         regex-tests, regex: allow glibc re_search behavior
1435         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1436         re_search input data to make the multi-character collating element
1437         in it clearly visible, and treat re_search return code 0 as valid.
1438         * m4/regex.m4 (gl_REGEX): Likewise.
1439
1440 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1441
1442         stdalign: doc fix
1443         * doc/posix-headers/stdalign.texi (stdalign.h):
1444         Gnulib doesn't support '_Alignof expr'.
1445
1446 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1447
1448         stdalign: port to stricter ISO C11
1449         ISO C11 says that _Alignof's operand must be a parenthesized type.
1450         Problem reported by Eli Zaretskii in
1451         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1452         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1453         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1454
1455 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1456
1457         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1458         Problem reported by Marco Atzeri in
1459         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1460         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1461         Simply delegate to the system <sys/select.h> in this case too.
1462         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1463         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1464         be needed on Solaris either.
1465         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1466         Simply delegate to the system <sys/time.h> in this case.
1467
1468 2013-03-19  Karl Berry  <karl@gnu.org>
1469
1470         * build-aux/gnupload: check for erroneous (with gnupload) use of
1471         ftp-upload.gnu.org, tweak help.
1472
1473 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1474
1475         copy-file, rpmatch: fix problems found by cppcheck
1476         Reported by Arno Onken in
1477         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1478         * lib/rpmatch.c (try): Fix memory leak.
1479         * lib/copy-file.c: Include "ignore-value.h".
1480         (qcopy_file_preserving): Ignore chown value.
1481         * modules/copy-file (Depends-on): Add ignore-value.
1482
1483 2013-01-27  Jim Meyering  <jim@meyering.net>
1484
1485         prefix-gnulib-mk: give better diagnostics
1486         * build-aux/prefix-gnulib-mk: Don't just "die".
1487         Give better diagnostics upon failure.
1488
1489 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1490
1491         putenv: port to Solaris 10
1492         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1493         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1494         is not what is wanted here.
1495         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1496         declaration, not for its existence.
1497
1498 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1499
1500         mktime: fix configure typo
1501         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1502
1503 2013-03-12  Eric Blake  <eblake@redhat.com>
1504
1505         regex-tests: skip UTF-8 test on mingw
1506         * modules/regex-tests (Depends-on): Add localcharset.
1507         * tests/test-regex.c (main): Use it to skip test on mingw.
1508
1509 2013-03-11  Eric Blake  <eblake@redhat.com>
1510
1511         tests: make it easier to bypass alarm time in debugger
1512         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1513         * tests/test-memmem.c (main): Likewise.
1514         * tests/test-passfd.c (main): Likewise.
1515         * tests/test-ptsname.c (main): Likewise.
1516         * tests/test-ptsname_r.c (main): Likewise.
1517         * tests/test-strcasestr.c (main): Likewise.
1518         * tests/test-strstr.c (main): Likewise.
1519
1520         regex: port to mingw's recent addition of undeclared alarm
1521         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1522         exists but still doesn't work in newer mingw.
1523         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1524         not existence.  Ensure SIGALRM is not trapped.
1525         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1526         * m4/regex.m4 (gl_REGEX): Likewise.
1527         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1528         * tests/test-regex.c (main): Use correct probe for alarm.
1529
1530         putenv: avoid compilation warning on mingw
1531         * lib/putenv.c (_unsetenv): Protect variable declaration.
1532         (putenv): Fix indentation.
1533
1534 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1535
1536         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1537         * lib/unistd.in.h: be careful not to include un-needed system
1538         stdlib.h from here, because that prevents gnulib stdlib.h from
1539         defining rpl_strtod correctly.
1540
1541 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1542
1543         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1544         changesets, but for the 'precision 0' test.
1545         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1546         round-to-even, since POSIX says rounding is implementation-defined
1547         and OS X 10.8.2 rounds 1.51 to 1 here.
1548
1549         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1550         changeset.
1551         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1552         round-to-even, since POSIX says rounding is implementation-defined
1553         and OS X 10.8.2 rounds 1.5 to 1 here.
1554
1555 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1556
1557         vasnprintf-posix-tests: allow rounding 1.5 to 1
1558         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1559         round-to-even, since POSIX says rounding is implementation-defined
1560         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1561         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1562
1563         bootstrap: port to FreeBSD
1564         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1565         that treat '--' differently.  Reported by Mats Erik Andersson in
1566         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1567
1568 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1569
1570         regex: rename remaining __attribute calls to __attribute__.
1571         2012-02-25 changed definition of __attribute, but left some uses
1572         unchanged, preventing compilation of regex module on most non-gcc
1573         environments.
1574         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1575         (lookup_collation_sequence_value, build_range_exp)
1576         (build_collating_symbol): Set attributes with newly renamed
1577         __attribute__ decorator.
1578         * lib/regex_internal.c (re_string_peek_byte_case)
1579         (re_node_set_compare, re_node_set_contains): Likewise.
1580         * lib/regexec.c (acquire_init_state_context): Likewise.
1581
1582 2013-03-06  Bruno Haible  <bruno@clisp.org>
1583
1584         execute: Revert last change, but use a different condition.
1585         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1586         on Windows.
1587
1588 2013-03-05  Eric Blake  <eblake@redhat.com>
1589
1590         execute: drop dead code
1591         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1592
1593 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1594
1595         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1596         * m4/non-recursive-gnulib-prefix-hack.m4
1597         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1598         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1599         <http://bugs.gnu.org/10305#237>.
1600
1601 2013-03-04  Eric Blake  <eblake@redhat.com>
1602
1603         test-getsockopt: avoid compiler warning
1604         * tests/test-getsockopt.c (includes): Ensure close is declared.
1605
1606 2013-03-02  Bruno Haible  <bruno@clisp.org>
1607
1608         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1609         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1610
1611 2013-03-02  Bruno Haible  <bruno@clisp.org>
1612
1613         gettext: Update to version 0.18.2.
1614         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1615         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1616                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1617
1618 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1619
1620         regex: merge patches from libc
1621
1622         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1623         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1624         All uses changed.
1625         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1626         (re_string_wchar_at, re_string_elem_size_at):
1627         Mark function as possibly unused.
1628
1629         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1630         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1631         elements compare against the byte sequence of it, not its name.
1632
1633 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1634
1635         putenv: port better to native Windows
1636         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1637         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1638         (_unsetenv): Use _putenv if available.
1639         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1640         a bit less likely to cause damage.
1641         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1642         Fix the wrong value with SetEnvironmentVariable.
1643         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1644         code better.
1645
1646 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1647
1648         regex: ignore old-style-definition warnings
1649         * lib/regex.c: Add pragma to ignore these warnings.
1650         Problem reported for GNU tar by Pavel Raiskup.
1651
1652 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1653
1654         getcwd: support coreutils better
1655         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1656         but this might not be correct in coreutils, which disables
1657         the raw decl checks.  Problem reported by Nagendra in
1658         <http://bugs.gnu.org/10305#192>.
1659         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1660         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1661         Test the getcwd function, not any macro, since getcwd.c wants the
1662         function.
1663         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1664         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1665         compile, as might happen if there's a macro but no function.
1666
1667         strtod: support coreutils better
1668         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1669         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1670         disables the raw decl checks.  This assumes there is an underlying
1671         strtod, but that's a safe assumption these days.
1672         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1673
1674         mountlist: port to HP NonStop
1675         Reported by Joachim Schmitz in
1676         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1677         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1678         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1679
1680 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1681
1682         extern-inline: avoid compilation error with HP-UX cc
1683         Reported by Richard Lloyd in
1684         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1685         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1686         Suppress extern inline with HP-UX cc.  This should be safe,
1687         though it may hurt performance.  Perhaps someone with some HP-UX
1688         experience can come up with a higher-performance fix.
1689
1690 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1691
1692         putenv: fix heap corruption with mixed putenv/_putenv
1693         Problem reported by Michael Goffioul in
1694         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1695         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1696         Rely on _putenv to allocate the new environment.
1697         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1698         * modules/putenv (configure.ac): Use it.
1699
1700 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1701
1702         unsetenv etc.: port to Solaris 11 + GNU Emacs
1703         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1704         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1705         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1706         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1707         idea but is too painful to fix right now), and without this gnulib
1708         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1709         compiling unsetenv.c on Solaris 11.  Fix the problem for
1710         unsetenv.c, and fix other similar occurrences.
1711
1712 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1713
1714         secure_getenv: fix C++ declaration typo
1715         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1716         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1717         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1718
1719 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1720
1721         careadlinkat: stop exporting careadlinkatcwd
1722         Only Emacs used it directly, and Emacs no longer needs it.
1723         * NEWS: Document this simplification.
1724         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1725         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1726         for readlink.
1727         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1728         Don't include stdlib.h; no longer needed.
1729         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1730         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1731         * modules/areadlink (Depends-on): Add readlink.
1732         (Maintainer): Add self.
1733         * modules/careadlinkat (Depends-on): Remove readlink.
1734
1735         extensions: port better to HP-UX
1736         This is merged from git Autoconf.
1737         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1738         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1739         so that it's compatible with the value used when compiling.
1740
1741         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1742         Problem reported by Mats Erik Andersson in
1743         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1744         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1745         openpty function exists, not merely when we intend to replace it.
1746         This corrects the 2013-01-31 patch, which mistakenly defined
1747         HAVE_OPENPTY even on hosts that lacked it.
1748
1749 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1750
1751         secure_getenv: fix include typo
1752         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1753
1754         secure_getenv: port better to FreeBSD and Solaris
1755         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1756         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1757         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1758         This works better on BSDish platforms.
1759         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1760         Test for issetugid if __secure_getenv is missing.
1761
1762 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1765         Some of these changes are merged in from git Autoconf.
1766         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1767         When deciding whether to define _XOPEN_SOURCE, inspect the
1768         preprocessor macro __hpux instead of the more-heavyweight
1769         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1770         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1771         as the key for __EXTENSIONS__.
1772
1773         unistd: avoid namespace pollution on non-glibc systems
1774         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1775         This avoids namespace pollution on non-glibc systems, by causing
1776         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1777         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1778         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1779
1780 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1781
1782         tmpdir: use secure_getenv
1783         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1784         Define to secure_getenv, not getenv.
1785         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1786         as that's now secure_getenv's job.
1787         * modules/tmpdir (Depends-on): Add secure_getenv.
1788
1789         tempname: use secure_getenv
1790         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1791         Define to secure_getenv, not getenv.
1792         * modules/tempname (Depends-on):
1793         Add secure_getenv.
1794
1795         secure_getenv: new module
1796         * MODULES.html.sh (Extra functions based on ANSI C 89):
1797         Add secure_getenv.
1798         * doc/glibc-functions/secure_getenv.texi: New file.
1799         * doc/gnulib.texi: Include it.
1800         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1801         New files.
1802         * lib/stdlib.in.h (secure_getenv): New decl.
1803         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1804         * modules/stdlib (stdlib.h):
1805         Add secure_getenv checks.
1806
1807 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1808
1809         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1810         Reported for OS X 10.8.2 by Assaf Gordon in
1811         <http://bugs.gnu.org/13516>.
1812         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1813         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1814         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1815         so that they can be kept in sync more easily.  Avoid PATH_MAX
1816         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1817         mkdir or chdir failure.
1818         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1819         lib/getcwd.c.
1820         (test_abort_bug): Do not test for the deep directory bug unless we
1821         have openat support.  Avoid PATH_MAX test on the Hurd.
1822
1823         regex-tests, regex: fix bug: memset undeclared
1824         * tests/test-regex.c: Don't include regex.h twice.  Include
1825         string.h, to declare memset.  Christensen's report also mentioned
1826         this issue.
1827         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1828         test-regex.c, to avoid future problems like this.  Remove
1829         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1830         twice.
1831
1832         regex-tests: fix link errors on older Solaris
1833         These need to link with @LIBINTL@ to get libintl_gettext.
1834         Problem reported by Tom G. Christensen in
1835         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1836         * modules/regex-tests (test_regex_LDADD): New macro.
1837
1838 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1839
1840         regex-tests: new module
1841         * modules/regex-tests, tests/test-regex.c: New files.
1842
1843         regex: fix off-by-one error in configure test
1844         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1845
1846 2013-01-31  Eric Blake  <eblake@redhat.com>
1847
1848         regex: avoid infinite configure test
1849         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1850
1851 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1852
1853         openpty: fix bug where HAVE_OPENPTY wasn't defined
1854         See the thread starting at:
1855         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1856         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1857         openpty function exists, not merely when we intend to replace it.
1858
1859 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1860
1861         sys_time: port to Solaris 2.6
1862         There is a circularity problem on Solaris 2.6, where <time.h> includes
1863         <sys/time.h> for struct timespec.  The include nesting is gnulib
1864         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1865         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1866         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1867         <sys/siginfo.h>; the last, innermost file needs struct
1868         timestruc_t, which is defined in <sys/time.h>, which has not been
1869         fully parsed.  Problem reported by Tom G. Christensen in
1870         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1871         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1872         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1873         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1874         uses split double-inclusion guards.
1875
1876 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1877
1878         regex: test for buffer overrun
1879         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1880         for the just-fixed regex bug.
1881
1882 2013-01-29  Andreas Schwab  <schwab@suse.de>
1883
1884         regex: fix buffer overrun in regexp matcher [BZ #15078]
1885         * lib/regexec.c (extend_buffers): Add parameter min_len.
1886         (check_matching): Pass minimum needed length.
1887         (clean_state_log_if_needed): Likewise.
1888         (get_subexp): Likewise.
1889
1890 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1891
1892         mountlist: don't consider "devtmpfs" as dummy
1893         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1894         as there is storage associcated with it.
1895
1896 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1897
1898         futimens-tests, utimens-tests: Depend on gettext.
1899         This works around a problem introduced in my 2013-01-12 patch,
1900         which added @LIBINTL@ to these modules.
1901         * modules/futimens-tests (Depends-on):
1902         * modules/utimens-tests (Depends-on): Add gettext.
1903
1904 2013-01-26  Eric Blake  <eblake@redhat.com>
1905
1906         test-getpeername: fix typo
1907         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1908
1909 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1910
1911         bootstrap: remove the need for a sorted .gitignore file
1912         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1913         rename to insert_if_absent(), so that we don't need or generate
1914         a sorted .gitignore file.  We do require a .gitignore with no
1915         existing duplicate entries and enforce that.
1916         (sort_patterns): Remove this function as we now use the simpler
1917         technigue of inserting blacklist entries at the top of the file,
1918         assuming gnulib won't be inserting !whitelist entries.
1919
1920 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1921
1922         readlinkat: don't depend on gl_FUNC_OPENAT
1923         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1924         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1925         renameat.m4, symlinkat.m4; but one thing at a time.
1926
1927         statat: new module, split out from fstatat
1928         GNU Emacs needs the POSIX-specified fstatat, but not the
1929         gnulib-specified statat and lstat.  Split the latter two into a
1930         new module 'statat'.
1931         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1932         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1933         Rename from FSTATAT_INLINE. All uses changed.
1934         * modules/fstatat (Files): Remove lib/statat.c.
1935         (gl_MODULE_INDICATOR([fstatat])): Remove.
1936         (lib_SOURCES): Remove.
1937         (Maintainer): Add self.
1938         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1939         * tests/test-fstatat.c (BASE): Don't define if already defined.
1940         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1941
1942 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1943
1944         tests: don't assume fd 99 is closed
1945         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1946         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1947         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1948         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1949         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1950         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1951         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1952         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1953         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1954         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1955         * tests/test-fwrite.c, tests/test-getpeername.c:
1956         * tests/test-getsockname.c, tests/test-getsockopt.c:
1957         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1958         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1959         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1960         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1961         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1962         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1963         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1964         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1965         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1966         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1967         Close file descriptor 99, instead of assuming it's already closed.
1968
1969 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1970
1971         stpncpy: port to OS X 10.8
1972         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1973         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1974
1975 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1976
1977         unistd: port to recent mingw
1978         * lib/unistd.in.h: Remove special invocation convention for mingw,
1979         which breaks for the latest mingw version.  See John W. Eaton in
1980         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1981
1982         largefile: port better to Mac OS X 10.5
1983         This patch is backported from Autoconf git.
1984         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1985         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1986         with ino_t size being different for configuration time versus
1987         build/run time.  Problem reported by PHO in
1988         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1989
1990 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         doc: clarify -Werror
1993         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1994         clarify that it's intended for developers, not for ordinary builds,
1995         and mention --enable-gcc-warnings as one possible use.
1996
1997 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1998
1999         stdint: fix build with Android's Bionic fox x86
2000         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2001         was already included as _SSIZE_T_DEFINED_ might also be defined
2002         in include/machine/_types.h, which is included by stdio.h
2003
2004 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2005
2006         net_if-tests: port to Solaris 7 + GCC 3.4.6
2007         Problem reported by Tom G. Christensen in
2008         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2009         * tests/test-net_if.c (ni): Move to next the code that uses it,
2010         so that it's declared only if needed.
2011
2012 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2013
2014         net_if-tests: port to older Solaris
2015         Problem reported by Tom G. Christensen in
2016         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2017         * modules/net_if-tests (NET_IF_LIB): New substitution.
2018         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2019         (HAVE_IF_NAMEINDEX): New C macro.
2020         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2021
2022         system-quote-tests: port to older Solaris
2023         Problem reported by Tom G. Christensen in
2024         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2025         * tests/test-system-quote-child.c (fopen, fread): Undef.
2026
2027         c-xvasprintf etc.: fix link errors on older Solaris
2028         These need to link with @LIBINTL@ to get libintl_gettext.
2029         Problem reported by Tom G. Christensen in
2030         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2031         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2032         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2033         * modules/futimens-tests (test_futimens_LDADD):
2034         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2035
2036 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2037
2038         locale: port to Solaris 2.6 and 7 + GNU gettext
2039         * lib/locale.in.h: Just include_next <locale.h> when
2040         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2041         when combining the localename module with GNU gettext 0.18.2.
2042         Problem reported by Tom G. Christensen in
2043         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2044
2045 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         stdlib: port to Solaris 2.6
2048         Also, the code worked on Solaris 7 through 9 only by accident.
2049         Problem reported by Tom G. Christensen in
2050         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2051         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2052         simply include the system stdlib.h.
2053         * lib/getopt.in.h (__need_system_stdlib_h):
2054         * lib/pthread.in.h (__need_system_stdlib_h):
2055         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2056         Define when including <stdlib.h>, to avoid problems at least for
2057         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2058         with the system stdlib.h.
2059
2060 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2061
2062         doc: update main copyright year
2063         * doc/gnulib.texi: Update copyright date.
2064
2065         doc: improve ISO 8601 discussion
2066         * doc/parse-datetime.texi (Combined date and time of day items):
2067         Specify more carefully what formats are supported and what is
2068         done with excess precision.
2069
2070 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2071
2072         doc: avoid small caps
2073         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2074         they're more trouble than they're worth.  Suggested by Karl Berry
2075         in <http://bugs.gnu.org/13360>.
2076
2077         regex: conform to strict C
2078         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2079         From Aharon Robbins.
2080
2081         gnulib-tool: fix incompatibility with autopoint 0.18.2
2082         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2083         Problem reported by Tom G. Christensen in
2084         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2085
2086 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2087
2088         fprintftime: bring back and reword fwrite comment
2089         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2090
2091         stdio: remove now-unnecessary stdio.c
2092         Since stdio.in.h no longer uses inline functions, we no longer
2093         need to compile the extern versions.
2094         * lib/stdio.c: Remove.
2095         * modules/stdio (Files): Remove lib/stdio.c.
2096         (lib_SOURCES): Remove.
2097
2098         unicodeio: depend on stdio, not ignore-value
2099         * lib/unicodeio.c: Do not include ignore-value.h.
2100         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2101         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2102
2103         fprintftime: depend on stdio, not ignore-value
2104         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2105         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2106         since the stdio module arranges to silence that warning now.
2107         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2108
2109 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2110
2111         stdint-tests: Fix expanded-before-required-warning.
2112         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2113
2114 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2115
2116         fwrite: silence __wur only for older glibc versions
2117         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2118         This will help us remove this workaround some time in the far future.
2119
2120 2013-01-03  Eric Blake  <eblake@redhat.com>
2121
2122         fwrite: silence __wur without using inline
2123         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2124         just gcc, and in a way that avoids inline issues.
2125         * modules/stdio (Depends-on): Drop extern-inline.
2126
2127 2013-01-03  Jim Meyering  <jim@meyering.net>
2128
2129         update-copyright: avoid copyright notice date corruption
2130         Given a sequence of copyright year numbers in which the final
2131         one was a two-digit number that happened to be a substring of
2132         a preceding four-digit year number, we would mistakenly update
2133         the substring (from two- to four-digit) rather than the two-digit
2134         number at the end, which, combined with the addition of the current
2135         4-digit year number would yield two 5-digit year numbers, e.g.,
2136         here, it would convert the first "99" to "1999, 2013" rather than
2137         the final one:
2138           1991, 99
2139           11999, 20131, 1999
2140         * build-aux/update-copyright: Tighten a regexp.
2141         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2142         Reported by Joseph Myers in
2143         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2144
2145 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2146
2147         regex: omit needless signed-pointer casts
2148         * lib/regcomp.c (build_charclass, build_charclass_op):
2149         Use char *, not unsigned char *, for class name and extra.
2150         The char values are always nonnegative so there's no need to
2151         insist on unsigned char * here, and using char * removes the need
2152         for casts.  Reported by Aharon Robbins in
2153         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2154
2155         regex: support Gawk, which never uses alloca
2156         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2157         Do not include in this case.  Gawk doesn't supply a substitute
2158         alloca.h and doesn't need one.
2159
2160         regex: port __libc_lock_define usage to C89
2161         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2162         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2163         does not conform to C89, as it has an empty macro argument.
2164         Reported by Aharon Robbins in
2165         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2166
2167 2013-01-01  Eric Blake  <eblake@redhat.com>
2168
2169         maint: update all copyright year number ranges
2170         Run "make update-copyright".
2171
2172         version-etc: bump copyright year reported in --version
2173         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2174
2175 2012-12-31  Eric Blake  <eblake@redhat.com>
2176
2177         sigprocmask-tests: skip test if pid is unexpectedly large
2178         * tests/test-sigprocmask.c (main): Add range check.
2179
2180         git-version-gen: avoid test -z portability glitch
2181         * build-aux/git-version-gen: Prefer portable test spelling, since
2182         git-version-gen is run on more than just developer machines.
2183
2184 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2185
2186         git-version-gen: add --fallback option to use if git is not present
2187         * build-aux/git-version-gen: Add support for the new option --fallback,
2188         which comes into play when there is no $tarball_version_file and
2189         git is not working.
2190         (scriptversion): Update.
2191
2192         maint.mk: handle missing git with more grace
2193         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2194         Quietly proceed if git is not present.
2195
2196 2012-12-31  Eric Blake  <eblake@redhat.com>
2197
2198         dup2: work around cygwin bug
2199         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2200         * lib/dup2.c (rpl_dup2): Work around it.
2201         * doc/posix-functions/dup2.texi (dup2): Document it.
2202
2203 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2204
2205         regex: remove unnecessary dependency on localcharset.h
2206         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2207         hasn't been needed for years.
2208         * modules/regex (Depends-on): Remove localcharset.
2209
2210         regex: revert single-byte change
2211         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2212         to this function.  This was alredy fixed in a different way, at
2213         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2214         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2215         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2216
2217         regex: simplify based on Gawk version
2218         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2219         Reported by Aharon Robbins in
2220         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2221
2222 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2223
2224         regex: check that pattern char is single-byte
2225         Reported by Aharon Robbins in
2226         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2227         * lib/regexec.c (check_node_accept_bytes):
2228         Return 0 if the pattern string has a multibyte character here.
2229
2230         regex: implement rational ranges
2231         Reported by Aharon Robbins in
2232         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2233         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2234         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2235         Implement rational ranges.
2236
2237         regex: avoid redefining __wctype
2238         Reported by Aharon Robbins in
2239         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2240         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2241         #undef before defining.
2242
2243         regex: port to hosts where malloc (0) == NULL
2244         Reported by Aharon Robbins in
2245         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2246         * lib/regex_internal.c (re_node_set_alloc):
2247         Don't assume that malloc (0) yields nonnull.
2248         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2249         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2250         * modules/regex (Files): Add m4/eealloc.m4.
2251
2252         regex: port to C89
2253         Reported by Aharon Robbins in
2254         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2255         * lib/regcomp.c (init_word_char): Declaration before statement.
2256
2257         regex: merge glibc changes
2258         Also, copy the license wording from glibc.  This simplifies
2259         merging changes.  gnulib-tool will change the wording to GPL as
2260         appropriate, when importing it to other packages.  The only
2261         glibc change made since the last merge, which needs merging, is:
2262         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2263         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2264
2265         * users.txt: Add Emacs.
2266
2267         doc: omit mention of version when not needed
2268         * doc/gnulib-intro.texi (Portability and Application Code):
2269         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2270         Don't mention particular dates or versions when not necessary, so
2271         that the documentation won't go out of date so quickly.
2272
2273         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2274
2275 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2276
2277         bootstrap: pass --force to autoreconf.
2278         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2279         Add "--force" so that Automake's ylwrap and other such tools
2280         be updated at each bootstrap invocation.
2281         Use it.
2282
2283 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2284
2285         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2286         The earlier patch forgot to update one of the #if conditions, causing
2287         a problem on Debian testing i386 reported by Mats Erik Andersson
2288         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2289         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2290         (__argp_fmtstream_puts, argp_fmtstream_puts)
2291         (__argp_fmtstream_write, argp_fmtstream_write)
2292         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2293
2294         * doc/gnulib-readme.texi: Minor fixups.
2295         (Portability guidelines): Modernize URLs.  Remove some repetition.
2296         (Indent with spaces not TABs): Reword to avoid too-long lines.
2297         Remove some '@ifset standalone' stuff that isn't used.
2298
2299         * doc/gnulib-readme.texi (Portability guidelines):
2300         ctype.h, not ctime.h.
2301
2302         Correct name of POSIX.1-2001.
2303         * doc/posix-functions/fgetc.texi (fgetc):
2304         * doc/posix-functions/fgets.texi (fgets):
2305         * doc/posix-functions/fread.texi (fread):
2306         * doc/posix-functions/fscanf.texi (fscanf):
2307         * doc/posix-functions/getc.texi (getc):
2308         * doc/posix-functions/getchar.texi (getchar):
2309         * doc/posix-functions/scanf.texi (scanf):
2310         POSIX.1-2001, not POSIX-2001.
2311
2312         doc: move README into manual
2313         * README: Move contents to new file doc/gnulib-readme.texi.
2314         Replace with a one-line summary.
2315         * doc/gnulib.texi (Brief Overview): New section,
2316         with old intro preface.  Include gnulib-readme.texi for contents.
2317         (Philosophy): Rename from "Introduction", since this
2318         section no longer introduces the rest.  Write a new preface.
2319         * doc/gnulib-readme.texi: New file, with the old contents of
2320         README texinfo-ized.  This way, the README info appears
2321         in the online and printed manual.
2322
2323 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2324
2325         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2326         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2327         c_vasprintf() prototype.
2328
2329 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2330
2331         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2332         * lib/c-vasprintf.h: Remove stray semicolon.
2333
2334 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2335
2336         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2337         It is obsolete and is planned to be removed from Automake 1.14; see
2338         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2339         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2340         (installdirs-data, installdirs-data-yes):
2341         Use $(MKDIR_P), not $(mkdir_p).
2342         * m4/intl.m4 (AM_INTL_SUBDIR):
2343         * m4/po.m4 (AM_PO_SUBDIRS):
2344         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2345
2346 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2347
2348         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2349         On this platform, we are not optimizing but we are using
2350         the substitute for extern inlines, so compile as if
2351         C99-style extern inline, or a substitute, is available.
2352         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2353         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2354         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2355         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2356         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2357         Declare as ARGP_FS_EI, not as extern.
2358         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2359         (__option_is_short, _option_is_end, __option_is_end)
2360         [!_LIBC && __USE_EXTERN_INLINES]:
2361         Declare as ARGP_EI, not as extern.
2362
2363 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2364
2365         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2366         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2367         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2368         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2369         ...), as the latter is fatal with older Autoconfs.
2370         Problem reported and fix suggested by Eric Blake in thread starting at
2371         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2372
2373 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2374
2375         AC_PROG_MKDIR_P: don't workaround if not buggy
2376         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2377         Define only for Autoconf versions before 2.62.
2378         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2379         undocumented m4_PACKAGE_VERSION, for consistency with the
2380         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2381         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2382         was introduced in 2.62.
2383
2384 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2385
2386         New 'c-*printf' modules for formatted output in C locale.
2387
2388         New module 'c-vasnprintf'.
2389         * modules/c-vasnprintf: New file.
2390         * lib/c-vasnprintf.c: New file.
2391         * lib/c-vasnprintf.h: New file.
2392
2393         New module 'c-snprintf'.
2394         * modules/c-snprintf: New file.
2395         * modules/c-snprintf-tests: New file.
2396         * lib/c-snprintf.c: New file.
2397         * lib/c-snprintf.h: New file.
2398         * tests/test-c-snprintf.c: New file.
2399         * tests/test-c-snprintf.sh: New file.
2400
2401         New module 'c-vsnprintf'.
2402         * modules/c-vsnprintf: New file.
2403         * modules/c-vsnprintf-tests: New file.
2404         * lib/c-vsnprintf.c: New file.
2405         * lib/c-vsnprintf.h: New file.
2406         * tests/test-c-vsnprintf.c: New file.
2407         * tests/test-c-vsnprintf.sh: New file.
2408
2409         New module 'c-vasprintf'.
2410         * modules/c-vasprintf: New file.
2411         * modules/c-vasprintf-tests: New file.
2412         * lib/c-asprintf.c: New file.
2413         * lib/c-vasprintf.c: New file.
2414         * lib/c-vasprintf.h: New file.
2415         * tests/test-c-vasprintf.c  +: New file.
2416         * tests/test-c-vasprintf.sh: New file.
2417
2418         New module 'c-xvasprintf'.
2419         * modules/c-xvasprintf: New file.
2420         * modules/c-xvasprintf-tests: New file.
2421         * lib/c-xasprintf.c: New file.
2422         * lib/c-xvasprintf.c: New file.
2423         * lib/c-xvasprintf.h: New file.
2424         * tests/test-c-xvasprintf.c: New file.
2425         * tests/test-c-xvasprintf.sh: New file.
2426
2427 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2428
2429         argp: better 'inline'
2430         Use extern-inline module to declare extern inline functions.
2431         This avoids some bogus warning diagnostics.  Problem discovered
2432         when modifying GNU tar to use the manywarnings module.
2433         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2434         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2435         Define based on extern-inline.
2436         * modules/argp (Depends-on): Add extern-inline.
2437
2438 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2439
2440         filemode, sys_stat: Handle MPX files a la AIX.
2441         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2442         * lib/sys_stat.in.h (S_ISMPX): New macro.
2443         * tests/test-sys_stat.c: Add tests for MPX files.
2444
2445 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2446
2447         x-to-1: honor $PERL
2448         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2449         a chance to use his preferred version of Perl.  This is typically
2450         required by Darwin users whose default /usr/bin/perl does not have all
2451         the libraries required by help2man, and who need to use their MacPorts
2452         installation of Perl instead.
2453
2454 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2455
2456         gnu-web-doc-update: add all the new files, even in new directories
2457         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2458         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2459         Use it.
2460         (main): Don't use cvsutils to get the list of unknown files,
2461         just add all the existing files and directories.
2462
2463 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2464
2465         gnu-web-doc-update: improve --help
2466         * build-aux/gnu-web-doc-update: Move comments into --help.
2467
2468 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2469
2470         mountlist: recognize more "dummy" file systems
2471         * lib/mountlist.c (ME_DUMMY_0):
2472         Add these dummy FS names to the list:
2473         - "debugfs" virtual filesystem for kernel debugging
2474         - "devpts" PTY slave filesystem
2475         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2476         - "fusectl" control filesystem for FUSE
2477         - "mqueue" enumerates POSIX message queues
2478         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2479         - "sysfs" is for exporting kernel objects
2480         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2481
2482 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2483
2484         extern-inline: avoid incompatibility with Darwin Libc
2485         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2486         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2487         Problem reported by Akim Demaille in
2488         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2489
2490 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2491
2492         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2493         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2494         let it handle password prompting.
2495
2496 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2497
2498         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2499         * lib/canonicalize.c (canonicalize_filename_mode):
2500         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2501         fetching the current directory.  Don't overrun the beginning of
2502         rpath if there's no slashes after the MS-Windows drive letter.
2503
2504 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2505
2506         maint.mk: avoid extra forks
2507         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2508         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2509         So use that instead of "$(shell test -f FILE && echo FILE)".
2510
2511 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2512
2513         vasnprintf: fix ASCII_ONLY typo
2514         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2515         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2516         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2517         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2518         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2519
2520 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2521
2522         list, oset, xlist, xoset: fix extern inline issue with C99
2523         This was introduced by my recent changes for 'inline'.
2524         Problem reported for gettext by Daiki Ueno in
2525         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2526         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2527         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2528         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2529         (gl_list_previous_node, gl_list_get_at)
2530         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2531         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2532         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2533         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2534         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2535         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2536         (gl_list_iterator_free, gl_sortedlist_search)
2537         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2538         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2539         (gl_sortedlist_remove):
2540         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2541         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2542         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2543         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2544         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2545         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2546         (gl_list_add_at, gl_sortedlist_add):
2547         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2548         Wrap these extern decls inside "#if 0", because they are implemented
2549         as inline functions, and extern inline is not what's wanted here.
2550         It would simplify these .h files to remove the extern decls entirely,
2551         although a downside would be less-clear separation between
2552         specification and implementation.
2553
2554 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2555
2556         sys_stat: no 'static inline'
2557         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2559
2560         extern-inline: no 'static inline'
2561         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2562         Do not require AC_C_INLINE.
2563         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2564         'static inline', for older compilers.
2565
2566         snippet/warn-on-use: no 'static inline'
2567         * build-aux/snippet/warn-on-use.h:
2568         Remove unnecessary 'inline' in comment.
2569
2570         rbtree-list, rbtreehash-list: no 'static inline'
2571         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2572         * lib/gl_anytree_list2.h (node_at):
2573         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2574         (gl_oset_first, add_nodes_to_buckets):
2575         Now static, not static inline.
2576
2577         regex: no 'static inline'
2578         * lib/regex_internal.c (calc_state_hash):
2579         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2580         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2581         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2582         Now static, not static inline.
2583         (inline) [__GNUC__ < 3 && _LIBC]:
2584         Remove macro; no longer needed.
2585
2586         xvasprintf: no 'static inline'
2587         * lib/xvasprintf.c (xstrcat):
2588         Now static, not static inline.
2589         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2590         Do not require AC_C_INLINE.
2591
2592         parse-datetime, parse-duration: no 'static inline'
2593         * lib/parse-datetime.y (to_uchar):
2594         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2595         (scale_n_add):
2596         Now static, not static inline.
2597         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2598         * modules/parse-duration (configure.ac):
2599         Do not require AC_C_INLINE.
2600
2601         getaddrinfo: no 'static inline'
2602         * lib/getaddrinfo.c (validate_family):
2603         Now static, not static inline.
2604         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2605         Do not require AC_C_INLINE.
2606
2607         ftruncate, fts, lstat, openat, raise: no 'static inline'
2608         * lib/ftruncate.c (chsize_nothrow):
2609         * lib/fts.c (opendirat, diropen):
2610         * lib/lstat.c (orig_lstat):
2611         * lib/openat.c (orig_openat):
2612         * lib/raise.c (raise_nothrow):
2613         Now static, not static inline.
2614         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2615         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2616         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2617         * m4/openat.m4 (gl_PREREQ_OPENAT):
2618         * m4/raise.m4 (gl_PREREQ_RAISE):
2619         Do not require AC_C_INLINE.
2620
2621         fflush, stat: no 'static inline'
2622         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2623         (clear_ungetc_buffer, disable_seek_optimization)
2624         (restore_seek_optimization, update_fpos_cache):
2625         * lib/stat.c (orig_stat):
2626         Now static, not static inline.
2627         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2628         (update_fpos_cache):
2629         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2630         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2631         * m4/stat.m4 (gl_PREREQ_STAT):
2632         Do not require AC_C_INLINE.
2633
2634         error, filevercmp: no 'static inline'
2635         * lib/error.c (is_open, flush_stdout):
2636         * lib/filevercmp.c (order):
2637         Now static, not static inline.
2638         * m4/error.m4 (gl_PREREQ_ERROR):
2639         * modules/filevercmp (configure.ac):
2640         Do not require AC_C_INLINE.
2641
2642         dup, execute, fatal-signal, etc.: no 'static inline'
2643         * lib/dup.c (dup_nothrow):
2644         * lib/execute.c (nonintr_close, nonintr_open):
2645         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2646         * lib/fopen.c (orig_fopen):
2647         * lib/freadseek.c (freadptrinc):
2648         * lib/freopen.c (orig_freopen):
2649         * lib/fstat.c (orig_fstat, fstat_nothrow):
2650         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2651         (get_rusage_as_via_iterator):
2652         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2653         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2654         * lib/isatty.c (_isatty_nothrow):
2655         * lib/open.c (orig_open):
2656         * lib/read.c (read_nothrow):
2657         * lib/sigprocmask.c (signal_nothrow):
2658         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2659         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2660         * lib/wait-process.c (unregister_slave_subprocess):
2661         * lib/write.c (write_nothrow):
2662         Now static, not static inline.
2663         * lib/spawn-pipe.c (nonintr_open): Define only if
2664         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2665         * m4/dup.m4 (gl_PREREQ_DUP):
2666         * m4/execute.m4 (gl_EXECUTE):
2667         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2668         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2669         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2670         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2671         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2672         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2673         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2674         * m4/open.m4 (gl_PREREQ_OPEN):
2675         * m4/read.m4 (gl_PREREQ_READ):
2676         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2677         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2678         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2679         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2680         * m4/write.m4 (gl_PREREQ_WRITE):
2681         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2682         Do not require AC_C_INLINE.
2683
2684         c-strtod, memcoll, readutmp: no 'static inline'
2685         * lib/c-strtod.c (c_locale):
2686         * lib/memcoll.c (strcoll_loop):
2687         * lib/readutmp.c (desirable_utmp_entry):
2688         Now static, not static inline.
2689         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2690         * m4/memcoll.m4 (gl_MEMCOLL):
2691         * m4/readutmp.m4 (gl_READUTMP):
2692         Do not require AC_C_INLINE.
2693
2694         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2695         * lib/arctwo.c (to_uchar):
2696         * lib/md4.c (set_uint32):
2697         * lib/md5.c (set_uint32):
2698         * lib/sha1.c (set_uint32):
2699         * lib/sha256.c (set_uint32):
2700         * lib/sha512.c (set_uint64):
2701         Now static, not static inline.  This is a bit simpler, and doesn't
2702         affect performance with GCC and default optimization.
2703         * m4/arctwo.m4 (gl_ARCTWO):
2704         * m4/md4.m4 (gl_MD4):
2705         * m4/md5.m4 (gl_MD5):
2706         * m4/sha1.m4 (gl_SHA1):
2707         * m4/sha256.m4 (gl_SHA256):
2708         * m4/sha512.m4 (gl_SHA512):
2709         Do not require AC_C_INLINE.
2710
2711         cond, lock, thread: better 'inline'
2712         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2713         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2714         New macros.  Use them instead of static inline, for header functions.
2715         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2716         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2717         * lib/glthread/lock.c (gl_waitqueue_init)
2718         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2719         * lib/glthread/thread.c (get_current_thread_handle):
2720         Change 'static inline' to 'inline'.
2721         * lib/glthread/cond.h, lib/glthread/thread.h:
2722         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2723         * m4/cond.m4 (gl_COND):
2724         * m4/lock.m4 (gl_PREREQ_LOCK):
2725         * m4/thread.m4 (gl_THREAD):
2726         Do not require AC_C_INLINE.
2727         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2728
2729         chdir-long, cycle-check, savewd: better 'inline'
2730         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2731         (find_non_slash):
2732         * lib/cycle-check.c (is_zero_or_power_of_two):
2733         * lib/savewd.c (savewd_delegating):
2734         Change 'static inline' to 'inline'.
2735         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2736         Replace all remaining uses of 'static inline' with it.
2737         * lib/savewd.h:
2738         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2739         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2740         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2741         * m4/savewd.m4 (gl_SAVEWD):
2742         Do not require AC_C_INLINE.
2743         * modules/savewd (Depends-on): Add extern-inline.
2744
2745         base32, base64: no need for 'inline'
2746         * lib/base32.c (to_uchar, get_8, decode_8):
2747         * lib/base64.c (to_uchar, get_4, decode_4):
2748         Change 'static inline' to 'inline'.
2749         * m4/base32.m4 (gl_PREREQ_BASE32):
2750         * m4/base64.m4 (gl_PREREQ_BASE64):
2751         Do not require AC_C_INLINE.
2752
2753         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2754         * lib/gl_array_oset.c (gl_array_nx_add_at):
2755         (gl_array_remove_at):
2756         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2757         (add_to_bucket, remove_from_bucket):
2758         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2759         Change 'static inline' to 'static', as it's simpler to omit
2760         'inline' unless there's a significant performance advantage.
2761
2762         list, oset, xlist, xoset, xsublist: simplify via extern inline
2763         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2764         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2765         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2766         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2767         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2768         New macro.  Replace all uses of 'static inline' with it.
2769         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2770         instead of as macros FOO that are defined to static inline
2771         functions FOO_inline.
2772         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2773         * lib/gl_xsublist.c:
2774         Reimplement from scratch, by defining the corresponding *_INLINE
2775         macro and including the corresponding .h file.  This is simpler.
2776         * modules/list, modules/oset, modules/xlist, modules/xoset:
2777         (Files): Remove m4/gl_list.m4.
2778         (configure.ac): Remove gl_LIST.
2779         * m4/gl_list.m4: Remove.
2780         * modules/list, modules/oset, modules/xlist, modules/xoset:
2781         * modules/xsublist:
2782         (Depends-on): Depend on extern-inline, not inline.
2783
2784         xalloc: better 'inline'
2785         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2786         New macro.  Replace all uses of 'static inline' with it.
2787         (static_inline): Remove.
2788         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2789         Let 'extern inline' do the work automatically, instead of doing
2790         it by hand.
2791         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2792         Remove.  All uses removed.
2793         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2794
2795         gethrxtime: better 'inline'
2796         * lib/xtime.c: New file.
2797         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2798         * lib/xtime.h (XTIME_INCLUDE):
2799         New macros.  Replace all uses of 'static inline' with them.
2800         * lib/gethrxtime.c (gethrxtime): Define only if
2801         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2802         this source file is now always compiled, because of the extern inline.
2803         * lib/gethrxtime.h, lib/xtime.h:
2804         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2805         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2806         if gethrtime works, as they're not needed in that case.
2807         (gl_XTIME): Do not require AC_C_INLINE.
2808         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2809         compiled now.  Move the check into gl_GETHRXTIME.
2810         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2811         (Depends-on): Add extern-inline.
2812         (configure.ac): gethrxtime is always compiled now.
2813         (lib_SOURCES): Add gethrxtime.c.
2814
2815         wctype-h: better 'inline'
2816         * lib/wctype-h.c: New file.
2817         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2818         New macro.  Replace all uses of 'static inline' with it.
2819         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2820         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2821         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2822         (Depends-on): Add extern-inline.
2823
2824         unistd: better 'inline'
2825         * lib/unistd.c: New file.
2826         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2827         New macro.  Replace all uses of 'static inline' with it.
2828         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2829         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2830         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2831         (Depends-on): Add extern-inline.
2832
2833         sys_socket: better 'inline'
2834         * lib/sys_socket.c: New file.
2835         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2836         New macro.  Replace all uses of 'static inline' with it.
2837         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2838         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2839         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2840         (Depends-on): Add extern-inline.
2841
2842         stdio: better 'inline'
2843         * lib/stdio.c: New file.
2844         * lib/stdio.in.h (_GL_STDIO_INLINE):
2845         New macro.  Replace all uses of 'static inline' with it.
2846         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2847         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2848         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2849         (Depends-on): Add extern-inline.
2850
2851         sigaction: better 'inline'
2852         * lib/sig-handler.c: New file.
2853         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2854         New macro.  Replace all uses of 'static inline' with it.
2855         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2856         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2857         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2858         (Depends-on): Add extern-inline.
2859
2860         selinux-h: better 'inline'
2861         * lib/se-context.c, lib/se-selinux.c: New files.
2862         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2863         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2864         New macro.  Replace all uses of 'static inline' with it.
2865         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2866         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2867         New macro.  Replace all uses of 'static inline' with it.
2868         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2869         * modules/selinux-h (Files, lib_SOURCES):
2870         Add lib/se-context.c, lib/se-selinux.c.
2871         (Depends-on): Add extern-inline.
2872         (configure.ac): Do not require AC_C_INLINE.
2873
2874         pthread: better 'inline'
2875         * lib/pthread.c: New file.
2876         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2877         New macro.  Replace all uses of 'static inline' with it.
2878         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2879         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2880         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2881         * modules/pthread (Files): Add lib/pthread.c.
2882         (Depends-on): Add extern-inline.
2883
2884         math: better 'inline'
2885         * lib/math.c: New file.
2886         * lib/math.in.h (_GL_MATH_INLINE):
2887         New macro.  Replace all uses of 'static inline' with it.
2888         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2889         * m4/math_h.m4 (gl_MATH_H):
2890         Do not require AC_C_INLINE.
2891         * modules/math (Files, lib_SOURCES):
2892         Add lib/math.c.
2893         (Depends-on): Add extern-inline.
2894
2895         count-one-bits: better 'inline'
2896         * lib/count-one-bits.c: New file.
2897         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2898         New macro.  Replace all uses of 'static inline' with it.
2899         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2900         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2901         Do not require AC_C_INLINE.
2902         * modules/count-one-bits (Files, lib_SOURCES):
2903         Add lib/count-one-bits.c.
2904         (Depends-on): Add extern-inline.
2905
2906         count-leading-zeros: better 'inline'
2907         * lib/count-leading-zeros.c: New file.
2908         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2909         New macro.  Replace all uses of 'static inline' with it.
2910         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2911         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2912         Do not require AC_C_INLINE.
2913         * modules/count-leading-zeros (Files, lib_SOURCES):
2914         Add lib/count-leading-zeros.c.
2915         (Depends-on): Add extern-inline.
2916
2917         bitrotate: better 'inline'
2918         * lib/bitrotate.c: New file.
2919         * lib/bitrotate.h (BITROTATE_INLINE):
2920         New macros.
2921         Replace all uses of 'static inline' with them.
2922         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2923         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2924         (Depends-on): Add extern-inline.
2925         (configure.ac): Do not require AC_C_INLINE.
2926
2927 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2928
2929         maint.mk: avoid gratuitous failure
2930         Reported by Stefano Lattarini in
2931         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2932         * top/maint.mk (public-submodule-commit): Quote more safely.
2933
2934 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2935
2936         canonicalize, canonicalize-lgpl: support MS-Windows file names
2937         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2938         for test cases, which it'd be nice to add at some point.
2939         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2940         * lib/canonicalize.c (canonicalize_filename_mode):
2941         * lib/canonicalize-lgpl.c (__realpath):
2942         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2943         slash is at the beginning of the file name.  Use ISSLASH, instead
2944         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2945         the first character with '/'.  Test for
2946         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2947         with a drive letter.
2948         * lib/canonicalize.c (SLASHES): New macro.
2949         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2950
2951 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2952
2953         fts: introduce FTS_VERBATIM
2954         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2955         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2956         * lib/fts.c (fts_open): Honor it.
2957
2958 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2959
2960         getlogin-tests: allow errno == ENXIO
2961         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2962         with errno == ENXIO (No controlling tty).
2963         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2964         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2965         with errno == ENOENT.  This was reported to happen in various
2966         situations on GNU/Linux.
2967
2968 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2969
2970         getlogin-tests: allow errno == ENOENT
2971         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2972         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2973         when running a test in an Emacs shell buffer.
2974
2975 2012-11-08  Jim Meyering  <jim@meyering.net>
2976
2977         tests/nap.h: avoid warning about unused variable
2978         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2979
2980         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2981         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2982         white space before each of the special-cased file names, to avoid
2983         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2984         in http://bugs.gnu.org/12830.
2985
2986 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2987
2988         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2989         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2990         fails with errno == EBADF when fd is opened with O_PATH.
2991         Reported by Jim Meyering in
2992         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2993         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2994         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2995
2996 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2997
2998         test-utimens: speed up by taking shorter naps
2999         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3000         New functions.
3001         (nap): Use them, to do a better job of guessing the delay.
3002         On Fedora 17 with ext4 atop md atop hard disks, this made
3003         test-utimens run 10x faster, because the test napped for
3004         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3005         <http://bugs.gnu.org/12820#11>.
3006
3007 2012-11-07  Jim Meyering  <jim@meyering.net>
3008
3009         mountlist.c: fix a compilation failure
3010         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3011         I introduced while transforming commit v0.0-7683-g613bcb6
3012
3013 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3014
3015         errno: port to LynxOS 178 2.2.2
3016         Problem reported by Joel Brobecker in
3017         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3018         * doc/posix-headers/errno.texi (errno.h): Document this.
3019         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3020         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3021         Supply a string for EILSEQ.
3022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3023
3024 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3025
3026         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3027         Linux kernel 2.6.39 introduced O_PATH (see
3028         <http://lwn.net/Articles/433854/>) and this is a better fallback
3029         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3030         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3031         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3032         * lib/fcntl.in.h (O_ACCMODE):
3033         * tests/test-fcntl-h.c (main):
3034         Do not reject O_ACCMODE merely because it has more than the
3035         minimal number of bits, as POSIX allows extensions here.
3036
3037 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3038
3039         mountlist: do not classify a bind-mounted dir entry as "dummy"
3040         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3041         the "none"-testing clause.
3042         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3043         exception for bind-mounted directories.
3044
3045 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3046
3047         quote: provide a means to escape strings with nul characters
3048         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3049         (quote, quote_n): Rename formal arguments for consistency with
3050         quotearg.
3051
3052 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3053
3054         test-raise: don't assume 199 is an invalid signal
3055         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3056
3057         sh-quote-tests: port to Solaris 9
3058         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3059         Problem reported by Dagobert Michelsen in
3060         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3061
3062 2012-10-28  Jim Meyering  <jim@meyering.net>
3063
3064         maint.mk: rename a new configurable variable
3065         * top/maint.mk (_gl_translatable_string_re): Rename from
3066         translation-markers: _gl_ prefix to insulate from user Makefile code,
3067         and the _re suffix to inform that it's a regular expression.
3068
3069 2012-10-26  Eric Blake  <eblake@redhat.com>
3070
3071         maint.mk: let packages tweak sc_po_check pattern
3072         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3073         finding files with other translation markers.
3074
3075 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3076
3077         euidaccess: speed up 'configure' on GNU hosts
3078         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3079         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3080         it's needed only in this case.  Use AC_CHECK_DECLS, not
3081         AC_CHECK_DECLS_ONCE.
3082         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3083         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3084
3085         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3086
3087 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3088
3089         fchmodat, fchownat, fstatat: port to non-inlining compilers
3090         Problem reported for FreeBSD 9 by Jim Meyering in
3091         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3092         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3093         New files, which define FCHMODAT_INLINE etc.
3094         * lib/fchmodat.c (FCHMODAT_INLINE):
3095         * lib/fchownat.c (FCHOWNAT_INLINE):
3096         * lib/fstatat.c (FSTATAT_INLINE):
3097         Remove, as chmodat.c etc. now do this.
3098         * modules/fchmodat (Files): Add lib/chmodat.c.
3099         * modules/fchownat (Files): Add lib/chownat.c.
3100         * modules/fstatat (Files): Add lib/statat.c.
3101
3102 2012-10-15  Jim Meyering  <jim@meyering.net>
3103
3104         fchmodat.c, fchownat.c: compile-impeding typos
3105         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3106         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3107         Introduced in commit v0.0-7636-gd202279.
3108
3109 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3110
3111         fcntl-h: support GNU flags like O_IGNORE_CTTY
3112         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3113         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3114         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3115         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3116         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3117         Define to 0 if not already defined.
3118         * tests/test-fcntl-h.c: Test these new flags.
3119
3120 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3121
3122         faccessat, etc.: support AT_FDCWD-only use
3123         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3124         this function only if its first argument is AT_FDCWD.
3125         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3126         values other than AT_FDCWD, so it doesn't want all the openat
3127         machinery with fchdir etc.
3128         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3129         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3130         * modules/unlinkat (Files):
3131         Remove lib/openat-priv.h, as at-internal supplies this file.
3132         Removing this file here allows us to support programs like Emacs
3133         that avoid at-internal.
3134
3135         faccessat: speed up 'configure' on mainstream hosts
3136         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3137         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3138         since it's only on unusual platforms that we need to check for
3139         'access', and it's better not to slow 'configure' down on all
3140         platforms.
3141
3142         faccessat: port to Solaris 10
3143         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3144         Needed on Solaris 10, which doesn't have AT_EACCESS,
3145         so we need the Gnulib fcntl.h, which defines it.
3146
3147 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3148         canonicalize: fix C89 compilation
3149         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3150         declarations so C89 is supported.  Also remove the comment
3151         referencing memorty allocation as the suggested feature could
3152         not be implemented as suggested.
3153         Reported by Michael Goffioul.
3154
3155 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3156
3157         group-member: omit unnecessary dependencies
3158         This is for Emacs, which has its own allocator and where we
3159         don't want to use xalloc.
3160         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3161         since we no longer use xmalloc.  Do not include stdbool.h, since
3162         the changes below happen to remove the only use of bool.
3163         (GROUPBUF_SIZE): New constant.
3164         (struct group_info): Remove n_groups member.  Add groupbuf member.
3165         This lets us get the groups without using malloc, usually.
3166         (free_group_info, get_group_info): Adjust to this.
3167         (get_group_info): Return the number of groups found, or -1 on error.
3168         Use plain malloc not xmalloc, and treat its failure as if there
3169         are no groups, as the user already loses in case of error.
3170         (group_member): Simplify, based on changes to get_group_info.
3171         * modules/group-member (Depends-on): Remove dependencies on
3172         xalloc and stdbool.  Add dependency on xalloc-oversized.
3173
3174 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3175
3176         gethrxtime: port to C++
3177         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3178
3179 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3180
3181         ptsname: fix macro-name typo
3182         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3183
3184 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3185
3186         inttostr: Relax license.
3187         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3188
3189 2012-10-03  Eric Blake  <eblake@redhat.com>
3190
3191         ptsname_r: support ptys returned by FreeBSD posix_openpt
3192         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3193         lives in /dev/pts/.
3194
3195 2012-10-02  Eric Blake  <eblake@redhat.com>
3196
3197         pselect: reject invalid file descriptors
3198         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3199         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3200         * modules/pselect (Depends-on): Add dup2.
3201         * doc/posix-functions/pselect.texi (pselect): Document this.
3202
3203         select: reject invalid file descriptors
3204         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3205         * lib/select.c (rpl_select) [!win32]: Work around it.
3206         * modules/select (Depends-on): Add dup2.
3207         * doc/posix-functions/select.texi (select): Document this.
3208
3209         select: enhance test
3210         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3211         New functions.
3212         (test_function): Enhance test.
3213         (do_select_bad_fd): Avoid any stale errno values.
3214
3215         ptsname: reject invalid file descriptors
3216         http://www.austingroupbugs.net/view.php?id=503
3217         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3219         * modules/stdlib (Makefile.am): Replace witness.
3220         * lib/stdlib.in.h (ptsname): Allow for replacement.
3221         * modules/ptsname (configure.ac): Trigger replacement.
3222         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3223
3224 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3225
3226         hash-pjw-bare: new module
3227         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3228         * lib/hash-pjw-bare.h: Likewise.
3229         * modules/hash-pjw-bare: New file.
3230         * MODULES.html.sh (Misc): Add it.
3231
3232 2012-10-02  Eric Blake  <eblake@redhat.com>
3233
3234         manywarnings: cater to more gcc infelicities
3235         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3236         -Wuninitialized without -O.
3237
3238 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3239
3240         select, poll tests: Make setsockopt invocation effective.
3241         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3242         the bind() call.
3243         * tests/test-select.h (open_server_socket): Likewise.
3244
3245 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3246
3247         sockets, sys_stat: restore AC_C_INLINE
3248         This undoes the 2012-09-22 patch.
3249         * m4/sockets.m4 (gl_SOCKETS):
3250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3251         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3252         and does not support plain 'inline'.  Reported by Bruno Haible in
3253         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3254
3255 2012-09-30  Bruno Haible  <bruno@clisp.org>
3256
3257         localeconv tests: Avoid test failure on OpenIndiana.
3258         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3259         skip the 'grouping' and 'mon_grouping' tests.
3260         Reported by Jim Meyering.
3261
3262 2012-09-30  Bruno Haible  <bruno@clisp.org>
3263
3264         havelib: Follow libtool developments.
3265         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3266         Suggested by Simon Josefsson.
3267
3268 2012-09-29  Jim Meyering  <meyering@redhat.com>
3269
3270         fstatat.c: fix a compile-impeding typo
3271         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3272         Introduced in commit v0.0-7636-gd202279.
3273         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3274
3275 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3276
3277         extern-inline: provide a -Wundef safe config.h
3278         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3279         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3280         to produce a -Wundef warning free config.h.
3281
3282 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3283
3284         hash-pjw: relax license to LGPLv2+
3285         * modules/hash-pjw (License): Relax, with consent of author.
3286
3287 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3288
3289         maint.mk: fix strict vs. lazy variable issues with RELEASE
3290         * top/maint.mk (_equal): New function.
3291         (member_check): Strip the result to avoid spurious spaces.
3292         (url_dir_list): Do not use ifeq, which is strict, as it will
3293         require RELEASE_TYPE to be defined.
3294         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3295         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3296         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3297         (announcement_Cc_beta,announcement_mail_headers_beta)
3298         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3299         (release): Do not depend on $(release-type), as it forces its
3300         evaluation.  Bounce to it.
3301
3302 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3303
3304         maint.mk: formatting changes
3305         * top/maint.mk: Indent bodies of if's.
3306
3307 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3308
3309         maint.mk: factor the validation of RELEASE_TYPE
3310         With help from Jim Meyering.
3311         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3312         * top/maint.mk (_empty, _sp): Move their definition earlier.
3313         (member-check, release-type): New.
3314         Use the latter instead of $(RELEASE_TYPE).
3315         Remove now useless local checks.
3316
3317 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3318
3319         maint.mk: provide "make upload" to ease uploading
3320         See
3321         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3322         Do not depend simply on the current $(VERSION), as there may have been
3323         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3324         as "make release-commit" already does.
3325
3326         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3327         "make TYPE".
3328
3329         * top/maint.mk (upload_command, upload, release): New.
3330         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3331         (VERSION): first word of $(RELEASE) is always right.
3332         (emit_upload_commands): Adjust.
3333         * top/README-release: Update.
3334
3335 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3336
3337         maint.mk: silent rules
3338         With help from Stefano Lattarini.
3339         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3340         (announcement): Use $(AM_V_at).
3341
3342 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3343
3344         localename: port gl_locale_name_thread_unsafe to FreeBSD
3345         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3346         and use the simpler FreeBSD implementation on Mac OS X as well.
3347         Original idea suggested by Ed Maste in
3348         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3349
3350 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3351
3352         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3353         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3354         * lib/mbuiter.c, lib/xsize.c: New files.
3355         * lib/binary-io.h (BINARY_IO_INLINE):
3356         * lib/eealloc.h (EEALLOC_INLINE):
3357         * lib/mbfile.h (MBFILE_INLINE):
3358         * lib/mbiter.h (MBITER_INLINE):
3359         * lib/mbuiter.h (MBUITER_INLINE):
3360         * lib/xsize.h (XSIZE_INLINE):
3361         New macros.
3362         Replace all uses of 'static inline' with them.
3363         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3364         * m4/eealloc.m4 (gl_EEALLOC):
3365         * m4/mbfile.m4 (gl_MBFILE):
3366         * m4/mbiter.m4 (gl_MBITER):
3367         * m4/xsize.m4 (gl_XSIZE):
3368         Do not require AC_C_INLINE.
3369         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3370         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3371         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3372         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3373         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3374         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3375         * modules/binary-io, modules/eealloc, modules/mbfile:
3376         * modules/mbiter, modules/mbuiter:
3377         (Depends-on): Add extern-inline.
3378
3379         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3380         * lib/pipe-filter-aux.c: New file.
3381         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3382         Replace all uses of 'static inline' with it.
3383         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3384         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3385         (filter_retcode): No real need for inline here.
3386         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3387         (Files): Add lib/pipe-filter-aux.c.
3388         (Depends-on): Add extern-inline.
3389         (configure.ac): Do not require AC_C_INLINE.
3390         (lib_SOURCES): Add pipe-filter-aux.c.
3391
3392         fdutimensat: omit unnecessary AC_C_INLINE
3393         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3394
3395         fchmodat, fchownat, fstatat: use extern-inline
3396         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3397         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3398         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3399         New macros.
3400         * lib/openat.h:
3401         Replace all uses of 'static inline' with them.
3402         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3403         * modules/fchmodat, modules/fchownat, modules/fstatat:
3404         * modules/openat-h:
3405         (Depends-on):
3406         Add extern-inline.
3407         (configure.ac): Remove AC_C_INLINE.
3408
3409         acl, mbchar, priv-set: use extern-inline
3410         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3411         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3412         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3413         New macros.
3414         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3415         Replace all uses of 'static inline' with it.
3416         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3417         * m4/acl.m4 (gl_FUNC_ACL):
3418         * m4/mbchar.m4 (gl_MBCHAR):
3419         * m4/priv-set.m4 (gl_PRIV_SET):
3420         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3421         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3422         Add extern-inline.
3423
3424         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3425         * m4/sockets.m4 (gl_SOCKETS):
3426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3427         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3428         environments where it's already guaranteed to work, so we needn't
3429         check for it at 'configure'-time.
3430
3431         tls-tests: omit unnecessary 'inline'
3432         * tests/test-tls.c (perhaps_yield): No longer inline.
3433         Simplicity and portability trump efficiency in test cases.
3434
3435         utimens-tests: avoid unnecessary 'inline'
3436         * modules/fdutimensat-tests (configure.ac):
3437         * modules/futimens-tests (configure.ac):
3438         * modules/utimens-tests (configure.ac):
3439         * modules/utimensat-tests (configure.ac):
3440         Remove AC_C_INLINE.
3441         * tests/test-utimens-common.h (ctime_compare):
3442         No longer inline.  Simplicity and portability trump efficiency here.
3443
3444         misc: don't limit commentary to inline functions
3445         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3446         * lib/xalloc-oversized.h, lib/xsize.h:
3447         Contrast macros to functions in general, not just to inline functions,
3448         when the commentary does not apply only to inline functions.
3449
3450 2012-09-20  Jim Meyering  <meyering@redhat.com>
3451
3452         non-recursive-gnulib-prefix-hack: new module
3453         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3454         the file that originated in Bison.
3455         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3456         largely copied from a snippet that resided in bison's configure.ac.
3457         * modules/non-recursive-gnulib-prefix-hack: New file.
3458         * MODULES.html.sh (Support for maintaining and releasing projects):
3459         Add it.
3460
3461 2012-09-18  Jim Meyering  <meyering@redhat.com>
3462
3463         maint.mk: generalize _gl_tight_scope for non-recursive make
3464         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3465         that *.h would describe additional .h files in the directory
3466         specified by $(_gl_TS_dir).  I.e., add this...
3467         (_gl_TS_other_headers): New variable.
3468
3469         maint.mk: exempt trailing blanks found in "binary" files
3470         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3471         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3472         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3473
3474 2012-09-17  Jim Meyering  <meyering@redhat.com>
3475
3476         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3477         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3478         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3479         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3480
3481 2012-09-17  Jim Meyering  <meyering@redhat.com>
3482
3483         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3484         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3485         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3486         It is not in the same category as "exit (0)" or "exit (1)", and
3487         besides, I know of no symbolic name for that 77.  Reported by
3488         Richard W.M. Jones in
3489         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3490
3491 2012-09-17  Jim Meyering  <meyering@redhat.com>
3492
3493         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3494         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3495         all uses of #define, not just those that start in column 1.
3496         Richard W.M. Jones reported a false positive in
3497         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3498
3499 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3500
3501         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3502         * lib/localcharset.c (locale_charset) [DARWIN7]:
3503         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3504         as these two values are incompatible.  Problem reported by Max Horn.
3505         For more discussion, please see
3506         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3507
3508         doc: document sticky-EOF issue
3509         * doc/posix-functions/fgetc.texi (fgetc):
3510         * doc/posix-functions/fgets.texi (fgets):
3511         * doc/posix-functions/fread.texi (fread):
3512         * doc/posix-functions/fscanf.texi (fscanf):
3513         * doc/posix-functions/getc.texi (getc):
3514         * doc/posix-functions/getchar.texi (getchar):
3515         * doc/posix-functions/scanf.texi (scanf):
3516         Mention that glibc and default Solaris do not conform to
3517         C99 and POSIX-2001 or later, with respect to how getchar
3518         etc. behave when feof reports nonzero.
3519
3520 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3521
3522         poll: fix poll(0, NULL, msec)
3523         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3524         but nfd is 0.  In that case poll should behave like select.
3525
3526 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3527             Paolo Bonzini <bonzini@gnu.org>
3528
3529         poll: fix for systems that can't recv() on a non-socket
3530         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3531         is readable.  In this case POLLHUP will not be supported.
3532         * doc/posix-functions/poll.texi: Document this.
3533
3534 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3535
3536         poll/select: document portability problems not fixed by Gnulib.
3537         * doc/posix-functions/poll.texi: poll does not work well on
3538         pipes under Windows.  It has the same limitations as select on
3539         BeOS.
3540         * doc/posix-functions/select.texi: select does not work well
3541         on pipes under Windows.
3542
3543 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3544
3545         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3546         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3547         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3548         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3549
3550 2012-09-06  Eric Blake  <eblake@redhat.com>
3551
3552         net_if: give more details about the bug being fixed
3553         * doc/posix-headers/net_if.texi: Add clarification.
3554
3555 2012-09-05  Eric Blake  <eblake@redhat.com>
3556
3557         net_if: new module
3558         * modules/net_if: New module, borrowing ideas from netinet_in.
3559         * m4/net_if_h.m4: New file.
3560         * lib/net_if.in.h: Likewise.
3561         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3562         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3563         * tests/test-net_if.c: Make function checks conditional.
3564         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3565
3566 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3567
3568         readutmp: fix non-portable UT_PID use
3569         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3570         Use `UT_PID (u) > 0' as absolute condition.
3571
3572 2012-09-04  Jim Meyering  <meyering@redhat.com>
3573
3574         fts: reduce two or more trailing spaces to just one, usually
3575         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3576         or more slashes, trim all but the final one.  But if a name consists
3577         solely of two slashes, don't modify it.  If it consists solely of
3578         three or more slashes, strip all but one.
3579
3580         This is part of the solution to a minor problem with rm:
3581         it would print a bogus ELOOP diagnostic when failing to remove
3582         the slash-decorated name of a symlink-to-directory:
3583
3584             $ mkdir d && ln -s d s && env rm -r s/
3585             rm: cannot remove 's': Too many levels of symbolic links
3586
3587         With the change below and a trivial don't-trim-trailing-slashes
3588         adjustment to remove.c, it does this:
3589
3590             $ env rm -r s/
3591             rm: cannot remove 's/': Not a directory
3592
3593         Improved by: Eric Blake
3594
3595         fts: when there is no risk of overlap, use memcpy, not memmove
3596         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3597
3598 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3599
3600         stdbool: be more compatible with mixed C/C++ compiles
3601         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3602         Define to bool, true, false, respectively, as GCC's builtin
3603         stdbool.h does.  Problem reported by Michael Goffioul in
3604         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3605
3606 2012-08-28  Jim Meyering  <meyering@redhat.com>
3607
3608         revert last change: it was not needed
3609         * tests/test-vc-list-files-git.sh: There's already a test for
3610         a working git, just below.
3611
3612 2012-08-28  Jim Meyering  <meyering@redhat.com>
3613
3614         tests: test-vc-list-files-git.sh: skip if git is not available
3615         * tests/test-vc-list-files-git.sh: Skip this test when git is
3616         not available.
3617
3618 2012-08-26  Bruno Haible  <bruno@clisp.org>
3619
3620         gnulib-tool: Remove no-op option --no-changelog.
3621         * gnulib-tool (func_usage): Don't mention --no-changelog.
3622         (do_changelog): Remove variable.
3623         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3624
3625 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3626
3627         doc: remove fdl-1.2.texi
3628         It is no longer used or maintained, and its use of @acronym
3629         is problematic.  See the thread containing
3630         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3631         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3632         * doc/old-licenses/fdl-1.2.texi: Remove.
3633
3634         execinfo: port to FreeBSD
3635         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3636         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3637         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3638         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3639
3640 2012-08-23  Jim Meyering  <meyering@redhat.com>
3641
3642         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3643         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3644         to placate gcc's -Wold-style-declaration.
3645
3646 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3647
3648         doc: do not use @acronym
3649         * doc/inet_ntoa.texi (inet_ntoa):
3650         * doc/parse-datetime.texi (Seconds since the Epoch)
3651         (Specifying time zone rules):
3652         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3653         Don't use @acronym.  Problem reported by John Darlington in
3654         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3655
3656 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3657
3658         stdnoreturn: port to newer GCCs
3659         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3660         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3661         Problem reported by Jim Meyering in
3662         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3663         Also, rename the 'test' function to a void a clash with the
3664         already-supplied 'main' function; this fixes a bug that incorrectly
3665         rejected GCC 4.7.1's <stdnoreturn.h>.
3666         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3667         Document GCC problem.
3668
3669 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3670
3671         pipe-filter: fix comment typo
3672         * lib/pipe-filter.h: Mention correct function.
3673
3674 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3675
3676         execinfo: new module
3677         This is for Emacs.  Currently, it provides a no-effect stub
3678         on all platforms where it does not already work.
3679         It already works on glibc-based systems, and on Solaris 11.
3680         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3681         New files.
3682         * doc/glibc-headers/execinfo.texi (execinfo.h):
3683         * MODULES.html.sh (Misc): Document it.
3684
3685 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3686
3687         extern-inline: support old GCC 'inline'
3688         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3689         if available.  This applies to GCC versions 2.7 through 4.2, or
3690         when newer GCC is using -fgnu89-inline.  The goal is to address
3691         some of the performance issues mentioned by Bruno Haible in
3692         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3693
3694 2012-08-20  Eric Blake  <eblake@redhat.com>
3695
3696         maint.mk: avoid redundant file name in message
3697         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3698         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3699         (sc_makefile_path_separator_check): Remove bogus $(ME).
3700
3701 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3702
3703         timer-time: fix link order when static linking on glibc
3704         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3705         _after_ -lrt so that it's significant.
3706
3707 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3708
3709         timespec: omit unnecessary AC_C_INLINE
3710         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3711
3712         stat-time: omit unnecessary AC_C_INLINE
3713         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3714         Do not require AC_C_INLINE.
3715
3716         ignore-value: omit unnecessary AC_C_INLINE
3717         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3718
3719         sys_select: avoid 'static inline'
3720         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3721
3722         mktime: avoid 'static inline'
3723         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3724         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3725
3726 2012-08-19  Bruno Haible  <bruno@clisp.org>
3727
3728         gnulib-tool: Improve coding style.
3729         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3730         func_emit_lib_Makefile_am.
3731         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3732
3733 2012-08-19  Bruno Haible  <bruno@clisp.org>
3734
3735         gnulib-tool: Fix indentation.
3736         * gnulib-tool (func_import): Fix indentation.
3737
3738 2012-08-19  Bruno Haible  <bruno@clisp.org>
3739
3740         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3741         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3742         on the list of removed files.
3743
3744 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3745
3746         test-parse-datetime: avoid glibc leap-second glitch
3747         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3748         with the 2012 rules.  Problem reported by Bruce Dubbs in
3749         <http://bugs.gnu.org/12206>.
3750
3751 2012-08-14  Bruno Haible  <bruno@clisp.org>
3752
3753         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3754         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3755         from argument.
3756         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3757
3758 2012-08-14  Eric Blake  <eblake@redhat.com>
3759
3760         ldexp: relax license
3761         * modules/ldexp (License): Trivial relax, since the module only
3762         provides a permissively licensed m4 file.
3763
3764 2012-08-13  Bruno Haible  <bruno@clisp.org>
3765
3766         gnulib-tool: Fix persistence of --witness-c-macro option.
3767         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3768         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3769
3770 2012-08-11  Eric Blake  <eblake@redhat.com>
3771
3772         count-leading-zeros: use a lookup table on non-gcc compilers
3773         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3774         alternate implementation, suggested by Jim Meyering.
3775
3776 2012-08-10  Eric Blake  <eblake@redhat.com>
3777
3778         count-leading-zeros: new module
3779         * modules/count-leading-zeros: New module.
3780         * m4/count-leading-zeros.m4: New file.
3781         * lib/count-leading-zeros.h: Likewise.
3782         * modules/count-leading-zeros-tests: New test.
3783         * tests/test-count-leading-zeros.c: New file.
3784         * MODULES.html.sh (Integer arithmetic functions): Document it.
3785
3786 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3787             Jim Meyering  <meyering@redhat.com>
3788
3789         maintainer-makefile: Fix syntax error with dash.
3790         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3791         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3792
3793 2012-08-05  Jim Meyering  <meyering@redhat.com>
3794
3795         extern-inline: also ignore -Wmissing-declarations
3796         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3797         required with gcc-4.8.0-to-be.
3798
3799         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3800         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3801         for /error ?([^,]*)/.  This avoids false-positives for strings like
3802         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3803
3804 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3805
3806         gnumakefile: better interaction with Automake-NG
3807         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3808         Automake-NG always contain a definition of VPATH, even in non-VPATH
3809         builds (its value being simply '.' in that case).  So, in the
3810         'clean-GNUmakefile' rule, to determine whether running under a
3811         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3812         '$(VPATH)' expands to the empty string.
3813
3814 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3815
3816         base64: Use extern C scope in header file, for C++.
3817         * lib/base64.h: Add C++ namespace protection.
3818
3819 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3820
3821         stat-time, timespec, u64: support naive out-of-dir builds
3822         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3823         Use '#include "foo.h"', not '#include <foo.h>', when including
3824         one's own interface.  This works better when configuring with
3825         out-of-directory builds, since packages need not add an
3826         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3827
3828 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3829
3830         utimens: use extern-inline
3831         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3832         * lib/utimens.h: Add copyright notice, since this is now large enough
3833         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3834         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3835         * modules/utimens (Depends-on): Add extern-inline.
3836
3837         u64: use extern-inline
3838         * lib/u64.c: New file.
3839         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3840         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3841         * modules/u64 (Files): Add lib/u64.c.
3842         (Depends-on): Add extern-inline.
3843         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3844         does that now.
3845         (lib_SOURCES): Add u64.c.
3846
3847         timespec: use extern-inline
3848         * lib/timespec.c: New file.
3849         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3850         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3851         * modules/timespec (Files): Add lib/timespec.c.
3852         (Depends-on): Add extern-inline.
3853         (lib_SOURCES): Add timespec.c.
3854
3855         stat-time: use extern-inline
3856         * lib/stat-time.c: New file.
3857         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3858         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3859         * modules/stat-time (Files): Add lib/stat-time.c.
3860         (Depends-on): Add extern-inline.
3861         (lib_SOURCES): Add stat-time.c.
3862
3863         extern-inline: new module
3864         * modules/extern-inline, m4/extern-inline.m4: New files.
3865         This is for better support of 'extern inline' a la ISO C99,
3866         with a portable alternative on compilers that do not support
3867         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3868         of the Emacs executable, when compiled with debugging disabled,
3869         which is a typical way that Emacs is built while developing.
3870
3871 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3872
3873         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3874         * build-aux/do-release-commit-and-tag: Move variable definitions
3875         together.
3876         ($branch): Instead of defaulting to "master", default to the current
3877         branch (as gnu-web-doc-update does).
3878         (help): Display the current values of the option arguments.
3879         * top/maint.mk (release-commit): New.
3880         * top/README-release: Simplify the corresponding step.
3881
3882 2012-07-30  Eric Blake  <eblake@redhat.com>
3883
3884         passfd: fix comment on recvfd
3885         * lib/passfd.c (recvfd): Fix comment.
3886         Reported by Jann Horn <jannhorn@googlemail.com>.
3887
3888 2012-07-30  Jim Meyering  <meyering@redhat.com>
3889
3890         maint.mk: avoid a sub-shell
3891         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3892
3893 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3894
3895         maint.mk: use silent-rules support from Automake
3896         * top/maint.mk (news-check, vc-diff-check, announcement)
3897         (no-submodule-changes, alpha beta stable, release-prep)
3898         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3899
3900 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3901
3902         maint.mk: provide a web-manual-update target
3903         * top/maint.mk: here.
3904         * top/README-release: Use it to simplify the web manual update step.
3905
3906 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3907
3908         README-release: shorten the circuit to post a news
3909         * top/README-release: Point directly to the news submission form.
3910
3911 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3912
3913         gnu-web-doc-update: fix --help
3914         * build-aux/gnu-web-doc-update: The information "top level" was written
3915         twice.
3916
3917 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3918
3919         maint.mk: absolute VPATH issue
3920         * top/maint.mk (release-prep): Help Git find .git/.
3921         From Jim Meyering.
3922
3923 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3924
3925         gitlog-to-changelog: fix previous change
3926         * build-aux/gitlog-to-changelog: Fix condition.
3927         Add missing ";".
3928
3929 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3930
3931         gitlog-to-changelog: don't expect .git to be in $srcdir
3932         Reported by Bruno Haible.
3933         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3934         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3935         Use it.
3936
3937 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3938
3939         maint.mk: absolute VPATH build fix
3940         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3941         $(srcdir) is not a parent of $(builddir).
3942
3943 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3944
3945         clean-temp: Fix memory leak.
3946         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3947         'files' members of tmpdir.
3948
3949 2012-07-27  Jim Meyering  <meyering@redhat.com>
3950
3951         maint.mk: new rule: refresh-gnulib-patches
3952         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3953         Use this rule to refresh them.
3954         * top/maint.mk (refresh-gnulib-patches): New rule.
3955
3956 2012-07-24  Bruno Haible  <bruno@clisp.org>
3957
3958         gnulib-tool: Fix handling of inctests variable.
3959         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3960         Reported by Nick Bowler <nbowler@elliptictech.com>.
3961
3962 2012-07-22  Bruno Haible  <bruno@clisp.org>
3963
3964         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3965         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3966         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3967         Remove exemption for getpass.h.
3968         Suggested by Eric Blake.
3969
3970 2012-07-20  Eric Blake  <eblake@redhat.com>
3971
3972         verify: document conflict with -Wnested-externs
3973         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3974
3975         maint.mk: forbid exit(-1)
3976         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3977
3978 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3979
3980         fsusage: port back to Solaris
3981         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3982         error (fsd not declared) on Solaris 10.  Reported privately by
3983         Andrew Borodin.
3984
3985 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3986
3987         gnu-web-doc-update: fix error messages
3988         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3989
3990         gnu-web-doc-update: check the requirements.
3991         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3992         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3993         * build-aux/bootstrap (find_tool): Comment change.
3994
3995 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3996
3997         maint.mk: minor simplication.
3998         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3999         for default values.
4000
4001 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4002
4003         gitlog-to-changelog: VPATH build issues
4004         If builddir is not a subdirectory of srcdir, running git from it will
4005         fail.
4006         * build-aux/gitlog-to-changelog (--srcdir): New option.
4007
4008 2012-07-15  Bruno Haible  <bruno@clisp.org>
4009
4010         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4011         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4012         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4013         Remove exemption for fpending.h.
4014         Suggested by Eric Blake.
4015
4016 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4017
4018         pthread_sigmask: fix bug on FreeBSD 9
4019         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4020         Include string.h.
4021         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4022         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4023         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4024         but pthread_sigmask (1729, NULL, NULL) returns zero.
4025         See <http://bugs.gnu.org/11884>.
4026         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4027         by inspecting whether the main call changed the old mask.
4028
4029 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4030
4031         README-release: make it more legible
4032         * top/README-release: Improve typography slightly.
4033
4034 2012-07-15  Jim Meyering  <meyering@redhat.com>
4035
4036         maint: require that each sc_... command start with "@"
4037         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4038         "make sc_maint" helps us avoid this nit.
4039
4040 2012-07-15  Jim Meyering  <meyering@redhat.com>
4041
4042         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4043         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4044
4045 2012-07-13  Eric Blake  <eblake@redhat.com>
4046
4047         maint.mk: new syntax check for HAVE_DECL checks
4048         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4049         * cfg.mk
4050         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4051         Exempt some false positives.
4052         Based on a report by Karel Zak.
4053
4054         argp: make HAVE_DECL usage consistent
4055         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4056         macros, not whether they are defined.
4057         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4058         convention with other declaration checks.
4059         Reported by Karel Zak, with suggestions from Paul Eggert.
4060
4061         stat-time: relax license to LGPLv2+
4062         * modules/stat-time (License): Relax, with consent of all authors.
4063
4064         strndup: fix m4 usage error
4065         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4066         defined, to either 0 or 1.
4067         Reported by Karel Zak.
4068
4069 2012-07-11  Jim Meyering  <meyering@redhat.com>
4070
4071         maint: enable the sc_avoid_if_before_free syntax-check rule
4072         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4073         (if_before_free_offenders_): Define.
4074         (if_before_free_basename_re_): Define.
4075         Exempt current files with useless if-before-free.
4076
4077 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4078
4079         gettext: do not assume '#define ... defined ...' behavior
4080         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4081         Do not use '#define FOO ... defined BAR ...', as the C standard says
4082         it's not portable to expect that this works after macro expansion.
4083         Problem reported for gzip by Steven M. Schweda in
4084         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4085
4086 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4087
4088         getloadavg: clean out old Emacs and Autoconf cruft
4089         See Glenn Morris in <http://bugs.gnu.org/11905>.
4090         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4091         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4092         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4093         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4094
4095 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4096
4097         bootstrap: let warn be like tests/init.sh's warn_
4098         Reported by Jim Meyering.
4099         * build-aux/bootstrap (warn): Remove, replaced by...
4100         (warnf_, warn_): these.
4101         Adjust callers.
4102         Shorten messages that no longer fit in 80 columns.
4103
4104 2012-07-09  Bruno Haible  <bruno@clisp.org>
4105
4106         getopt: Simplify after Emacs changed.
4107         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4108         (gl_GETOPT_IFELSE): Remove macro.
4109
4110 2012-07-09  Jim Meyering  <meyering@redhat.com>
4111
4112         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4113         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4114
4115         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4116         Bugs in both of those conspired to make the
4117         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4118         _sc_search_regexp's handling of non-empty $in_files would filter
4119         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4120         choice of in_files value meant there would be no match in most
4121         projects, due to the presence of two or more Makefile.in files.
4122         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4123         Fix a bug in how a non-empty $$in_files was processed:
4124         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4125         in spite of the name, it's a regexp, not a list of file names.
4126
4127 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         getloadavg, getopt: fix commentary re configure.in
4130         Autoconf is deprecating the name 'configure.in', so change it to
4131         to the new name 'configure.ac' in a couple of places.
4132         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4133         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4134         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4135         Emacs has renamed it to configure.ac, and it no longer refers
4136         to these macros anyway.
4137
4138         timespec: mark functions with const attributes
4139         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4140         Mark with _GL_ATTRIBUTE_CONST.
4141
4142 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4143
4144         canonicalize[-lgpl]: handle "guessing" values when cross-building
4145         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4146         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4147         matches "*yes" instead of just "yes".  Regression introduced in commit
4148         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4149
4150 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4151             Bruno Haible  <bruno@clisp.org>
4152
4153         canonicalize: make the right guess when cross-compiling to GNU
4154         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4155         determine whether cross-compiling to glibc systems, so as to
4156         include GNU/Hurd.
4157
4158 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4159
4160         timespec-sub: avoid duplicate include
4161         * lib/timespec-sub.c: Do not include <config.h> twice.
4162         Reported by Juanma Barranquero.
4163
4164 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4165
4166         bootstrap: use a more consistent error reporting scheme
4167         * build-aux/bootstrap (warn, die): New.
4168         Use them.
4169
4170 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4171
4172         sys_time: allow too-wide tv_sec
4173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4174         timeval even if tv_sec is wider than time_t.  This allows
4175         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4176         as without this patch gnulib replaces struct timeval
4177         and OpenBSD futimes therefore has a type mismatch.
4178         * doc/posix-headers/sys_time.texi: Mention this.
4179
4180         pthread: check for both pthread_create and pthread_join
4181         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4182         alter the check so that it tests for both pthread_create and
4183         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4184         Suggested by Bruno Haible and Richard Yao in
4185         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4186
4187         parse-datetime: doc tuneup
4188         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4189         spacing issues.
4190
4191 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4192
4193         do-release-commit-and-tag: fix the previous commit
4194         * build-aux/do-release-commit-and-tag: Actually the test was right,
4195         but the comment and the error message were misleading.
4196         Fix comment, and improve error message.
4197         Perform check first, so that NEWS is not modified uselessly.
4198
4199         do-release-commit-and-tag: fix typo
4200         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4201         _not_ start with a stub.
4202
4203 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4204
4205         pthread: check for pthread_create, not pthread_join
4206         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4207         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4208         pthread_join in libc.  I hope this removes the need for all the
4209         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4210         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4211
4212 2012-07-04  Jim Meyering  <meyering@redhat.com>
4213
4214         parse-datetime: fix failure to diagnose invalid input
4215         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4216         rather than diagnosing the invalid input.  Now it reports this:
4217         date: invalid date '\260'
4218         * lib/parse-datetime.y (to_uchar): Define.
4219         (yylex): Don't sign-extend "other" bytes.
4220         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4221         Thanks to Bruno Haible for the patch to this file.
4222         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4223         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4224
4225 2012-07-03  Jim Meyering  <meyering@redhat.com>
4226
4227         bootstrap: do not require now-removed build-aux/missing
4228         Now that build-aux/missing is, er, missing, bootstrap would
4229         silently fail.
4230         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4231         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4232         no longer part of gnulib.
4233         Diagnose the failure.
4234
4235 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4236
4237         alloca: add support for HP NonStop TNS/E native
4238         * lib/alloca.in.h (alloca): Support the new host.
4239         From a suggestion by Joachim Schmitz in
4240         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4241
4242 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4243
4244         fsusage: remove code not needed on non GNU/Linux systems.
4245
4246         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4247         Don't include headers no longer needed in this case.
4248         * lib/fsusage.c [STAT_STATVFS &&
4249         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4250         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4251
4252 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4253
4254         fsusage: include files needed for glibc 2.6 fallback
4255         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4256         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4257         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4258         Problem reported by Ludovic Courtès in
4259         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4260
4261         fsusage: avoid needless check on GNU/Linux
4262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4263         on GNU/Linux systems, since it can't possibly work.
4264
4265 2012-07-01  Bruno Haible  <bruno@clisp.org>
4266
4267         log: Fix an autoconf >= 2.64 warning.
4268         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4269         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4270
4271 2012-06-28  Bruno Haible  <bruno@clisp.org>
4272
4273         log10f: Fix possible configuration problem.
4274         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4275         $LOGF_LIBM.
4276         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4277
4278 2012-06-28  Bruno Haible  <bruno@clisp.org>
4279
4280         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4281         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4282         not gl_cv_func_unlink_works.
4283         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4284
4285 2012-06-27  Eric Blake  <eblake@redhat.com>
4286
4287         config: drop scripts that automake says are not independent
4288         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4289         * build-aux/elisp-comp: Delete.
4290         * build-aux/missing: Likewise.
4291         * build-aux/ylwrap: Likewise.
4292         * modules/elisp-comp: Likewise.
4293         * MODULES.html.sh: Drop mention of elisp-comp.
4294         * NEWS: Mention this.
4295
4296 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4297
4298         root-uid: new module
4299         This is for portability to Tandem's NonStop Kernel.
4300         * lib/root-uid.h, modules/root-uid: New files.
4301         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4302         * lib/write-any-file.c, tests/test-sethostname2.c:
4303         Include "root-uid.h".
4304         * lib/euidaccess.c (euidaccess):
4305         * lib/pt_chown.c (main):
4306         * lib/unlinkdir.c (cannot_unlink_dir):
4307         * lib/write-any-file.c (can_write_any_file):
4308         * m4/mknod.m4 (gl_FUNC_MKNOD):
4309         * tests/test-sethostname2.c (geteuid, main):
4310         Don't assume ROOT_UID == 0.
4311         * modules/euidaccess (Depends-on):
4312         * modules/pt_chown (Depends-on):
4313         * modules/sethostname-tests (Depends-on):
4314         * modules/unlinkdir (Depends-on):
4315         * modules/write-any-file (Depends-on):
4316         Add root-uid.
4317
4318         regex: use locale-independent comparison for codeset name
4319         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4320         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4321         for codeset name.
4322         * lib/regex_internal.h: Do not include <strings.h>, since we
4323         no longer use strcasecmp.
4324         * modules/regex (Depends-on): Remove strcase.
4325
4326 2012-06-23  Bruno Haible  <bruno@clisp.org>
4327
4328         getopt-posix: No longer guarantee that option processing is resettable.
4329         * doc/posix-functions/getopt.texi: Drop description of problem with
4330         internal state. Fix info about mingw and msvc9.
4331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4332         option processing by getopt(). Run three test programs instead of one.
4333         Simplify cross-compilation guess.
4334         * NEWS: Mention the change.
4335         Reported by Rich Felker <dalias@aerifal.cx>.
4336
4337 2012-06-26  Bruno Haible  <bruno@clisp.org>
4338
4339         argp, regex: Ensure strcasecmp gets declared.
4340         * lib/argp-help.c: Include <strings.h>.
4341         * lib/regex_internal.h: Likewise.
4342         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4343
4344 2012-06-24  Bruno Haible  <bruno@clisp.org>
4345
4346         ptsname_r: Make it consistent with ptsname on AIX.
4347         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4348         implementation as for OSF/1.
4349         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4350         a pty master.
4351
4352         ptsname_r: Make it consistent with ptsname on OSF/1.
4353         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4354         OSF/1.
4355
4356 2012-06-24  Bruno Haible  <bruno@clisp.org>
4357
4358         ttyname_r: Fix result on OSF/1, Solaris.
4359         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4360
4361 2012-06-24  Bruno Haible  <bruno@clisp.org>
4362
4363         ptsname_r: Add support for Solaris.
4364         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4365         Solaris.
4366
4367         ptsname_r: Fix test failure on native Windows.
4368         * modules/ptsname_r (Depends-on): Add isatty.
4369
4370         ptsname_r: Fix test failures on IRIX, Solaris.
4371         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4372         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4373         accordingly.
4374         * lib/ptsname_r.c: Include <fcntl.h>.
4375         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4376         set errno if fd is invalid.
4377         * tests/test-isatty.c (main): Update comments.
4378
4379 2012-06-24  Bruno Haible  <bruno@clisp.org>
4380
4381         ptsname test: Extend test.
4382         * tests/test-ptsname.c: Include <errno.h>.
4383         (main): Test behaviour with invalid file descriptor.
4384
4385 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4386
4387         time: fix obsolete comment
4388         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4389         reference to HAVE_STRUCT_TIMESPEC in comment.
4390
4391 2012-06-23  Bruno Haible  <bruno@clisp.org>
4392
4393         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4394         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4395         does not handle abbreviated long options with equivalent
4396         disambiguations, set gl_replace_getopt to yes.
4397         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4398
4399 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4400
4401         time_r: fix typo that always overrode localtime_r decl
4402         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4403         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4404         not in a standard include.
4405
4406 2012-06-22  Bruno Haible  <bruno@clisp.org>
4407
4408         Write "Mac OS X" instead of "MacOS X".
4409         * README: Write "Mac OS X" instead of "MacOS X".
4410         * build-aux/bootstrap: Likewise.
4411         * build-aux/install-reloc: Likewise.
4412         * lib/acl-internal.h: Likewise.
4413         * lib/acl_entries.c: Likewise.
4414         * lib/argp-ba.c: Likewise.
4415         * lib/argp-pv.c: Likewise.
4416         * lib/config.charset: Likewise.
4417         * lib/copy-acl.c: Likewise.
4418         * lib/csharpexec.c: Likewise.
4419         * lib/euidaccess.c: Likewise.
4420         * lib/fbufmode.c: Likewise.
4421         * lib/fflush.c: Likewise.
4422         * lib/file-has-acl.c: Likewise.
4423         * lib/filemode.h: Likewise.
4424         * lib/fpurge.c: Likewise.
4425         * lib/freadable.c: Likewise.
4426         * lib/freadahead.c: Likewise.
4427         * lib/freading.c: Likewise.
4428         * lib/freadptr.c: Likewise.
4429         * lib/freadseek.c: Likewise.
4430         * lib/fseeko.c: Likewise.
4431         * lib/fseterr.c: Likewise.
4432         * lib/fsusage.c: Likewise.
4433         * lib/fwritable.c: Likewise.
4434         * lib/fwriting.c: Likewise.
4435         * lib/get-rusage-as.c: Likewise.
4436         * lib/get-rusage-data.c: Likewise.
4437         * lib/getdomainname.c: Likewise.
4438         * lib/idpriv-drop.c: Likewise.
4439         * lib/idpriv-droptemp.c: Likewise.
4440         * lib/localcharset.c: Likewise.
4441         * lib/locale.in.h: Likewise.
4442         * lib/localename.c: Likewise.
4443         * lib/mbsrtowcs-state.c: Likewise.
4444         * lib/nproc.c: Likewise.
4445         * lib/passfd.c: Likewise.
4446         * lib/posix_openpt.c: Likewise.
4447         * lib/printf-parse.c: Likewise.
4448         * lib/progreloc.c: Likewise.
4449         * lib/safe-read.h: Likewise.
4450         * lib/safe-write.h: Likewise.
4451         * lib/sched.in.h: Likewise.
4452         * lib/set-mode-acl.c: Likewise.
4453         * lib/signal.in.h: Likewise.
4454         * lib/stdint.in.h: Likewise.
4455         * lib/stdio-impl.h: Likewise.
4456         * lib/stdlib.in.h: Likewise.
4457         * lib/strtod.c: Likewise.
4458         * lib/sys_select.in.h: Likewise.
4459         * lib/tcgetsid.c: Likewise.
4460         * lib/unistd.in.h: Likewise.
4461         * lib/unlockpt.c: Likewise.
4462         * lib/vasnprintf.c: Likewise.
4463         * lib/vma-iter.c: Likewise.
4464         * lib/wcsrtombs-state.c: Likewise.
4465         * m4/acl.m4: Likewise.
4466         * m4/acosl.m4: Likewise.
4467         * m4/asinl.m4: Likewise.
4468         * m4/atanl.m4: Likewise.
4469         * m4/c-stack.m4: Likewise.
4470         * m4/cosl.m4: Likewise.
4471         * m4/expl.m4: Likewise.
4472         * m4/extensions.m4: Likewise.
4473         * m4/fdatasync.m4: Likewise.
4474         * m4/fmal.m4: Likewise.
4475         * m4/frexp.m4: Likewise.
4476         * m4/frexpf.m4: Likewise.
4477         * m4/frexpl.m4: Likewise.
4478         * m4/fsusage.m4: Likewise.
4479         * m4/getdomainname.m4: Likewise.
4480         * m4/getloadavg.m4: Likewise.
4481         * m4/getopt.m4: Likewise.
4482         * m4/gettext.m4: Likewise.
4483         * m4/gnulib-common.m4: Likewise.
4484         * m4/intdiv0.m4: Likewise.
4485         * m4/intlmacosx.m4: Likewise.
4486         * m4/largefile.m4: Likewise.
4487         * m4/ldexpl.m4: Likewise.
4488         * m4/link-follow.m4: Likewise.
4489         * m4/locale-ar.m4: Likewise.
4490         * m4/locale-fr.m4: Likewise.
4491         * m4/locale-ja.m4: Likewise.
4492         * m4/locale-tr.m4: Likewise.
4493         * m4/locale-zh.m4: Likewise.
4494         * m4/locale_h.m4: Likewise.
4495         * m4/lock.m4: Likewise.
4496         * m4/logl.m4: Likewise.
4497         * m4/mathfunc.m4: Likewise.
4498         * m4/minus-zero.m4: Likewise.
4499         * m4/mktime.m4: Likewise.
4500         * m4/mmap-anon.m4: Likewise.
4501         * m4/multiarch.m4: Likewise.
4502         * m4/nanosleep.m4: Likewise.
4503         * m4/nocrash.m4: Likewise.
4504         * m4/poll.m4: Likewise.
4505         * m4/printf-frexpl.m4: Likewise.
4506         * m4/printf.m4: Likewise.
4507         * m4/signbit.m4: Likewise.
4508         * m4/sinl.m4: Likewise.
4509         * m4/sqrtl.m4: Likewise.
4510         * m4/strerror_r.m4: Likewise.
4511         * m4/tanl.m4: Likewise.
4512         * m4/threadlib.m4: Likewise.
4513         * m4/ttyname_r.m4: Likewise.
4514         * m4/unlink.m4: Likewise.
4515         * m4/visibility.m4: Likewise.
4516         * m4/wcwidth.m4: Likewise.
4517         * tests/minus-zero.h: Likewise.
4518         * tests/test-alloca-opt.c: Likewise.
4519         * tests/test-copy-acl.sh: Likewise.
4520         * tests/test-copy-file.sh: Likewise.
4521         * tests/test-fdatasync.c: Likewise.
4522         * tests/test-file-has-acl.sh: Likewise.
4523         * tests/test-flock.c: Likewise.
4524         * tests/test-fsync.c: Likewise.
4525         * tests/test-localename.c: Likewise.
4526         * tests/test-malloca.c: Likewise.
4527         * tests/test-nonblocking-pipe.h: Likewise.
4528         * tests/test-nonblocking-socket.h: Likewise.
4529         * tests/test-openpty.c: Likewise.
4530         * tests/test-posix_openpt.c: Likewise.
4531         * tests/test-ptsname.c: Likewise.
4532         * tests/test-ptsname_r.c: Likewise.
4533         * tests/test-sameacls.c: Likewise.
4534         * tests/test-select.h: Likewise.
4535         * tests/test-set-mode-acl.sh: Likewise.
4536         * tests/test-snprintf-posix.h: Likewise.
4537         * tests/test-sprintf-posix.h: Likewise.
4538         * tests/test-strtod.c: Likewise.
4539         * tests/test-time.c: Likewise.
4540         * tests/test-vasnprintf-posix.c: Likewise.
4541         * tests/test-vasprintf-posix.c: Likewise.
4542         * doc/acl-resources.txt: Likewise.
4543         * doc/**/*.texi: Likewise.
4544         Reported by Max Horn <max@quendi.de>.
4545
4546 2012-06-22  Bruno Haible  <bruno@clisp.org>
4547
4548         grantpt: Relax requirement regarding invalid file descriptors.
4549         * lib/grantpt.c: Don't include <fcntl.h>.
4550         (grantpt): Don't verify the validity of the file descriptor.
4551         * modules/grantpt (Depends-on): Remove fcntl-h.
4552         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4553         file descriptors.
4554         * doc/posix-functions/grantpt.texi: Document more platforms on which
4555         grantpt succeeds for invalid file descriptors.
4556         Reported by Rich Felker <dalias@aerifal.cx>.
4557
4558 2012-06-22  Bruno Haible  <bruno@clisp.org>
4559
4560         fbufmode test: Don't test unportable behaviour.
4561         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4562         (main): Invoke it three times.
4563         Reported by Szabolcs Nagy <nsz@port70.net>
4564         and Rich Felker <dalias@aerifal.cx>.
4565
4566 2012-06-21  Bruno Haible  <bruno@clisp.org>
4567
4568         gnulib-tool: Refactor inctests variable.
4569         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4570         (func_modules_transitive_closure,
4571         func_modules_transitive_closure_separately,
4572         func_import, func_create_testdir): Update.
4573
4574         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4575         * gnulib-tool: Accept option --without-tests.
4576         (func_usage): Document --without-tests option. Rearrange.
4577         (inctests): Normalize according to the mode.
4578         * NEWS: Mention the change.
4579         Suggested by Simon Josefsson.
4580
4581 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4582
4583         parse-duration test: Avoid spurious output.
4584         * tests/test-parse-duration.sh: Reindent with leading tabs.
4585
4586 2012-06-21  Jim Meyering  <meyering@redhat.com>
4587
4588         maint: disable the strncpy prohibition
4589         * cfg.mk: Do not prohibit strncpy here.
4590
4591 2012-06-21  Bruno Haible  <bruno@clisp.org>
4592
4593         nonblocking: Avoid compilation error on mingw64.
4594         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4595         fscanf.
4596         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4597         * modules/vfscanf (configure.ac): Likewise.
4598         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4599         definition only if stdio.h has prepared it.
4600         Reported by Daniel P. Berrange <berrange@redhat.com>.
4601
4602 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4603
4604         gnulib-tool: Use readlink if it is available.
4605         * gnulib-tool (func_readlink): Choose function more appropriately.
4606
4607 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4608
4609         posixtm-tests: port to buggy compiler
4610         Problem reported by Simon Josefsson in
4611         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4612         * modules/posixtm-tests (Depends-on): Add stdint.
4613         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4614         Now of type int_least64_t, not int64_t, both because that's
4615         what INT64_C returns and because int_least64_t works even
4616         on 72-bit hosts.
4617         (T): Use INT64_C on constants outside the traditional int range,
4618         to work around compiler bug noted by Simon.
4619
4620         mktime: fix integer overflow in 'configure'-time test
4621         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4622         after integer overflow.  Problem reported by Rich Felker in
4623         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4624         Also, don't look for further instances of a bug if we've already
4625         found one instance; this helps 'configure' run faster.
4626
4627 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4628
4629         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4630         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4631         GetVersionEx correctly.
4632         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4633
4634 2012-06-20  Bruno Haible  <bruno@clisp.org>
4635
4636         fdopen: Allow implementations that don't reject invalid fd arguments.
4637         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4638         succeeds.
4639         Reported by Rich Felker <dalias@aerifal.cx>.
4640
4641 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4642
4643         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4644         bring in LIBINTL.
4645
4646 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4647
4648         init.sh: do not rely on autoupated PWD
4649         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4650         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4651         Although Nelson's bug was not necessarily fixed by this patch,
4652         it seems wise to make the change for safety.
4653         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4654         automagically after 'cd'; this is not reliable on older shells.
4655         (setup_): Fail if we cannot cd to temporary directory.
4656
4657 2012-06-19  Bruno Haible  <bruno@clisp.org>
4658
4659         stat, fstat: Avoid warnings on mingw64.
4660         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4661         redefining.
4662         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4663         Reported by Daniel P. Berrange <berrange@redhat.com>.
4664
4665 2012-06-19  Bruno Haible  <bruno@clisp.org>
4666
4667         stdioext: Add support for musl libc.
4668
4669         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4670         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4671
4672         * m4/fseterr.m4: New file.
4673         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4674         function exists.
4675         * modules/fseterr (Files): Add m4/fseterr.m4.
4676         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4677         __fseterr does not exist.
4678         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4679
4680         * lib/freadable.h: Update comment.
4681
4682         * lib/fwritable.h: Update comment.
4683
4684         * lib/freading.h: Update comment.
4685
4686         * lib/fwriting.h: Update comment.
4687
4688         * m4/freadahead.m4: New file.
4689         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4690         that function exists.
4691         * modules/freadahead (Files): Add m4/freadahead.m4.
4692         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4693         __freadahead does not exist.
4694         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4695
4696         * m4/freadptr.m4: New file.
4697         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4698         function exists.
4699         * modules/freadptr (Files): Add m4/freadptr.m4.
4700         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4701         __freadptr does not exist.
4702         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4703
4704         * m4/freadseek.m4: New file.
4705         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4706         exists.
4707         * modules/freadseek (Files): Add m4/freadseek.m4.
4708         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4709
4710         * lib/fpurge.c (fpurge): Update comment.
4711
4712         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4713
4714 2012-06-19  Bruno Haible  <bruno@clisp.org>
4715
4716         *printf-posix: Put more info into config.log.
4717         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4718         exit code into config.log.
4719
4720 2012-06-19  Bruno Haible  <bruno@clisp.org>
4721
4722         getopt-gnu: Fix exit code overflow in autoconf test.
4723         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4724         to keep them below < 128.
4725
4726 2012-06-17  Jim Meyering  <meyering@redhat.com>
4727
4728         maint.mk: fix typo in code to derive GPG key at release time
4729         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4730
4731 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4732
4733         regex: avoid warning when pointers are not long
4734         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4735         and uintptr_t, not long, for portability to hosts where pointers and
4736         long have different sizes.  Issue noted by Daniel P. Berrange in
4737         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4738         and fix suggested by Bruno Haible in
4739         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4740
4741 2012-06-17  Bruno Haible  <bruno@clisp.org>
4742
4743         dummy: Relicense into the public domain.
4744         * modules/dummy (License): Set to "public domain".
4745         Suggested by Reuben Thomas.
4746
4747 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4748
4749         announce-gen: VPATH issues
4750         * build-aux/announce-gen (--srcdir): New option, used to trim the
4751         $srcdir part of the path from $builddir to NEWS.
4752         * top/maint.mk (announcement): Adjust.
4753
4754 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4755
4756         gnu-web-doc-update: VPATH builds
4757         * build-aux/gnu-web-doc-update (--builddir): New option.
4758         Revamp the handling of options.
4759         Prefer $(...) to `...`.
4760         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4761         the template, and it is GNU mktemp specific.
4762         Prefer set -e to long series of &&.
4763         Restore the initial git branch, not "master".
4764         Properly initialize submodules (don't rely only on bootstrap).
4765         Do not reconfigure blindly, use config.status.
4766         * top/README-release: Update instructions for gnu-web-doc-update.
4767
4768 2012-06-11  Jim Meyering  <meyering@redhat.com>
4769
4770         maint.mk: revert most of the previous change re "all these"
4771         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4772         For rationale, see the discussion at
4773         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4774
4775 2012-06-10  Karl Berry  <karl@gnu.org>
4776
4777         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4778
4779         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4780
4781 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4782
4783         parse-duration: Relicense under LGPLv2+.
4784         * modules/parse-duration (License): Change to LGPLv2+.
4785
4786 2012-06-10  Jim Meyering  <meyering@redhat.com>
4787
4788         maint.mk: prohibit common grammar error: "all these"
4789         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4790         the list of prohibited word sequences.  It should be "all of these".
4791         * lib/tempname.c (__gen_tempname): Fix one of them.
4792
4793 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4794
4795         do-release-commit-and-tag: support VPATH builds
4796         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4797         (noteworthy): Defined earlier to factor its value.
4798         (noteworthy_stub): New.
4799         Use it to factor.
4800         (help_version): Split into...
4801         (help, version): these.
4802         Adjust the option processing part.
4803         Support "--option=value" in addition to "--option value".
4804         (builddir): New.
4805         (--builddir): New option.
4806         * top/README-release: Document this.
4807         Reword slightly so that the reader cannot understand that he
4808         has to do these steps before calling do-release-commit-and-tag.
4809
4810 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4811
4812         readme-release: also require announce-gen and maintainer-makefile
4813         * modules/readme-release (Depends-on): here.
4814         * modules/announce-gen, modules/do-release-commit-and-tag,
4815         modules/gnu-web-doc-update, modules/maintainer-makefile
4816         (Description): Point to readme-release.
4817
4818 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4819
4820         maint.mk: fix VPATH issues.
4821         * top/maint.mk (news-check): GNU Make understand $< very well.
4822         (release-prep): NEWS is in $(srcdir).
4823
4824 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4825
4826         readme-release: require the promoted modules.
4827         * modules/readme-release (Depends-on): Add
4828         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4829         in this text.
4830
4831 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4832             Bruno Haible  <bruno@clisp.org>
4833
4834         error, strerror-override: Support mingw64 from Fedora 17.
4835         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4836         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4837         EINPROGRESS.
4838         * lib/strerror-override.h (strerror_override): Test it.
4839         * lib/strerror-override.c (strerror_override): Likewise.
4840         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4841
4842 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4843             Bruno Haible  <bruno@clisp.org>
4844
4845         error, strerror-override: Support mingw64 from Fedora 17.
4846         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4847         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4848         * lib/strerror-override.h (strerror_override): Test it.
4849         * lib/strerror-override.c (strerror_override): Likewise.
4850
4851 2012-06-03  Bruno Haible  <bruno@clisp.org>
4852
4853         error, strerror-override: Support new errno values from POSIX:2008.
4854         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4855         ENOTRECOVERABLE.
4856         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4857         platforms.
4858         * lib/strerror-override.c (strerror_override): Conditionalize the
4859         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4860         * lib/strerror-override.h (strerror_override): Declare also if
4861         GNULIB_defined_EOWNERDEAD is defined.
4862         * tests/test-errno.c (e130, e131): New variables.
4863         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4864         ENOTRECOVERABLE.
4865         Reported by Paolo Bonzini.
4866
4867 2012-05-31  Jim Meyering  <meyering@redhat.com>
4868
4869         savewd: add missing dependency on sys_wait module
4870         * modules/savewd (Depends-on): Add sys_wait, needed at least
4871         for MSVC.  Report and suggested change by Michael Goffioul.
4872
4873 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4874
4875         system-quote-tests: port to CentOS 5
4876         Problem reported by Tom G. Christensen in
4877         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4878         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4879
4880 2012-05-29  Jim Meyering  <meyering@redhat.com>
4881
4882         maint: fix typos in comments and ChangeLog
4883         Culprits identified and fixed mostly automatically using these commands:
4884         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4885         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4886         using http://github.com/lyda/misspell-check
4887         * ChangeLog: Fix typos.
4888         * doc/solaris-versions: Likewise.
4889         * lib/regexec.c (re_search_stub): Likewise.
4890         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4891
4892 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4893
4894         manywarnings: remove duplicate -Wmultichar entry
4895         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4896         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4897         so keep the entry marked as documented.
4898
4899 2012-05-27  Karl Berry  <karl@gnu.org>
4900
4901         * config/srclist.txt (mktime.c): remove last libc sync,
4902         perhaps just temporarily.
4903
4904 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4905
4906         regex: don't assume uint64_t or uint32_t
4907         * lib/regcomp.c (init_word_char): Don't assume that the types
4908         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4909         them, and on some 32-bit compilers there is no uint64_t.
4910         Problem reported by Gianluigi Tiesi in
4911         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4912
4913 2012-05-25  Jim Meyering  <meyering@redhat.com>
4914
4915         maint.mk: add strncpy-prohibiting syntax-check rule
4916         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4917
4918 2012-05-24  Jim Meyering  <meyering@redhat.com>
4919
4920         maint.mk: compute $(gpg_key_ID) more portably
4921         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4922         That use of sed is not portable to some fringe systems.
4923         Reported by Paul Eggert in
4924         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4925
4926 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4927
4928         mktime: sync from glibc
4929         * config/srclist.txt: Uncomment mktime.c.
4930         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4931         First, indent with tabs, since glibc uses tabs and doesn't want to
4932         change and we'd rather be identical to glibc.  Also, two small
4933         coding changes:
4934         (isdst_differ): Use &&, not &, as && is the usual style.
4935         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4936         for clarity.
4937
4938 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4939
4940         announce-gen: du -h is more portable than du --human
4941         * build-aux/announce-gen (sizes): Invoke du with -h instead
4942         of --human.  Accept leading white space in its output.
4943
4944 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4945
4946         announce-gen: Improve diagnostics.
4947         * build-aux/announce-gen: When parsing command line options,
4948         prefer "announce-gen: option --release-type requires an argument"
4949         to "Option release-type requires an argument".
4950
4951 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4952
4953         maint.mk: gpg_key_ID: use sed more portably
4954         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4955         the closing brace.
4956         (refresh-po): Fuse two sed invocations into one.
4957
4958 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4959
4960         gitlog-to-changelog: support the log message format used in Bison.
4961         * build-aux/gitlog-to-changelog: Support --strip-tab and
4962         --strip-cherry-picked.
4963
4964 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4965
4966         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4967         the rest of the current time slice to another thread in the current
4968         process. So if the thread that feeds the file decscriptor we're
4969         polling is not in the current process, we get busy-waiting.
4970         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4971         Patch from Theodore Leblond.
4972         * lib/select.c: Split polling out of the loop that sets the output
4973         fd_sets.  Check for zero result and loop if the wait timeout is
4974         infinite.
4975
4976 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4977
4978         select: Fix build error on IRIX 6.5.
4979         * lib/select.c: Include stddef.h for NULL.
4980
4981 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4982
4983         gc: fix libgcrypt detection on older machines.
4984         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4985         copyright years because the file has been distributed every year
4986         since it was created.
4987
4988 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4989
4990         crypto: fix bug in large buffer handling
4991         Problem reported by Serge Belyshev for glibc in
4992         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4993         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4994         * lib/md4.c (md4_process_block):
4995         * lib/md5.c (md5_process_block):
4996         * lib/sha1.c (sha1_process_block):
4997         * lib/sha256.c (sha256_process_block):
4998         Don't assume the buffer length is less than 2**32.
4999         * lib/sha512.c (sha512_process_block): Likewise.
5000         Here, the bug is present only in the rare case where the host does
5001         not support uint64_t or where size_t is wider than 64 bits.
5002         Use u64size to work around the problems.
5003         * lib/u64.h (u64size): New macro.
5004
5005 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5006
5007         fsusage: fix block size returned on older Linux 2.6
5008
5009         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5010         which is available since Linux 2.6.
5011         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5012         when the member is available so it can be used as a fallback.
5013         * doc/posix-functions/statvfs.texi: Mention the hang issue
5014         on Linux < 2.6.36.
5015
5016 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5017
5018         bootstrap: suppress stderr chatter
5019         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5020         Omit unnecessary chatter to stderr.  The main program chatter
5021         was there only inadvertantly.
5022
5023         bootstrap: .gitignore files created by autopoint, libtool
5024         I ran into this problem when bootstrapping the latest diffutils.
5025         After './bootstrap', 'git status' reported lots of untracked files
5026         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5027         autopoint and do not need to be version-controlled.
5028         * build-aux/bootstrap: Put into .gitignore the files that
5029         autopoint and libtool create, by keeping track of files that exist
5030         after but not before these programs are run.
5031         (version_controlled_file): Move up.  2nd arg is now full file
5032         name, not base name; this is more convenient.  Put CVS at the end,
5033         as it's now somewhat deprecated.
5034
5035 2012-05-14  Jim Meyering  <meyering@redhat.com>
5036
5037         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5038         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5039         definition.  Reported by Bruno Haible.
5040
5041 2012-05-13  Bruno Haible  <bruno@clisp.org>
5042             Paul Eggert  <eggert@cs.ucla.edu>
5043
5044         binary-io: Define set_binary_mode function.
5045         * lib/binary-io.h (set_binary_mode): New function.
5046         (SET_BINARY): Define in terms of set_binary_mode.
5047         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5048         * tests/test-binary-io.c (main): Accept an argument, and test either
5049         set_binary_mode or SET_BINARY depending on the argument.
5050         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5051         argument. Clean up also t-bin-out0.tmp.
5052
5053 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5054
5055         bootstrap: take advantage of POSIX shell features
5056
5057         The 'bootstrap' script offered by Gnulib script already uses POSIX
5058         shell features (like $((...)) arithmetic expansions) that are not
5059         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5060         means that bootstrap must already be run using a proper POSIX shell,
5061         which will thus provide more features, like ${var#pattern} parameter
5062         expansion or inversion of a command exit status with '!'.  We can
5063         thus use these features to improve the clarity and the performances
5064         of the bootstrap script.
5065
5066         Suggested by Eric Blake.
5067
5068         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5069         of sed/expr plus command substitutions, to save some forks.  While
5070         we are at it, prefer the POSIX $(...) form of command substitution,
5071         rather than the legacy form `...` (since the former is visually
5072         clearer and interacts better with quoting), and prefer the idiom:
5073           "if ! CMD; then ACTION ..."
5074         over the idiom:
5075           "if CMD; then :; else ACTION ..."
5076         which was required by legacy Bourne shells not supporting '!'.
5077
5078 2012-05-12  Bruno Haible  <bruno@clisp.org>
5079
5080         system-quote: Add more comments.
5081         * lib/system-quote.h: Add more comments about wilcards and limitations.
5082         Suggested by Eli Zaretskii <eliz@gnu.org>.
5083
5084         sh-quote, system-quote: Add comments about wildcards.
5085         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5086         * lib/system-quote.h: Likewise.
5087         Reported by Eli Zaretskii <eliz@gnu.org>.
5088
5089 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5090
5091         fsusage: check for GNU/Linux statvfs problem dynamically
5092         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5093         Define STAT_STATFS2_BSIZE too, since in this case the code now
5094         checks dynamically whether statvfs is reliable, falling back on
5095         Linux-style statfs otherwise.
5096         (statvfs_works): New function, for dynamically testing statvfs.
5097         (get_fs_usage) [STAT_STATVFS]: Use it.
5098         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5099         statvfs on GNU/Linux hosts, since it's now done dynamically.
5100
5101 2012-05-10  Bruno Haible  <bruno@clisp.org>
5102
5103         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5104         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5105         '?' character.
5106         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5107         * tests/test-system-quote-main.c (check_all): Check also strings like
5108         "??????????".
5109         Reported by Eli Zaretskii <eliz@gnu.org>.
5110
5111 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5112
5113         _Noreturn: port config.h to gcc -Wundef
5114         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5115         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5116         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5117
5118 2012-05-10  Bruno Haible  <bruno@clisp.org>
5119
5120         system-quote: Refactor.
5121         * lib/system-quote.h (system_quote_copy): Fix comment.
5122         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5123         New functions, extracted from system_quote_copy.
5124         (system_quote_length, system_quote_copy): Use these functions.
5125         Reported by Paul Eggert.
5126
5127 2012-05-08  Bruno Haible  <bruno@clisp.org>
5128
5129         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5130         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5131
5132 2012-05-08  Bruno Haible  <bruno@clisp.org>
5133
5134         Tests for module 'system-quote'.
5135         * modules/system-quote-tests: New file.
5136         * tests/test-system-quote.sh: New file.
5137         * tests/test-system-quote-main.c: New file.
5138         * tests/test-system-quote-child.c: New file.
5139
5140         New module 'system-quote'.
5141         * lib/system-quote.h: New file.
5142         * lib/system-quote.c: New file.
5143         * modules/system-quote: New file.
5144
5145 2012-05-08  Bruno Haible  <bruno@clisp.org>
5146
5147         sh-quote: Make C++ safe and allow multiple inclusion.
5148         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5149         declarations in extern "C".
5150
5151 2012-05-08  Bruno Haible  <bruno@clisp.org>
5152
5153         sh-quote tests: Make tests stricter.
5154         * tests/test-sh-quote.c (check_one): Check the return value of
5155         shell_quote_copy.
5156         (main): Check a string with a CR character. Check a string that
5157         contains UCHAR_MAX.
5158
5159 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5160
5161         warnings.m4: provide a means to specify the program to compile.
5162         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5163         (gl_WARN_ADD): here.
5164         Use gl_AS_VAR_APPEND.
5165         Support an argument to specify the program to compile.
5166         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5167         AC_SUBST the WARN_CFLAGS when they are used.
5168         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5169         leave this to gl_WARN_ADD.
5170
5171 2012-05-08  Eric Blake  <eblake@redhat.com>
5172
5173         doc: recommendations on gettext version
5174         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5175         choice between versions.
5176         * DEPENDENCIES (gettext): Cover both approaches.
5177
5178 2012-05-08  Jim Meyering  <meyering@redhat.com>
5179
5180         init.sh: explain why EXEEXT support uses aliases rather than functions
5181         * tests/init.sh: Add a comment.
5182
5183         init.sh: don't let bash aliases interfere with tests
5184         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5185         is bash.  This avoids problems for those who alias standard commands to
5186         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5187         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5188
5189 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5190
5191         stdint: be more consistent with glibc, SunOS libc
5192         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5193         (gl_int_fast16_t, gl_uint_fast16_t)
5194         (gl_int_fast32_t, gl_uint_fast32_t)
5195         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5196         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5197         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5198         Be consistent with glibc by default, and with SunOS 5.10 and later
5199         if __sun is defined.  This lessens the likelihood of clashes if
5200         code compiled for older hosts is combined with code compiled for
5201         newer ones.  Problem reported by Niels Möller in
5202         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5203
5204 2012-05-07  Eric Blake  <eblake@redhat.com>
5205
5206         isatty: relax license to LGPLv2+
5207         * modules/isatty (License): Relax license.
5208
5209 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5210
5211         stat-size: comment fix
5212         * lib/stat-size.h: Remove obsolete comment about indenting.
5213
5214 2012-05-06  Bruno Haible  <bruno@clisp.org>
5215
5216         Tests for module 'sh-quote'.
5217         * modules/sh-quote-tests: New file.
5218         * tests/test-sh-quote.c: New file.
5219
5220 2012-05-06  Bruno Haible  <bruno@clisp.org>
5221
5222         sh-quote: Improve shell_quote_argv's signature.
5223         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5224         * lib/sh-quote.c (shell_quote_argv): Likewise.
5225
5226 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5227
5228         stdint: document issues with int_fast8_t etc.
5229         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5230         stdint.h substitutes may define these types differently.  See
5231         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5232
5233 2012-05-05  Bruno Haible  <bruno@clisp.org>
5234
5235         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5237         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5238         or 'guessing no (mishandles large arguments)'.
5239
5240 2012-05-05  Bruno Haible  <bruno@clisp.org>
5241
5242         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5243         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5244         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5245         set gl_cv_func_link_follows_symlink to "guessing no".
5246
5247 2012-05-05  Bruno Haible  <bruno@clisp.org>
5248
5249         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5250         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5251         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5252         "guessing no".
5253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5254
5255 2012-05-05  Bruno Haible  <bruno@clisp.org>
5256
5257         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5258         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5259         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5260         set gl_cv_struct_dirent_d_ino to "guessing yes".
5261
5262 2012-05-05  Bruno Haible  <bruno@clisp.org>
5263
5264         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5265         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5266         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5267         "guessing yes".
5268
5269 2012-05-05  Bruno Haible  <bruno@clisp.org>
5270
5271         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5272         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5273         compiling to a glibc system, set gl_cv_func_signbit and
5274         gl_cv_func_signbit_gcc to "guessing yes".
5275
5276 2012-05-05  Bruno Haible  <bruno@clisp.org>
5277
5278         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5279         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5280         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5281         to "guessing yes".
5282         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5283         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5284
5285 2012-05-05  Bruno Haible  <bruno@clisp.org>
5286
5287         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5288         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5289         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5290         gl_cv_func_realpath_works to "guessing yes".
5291
5292 2012-05-05  Bruno Haible  <bruno@clisp.org>
5293
5294         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5295         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5296         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5297
5298 2012-05-04  Bruno Haible  <bruno@clisp.org>
5299
5300         Tweak last commit.
5301         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5302         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5303
5304 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5305
5306         unistd_h: make it easier to avoid sys_types_h
5307         This is useful for Emacs, which has its own method of porting to
5308         Windows, and which therefore does not need the sys_types_h module.
5309         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5310         code moved here from gl_SYS_TYPES_H.
5311         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5312         using the code directly.
5313         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5314         gl_SYS_TYPES_H.
5315         * modules/sys_types (Files):
5316         * modules/unistd (Files): Add m4/off_t.m4.
5317
5318 2012-05-03  Bruno Haible  <bruno@clisp.org>
5319
5320         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5321         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5322         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5323         "guessing yes" or "guessing no".
5324         (gl_FUNC_LSTAT): Update.
5325         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5326         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5327         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5328
5329 2012-05-03  Bruno Haible  <bruno@clisp.org>
5330
5331         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5332         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5333         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5334         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5335         cross-compiling, choose the first alternative on glibc systems.
5336         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5337
5338 2012-05-03  Bruno Haible  <bruno@clisp.org>
5339
5340         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5341         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5342         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5343
5344 2012-05-03  Bruno Haible  <bruno@clisp.org>
5345
5346         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5347         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5348
5349 2012-05-03  Bruno Haible  <bruno@clisp.org>
5350
5351         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5352         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5353         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5354         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5355         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5356         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5357         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5358         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5359         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5360         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5361         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5362         gl_cv_func_chown_ctime_works to "guessing yes".
5363         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5364         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5365         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5366         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5367         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5369         compiling to glibc systems, set gl_cv_func_open_directory_works to
5370         "guessing yes".
5371         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5372         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5373         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5374         "guessing yes".
5375         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5376         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5377         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5378         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5379         "guessing yes".
5380         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5381         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5382         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5383         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5384         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5385         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5386         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5387         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5388         "guessing yes".
5389         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5390         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5391         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5392         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5393         "guessing yes".
5394         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5395         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5396         "guessing yes".
5397         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5398         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5399         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5400         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5401         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5402         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5403         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5404         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5405         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5406         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5407         "guessing yes".
5408         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5409         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5410         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5411         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5412         "guessing yes".
5413         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5414         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5415         "guessing yes".
5416         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5417         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5418         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5419         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5420         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5421         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5422         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5423         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5424         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5425         "guessing yes".
5426         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5427         compiling to glibc systems, set gl_cv_func_mknod_works to
5428         "guessing yes".
5429         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5430         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5431         "guessing yes".
5432         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5433         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5434         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5435         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5436         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5437         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5438         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5439         compiling to glibc systems, set gl_cv_func_svid_putenv to
5440         "guessing yes".
5441         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5442         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5443         "guessing yes".
5444         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5445         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5446         "guessing yes".
5447         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5448         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5449         to "guessing yes".
5450         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5451         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5452         to "guessing yes".
5453         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5454         compiling to glibc systems, set gl_cv_func_rmdir_works to
5455         "guessing yes".
5456         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5457         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5458         gl_cv_func_unlink_parent_fails to "guessing yes".
5459         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5460         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5461         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5462         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5463         gl_cv_func_rename_dest_works to "guessing yes".
5464         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5465         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5466         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5467         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5468         "guessing yes".
5469         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5470         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5471         "guessing yes".
5472         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5473         compiling to glibc systems, set gl_cv_func_setenv_works to
5474         "guessing yes".
5475         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5476         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5477         "guessing yes".
5478         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5479         compiling to glibc systems, set gl_cv_func_sleep_works to
5480         "guessing yes".
5481         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5482         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5483         "guessing yes".
5484         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5485         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5486         "guessing yes".
5487         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5488         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5489         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5490         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5491         "guessing yes".
5492         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5493         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5494         "guessing yes".
5495         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5496         compiling to glibc systems, set gl_cv_func_usleep_works to
5497         "guessing yes".
5498         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5499         compiling to glibc systems, set gl_cv_func_futimesat_works to
5500         "guessing yes".
5501
5502 2012-05-03  Bruno Haible  <bruno@clisp.org>
5503
5504         Say "guessing yes" or "guessing no" when cross-compiling.
5505         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5506         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5508         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5509         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5510         am_cv_func_working_getline to "guessing yes" or "guessing no".
5511         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5512         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5513         (gl_FUNC_MEMMEM): When cross-compiling, set
5514         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5516         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5518         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5519         "guessing no".
5520         (gl_FUNC_STRCASESTR): When cross-compiling, set
5521         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5522         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5523         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5524         (gl_FUNC_STRSTR): When cross-compiling, set
5525         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5526         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5527         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5528         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5529         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5530
5531 2012-05-01  Bruno Haible  <bruno@clisp.org>
5532
5533         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5534         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5535         * build-aux/reloc-ldflags: Likewise.
5536         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5537
5538 2012-05-01  Bruno Haible  <bruno@clisp.org>
5539
5540         gnulib-tool: Remove transitional code.
5541         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5542         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5543
5544 2012-05-01  Bruno Haible  <bruno@clisp.org>
5545
5546         getcwd: Fix misindentation.
5547         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5548
5549 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5550
5551         exclude: process exclude and include directives in order
5552         This restores the pre-2009 behavior, and is part of a fix of a
5553         grep bug reported by Quentin Arce in
5554         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5555         * lib/exclude.c (struct exclude): Remove 'tail' member.
5556         (new_exclude_segment): Prepend the new segment instead of appending.
5557         Return void, since that's now more convenient.
5558         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5559         (file_name_matches): Renamed from excluded_file_name_p.
5560         (file_pattern_matches, file_name_matches):
5561         Return true if the pattern matches, not if it excludes.
5562         All callers changed.
5563         (excluded_file_name): Process the list in reverse order;
5564         since the list is now reversed this restores the pre-2009 behavior.
5565         (add_exclude): Adjust to new reversed-order list.  Use local var
5566         rather than macro, for clarity.
5567         * tests/test-exclude7.sh: Adjust to corrected behavior.
5568
5569         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5570         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5571         it's not possible here.  Handle the case of \ at end of pattern
5572         without dumping core.
5573         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5574
5575         _Noreturn: future-proof non-GNU and non-MSVC compilers
5576         * build-aux/snippet/_Noreturn.h (_Noreturn):
5577         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5578         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5579         C11 or later.  This is more likely to work with random future C
5580         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5581         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5582
5583         exclude: handle wildcards with FNM_EXTMATCH
5584         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5585         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5586         comment that "has wildcards" really means "has or may have
5587         wildcards".  Simplify by avoiding the need to call strcspn.
5588
5589 2012-04-29  Bruno Haible  <bruno@clisp.org>
5590
5591         gnulib-tool: Fix list of authors.
5592         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5593
5594 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5595
5596         bootstrap: support Automake-NG in $buildreq
5597         * bootstrap (check_versions): Handle automake and aclocal from
5598         Automake-NG specially.  They can be specified as respectively
5599         the "automake-ng" and "aclocal-ng" requirements.
5600
5601 2012-04-25  Eric Blake  <eblake@redhat.com>
5602
5603         bootstrap: only force latest Makefile.in.in for gettext module
5604         * build-aux/bootstrap (with_gettext): Only install latest
5605         Makefile.in.in for projects requesting bleeding edge gettext.
5606
5607 2012-04-22  Bruno Haible  <bruno@clisp.org>
5608
5609         doc: Mention reason for replacement on glibc/Linux systems.
5610         * doc/posix-functions/dprintf.texi: Mention the problem with special
5611         'long double' values.
5612         * doc/posix-functions/fprintf.texi: Likewise.
5613         * doc/posix-functions/printf.texi: Likewise.
5614         * doc/posix-functions/snprintf.texi: Likewise.
5615         * doc/posix-functions/sprintf.texi: Likewise.
5616         * doc/posix-functions/vdprintf.texi: Likewise.
5617         * doc/posix-functions/vfprintf.texi: Likewise.
5618         * doc/posix-functions/vprintf.texi: Likewise.
5619         * doc/posix-functions/vsnprintf.texi: Likewise.
5620         * doc/posix-functions/vsprintf.texi: Likewise.
5621         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5622         platforms with F_DUPFD_CLOEXEC problems.
5623         * doc/posix-functions/glob.texi: Mention which platforms are affected
5624         by the problem with symbolic links.
5625         * doc/posix-functions/linkat.texi: Mention the problem with
5626         AT_SYMLINK_FOLLOW on Linux.
5627
5628 2012-04-22  Bruno Haible  <bruno@clisp.org>
5629
5630         pwrite: Don't replace on all platforms.
5631         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5632
5633 2012-04-22  Bruno Haible  <bruno@clisp.org>
5634
5635         rint* tests: Avoid gcc warnings.
5636         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5637         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5638         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5639
5640 2012-04-21  Bruno Haible  <bruno@clisp.org>
5641
5642         users.txt: Update.
5643         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5644         switched from CVS to git, bzr, or svn.
5645
5646 2012-04-21  Bruno Haible  <bruno@clisp.org>
5647
5648         Large File Support for native Windows platforms.
5649
5650         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5651         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5652
5653         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5654         type.
5655         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5656         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5657         * doc/posix-headers/sys_types.texi: Mention the effect of the
5658         'largefile' module.
5659
5660         * lib/fcntl.in.h: Add comments about off_t.
5661         * modules/fcntl-h (Depends-on): Add sys_types.
5662
5663         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5664         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5665         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5666         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5667         * modules/unistd (Depends-on): Add sys_types.
5668         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5669
5670         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5671         instead of lseek.
5672         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5673         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5674         * modules/lseek (Depends-on): Add sys_types.
5675
5676         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5677         msvc-nothrow.h.
5678         (SetFileSize): New function.
5679         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5680         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5681         if Large File Support is requested.
5682         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5683         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5684
5685         * lib/stdio.in.h: Add comments about off_t.
5686         * modules/stdio (Depends-on): Add sys_types.
5687
5688         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5689         instead of ftello.
5690         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5691         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5692         (gl_PREREQ_FTELLO): New macro.
5693         * modules/ftello (Depends-on): Add sys_types.
5694         (configure.ac): Incoke gl_PREREQ_FTELLO.
5695
5696         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5697         instead of fseeko.
5698         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5699         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5700         (gl_PREREQ_FSEEKO): New macro.
5701         * modules/fseeko (Depends-on): Add sys_types.
5702         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5703
5704         * lib/sys_stat.in.h: Add comments about off_t.
5705         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5706         64-bit integer for st_size in 'struct stat'.
5707         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5708         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5709         * modules/sys_stat (Depends-on): Add sys_types.
5710         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5711
5712         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5713         instead of stat or _stat.
5714
5715         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5716         'struct _stati64' instead of fstat and 'struct stat'.
5717         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5718         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5719
5720         Reported by Ray Satiro <raysatiro@yahoo.com>.
5721
5722 2012-04-19  Eric Blake  <eblake@redhat.com>
5723
5724         bootstrap: accommodate older libtool
5725         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5726         Reported by Daniel P. Berrange.
5727
5728 2012-04-19  Jim Meyering  <meyering@redhat.com>
5729
5730         announce-gen: avoid failure due to lack of Digest::SHA1
5731         Even with the preferred Digest::SHA available, this script
5732         would fail when the backup module, Digest::SHA1, was not installed.
5733         * build-aux/announce-gen: Quote the conditional use of "use".
5734         Reported by Reuben Thomas in:
5735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5736
5737         bootstrap: don't let a user's CDPATH setting affect this script
5738         When CDPATH is set, cd will sometimes generate output.
5739         When "cd" is run in a subshell whose output matters, that
5740         surprising-to-some output can cause malfunction.
5741         Unsetting CDPATH turns off this shell "feature."
5742         * build-aux/bootstrap (CDPATH): Unset.
5743         Reported by Reuben Thomas in:
5744         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5745         and inspired by his patch here:
5746         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5747
5748 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5749         and Jim Meyering  <meyering@redhat.com>
5750
5751         maint.mk: catch "see @xref{}" and similar
5752         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5753         prohibit "See also @xref{", "Also see @pxref{", and similar.
5754
5755 2012-04-16  Jim Meyering  <meyering@redhat.com>
5756
5757         bootstrap: really use gnulib's po/Makefile.in.in
5758         * build-aux/bootstrap: Correct the source file name in previous change.
5759         Reported by Akim Demaille.
5760
5761         configmake: correct minor inconsistency in Makefile rule
5762         * modules/configmake (Makefile.am): All other rules like this one
5763         run the final "mv -f ..." in the same backslash-continued command
5764         as the one that does everything else.  This one put the mv -f ...
5765         command on a separate, non-backslash-continued line.
5766         Make it like the others.
5767
5768         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5769         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5770         the one from gettext.  Reported by Akim Demaille.
5771
5772 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5773
5774         Fix recursion of install-* into po directories.
5775         Bison's install-pdf bug reported by Hans Aberg at
5776         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5777         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5778         (install-info, install-pdf, install-ps): New targets.
5779
5780 2012-04-16  Jim Meyering  <meyering@redhat.com>
5781
5782         maint: avoid spurious "make sc_maint" failure
5783         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5784         exempt all *.class file names, for lib/javaversion.class.
5785
5786 2012-04-15  Bruno Haible  <bruno@clisp.org>
5787
5788         lseek: Make configure test independent of environment.
5789         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5790         Windows, we know that lseek() on pipes is broken; skip the runtime
5791         test.
5792
5793 2012-04-14  Bruno Haible  <bruno@clisp.org>
5794
5795         stat: Bypass buggy override in mingw64.
5796         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5797         * lib/stat.c (stat) [mingw64]: Define to _stat.
5798         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5799
5800 2012-04-14  Bruno Haible  <bruno@clisp.org>
5801
5802         pathmax: Fix compilation error on MSVC 9.
5803         * modules/pathmax (Depends-on): Add unistd.
5804
5805 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5806
5807         README: document pointer comparison assumption
5808         * README (Portability guidelines): Document assumption about
5809         pointer comparisons, in response to a recent bug-gnulib comment by
5810         Jeffrey Kegler.
5811
5812 2012-04-12  Bruno Haible  <bruno@clisp.org>
5813
5814         Tests for module 'getrusage'.
5815         * modules/getrusage-tests: New file.
5816         * tests/test-getrusage.c: New file.
5817
5818         New module 'getrusage'.
5819         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5820         warn-on-use.h.
5821         (getrusage): New declaration.
5822         * lib/getrusage.c: New file.
5823         * m4/getrusage.m4: New file.
5824         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5825         is declared.
5826         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5827         HAVE_GETRUSAGE.
5828         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5829         snippet/c++defs, snippet/warn-on-use.
5830         (Makefile.am): Update generation of sys/resource.h. Substitute
5831         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5832         * modules/getrusage: New file.
5833         * doc/posix-functions/getrusage.texi: Mention the new module.
5834
5835 2012-04-12  Bruno Haible  <bruno@clisp.org>
5836
5837         Tests for module 'sys_resource'.
5838         * modules/sys_resource-tests: New file.
5839         * tests/test-sys_resource.c: New file.
5840
5841         New module 'sys_resource'.
5842         * lib/sys_resource.in.h: New file.
5843         * m4/sys_resource_h.m4: New file.
5844         * modules/sys_resource: New file.
5845         * doc/posix-headers/sys_resource.texi: Mention the new module.
5846
5847 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5848
5849         ioctl: Fix compilation error on mingw.
5850         * lib/ioctl.c: Include <windows.h>.
5851         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5852
5853 2012-04-04  Jim Meyering  <meyering@redhat.com>
5854
5855         regex: correct #pragma guard expression
5856         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5857         not 4.3.  Correct its cpp guard expression.
5858
5859 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5860
5861         regex: remove unnecessary type punning
5862         Problem reported by Vladimir Serbinenko in
5863         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5864         * lib/regex.h (struct re_pattern_buffer): Change the type of
5865         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5866         Fix comment to match code.
5867         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5868         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5869         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5870         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5871         (set_regs):
5872         Omit no-longer-necessary casts.
5873
5874 2012-04-03  Bruno Haible  <bruno@clisp.org>
5875
5876         Tests for module 'ilogbl'.
5877         * modules/ilogbl-tests: New file.
5878         * tests/test-ilogbl.c: New file.
5879
5880         New module 'ilogbl'.
5881         * lib/math.in.h (ilogbl): New declaration.
5882         * lib/ilogbl.c: New file.
5883         * m4/ilogbl.m4: New file.
5884         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5886         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5887         Split sed invocation, to avoid the limit of 100 substitutions of
5888         HP-UX 'sed'.
5889         * modules/ilogbl: New file.
5890         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5891         * doc/posix-functions/ilogbl.texi: Mention the new module.
5892
5893 2012-04-03  Bruno Haible  <bruno@clisp.org>
5894
5895         Tests for module 'ilogbf'.
5896         * modules/ilogbf-tests: New file.
5897         * tests/test-ilogbf.c: New file.
5898
5899         New module 'ilogbf'.
5900         * lib/math.in.h (ilogbf): New declaration.
5901         * lib/ilogbf.c: New file.
5902         * m4/ilogbf.m4: New file.
5903         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5905         REPLACE_ILOGBF.
5906         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5907         REPLACE_ILOGBF.
5908         * modules/ilogbf: New file.
5909         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5910         * doc/posix-functions/ilogbf.texi: Mention the new module.
5911
5912 2012-04-03  Bruno Haible  <bruno@clisp.org>
5913
5914         Tests for module 'ilogb'.
5915         * modules/ilogb-tests: New file.
5916         * tests/test-ilogb.c: New file.
5917         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5918         tests/test-logb-ieee.h.
5919
5920         New module 'ilogb'.
5921         * lib/math.in.h (ilogb): New declaration.
5922         * lib/ilogb.c: New file.
5923         * m4/ilogb.m4: New file.
5924         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5926         REPLACE_ILOGB.
5927         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5928         REPLACE_ILOGB.
5929         * modules/ilogb: New file.
5930         * tests/test-math-c++.cc: Check the declaration of ilogb.
5931         * doc/posix-functions/ilogb.texi: Mention the new module.
5932
5933 2012-04-03  Bruno Haible  <bruno@clisp.org>
5934
5935         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5936         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5937         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5938         (main): Check their values.
5939         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5940         problem.
5941
5942 2012-04-03  Bruno Haible  <bruno@clisp.org>
5943
5944         Tests for module 'logbl-ieee'.
5945         * modules/logbl-ieee-tests: New file.
5946         * tests/test-logbl-ieee.c: New file.
5947
5948         New module 'logbl-ieee'.
5949         * modules/logbl-ieee: New file.
5950
5951         Tests for module 'logb-ieee'.
5952         * modules/logb-ieee-tests: New file.
5953         * tests/test-logb-ieee.c: New file.
5954
5955         New module 'logb-ieee'.
5956         * modules/logb-ieee: New file.
5957
5958         Tests for module 'logbf-ieee'.
5959         * modules/logbf-ieee-tests: New file.
5960         * tests/test-logbf-ieee.c: New file.
5961         * tests/test-logb-ieee.h: New file.
5962
5963         New module 'logbf-ieee'.
5964         * modules/logbf-ieee: New file.
5965
5966 2012-04-03  Bruno Haible  <bruno@clisp.org>
5967
5968         Tests for module 'logbl'.
5969         * modules/logbl-tests: New file.
5970         * tests/test-logbl.c: New file.
5971
5972         New module 'logbl'.
5973         * lib/math.in.h (logbl): New declaration.
5974         * lib/logbl.c: New file.
5975         * m4/logbl.m4: New file.
5976         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5978         REPLACE_LOGBL.
5979         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5980         REPLACE_LOGBL.
5981         * modules/logbl: New file.
5982         * tests/test-math-c++.cc: Check the declaration of logbl.
5983         * doc/posix-functions/logbl.texi: Mention the new module.
5984
5985 2012-04-02  Bruno Haible  <bruno@clisp.org>
5986
5987         Tests for module 'logbf'.
5988         * modules/logbf-tests: New file.
5989         * tests/test-logbf.c: New file.
5990
5991         New module 'logbf'.
5992         * lib/math.in.h (logbf): New declaration.
5993         * lib/logbf.c: New file.
5994         * m4/logbf.m4: New file.
5995         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5997         REPLACE_LOGBF.
5998         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5999         REPLACE_LOGBF.
6000         * modules/logbf: New file.
6001         * tests/test-math-c++.cc: Check the declaration of logbf.
6002         * doc/posix-functions/logbf.texi: Mention the new module.
6003
6004 2012-04-02  Bruno Haible  <bruno@clisp.org>
6005
6006         logb tests: More tests.
6007         * tests/test-logb.h: New file, based on tests/test-logb.c and
6008         tests/test-frexp.h.
6009         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6010         (main): Just invoke test_function.
6011         * modules/logb-tests (Files): Add tests/test-logb.h,
6012         tests/minus-zero.h, tests/randomd.c.
6013         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6014
6015         logb: Provide replacement and workarounds.
6016         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6017         is 1.
6018         * lib/logb.c: New file.
6019         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6020         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6022         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6023         * modules/logb (Files): Add lib/logb.c.
6024         (Depends-on): Add isfinite, frexp, isnand.
6025         (configure.ac): Compile the replacement code logb.c if needed.
6026         * tests/test-math-c++.cc: Check the declaration of logb.
6027         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6028         with subnormal numbers.
6029
6030 2012-04-02  Bruno Haible  <bruno@clisp.org>
6031
6032         log10* tests: Speed up.
6033         * tests/test-log10.h (test_function): Reduce amount of random numbers
6034         to test.
6035
6036 2012-04-01  Bruno Haible  <bruno@clisp.org>
6037
6038         logf-ieee: Fix test whether logf works.
6039         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6040
6041 2012-04-01  Bruno Haible  <bruno@clisp.org>
6042
6043         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6044         * lib/log10l.c: Include <float.h>
6045         (log10l): On IRIX, normalize the +Infinity value.
6046         * modules/log10l (Depends-on): Add 'float'.
6047         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6048         +Infinity.
6049
6050         log10f-ieee: Work around test failure on NetBSD 5.1.
6051         * m4/log10f-ieee.m4: New file.
6052         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6053         test whether log10f works with a negative argument. Replace it if not.
6054         * lib/log10f.c (log10f): For negative arguments, return NaN.
6055         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6056         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6057         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6058
6059         log10f-ieee: Work around test failure on Solaris 9.
6060         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6061         (configure.ac): Require gl_FUNC_LOG10F.
6062
6063         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6064         * m4/log10-ieee.m4: New file.
6065         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6066         whether log10 works with a negative argument. Replace it if not.
6067         * lib/log10.c (log10): For negative arguments, return NaN.
6068         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6069         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6070         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6071
6072         Tests for module 'log10l-ieee'.
6073         * modules/log10l-ieee-tests: New file.
6074         * tests/test-log10l-ieee.c: New file.
6075
6076         New module 'log10l-ieee'.
6077         * modules/log10l-ieee: New file.
6078
6079         Tests for module 'log10-ieee'.
6080         * modules/log10-ieee-tests: New file.
6081         * tests/test-log10-ieee.c: New file.
6082
6083         New module 'log10-ieee'.
6084         * modules/log10-ieee: New file.
6085
6086         Tests for module 'log10f-ieee'.
6087         * modules/log10f-ieee-tests: New file.
6088         * tests/test-log10f-ieee.c: New file.
6089         * tests/test-log10-ieee.h: New file.
6090
6091         New module 'log10f-ieee'.
6092         * modules/log10f-ieee: New file.
6093
6094 2012-04-01  Bruno Haible  <bruno@clisp.org>
6095
6096         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6097         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6098         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6099         workaround.
6100         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6101         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6103         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6104         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6105         (Depends-on): Update conditions.
6106         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6107         IRIX 6.5, OSF/1 5.1 problems.
6108
6109 2012-04-01  Bruno Haible  <bruno@clisp.org>
6110
6111         log10f: Work around OSF/1 5.1 bug.
6112         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6113         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6114         workaround.
6115         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6116         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6118         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6119         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6120         (Depends-on): Update conditions.
6121         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6122
6123 2012-04-01  Bruno Haible  <bruno@clisp.org>
6124
6125         log10: Work around OSF/1 5.1 bug.
6126         * lib/math.in.h (log10): New declaration.
6127         * lib/log10.c: New file.
6128         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6129         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6130         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6132         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6133         * modules/log10 (Files): Add lib/log10.c.
6134         (Depends-on): Add math.
6135         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6136         * tests/test-math-c++.cc: Check the declaration of log10.
6137         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6138
6139 2012-03-31  Bruno Haible  <bruno@clisp.org>
6140
6141         log10l tests: More tests.
6142         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6143         tests/minus-zero.h, tests/randoml.c.
6144         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6145         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6146         (main): Invoke test_function.
6147
6148         log10f tests: More tests.
6149         * modules/log10f-tests (Files): Add tests/test-log10.h,
6150         tests/minus-zero.h, tests/randomf.c.
6151         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6152         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6153         (main): Invoke test_function.
6154
6155         log10 tests: More tests.
6156         * tests/test-log10.h: New file.
6157         * modules/log10-tests (Files): Add tests/test-log10.h,
6158         tests/minus-zero.h, tests/randomd.c.
6159         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6160         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6161         (main): Invoke test_function.
6162
6163 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6164
6165         fflush: Fix syntax error.
6166         * lib/fflush.c: Include unused-parameter.h, needed for
6167         _GL_UNUSED_PARAMETER.
6168         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6169
6170 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6171
6172         regex: pacify GCC when compiling GRUB
6173         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6174         a diagnostic.  Reported by Vladimir Serbinenko in
6175         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6176
6177 2012-03-29  Eric Blake  <eblake@redhat.com>
6178
6179         stdio: don't assume gets any more
6180         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6181         support.
6182         * modules/stdio (Makefile.am): Likewise.
6183         * lib/stdio-read.c (gets): Likewise.
6184         * tests/test-stdio-c++.cc: Likewise.
6185         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6186         * lib/stdio.in.h (gets): Make warning occur in more places.
6187         * doc/posix-functions/gets.texi (gets): Update documentation.
6188         Reported by Christer Solskogen.
6189
6190         maint.mk: fix syntax checks without exclusions
6191         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6192         Reported by Daniel P. Berrange.
6193
6194         strerror_r: avoid compiler warning
6195         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6196         level.
6197
6198         fflush: avoid compiler warning
6199         * lib/fflush.c (update_fpos_cache): Mark variables that are
6200         potentially unused.
6201
6202 2012-03-25  Bruno Haible  <bruno@clisp.org>
6203
6204         Tests for module 'localeconv'.
6205         * modules/localeconv-tests: New file.
6206         * tests/test-localeconv.c: New file.
6207
6208         New module 'localeconv'.
6209         * lib/locale.in.h (localeconv): New declaration.
6210         * lib/localeconv.c: New file.
6211         * m4/localeconv.m4: New file.
6212         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6213         REPLACE_LOCALECONV.
6214         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6215         REPLACE_LOCALECONV.
6216         * modules/localeconv: New file.
6217         * modules/nl_langinfo (Depends-on): Add localeconv.
6218         * modules/human (Depends-on): Likewise.
6219         * doc/posix-functions/localeconv.texi: Mention the new module.
6220
6221 2012-03-25  Bruno Haible  <bruno@clisp.org>
6222
6223         locale: Provide a complete 'struct lconv'.
6224         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6225         'struct lconv' does not contain int_p_cs_precedes.
6226         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6227         * doc/posix-headers/locale.texi: Update.
6228
6229         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6230         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6231         * doc/posix-headers/locale.texi: Update.
6232
6233         locale: Provide a working 'struct lconv'.
6234         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6235         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6236         'struct lconv' does not even contain decimal_point.
6237         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6238         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6239         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6240         * doc/posix-headers/locale.texi: Mention the problems with
6241         'struct lconv'.
6242         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6243
6244 2012-03-24  Bruno Haible  <bruno@clisp.org>
6245
6246         Enable common subexpression optimization in GCC.
6247         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6248         macros.
6249         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6250         GCC attribute 'const'.
6251         (uc_locale_language): Declare with GCC attribute 'pure'.
6252         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6253         with GCC attribute 'const'.
6254         * lib/unictype.in.h (uc_is_general_category_withtable,
6255         uc_combining_class, uc_combining_class_name,
6256         uc_combining_class_long_name, uc_bidi_class_name,
6257         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6258         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6259         uc_decimal_value, uc_digit_value, uc_numeric_value,
6260         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6261         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6262         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6263         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6264         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6265         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6266         Declare with GCC attribute 'const'.
6267         (uc_general_category_name, uc_general_category_long_name,
6268         uc_general_category_byname, uc_general_category,
6269         uc_is_general_category, uc_combining_class_byname,
6270         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6271         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6272         Declare with GCC attribute 'pure'.
6273         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6274         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6275         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6276         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6277         with GCC attribute 'pure'.
6278         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6279         'const'.
6280         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6281         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6282         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6283         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6284         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6285         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6286         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6287         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6288         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6289         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6290         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6291         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6292         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6293         GCC attribute 'pure'.
6294         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6295         'const'.
6296         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6297         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6298         u32_strwidth): Declare with GCC attribute 'pure'.
6299
6300         Enable common subexpression optimization in GCC.
6301         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6302         (alphasort): Declare with GCC attribute 'pure'.
6303         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6304         (atoll): Declare with GCC attribute 'pure'.
6305         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6306         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6307         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6308         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6309         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6310         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6311         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6312
6313 2012-03-24  Bruno Haible  <bruno@clisp.org>
6314
6315         gnulib-tool: Avoid unintended error output from 'cmp'.
6316         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6317         "cmp -s", not "cmp > /dev/null".
6318
6319 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6320
6321         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6322
6323         It's not just Automake versions < 1.9b that creates an empty
6324         pkgdatadir at installation time if pkgdata_DATA is specified
6325         to empty; modern automake versions do this as well, at least
6326         until automake 1.11.4 (not yet released at the moment of writing,
6327         but soon to appear).  That behaviour was generally considered a
6328         feature rather than a bug, at least until this discussion:
6329         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6330
6331         See also automake bugs #10997 and #11030.
6332
6333         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6334         reference to relevant automake bug numbers.
6335         (func_emit_tests_Makefile_am): Likewise.
6336
6337 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6338
6339         announce-gen: use Digest::SHA when possible
6340         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6341         back to Digest::SHA1 if necessary.
6342
6343 2012-03-20  Jim Meyering  <meyering@redhat.com>
6344
6345         tests: avoid gcc warnings about argv vs. const initializers
6346         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6347         warnings about discarding 'const' qualifier from pointer target type.
6348         * tests/test-posix_spawn2.c (main): Likewise.
6349
6350 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6351
6352         README-release: simplify slightly
6353         * top/README-release: Run "git checkout master" only once.
6354
6355 2012-03-15  Mark Wielaard  <mark@klomp.org>
6356
6357         git-merge-changelog: add specific example on how to use with hg.
6358         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6359
6360 2012-03-18  Mark Wielaard  <mark@klomp.org>
6361
6362         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6363
6364 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6365
6366         git-version-gen: don't let "prefix" envvar cause trouble
6367         * build-aux/git-version-gen (prefix): Initialize properly,
6368         so as not to use a value specified via the environment.
6369         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6370
6371 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6372
6373         regex: diagnose too-large repeat counts in EREs
6374         Previously, the code did not diagnose the too-large repeat count
6375         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6376         as if it were 'b\{1000000000}', which is unexpected.
6377         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6378         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6379         is a reasonable one for this problem.  Another option would be to
6380         create a new REG_OVERFLOW error for repeat counts that are too large.
6381         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6382         count is too large, so that the caller can distinguish the two cases.
6383         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6384         "Too large" return code, and that repeat counts are one example of this.
6385
6386 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6387
6388         doc: some glibc x32 integer width issues
6389         * doc/posix-headers/sys_types.texi (sys/types.h):
6390         * doc/posix-headers/time.texi (time.h):
6391         Mention that glibc x32 does not conform to POSIX in a couple of
6392         areas related to integer widths.
6393
6394 2012-03-15  Bruno Haible  <bruno@clisp.org>
6395
6396         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6397         * lib/fma.c (VOLATILE): New macro.
6398         (FUNC): Use it to work around a GCC compiler bug.
6399
6400 2012-03-13  Bruno Haible  <bruno@clisp.org>
6401
6402         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6403         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6404         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6405         REPLACE_HYPOTL to 1.
6406         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6407
6408 2012-03-13  Bruno Haible  <bruno@clisp.org>
6409
6410         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6411         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6412         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6413         REPLACE_REMAINDERL to 1.
6414         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6415         bug.
6416
6417 2012-03-13  Bruno Haible  <bruno@clisp.org>
6418
6419         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6420         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6421         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6422         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6423         too big rounding errors.
6424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6425         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6426         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6427         (Depends-on): Update conditions.
6428         * tests/test-sqrtl.c (my_ldexpl): New function.
6429         (main): Add test of a particular value.
6430         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6431
6432 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6433
6434         doc: Update timer_* platform portability notes.
6435         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6436         that always return ENOSYS.
6437         * doc/posix-functions/timer_delete.texi: Likewise.
6438         * doc/posix-functions/timer_gettime.texi: Likewise.
6439         * doc/posix-functions/timer_settime.texi: Likewise.
6440
6441 2012-03-13  Bruno Haible  <bruno@clisp.org>
6442
6443         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6444         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6445         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6446         REPLACE_CBRTL to 1.
6447         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6448
6449 2012-03-13  Bruno Haible  <bruno@clisp.org>
6450
6451         remainderl: Avoid compilation error on AIX >= 5.2.
6452         * lib/math.in.h (remainderl): Undefine macro from the system header.
6453
6454 2012-03-13  Bruno Haible  <bruno@clisp.org>
6455
6456         Avoid compilation errors with MSVC option -fp:strict.
6457         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6458         * lib/cbrtf.c: Likewise.
6459         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6460
6461 2012-03-12  Bruno Haible  <bruno@clisp.org>
6462
6463         uninorm: Don't crash in out-of-memory conditions.
6464         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6465         gracefully.
6466         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6467         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6468
6469 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6470
6471         quote: fix syntax-check
6472         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6473         also exports quote_quoting_options.
6474
6475 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6476
6477         Collapse list of copyright years to ranges.  See
6478         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6479         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6480         build-aux/csharpexec.sh.in, build-aux/gnupload,
6481         build-aux/install-reloc, build-aux/javacomp.sh.in,
6482         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6483         build-aux/move-if-change, build-aux/reloc-ldflags,
6484         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6485
6486 2012-03-11  Bruno Haible  <bruno@clisp.org>
6487
6488         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6489         * m4/log2f-ieee.m4: New file.
6490         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6491         whether log2f works with a minus zero argument. Replace it if not.
6492         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6493         (Depends-on): Add log2-ieee.
6494         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6495         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6496
6497         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6498         * m4/log2-ieee.m4: New file.
6499         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6500         whether log2 works with a minus zero argument. Replace it if not.
6501         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6502         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6503         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6504
6505         Tests for module 'log2l-ieee'.
6506         * modules/log2l-ieee-tests: New file.
6507         * tests/test-log2l-ieee.c: New file.
6508
6509         New module 'log2l-ieee'.
6510         * modules/log2l-ieee: New file.
6511
6512         Tests for module 'log2-ieee'.
6513         * modules/log2-ieee-tests: New file.
6514         * tests/test-log2-ieee.c: New file.
6515
6516         New module 'log2-ieee'.
6517         * modules/log2-ieee: New file.
6518
6519         Tests for module 'log2f-ieee'.
6520         * modules/log2f-ieee-tests: New file.
6521         * tests/test-log2f-ieee.c: New file.
6522         * tests/test-log2-ieee.h: New file.
6523
6524         New module 'log2f-ieee'.
6525         * modules/log2f-ieee: New file.
6526
6527 2012-03-11  Bruno Haible  <bruno@clisp.org>
6528
6529         Tests for module 'log2l'.
6530         * modules/log2l-tests: New file.
6531         * tests/test-log2l.c: New file.
6532
6533         New module 'log2l'.
6534         * lib/math.in.h (log2l): New declaration.
6535         * lib/log2l.c: New file.
6536         * m4/log2l.m4: New file.
6537         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6539         REPLACE_LOG2L.
6540         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6541         REPLACE_LOG2L.
6542         * modules/log2l: New file.
6543         * tests/test-math-c++.cc: Check the declaration of log2l.
6544         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6545         and OSF/1 problems.
6546
6547 2012-03-11  Bruno Haible  <bruno@clisp.org>
6548
6549         Tests for module 'log2f'.
6550         * modules/log2f-tests: New file.
6551         * tests/test-log2f.c: New file.
6552
6553         New module 'log2f'.
6554         * lib/math.in.h (log2f): New declaration.
6555         * lib/log2f.c: New file.
6556         * m4/log2f.m4: New file.
6557         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6559         REPLACE_LOG2F.
6560         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6561         REPLACE_LOG2F.
6562         * modules/log2f: New file.
6563         * tests/test-math-c++.cc: Check the declaration of log2f.
6564         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6565         and OSF/1 and Cygwin problems.
6566
6567 2012-03-11  Bruno Haible  <bruno@clisp.org>
6568
6569         Tests for module 'log2'.
6570         * modules/log2-tests: New file.
6571         * tests/test-log2.c: New file.
6572         * tests/test-log2.h: New file.
6573
6574         New module 'log2'.
6575         * lib/math.in.h (log2): New declaration.
6576         * lib/log2.c: New file.
6577         * m4/log2.m4: New file.
6578         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6580         REPLACE_LOG2.
6581         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6582         REPLACE_LOG2.
6583         * modules/log2: New file.
6584         * tests/test-math-c++.cc: Check the declaration of log2.
6585         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6586         and OSF/1 and Cygwin problems.
6587
6588 2012-03-11  Bruno Haible  <bruno@clisp.org>
6589
6590         exp2* tests: More tests.
6591         * tests/test-exp2.h (test_function): Test all integral arguments that
6592         don't need to overflow or denormalized numbers.
6593         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6594         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6595         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6596
6597 2012-03-10  Bruno Haible  <bruno@clisp.org>
6598
6599         log1pl-ieee: Work around test failure on AIX 7.1.
6600         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6601
6602         log1pl-ieee: Work around test failure on IRIX 6.5.
6603         * m4/log1pl-ieee.m4: New file.
6604         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6605         test whether log1pl works with a minus zero argument. Replace it if
6606         not.
6607         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6609         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6610         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6611         (Depends-on): Update conditions.
6612         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6613         m4/signbit.m4.
6614         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6615         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6616
6617         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6618         * m4/log1pf-ieee.m4: New file.
6619         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6620         test whether log1pf works with a minus zero argument. Replace it if
6621         not.
6622         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6623         m4/signbit.m4.
6624         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6625         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6626
6627         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6628         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6629         (configure.ac): Require gl_FUNC_LOG1PF.
6630
6631         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6632         * m4/log1p-ieee.m4: New file.
6633         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6634         whether log1p works with a minus zero argument. Replace it if not.
6635         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6637         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6638         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6639         (Depends-on): Update conditions.
6640         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6641         m4/signbit.m4.
6642         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6643         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6644
6645         Tests for module 'log1pl-ieee'.
6646         * modules/log1pl-ieee-tests: New file.
6647         * tests/test-log1pl-ieee.c: New file.
6648
6649         New module 'log1pl-ieee'.
6650         * modules/log1pl-ieee: New file.
6651
6652         Tests for module 'log1p-ieee'.
6653         * modules/log1p-ieee-tests: New file.
6654         * tests/test-log1p-ieee.c: New file.
6655
6656         New module 'log1p-ieee'.
6657         * modules/log1p-ieee: New file.
6658
6659         Tests for module 'log1pf-ieee'.
6660         * modules/log1pf-ieee-tests: New file.
6661         * tests/test-log1pf-ieee.c: New file.
6662         * tests/test-log1p-ieee.h: New file.
6663
6664         New module 'log1pf-ieee'.
6665         * modules/log1pf-ieee: New file.
6666
6667 2012-03-10  Bruno Haible  <bruno@clisp.org>
6668
6669         Tests for module 'log1pl'.
6670         * modules/log1pl-tests: New file.
6671         * tests/test-log1pl.c: New file.
6672
6673         New module 'log1pl'.
6674         * lib/math.in.h (log1pl): New declaration.
6675         * lib/log1pl.c: New file.
6676         * m4/log1pl.m4: New file.
6677         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6679         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6680         * modules/log1pl: New file.
6681         * tests/test-math-c++.cc: Check the declaration of log1pl.
6682         * doc/posix-functions/log1pl.texi: Mention the new module.
6683
6684 2012-03-10  Bruno Haible  <bruno@clisp.org>
6685
6686         Tests for module 'log1pf'.
6687         * modules/log1pf-tests: New file.
6688         * tests/test-log1pf.c: New file.
6689
6690         New module 'log1pf'.
6691         * lib/math.in.h (log1pf): New declaration.
6692         * lib/log1pf.c: New file.
6693         * m4/log1pf.m4: New file.
6694         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6696         REPLACE_LOG1PF.
6697         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6698         REPLACE_LOG1PF.
6699         * modules/log1pf: New file.
6700         * tests/test-math-c++.cc: Check the declaration of log1pf.
6701         * doc/posix-functions/log1pf.texi: Mention the new module.
6702
6703 2012-03-10  Bruno Haible  <bruno@clisp.org>
6704
6705         log1p tests: More tests.
6706         * tests/test-log1p.h: New file.
6707         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6708         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6709         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6710         (main): Invoke test_function.
6711
6712         log1p: Provide replacement for Minix and MSVC.
6713         * lib/math.in.h (log1p): New declaration.
6714         * lib/log1p.c: New file.
6715         * m4/log1p.m4: New file.
6716         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6718         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6719         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6720         (Depends-on): Add math, isnand, log, round.
6721         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6722         HAVE_LOG1P is 0.
6723         * tests/test-math-c++.cc: Check the declaration of log1p.
6724         * doc/posix-functions/log1p.texi: Mention the replacement.
6725
6726 2012-03-10  Bruno Haible  <bruno@clisp.org>
6727
6728         math tests: Small simplification.
6729         * tests/test-exp.h (test_function): Use the same err_bound for
6730         'double' on platforms with sizeof (long double) == sizeof (double)
6731         than on platforms with sizeof (long double) > sizeof (double).
6732         * tests/test-exp2.h (test_function): Likewise.
6733         * tests/test-expm1.h (test_function): Likewise.
6734         * tests/test-log.h (test_function): Likewise.
6735
6736 2012-03-10  Bruno Haible  <bruno@clisp.org>
6737
6738         Fix some comments.
6739         * lib/expl.c: Fix an ambiguous comment.
6740         * lib/expm1.c: Likewise.
6741         * lib/expm1l.c: Likewise.
6742         * lib/exp2.c: Likewise.
6743         * lib/exp2l.c: Likewise.
6744
6745 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6746
6747         regex: allow inclusion of <regex.h> before <limits.h>
6748         Without this patch, portable programs had to include <limits.h> before
6749         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6750         I ran into this problem with a test version of GNU grep on Solaris 8.
6751         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6752         This is done conditionally so that this change can be merged
6753         back to glibc.
6754         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6755         using the included regex.
6756
6757         fts: depend on fdopendir
6758         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6759         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6760         problem was introduced when fdopendir was split out.
6761
6762 2012-03-10  Bruno Haible  <bruno@clisp.org>
6763
6764         Remove unused variables.
6765         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6766         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6767
6768 2012-03-10  Bruno Haible  <bruno@clisp.org>
6769
6770         isnanf-nolibm: Fix last commit.
6771         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6772
6773         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6774         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6775
6776 2012-03-10  Bruno Haible  <bruno@clisp.org>
6777
6778         logf-ieee: Work around test failure on NetBSD 5.1.
6779         * m4/logf-ieee.m4: New file.
6780         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6781         whether logf works with a negative argument. Replace it if not.
6782         * lib/logf.c (logf): For negative arguments, return NaN.
6783         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6784         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6785         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6786
6787         logf-ieee: Work around test failure on Solaris 9.
6788         * modules/logf-ieee (Depends-on): Add log-ieee.
6789         (configure.ac): Require gl_FUNC_LOGF.
6790
6791         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6792         * m4/log-ieee.m4: New file.
6793         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6794         log works with a negative argument. Replace it if not.
6795         * lib/log.c (log): For negative arguments, return NaN.
6796         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6797         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6798         * doc/posix-functions/log.texi: Mention the log-ieee module.
6799
6800         Tests for module 'logl-ieee'.
6801         * modules/logl-ieee-tests: New file.
6802         * tests/test-logl-ieee.c: New file.
6803
6804         New module 'logl-ieee'.
6805         * modules/logl-ieee: New file.
6806
6807         Tests for module 'log-ieee'.
6808         * modules/log-ieee-tests: New file.
6809         * tests/test-log-ieee.c: New file.
6810
6811         New module 'log-ieee'.
6812         * modules/log-ieee: New file.
6813
6814         Tests for module 'logf-ieee'.
6815         * modules/logf-ieee-tests: New file.
6816         * tests/test-logf-ieee.c: New file.
6817         * tests/test-log-ieee.h: New file.
6818
6819         New module 'logf-ieee'.
6820         * modules/logf-ieee: New file.
6821
6822 2012-03-10  Bruno Haible  <bruno@clisp.org>
6823
6824         log: Fix bug introduced on 2012-03-09.
6825         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6826
6827 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6828
6829         timer-time: link explicitly with pthreads on glibc
6830         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6831         to support static linking, when newer glibc is
6832         detected, as that contains pthread emulation of
6833         POSIX timer functions where required.
6834         * modules/timer-time: Depend on threadlib to
6835         pull in the appropriate library to link.
6836
6837 2012-03-10  Bruno Haible  <bruno@clisp.org>
6838
6839         log* tests: More tests.
6840         * tests/test-log.h: New file.
6841         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6842         (main): Invoke test_function.
6843         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6844         (main): Invoke test_function.
6845         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6846         (main): Invoke test_function.
6847         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6848         tests/randomd.c.
6849         (Makefile.am): Add randomd.c to test_log_SOURCES.
6850         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6851         tests/randomf.c.
6852         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6853         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6854         tests/randoml.c.
6855         (Depends-on): Add 'float'.
6856         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6857
6858 2012-03-09  Bruno Haible  <bruno@clisp.org>
6859
6860         logl: Work around OSF/1 5.1 bug.
6861         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6862         * lib/logl.c (logl): If logl exists, use it and provide just the
6863         workaround.
6864         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6865         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6867         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6868         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6869         (Depends-on): Update conditions.
6870         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6871
6872 2012-03-09  Bruno Haible  <bruno@clisp.org>
6873
6874         logf: Work around OSF/1 5.1 bug.
6875         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6876         * lib/logf.c (logf): If logf exists, use it and provide just the
6877         workaround.
6878         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6879         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6881         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6882         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6883         (Depends-on): Update conditions.
6884         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6885
6886 2012-03-09  Bruno Haible  <bruno@clisp.org>
6887
6888         log: Work around OSF/1 5.1 bug.
6889         * lib/math.in.h (log): New declaration.
6890         * lib/log.c: New file.
6891         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6892         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6893         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6895         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6896         * modules/log (Files): Add lib/log.c.
6897         (Depends-on): Add math.
6898         (configure.ac): If REPLACE_LOG is 1, compile an override.
6899         * tests/test-math-c++.cc: Check the declaration of log.
6900         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6901
6902 2012-03-09  Jim Meyering  <meyering@redhat.com>
6903
6904         readtokens.c: adjust wording in a comment
6905         * lib/readtokens.c: Insert omitted "that" in a comment.
6906
6907 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6908
6909         modechange: add notations +40, 00440, etc.
6910         * lib/modechange.c (mode_compile): Support new notations
6911         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6912
6913 2012-03-08  Bruno Haible  <bruno@clisp.org>
6914
6915         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6916         * m4/exp2l-ieee.m4: New file.
6917         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6918         test whether exp2l works with a NaN argument and with a negative
6919         infinity argument. Replace it if not.
6920         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6922         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6923         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6924         (Depends-on): Update conditions.
6925         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6926         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6927         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6928
6929         Tests for module 'exp2l-ieee'.
6930         * modules/exp2l-ieee-tests: New file.
6931         * tests/test-exp2l-ieee.c: New file.
6932
6933         New module 'exp2l-ieee'.
6934         * modules/exp2l-ieee: New file.
6935
6936         Tests for module 'exp2-ieee'.
6937         * modules/exp2-ieee-tests: New file.
6938         * tests/test-exp2-ieee.c: New file.
6939
6940         New module 'exp2-ieee'.
6941         * modules/exp2-ieee: New file.
6942
6943         Tests for module 'exp2f-ieee'.
6944         * modules/exp2f-ieee-tests: New file.
6945         * tests/test-exp2f-ieee.c: New file.
6946         * tests/test-exp2-ieee.h: New file.
6947
6948         New module 'exp2f-ieee'.
6949         * modules/exp2f-ieee: New file.
6950
6951 2012-03-08  Bruno Haible  <bruno@clisp.org>
6952
6953         Tests for module 'exp2l'.
6954         * modules/exp2l-tests: New file.
6955         * tests/test-exp2l.c: New file.
6956
6957         New module 'exp2l'.
6958         * lib/math.in.h (exp2l): New declaration.
6959         * lib/exp2l.c: New file.
6960         * lib/expl-table.c: New file, extracted from lib/expl.c.
6961         * lib/expl.c (gl_expl_table): New declaration.
6962         (expl): Remove expl_table. Update reference.
6963         * m4/exp2l.m4: New file.
6964         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6966         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6967         * modules/exp2l: New file.
6968         * modules/expl (Files): Add lib/expl-table.c.
6969         (configure.ac): Compile also expl-table.c.
6970         * tests/test-math-c++.cc: Check the declaration of exp2l.
6971         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6972         problem.
6973
6974 2012-03-08  Bruno Haible  <bruno@clisp.org>
6975
6976         Tests for module 'exp2f'.
6977         * modules/exp2f-tests: New file.
6978         * tests/test-exp2f.c: New file.
6979
6980         New module 'exp2f'.
6981         * lib/math.in.h (exp2f): New declaration.
6982         * lib/exp2f.c: New file.
6983         * m4/exp2f.m4: New file.
6984         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6986         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6987         * modules/exp2f: New file.
6988         * tests/test-math-c++.cc: Check the declaration of exp2f.
6989         * doc/posix-functions/exp2f.texi: Mention the new module and the
6990         IRIX problem.
6991
6992 2012-03-08  Bruno Haible  <bruno@clisp.org>
6993
6994         Tests for module 'exp2'.
6995         * modules/exp2-tests: New file.
6996         * tests/test-exp2.c: New file.
6997         * tests/test-exp2.h: New file.
6998
6999         New module 'exp2'.
7000         * lib/math.in.h (exp2): New declaration.
7001         * lib/exp2.c: New file.
7002         * m4/exp2.m4: New file.
7003         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7005         REPLACE_EXP2.
7006         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7007         REPLACE_EXP2.
7008         * modules/exp2: New file.
7009         * tests/test-math-c++.cc: Check the declaration of exp2.
7010         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7011         and OpenBSD problems.
7012
7013 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7014
7015         savedir: fix comment typo
7016         * lib/savedir.c (savedirstream): Fix typo in comment.
7017
7018 2012-03-08  Bruno Haible  <bruno@clisp.org>
7019
7020         test-readtokens.c: use const; remove unwarranted cast
7021         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7022
7023 2012-03-08  Bruno Haible  <bruno@clisp.org>
7024
7025         fmal: Avoid compilation error on AIX.
7026         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7027         AIX 5.2..7.1.
7028
7029 2012-03-08  Bruno Haible  <bruno@clisp.org>
7030
7031         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7032         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7033         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7034         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7035         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7036         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7037         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7038
7039 2012-03-08  Bruno Haible  <bruno@clisp.org>
7040
7041         remainderf: Override buggy system function on IRIX 6.5.
7042         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7043         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7044         when it exists.
7045         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7046
7047 2012-03-08  Jim Meyering  <meyering@redhat.com>
7048
7049         test-readtokens.c: avoid const-related compilation warnings
7050         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7051
7052 2012-03-07  Jim Meyering  <meyering@redhat.com>
7053             Bruno Haible  <bruno@clisp.org>
7054
7055         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7056         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7057         tests/randomd.c.
7058         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7059         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7060         tests/randoml.c.
7061         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7062
7063 2012-03-07  Bruno Haible  <bruno@clisp.org>
7064
7065         expm1l: Avoid compilation error on AIX.
7066         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7067         AIX 5.2..7.1.
7068
7069 2012-03-07  Bruno Haible  <bruno@clisp.org>
7070
7071         expm1l: Don't override undeclared system function on IRIX 6.5.
7072         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7073         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7074         it exists. Set HAVE_DECL_EXPM1L.
7075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7076         HAVE_EXPM1L.
7077         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7078         HAVE_EXPM1L.
7079         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7080
7081 2012-03-07  Bruno Haible  <bruno@clisp.org>
7082
7083         remainderl: Don't override undeclared system function on IRIX 6.5.
7084         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7085         HAVE_REMAINDERL.
7086         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7087         declared when it exists. Set HAVE_DECL_REMAINDERL.
7088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7089         not HAVE_REMAINDERL.
7090         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7091         HAVE_REMAINDERL.
7092         * doc/posix-functions/remainderl.texi: Mention missing declaration
7093         problem.
7094
7095 2012-03-07  Bruno Haible  <bruno@clisp.org>
7096
7097         rintf: Don't override undeclared system function on IRIX 6.5.
7098         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7099         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7100         exists. Set HAVE_DECL_RINTF.
7101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7102         HAVE_RINTF.
7103         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7104         HAVE_RINTF.
7105         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7106
7107 2012-03-07  Bruno Haible  <bruno@clisp.org>
7108
7109         roundl: Avoid compilation error on AIX.
7110         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7111         AIX 5.2..7.1.
7112
7113 2012-03-07  Bruno Haible  <bruno@clisp.org>
7114
7115         roundl: Don't override undeclared system function on IRIX 6.5.
7116         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7117         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7118         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7119         * modules/roundl (configure.ac): For replacement code, test
7120         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7121         (Depends-on): Update conditions.
7122         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7123
7124 2012-03-07  Bruno Haible  <bruno@clisp.org>
7125
7126         roundf: Don't override undeclared system function on IRIX 6.5.
7127         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7128         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7129         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7130         * modules/roundf (configure.ac): For replacement code, test
7131         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7132         (Depends-on): Update conditions.
7133         * modules/roundf-ieee (Depends-on): Update conditions.
7134         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7135
7136 2012-03-07  Bruno Haible  <bruno@clisp.org>
7137
7138         round: Don't override undeclared system function on IRIX 6.5.
7139         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7140         argument.
7141         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7142         also when it is not declared. Set HAVE_ROUND. For replacement code,
7143         test HAVE_ROUND, not HAVE_DECL_ROUND.
7144         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7145         not HAVE_DECL_ROUND.
7146         (Depends-on): Update conditions.
7147         * modules/round-ieee (Depends-on): Update conditions.
7148         * doc/posix-functions/round.texi: Mention the IRIX problem.
7149
7150 2012-03-07  Bruno Haible  <bruno@clisp.org>
7151
7152         copysignf: Don't override undeclared system function on IRIX 6.5.
7153         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7154         HAVE_COPYSIGNF.
7155         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7156         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7158         not HAVE_COPYSIGNF.
7159         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7160         HAVE_COPYSIGNF.
7161         * doc/posix-functions/copysignf.texi: Mention missing declaration
7162         problem.
7163
7164 2012-03-07  Jim Meyering  <meyering@redhat.com>
7165
7166         readtokens: add tests
7167         * modules/readtokens-tests: New file.
7168         * tests/test-readtokens.c: New file.
7169
7170 2012-03-07  Jim Meyering  <meyering@redhat.com>
7171
7172         quotearg: the module must now include quote.h
7173         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7174         So must the module.
7175         * modules/quotearg (Files): Add quote.h.
7176
7177 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7178
7179         readtokens: avoid core dumps with unusual calling patterns
7180         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7181         * lib/readtokens.c: Include limits.h.
7182         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7183         (readtoken): Don't cache the delimiters; the cache code was buggy
7184         if !delim && saved_delim, or if the new n_delim differs from the old.
7185         Also, it wasn't thread-safe.
7186
7187 2012-03-07  Bruno Haible  <bruno@clisp.org>
7188
7189         quote: Adhere to common module description layout.
7190         * modules/quote (Makefile.am): Add back empty section.
7191
7192 2012-03-06  Akim Demaille  <demaille@gostai.com>
7193
7194         quote: fuse into quotearg
7195         This patch is made for the benefit of Bison.
7196         quote does not leave the choice of the quoting style to the user.
7197         quoting_style provides poor customizability, yet quoting_options,
7198         which is very rich, is hidden inside quotearg.c.  So in order to
7199         allow quote customization, move its implementation to quotearg.c.
7200         * lib/quote.c: Remove.
7201         * modules/quote: Adjust.
7202         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7203         warning: provide all the members of literal structs.
7204         (quote_quoting_options): New.
7205         (quote, quote_n): Import implementation from quote.c.
7206         * lib/quote.h: Import the comments from quote.c.
7207         (quote_quoting_options): New.
7208
7209 2012-03-06  Bruno Haible  <bruno@clisp.org>
7210
7211         Tests for module 'expm1l-ieee'.
7212         * modules/expm1l-ieee-tests: New file.
7213         * tests/test-expm1l-ieee.c: New file.
7214
7215         New module 'expm1l-ieee'.
7216         * modules/expm1l-ieee: New file.
7217
7218         Tests for module 'expm1f-ieee'.
7219         * modules/expm1f-ieee-tests: New file.
7220         * tests/test-expm1f-ieee.c: New file.
7221
7222         New module 'expm1f-ieee'.
7223         * modules/expm1f-ieee: New file.
7224
7225         Tests for module 'expm1-ieee'.
7226         * modules/expm1-ieee-tests: New file.
7227         * tests/test-expm1-ieee.c: New file.
7228         * tests/test-expm1-ieee.h: New file.
7229
7230         New module 'expm1-ieee'.
7231         * modules/expm1-ieee: New file.
7232         * m4/expm1-ieee.m4: New file.
7233         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7234         whether expm1 works with a minus zero argument. Replace it if not.
7235         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7237         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7238         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7239         (Depends-on): Update conditions.
7240         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7241         AIX problem.
7242
7243 2012-03-06  Bruno Haible  <bruno@clisp.org>
7244
7245         Work around expm1f bug on IRIX 6.5.
7246         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7247         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7248         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7249         not work.
7250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7251         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7252         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7253         (Depends-on): Update conditions.
7254         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7255
7256 2012-03-06  Bruno Haible  <bruno@clisp.org>
7257
7258         Tests for module 'expm1l'.
7259         * modules/expm1l-tests: New file.
7260         * tests/test-expm1l.c: New file.
7261
7262         New module 'expm1l'.
7263         * lib/math.in.h (expm1l): New declaration.
7264         * lib/expm1l.c: New file.
7265         * m4/expm1l.m4: New file.
7266         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7268         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7269         * modules/expm1l: New file.
7270         * tests/test-math-c++.cc: Check the declaration of expm1l.
7271         * doc/posix-functions/expm1l.texi: Mention the new module.
7272
7273 2012-03-06  Bruno Haible  <bruno@clisp.org>
7274
7275         Tests for module 'expm1f'.
7276         * modules/expm1f-tests: New file.
7277         * tests/test-expm1f.c: New file.
7278
7279         New module 'expm1f'.
7280         * lib/math.in.h (expm1f): New declaration.
7281         * lib/expm1f.c: New file.
7282         * m4/expm1f.m4: New file.
7283         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7285         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7286         * modules/expm1f: New file.
7287         * tests/test-math-c++.cc: Check the declaration of expm1f.
7288         * doc/posix-functions/expm1f.texi: Mention the new module.
7289
7290 2012-03-06  Bruno Haible  <bruno@clisp.org>
7291
7292         Tests for module 'expm1'.
7293         * modules/expm1-tests: New file.
7294         * tests/test-expm1.c: New file.
7295         * tests/test-expm1.h: New file.
7296
7297         New module 'expm1'.
7298         * lib/math.in.h (expm1): New declaration.
7299         * lib/expm1.c: New file.
7300         * m4/expm1.m4: New file.
7301         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7303         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7304         * modules/expm1: New file.
7305         * tests/test-math-c++.cc: Check the declaration of expm1.
7306         * doc/posix-functions/expm1.texi: Mention the new module.
7307
7308 2012-03-06  Bruno Haible  <bruno@clisp.org>
7309
7310         math: Ensure declarations of math functions.
7311         * modules/acosf (Depends-on): Add 'extensions'.
7312         * modules/asinf (Depends-on): Likewise.
7313         * modules/atan2f (Depends-on): Likewise.
7314         * modules/atanf (Depends-on): Likewise.
7315         * modules/cbrt (Depends-on): Likewise.
7316         * modules/cbrtf (Depends-on): Likewise.
7317         * modules/cbrtl (Depends-on): Likewise.
7318         * modules/copysignf (Depends-on): Likewise.
7319         * modules/copysignl (Depends-on): Likewise.
7320         * modules/cosf (Depends-on): Likewise.
7321         * modules/coshf (Depends-on): Likewise.
7322         * modules/expf (Depends-on): Likewise.
7323         * modules/fabsf (Depends-on): Likewise.
7324         * modules/fabsl (Depends-on): Likewise.
7325         * modules/fmaf (Depends-on): Likewise.
7326         * modules/fmal (Depends-on): Likewise.
7327         * modules/fmodf (Depends-on): Likewise.
7328         * modules/fmodl (Depends-on): Likewise.
7329         * modules/frexpf (Depends-on): Likewise.
7330         * modules/frexpl (Depends-on): Likewise.
7331         * modules/hypot (Depends-on): Likewise.
7332         * modules/hypotf (Depends-on): Likewise.
7333         * modules/hypotl (Depends-on): Likewise.
7334         * modules/ldexpf (Depends-on): Likewise.
7335         * modules/ldexpl (Depends-on): Likewise.
7336         * modules/log10f (Depends-on): Likewise.
7337         * modules/log10l (Depends-on): Likewise.
7338         * modules/log1p (Depends-on): Likewise.
7339         * modules/logb (Depends-on): Likewise.
7340         * modules/logf (Depends-on): Likewise.
7341         * modules/modff (Depends-on): Likewise.
7342         * modules/modfl (Depends-on): Likewise.
7343         * modules/powf (Depends-on): Likewise.
7344         * modules/remainderf (Depends-on): Likewise.
7345         * modules/remainderl (Depends-on): Likewise.
7346         * modules/rintf (Depends-on): Likewise.
7347         * modules/rintl (Depends-on): Likewise.
7348         * modules/sinf (Depends-on): Likewise.
7349         * modules/sinhf (Depends-on): Likewise.
7350         * modules/sqrtf (Depends-on): Likewise.
7351         * modules/tanf (Depends-on): Likewise.
7352         * modules/tanhf (Depends-on): Likewise.
7353         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7354         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7355         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7356         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7357         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7358         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7359         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7360         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7361         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7362         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7363         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7364         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7365         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7366         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7367         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7368         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7369         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7370         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7371         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7372         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7373         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7374         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7375         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7376         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7378         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7379         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7380         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7381         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7382         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7383         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7384         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7385         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7386         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7387         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7388         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7389         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7390         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7391         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7392         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7393         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7394
7395 2012-03-06  Bruno Haible  <bruno@clisp.org>
7396
7397         math: Update module names in warnings.
7398         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7399         tanl): Use specific module name in warn-on-use warning.
7400
7401 2012-03-06  Bruno Haible  <bruno@clisp.org>
7402
7403         expl: Simplify computation.
7404         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7405
7406 2012-03-05  Bruno Haible  <bruno@clisp.org>
7407
7408         exp* tests: More tests.
7409         * tests/test-exp.h: New file.
7410         * tests/test-exp.c: Include <float.h> and test-exp.h.
7411         (main): Invoke test_function.
7412         * tests/test-expf.c: Include <float.h> and test-exp.h.
7413         (main): Invoke test_function.
7414         * tests/test-expl.c: Include <float.h> and test-exp.h.
7415         (main): Invoke test_function.
7416         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7417         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7418         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7419         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7420         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7421         (Depends-on): Add 'float'.
7422         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7423
7424         expl: Fix precision of computed result.
7425         * lib/expl.c: Completely rewritten.
7426         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7427         (Maintainer): Add me.
7428         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7429
7430 2012-03-05  Bruno Haible  <bruno@clisp.org>
7431
7432         cbrt* tests: More tests.
7433         * tests/test-cbrt.h: New file.
7434         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7435         (main): Invoke test_function.
7436         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7437         (main): Invoke test_function.
7438         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7439         (main): Invoke test_function.
7440         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7441         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7442         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7443         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7444         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7445         (Depends-on): Add 'float'.
7446         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7447
7448 2012-03-05  Bruno Haible  <bruno@clisp.org>
7449
7450         hypot* tests: More tests.
7451         * tests/test-hypot.h: New file, partially extracted from
7452         tests/test-hypotl.c.
7453         * tests/test-hypot.c: Include test-hypot.h.
7454         (main): Invoke test_function.
7455         * tests/test-hypotf.c: Include test-hypot.h.
7456         (main): Invoke test_function.
7457         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7458         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7459         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7460         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7461         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7462         tests/randomf.c.
7463         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7464         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7465         tests/randoml.c.
7466         (Depends-on): Add 'fpucw', 'float'.
7467         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7468
7469 2012-03-05  Bruno Haible  <bruno@clisp.org>
7470
7471         fpucw: Doc about FreeBSD.
7472         * lib/fpucw.h: Mention FreeBSD in comments.
7473
7474 2012-03-04  Bruno Haible  <bruno@clisp.org>
7475
7476         sqrt* tests: More tests.
7477         * tests/test-sqrt.h: New file.
7478         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7479         (main): Invoke test_function.
7480         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7481         (main): Invoke test_function.
7482         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7483         (main): Invoke test_function.
7484         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7485         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7486         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7487         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7488         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7489         (Depends-on): Add 'float'.
7490         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7491
7492 2012-03-04  Bruno Haible  <bruno@clisp.org>
7493
7494         remainder* tests: More tests.
7495         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7496         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7497         (main): Invoke test_function.
7498         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7499         (main): Invoke test_function.
7500         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7501         (main): Invoke test_function.
7502         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7503         tests/randomd.c.
7504         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7505         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7506         tests/randomf.c.
7507         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7508         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7509         tests/randoml.c.
7510         (Depends-on): Add 'float'.
7511         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7512
7513 2012-03-04  Bruno Haible  <bruno@clisp.org>
7514
7515         remainder, remainderf, remainderl: Fix computation for large quotients.
7516         * lib/remainder.c: Completely rewritten.
7517         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7518         USE_FLOAT.
7519         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7520         USE_LONG_DOUBLE.
7521         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7522         isnand, isinf. Remove round, fma.
7523         * modules/remainderf (Files): Add lib/remainder.c.
7524         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7525         Remove roundf, fmaf.
7526         * modules/remainderl (Files): Add lib/remainder.c.
7527         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7528         isinf. Remove roundl, fmal.
7529         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7530         REMAINDER_LIBM.
7531         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7532         REMAINDERF_LIBM.
7533         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7534         REMAINDERL_LIBM.
7535
7536 2012-03-04  Bruno Haible  <bruno@clisp.org>
7537
7538         fmod* tests: More tests.
7539         * tests/test-fmod.h (my_ldexp): New function.
7540         (test_function): Reduce amount of random numbers to test. Add tests
7541         of very large quotients x / y.
7542         * tests/test-fmod.c (MAX_EXP): New macro.
7543         * tests/test-fmodf.c (MAX_EXP): Likewise.
7544         * tests/test-fmodl.c (MAX_EXP): Likewise.
7545
7546 2012-03-04  Bruno Haible  <bruno@clisp.org>
7547
7548         fmod, fmodl: Fix computation for large quotients x / y.
7549         * lib/fmod.c: Completely rewritten.
7550         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7551         USE_LONG_DOUBLE.
7552         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7553         isnand. Remove fma.
7554         * modules/fmodl (Files): Add lib/fmod.c.
7555         (Depends-on): Add float, isfinite, signbit, fabsl,
7556         frexpl, ldexpl, isnanl. Remove fma.
7557         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7558         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7559
7560 2012-03-03  Bruno Haible  <bruno@clisp.org>
7561
7562         fmod* tests: More tests.
7563         * tests/test-fmod.h: New file.
7564         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7565         (main): Invoke test_function.
7566         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7567         (main): Invoke test_function.
7568         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7569         (main): Invoke test_function.
7570         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7571         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7572         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7573         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7574         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7575         (Depends-on): Add 'float'.
7576         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7577
7578 2012-03-03  Bruno Haible  <bruno@clisp.org>
7579
7580         rint* tests: More tests.
7581         * tests/test-rint.h: New file, partially extracted from
7582         tests/test-rintl.c.
7583         * tests/test-rint.c: Include test-rint.h.
7584         (main): Invoke test_function.
7585         * tests/test-rintf.c: Include test-rint.h.
7586         (main): Invoke test_function.
7587         * tests/test-rintl.c: Include test-rint.h.
7588         (main): Invoke test_function.
7589         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7590         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7591         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7592         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7593         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7594         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7595
7596 2012-03-03  Bruno Haible  <bruno@clisp.org>
7597
7598         modf* tests: More tests.
7599         * tests/test-modf.h: New file.
7600         * tests/test-modf.c: Include <float.h> and test-modf.h.
7601         (main): Invoke test_function.
7602         * tests/test-modff.c: Include <float.h> and test-modf.h.
7603         (main): Invoke test_function.
7604         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7605         (main): Invoke test_function.
7606         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7607         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7608         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7609         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7610         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7611         (Depends-on): Add 'float'.
7612         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7613
7614 2012-03-03  Bruno Haible  <bruno@clisp.org>
7615
7616         fabs* tests: More tests.
7617         * tests/test-fabs.h: New file, partially extracted from
7618         tests/test-fabsl.c.
7619         * tests/test-fabs.c (RANDOM): New macro.
7620         * tests/test-fabsf.c (RANDOM): New macro.
7621         * tests/test-fabsl.c (RANDOM): New macro.
7622         * modules/fabs-tests (Files): Add tests/randomd.c.
7623         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7624         * modules/fabsf-tests (Files): Add tests/randomf.c.
7625         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7626         * modules/fabsl-tests (Files): Add tests/randoml.c.
7627         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7628
7629 2012-03-03  Bruno Haible  <bruno@clisp.org>
7630
7631         ldexp* tests: More tests.
7632         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7633         * tests/test-ldexp.c (RANDOM): New macro.
7634         * tests/test-ldexpf.c (RANDOM): New macro.
7635         * tests/test-ldexpl.c (RANDOM): New macro.
7636         * modules/ldexp-tests (Files): Add tests/randomd.c.
7637         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7638         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7639         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7640         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7641         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7642
7643 2012-03-03  Bruno Haible  <bruno@clisp.org>
7644
7645         frexp* tests: More tests.
7646         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7647         * tests/test-frexp.c (RANDOM): New macro.
7648         * tests/test-frexpf.c (RANDOM): New macro.
7649         * tests/test-frexpl.c (RANDOM): New macro.
7650         * modules/frexp-tests (Files): Add tests/randomd.c.
7651         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7652         * modules/frexpf-tests (Files): Add tests/randomf.c.
7653         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7654         * modules/frexpl-tests (Files): Add tests/randoml.c.
7655         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7656
7657 2012-03-03  Bruno Haible  <bruno@clisp.org>
7658
7659         Support for pseudo-random numbers in tests.
7660         * tests/randomf.c: New file.
7661         * tests/randomd.c: New file.
7662         * tests/randoml.c: New file.
7663         * tests/macros.h (randomf, randomd, randoml): New declarations.
7664
7665 2012-03-03  Bruno Haible  <bruno@clisp.org>
7666
7667         frexp* tests: Refactor.
7668         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7669         * tests/test-frexp.c: Include and use it.
7670         * tests/test-frexpf.c: Likewise.
7671         * tests/test-frexpl.c: Likewise.
7672         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7673         * modules/frexpf-tests (Files): Likewise.
7674         * modules/frexpl-tests (Files): Likewise.
7675
7676 2012-03-02  Jim Meyering  <meyering@redhat.com>
7677
7678         maint: don't specify XZ_OPT=-9ev in dist-related rule
7679         Using xz's -9 option is warranted only if you have a very large
7680         tarball (see xz's documentation for the sizes vs. presets), and
7681         requires 64MiB of memory at decompression time.
7682         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7683         Automake's default of just "-e" is fine.  Override on a
7684         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7685
7686 2012-03-01  Eric Blake  <eblake@redhat.com>
7687
7688         maint.mk: allow announcement for non-gnulib project
7689         * maint.mk (announcement): Skip gnulib version if not used.
7690
7691 2012-03-01  Jim Meyering  <meyering@redhat.com>
7692
7693         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7694         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7695         envvar settings cannot interfere.  Otherwise, setting envvars like
7696         prohibit=foo require=bar, etc. would cause spurious test failures.
7697
7698 2012-03-01  Eric Blake  <eblake@redhat.com>
7699
7700         maint.mk: add per-line exclusions to prohibitions
7701         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7702         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7703         (sc_const_long_option): Use it.
7704
7705 2012-03-01  Bruno Haible  <bruno@clisp.org>
7706
7707         Tests for module 'expl-ieee'.
7708         * modules/expl-ieee-tests: New file.
7709         * tests/test-expl-ieee.c: New file.
7710
7711         New module 'expl-ieee'.
7712         * modules/expl-ieee: New file.
7713
7714         Tests for module 'exp-ieee'.
7715         * modules/exp-ieee-tests: New file.
7716         * tests/test-exp-ieee.c: New file.
7717
7718         New module 'exp-ieee'.
7719         * modules/exp-ieee: New file.
7720
7721         Tests for module 'expf-ieee'.
7722         * modules/expf-ieee-tests: New file.
7723         * tests/test-expf-ieee.c: New file.
7724         * tests/test-exp-ieee.h: New file.
7725
7726         New module 'expf-ieee'.
7727         * modules/expf-ieee: New file.
7728
7729 2012-02-29  Bruno Haible  <bruno@clisp.org>
7730
7731         cbrtl-ieee: Work around test failure on IRIX 6.5.
7732         * m4/cbrtl-ieee.m4: New file.
7733         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7734         test whether cbrtl works with a minus zero argument. Replace it if not.
7735         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7737         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7738         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7739         (Depends-on): Update conditions.
7740         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7741         m4/signbit.m4.
7742         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7743         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7744         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7745
7746         Tests for module 'cbrtl-ieee'.
7747         * modules/cbrtl-ieee-tests: New file.
7748         * tests/test-cbrtl-ieee.c: New file.
7749
7750         New module 'cbrtl-ieee'.
7751         * modules/cbrtl-ieee: New file.
7752
7753         Tests for module 'cbrt-ieee'.
7754         * modules/cbrt-ieee-tests: New file.
7755         * tests/test-cbrt-ieee.c: New file.
7756
7757         New module 'cbrt-ieee'.
7758         * modules/cbrt-ieee: New file.
7759
7760         Tests for module 'cbrtf-ieee'.
7761         * modules/cbrtf-ieee-tests: New file.
7762         * tests/test-cbrtf-ieee.c: New file.
7763         * tests/test-cbrt-ieee.h: New file.
7764
7765         New module 'cbrtf-ieee'.
7766         * modules/cbrtf-ieee: New file.
7767
7768 2012-02-29  Bruno Haible  <bruno@clisp.org>
7769
7770         cbrtf: Work around bug in IRIX 6.5 system function.
7771         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7772         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7773         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7774         work.
7775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7776         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7777         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7778         (Depends-on): Update conditions.
7779         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7780
7781 2012-02-29  Bruno Haible  <bruno@clisp.org>
7782
7783         Tests for module 'cbrtl'.
7784         * modules/cbrtl-tests: New file.
7785         * tests/test-cbrtl.c: New file.
7786
7787         New module 'cbrtl'.
7788         * lib/math.in.h (cbrtl): New declaration.
7789         * lib/cbrtl.c: New file.
7790         * m4/cbrtl.m4: New file.
7791         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7793         HAVE_DECL_CBRTL.
7794         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7795         HAVE_DECL_CBRTL.
7796         * modules/cbrtl: New file.
7797         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7798         * doc/posix-functions/cbrtl.texi: Mention the new module.
7799
7800 2012-02-29  Bruno Haible  <bruno@clisp.org>
7801
7802         Tests for module 'cbrtf'.
7803         * modules/cbrtf-tests: New file.
7804         * tests/test-cbrtf.c: New file.
7805
7806         New module 'cbrtf'.
7807         * lib/math.in.h (cbrtf): New declaration.
7808         * lib/cbrtf.c: New file.
7809         * m4/cbrtf.m4: New file.
7810         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7812         HAVE_DECL_CBRTF.
7813         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7814         HAVE_DECL_CBRTF.
7815         * modules/cbrtf: New file.
7816         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7817         * doc/posix-functions/cbrtf.texi: Mention the new module.
7818
7819 2012-02-29  Bruno Haible  <bruno@clisp.org>
7820
7821         cbrt: Provide replacement on MSVC and Minix.
7822         * lib/math.in.h (cbrt): New declaration.
7823         * lib/cbrt.c: New file.
7824         * m4/cbrt.m4: New file.
7825         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7827         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7828         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7829         (Depends-on): Add dependencies.
7830         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7831         * tests/test-math-c++.cc: Check the declaration of cbrt.
7832         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7833         replacement.
7834
7835 2012-02-29  Bruno Haible  <bruno@clisp.org>
7836
7837         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7838         * m4/hypotl-ieee.m4: New file.
7839         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7840         test whether hypotl works with mixed NaN and Infinity arguments.
7841         Replace it if not.
7842         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7844         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7845         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7846         (Depends-on): Update conditions.
7847         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7848         (Depends-on): Add hypot-ieee.
7849         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7850         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7851
7852         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7853         * m4/hypotf-ieee.m4: New file.
7854         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7855         test whether hypotf works with mixed NaN and Infinity arguments.
7856         Replace it if not.
7857         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7858         (Depends-on): Add hypot-ieee.
7859         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7860         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7861
7862         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7863         * lib/math.in.h (hypot): New declaration.
7864         * lib/hypot.c: New file.
7865         * m4/hypot-ieee.m4: New file.
7866         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7867         whether hypot works with mixed NaN and Infinity arguments. Replace it
7868         if not.
7869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7870         REPLACE_HYPOT.
7871         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7872         * modules/hypot (Files): Add lib/hypot.c.
7873         (Depends-on): Add dependencies.
7874         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7875         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7876         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7877         * tests/test-math-c++.cc: Check the declaration of hypot.
7878         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7879
7880         Tests for module 'hypotl-ieee'.
7881         * modules/hypotl-ieee-tests: New file.
7882         * tests/test-hypotl-ieee.c: New file.
7883
7884         New module 'hypotl-ieee'.
7885         * modules/hypotl-ieee: New file.
7886
7887         Tests for module 'hypot-ieee'.
7888         * modules/hypot-ieee-tests: New file.
7889         * tests/test-hypot-ieee.c: New file.
7890
7891         New module 'hypot-ieee'.
7892         * modules/hypot-ieee: New file.
7893
7894         Tests for module 'hypotf-ieee'.
7895         * modules/hypotf-ieee-tests: New file.
7896         * tests/test-hypotf-ieee.c: New file.
7897         * tests/test-hypot-ieee.h: New file.
7898
7899         New module 'hypotf-ieee'.
7900         * modules/hypotf-ieee: New file.
7901
7902 2012-02-29  Bruno Haible  <bruno@clisp.org>
7903
7904         Remove unused variables.
7905         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7906         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7907         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7908         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7909
7910 2012-02-29  Eric Blake  <eblake@redhat.com>
7911
7912         termios: fix pid_t always, not just for tcgetsid
7913         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7914         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7915         just when building tcgetsid.
7916
7917 2012-02-29  Bruno Haible  <bruno@clisp.org>
7918
7919         Tests for module 'hypotl'.
7920         * modules/hypotl-tests: New file.
7921         * tests/test-hypotl.c: New file.
7922
7923         New module 'hypotl'.
7924         * lib/math.in.h (hypotl): New declaration.
7925         * lib/hypotl.c: New file.
7926         * m4/hypotl.m4: New file.
7927         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7929         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7930         * modules/hypotl: New file.
7931         * tests/test-math-c++.cc: Check the hypotl declaration.
7932         * doc/posix-functions/hypotl.texi: Mention the new module.
7933
7934 2012-02-29  Eric Blake  <eblake@redhat.com>
7935
7936         tcgetsid: fix cygwin header bug
7937         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7938
7939         docs: update cygwin progress
7940         * doc/posix-functions/llround.texi (llround): Added in cygwin
7941         1.7.8.
7942         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7943         * doc/glibc-functions/program_invocation_name.texi
7944         (program_invocation_name): Likewise.
7945         * doc/glibc-functions/program_invocation_short_name.texi
7946         (program_invocation_short_name): Likewise.
7947         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7948         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7949         Likewise.
7950         * doc/posix-functions/pthread_spin_destroy.texi
7951         (pthread_spin_destroy): Added in cygwin 1.7.10.
7952         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7953         Likewise.
7954         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7955         Likewise.
7956         * doc/posix-functions/pthread_spin_trylock.texi
7957         (pthread_spin_trylock): Likewise.
7958         * doc/posix-functions/pthread_spin_unlock.texi
7959         (pthread_spin_unlock): Likewise.
7960         * doc/posix-functions/pthread_setschedprio.texi
7961         (pthread_setschedprio): Likewise.
7962         * doc/posix-functions/pthread_attr_getstack.texi
7963         (pthread_attr_getstack): Likewise.
7964         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7965         (pthread_attr_getstackaddr): Likewise.
7966         * doc/glibc-functions/pthread_getattr_np.texi
7967         (pthread_getattr_np): Likewise.
7968         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7969         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7970         * doc/posix-functions/clock_settime.texi (clock_settime):
7971         Likewise.
7972         * doc/posix-functions/pthread_attr_getguardsize.texi
7973         (pthread_attr_getguardsize): Likewise.
7974         * doc/posix-functions/pthread_attr_setguardsize.texi
7975         (pthread_attr_setguardsize): Likewise.
7976         * doc/posix-functions/pthread_attr_setstack.texi
7977         (pthread_attr_setstack): Likewise.
7978         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7979         (pthread_attr_setstackaddr): Likewise.
7980         * doc/posix-functions/clock_getcpuclockid.texi
7981         (clock_getcpuclockid): Likewise.
7982         * doc/posix-functions/pthread_getcpuclockid.texi
7983         (pthread_getcpuclockid): Likewise.
7984         * doc/glibc-functions/error.texi (error): Likewise.
7985         * doc/glibc-functions/error_at_line.texi (error_at_line):
7986         Likewise.
7987         * doc/glibc-functions/error_message_count.texi
7988         (error_message_count): Likewise.
7989         * doc/glibc-functions/error_one_per_line.texi
7990         (error_one_per_line): Likewise.
7991         * doc/glibc-functions/error_print_progname.texi
7992         (error_print_progname): Likewise.
7993         * doc/posix-functions/pthread_condattr_getclock.texi
7994         (pthread_condattr_getclock): Likewise.
7995         * doc/posix-functions/pthread_condattr_setclock.texi
7996         (pthread_condattr_setclock): Likewise.
7997         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7998         Likewise.
7999         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8000         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8001         * doc/glibc-functions/get_current_dir_name.texi
8002         (get_current_dir_name): Likewise.
8003         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8004         Likewise.
8005         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8006         wrong return type.
8007         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8008         1.7.11.
8009
8010 2012-02-29  Bruno Haible  <bruno@clisp.org>
8011
8012         Tests for module 'hypotf'.
8013         * modules/hypotf-tests: New file.
8014         * tests/test-hypotf.c: New file.
8015
8016         New module 'hypotf'.
8017         * lib/math.in.h (hypotf): New declaration.
8018         * lib/hypotf.c: New file.
8019         * m4/hypotf.m4: New file.
8020         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8022         REPLACE_HYPOTF.
8023         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8024         REPLACE_HYPOTF.
8025         * modules/hypotf: New file.
8026         * tests/test-math-c++.cc: Check the hypotf declaration.
8027         * doc/posix-functions/hypotf.texi: Mention the new module.
8028
8029         hypot: Prepare for hypotf module.
8030         * m4/hypot.m4: New file.
8031         * modules/hypot (Files): Add m4/hypot.m4.
8032         (configure.ac): Invoke gl_FUNC_HYPOT.
8033
8034 2012-02-29  Bruno Haible  <bruno@clisp.org>
8035
8036         hypot tests: More tests.
8037         * tests/test-hypot.c: Include <float.h>.
8038         (main): Add tests about overflow and underflow.
8039
8040 2012-02-29  Bruno Haible  <bruno@clisp.org>
8041
8042         math code: Add comments.
8043         * lib/acosl.c: Add comment about related glibc source files.
8044         * lib/asinl.c: Likewise.
8045         * lib/atanl.c: Likewise.
8046         * lib/expl.c: Likewise.
8047         * lib/logl.c: Likewise.
8048         * lib/sincosl.c: Likewise.
8049         * lib/sinl.c: Likewise.
8050         * lib/tanl.c: Likewise.
8051         * lib/trigl.c: Likewise.
8052         * lib/cosl.c: Likewise. Fix comments.
8053
8054 2012-02-28  Bruno Haible  <bruno@clisp.org>
8055
8056         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8057         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8058         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8059         HUGE_VALL are defined.
8060         (numeric_equald): Renamed from numeric_equal.
8061         (numeric_equalf, numeric_equall): New functions.
8062         (main): Check also HUGE_VALF, HUGE_VALL.
8063         * modules/math-tests (Files): Add tests/macros.h.
8064         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8065         HUGE_VALL.
8066
8067 2012-02-28  Bruno Haible  <bruno@clisp.org>
8068
8069         doc: Move ISO C11 feature notes into POSIX chapters.
8070         * doc/posix-functions/aligned_alloc.texi: Renamed from
8071         doc/glibc-functions/aligned_alloc.texi.
8072         * doc/posix-functions/quick_exit.texi: Renamed from
8073         doc/glibc-functions/quick_exit.texi.
8074         * doc/posix-headers/uchar.texi: Renamed from
8075         doc/glibc-headers/uchar.texi.
8076         * doc/posix-functions/c16rtomb.texi: Renamed from
8077         doc/glibc-functions/c16rtomb.texi.
8078         * doc/posix-functions/c32rtomb.texi: Renamed from
8079         doc/glibc-functions/c32rtomb.texi.
8080         * doc/posix-functions/mbrtoc16.texi: Renamed from
8081         doc/glibc-functions/mbrtoc16.texi.
8082         * doc/posix-functions/mbrtoc32.texi: Renamed from
8083         doc/glibc-functions/mbrtoc32.texi.
8084         * doc/gnulib.texi: Update.
8085         (Glibc uchar.h): Remove section.
8086         Suggested by Eric Blake.
8087
8088 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8089
8090         stdnoreturn: port to MSVC better
8091         MSVC standard headers use __declspec(noreturn), so #define noreturn
8092         to empty on that platform.  Reported by Bruno Haible in
8093         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8094         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8095         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8096
8097 2012-02-28  Bruno Haible  <bruno@clisp.org>
8098
8099         doc: Mention new glibc headers and functions.
8100         * doc/glibc-headers/uchar.texi: New file.
8101         * doc/glibc-functions/aligned_alloc.texi: New file.
8102         * doc/glibc-functions/c16rtomb.texi: New file.
8103         * doc/glibc-functions/c32rtomb.texi: New file.
8104         * doc/glibc-functions/clock_adjtime.texi: New file.
8105         * doc/glibc-functions/fanotify_init.texi: New file.
8106         * doc/glibc-functions/fanotify_mark.texi: New file.
8107         * doc/glibc-functions/inet6_opt_append.texi: New file.
8108         * doc/glibc-functions/inet6_opt_find.texi: New file.
8109         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8110         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8111         * doc/glibc-functions/inet6_opt_init.texi: New file.
8112         * doc/glibc-functions/inet6_opt_next.texi: New file.
8113         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8114         * doc/glibc-functions/inet6_rth_add.texi: New file.
8115         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8116         * doc/glibc-functions/inet6_rth_init.texi: New file.
8117         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8118         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8119         * doc/glibc-functions/inet6_rth_space.texi: New file.
8120         * doc/glibc-functions/login.texi: New file.
8121         * doc/glibc-functions/mbrtoc16.texi: New file.
8122         * doc/glibc-functions/mbrtoc32.texi: New file.
8123         * doc/glibc-functions/name_to_handle_at.texi: New file.
8124         * doc/glibc-functions/ntp_gettimex.texi: New file.
8125         * doc/glibc-functions/open_by_handle_at.texi: New file.
8126         * doc/glibc-functions/prlimit.texi: New file.
8127         * doc/glibc-functions/process_vm_readv.texi: New file.
8128         * doc/glibc-functions/process_vm_writev.texi: New file.
8129         * doc/glibc-functions/recvmmsg.texi: New file.
8130         * doc/glibc-functions/scandirat.texi: New file.
8131         * doc/glibc-functions/sendmmsg.texi: New file.
8132         * doc/glibc-functions/setns.texi: New file.
8133         * doc/glibc-functions/timespec_get.texi: New file.
8134         * doc/gnulib.texi: Include them.
8135         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8136         sections.
8137         Reported by Eric Blake.
8138
8139 2012-02-28  Bruno Haible  <bruno@clisp.org>
8140
8141         Avoid compilation errors with MSVC option -fp:strict.
8142         * lib/floor.c: Use MSVC specific pragma fenv_access.
8143         * lib/ceil.c: Likewise.
8144         * lib/trunc.c: Likewise.
8145         * lib/round.c: Likewise.
8146         * lib/rint.c: Likewise.
8147         * lib/fma.c: Likewise.
8148         * lib/integer_length.c: Likewise.
8149         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8151         * tests/test-floor2.c: Likewise.
8152         * tests/test-floorf2.c: Likewise.
8153         * tests/test-ceil2.c: Likewise.
8154         * tests/test-ceilf2.c: Likewise.
8155         * tests/test-trunc2.c: Likewise.
8156         * tests/test-truncf2.c: Likewise.
8157         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8158
8159 2012-02-27  Bruno Haible  <bruno@clisp.org>
8160
8161         Tests for module 'sqrtl-ieee'.
8162         * modules/sqrtl-ieee-tests: New file.
8163         * tests/test-sqrtl-ieee.c: New file.
8164
8165         New module 'sqrtl-ieee'.
8166         * modules/sqrtl-ieee: New file.
8167
8168         Tests for module 'sqrt-ieee'.
8169         * modules/sqrt-ieee-tests: New file.
8170         * tests/test-sqrt-ieee.c: New file.
8171
8172         New module 'sqrt-ieee'.
8173         * modules/sqrt-ieee: New file.
8174
8175         Tests for module 'sqrtf-ieee'.
8176         * modules/sqrtf-ieee-tests: New file.
8177         * tests/test-sqrtf-ieee.c: New file.
8178         * tests/test-sqrt-ieee.h: New file.
8179
8180         New module 'sqrtf-ieee'.
8181         * modules/sqrtf-ieee: New file.
8182
8183 2012-02-27  Bruno Haible  <bruno@clisp.org>
8184
8185         remainderl-ieee: Work around test failure on OSF/1.
8186         * m4/remainderl-ieee.m4: New file.
8187         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8188         present, test whether remainderl works with a zero second argument.
8189         Replace it if not.
8190         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8192         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8193         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8194         (Depends-on): Update conditions.
8195         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8196         (Depends-on): Add remainder-ieee.
8197         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8198         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8199         module.
8200
8201         remainderf-ieee: Work around test failure on OSF/1.
8202         * m4/remainderf-ieee.m4: New file.
8203         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8204         present, test whether remainderf works with a zero second argument.
8205         Replace it if not.
8206         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8208         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8209         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8210         (Depends-on): Update conditions.
8211         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8212         (Depends-on): Add remainder-ieee.
8213         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8214         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8215         module.
8216
8217         remainder-ieee: Work around test failure on OSF/1.
8218         * m4/remainder-ieee.m4: New file.
8219         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8220         present, test whether remainder works with a zero second argument.
8221         Replace it if not.
8222         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8224         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8225         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8226         (Depends-on): Update dependencies.
8227         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8228         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8229         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8230
8231         Tests for module 'remainderl-ieee'.
8232         * modules/remainderl-ieee-tests: New file.
8233         * tests/test-remainderl-ieee.c: New file.
8234
8235         New module 'remainderl-ieee'.
8236         * modules/remainderl-ieee: New file.
8237
8238         Tests for module 'remainder-ieee'.
8239         * modules/remainder-ieee-tests: New file.
8240         * tests/test-remainder-ieee.c: New file.
8241
8242         New module 'remainder-ieee'.
8243         * modules/remainder-ieee: New file.
8244
8245         Tests for module 'remainderf-ieee'.
8246         * modules/remainderf-ieee-tests: New file.
8247         * tests/test-remainderf-ieee.c: New file.
8248         * tests/test-remainder-ieee.h: New file.
8249
8250         New module 'remainderf-ieee'.
8251         * modules/remainderf-ieee: New file.
8252
8253 2012-02-27  Bruno Haible  <bruno@clisp.org>
8254
8255         modff, modfl: Fix configure syntax error.
8256         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8257         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8258
8259 2012-02-27  Bruno Haible  <bruno@clisp.org>
8260
8261         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8262         * m4/fmodl-ieee.m4: New file.
8263         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8264         whether fmodl works with zero arguments. Replace it if not.
8265         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8266         (Depends-on): Add fmod-ieee.
8267         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8268         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8269
8270         fmodf-ieee: Work around test failure on OSF/1.
8271         * m4/fmodf-ieee.m4: New file.
8272         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8273         whether fmodf works with zero arguments. Replace it if not.
8274         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8276         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8277         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8278         (Depends-on): Update dependencies.
8279         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8280         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8281         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8282
8283         fmodf-ieee: Work around test failure on MSVC 9.
8284         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8285         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8286
8287         fmod-ieee: Work around test failures on OSF/1, mingw.
8288         * m4/fmod-ieee.m4: New file.
8289         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8290         whether fmod works with zero arguments. Replace it if not.
8291         * lib/math.in.h (fmod): New declaration.
8292         * lib/fmod.c: New file.
8293         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8295         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8296         * modules/fmod (Files): Add lib/fmod.c.
8297         (Depends-on): Add math, isinf, trunc, fma.
8298         (configure.ac): Arrange to compile lib/fmod.c if needed.
8299         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8300         m4/signbit.m4.
8301         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8302         * tests/test-math-c++.cc: Check the declaration of fmod.
8303         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8304
8305         fmodl-ieee: Fix test failures.
8306         * lib/fmodl.c (fmodl): Treat Inf specially.
8307         * modules/fmodl (Depends-on): Add isinf.
8308
8309         Tests for module 'fmodl-ieee'.
8310         * modules/fmodl-ieee-tests: New file.
8311         * tests/test-fmodl-ieee.c: New file.
8312
8313         New module 'fmodl-ieee'.
8314         * modules/fmodl-ieee: New file.
8315
8316         Tests for module 'fmod-ieee'.
8317         * modules/fmod-ieee-tests: New file.
8318         * tests/test-fmod-ieee.c: New file.
8319
8320         New module 'fmod-ieee'.
8321         * modules/fmod-ieee: New file.
8322
8323         Tests for module 'fmodf-ieee'.
8324         * modules/fmodf-ieee-tests: New file.
8325         * tests/test-fmodf-ieee.c: New file.
8326         * tests/test-fmod-ieee.h: New file.
8327
8328         New module 'fmodf-ieee'.
8329         * modules/fmodf-ieee: New file.
8330
8331 2012-02-27  Bruno Haible  <bruno@clisp.org>
8332
8333         Tests for module 'rintl-ieee'.
8334         * modules/rintl-ieee-tests: New file.
8335         * tests/test-rintl-ieee.c: New file.
8336
8337         New module 'rintl-ieee'.
8338         * modules/rintl-ieee: New file.
8339
8340         Tests for module 'rint-ieee'.
8341         * modules/rint-ieee-tests: New file.
8342         * tests/test-rint-ieee.c: New file.
8343
8344         New module 'rint-ieee'.
8345         * modules/rint-ieee: New file.
8346
8347         Tests for module 'rintf-ieee'.
8348         * modules/rintf-ieee-tests: New file.
8349         * tests/test-rintf-ieee.c: New file.
8350         * tests/test-rint-ieee.h: New file.
8351
8352         New module 'rintf-ieee'.
8353         * modules/rintf-ieee: New file.
8354
8355 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8356
8357         regex: re_search etc. should return -2 when memory exhausted
8358         This bug was uncovered when testing 'grep'.  Without the fix,
8359         re_search and friends return -1 when memory is exhausted, but -1
8360         means no match, and this causes grep to falsely report no-match
8361         instead of memory-exhaustion.  See
8362         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8363         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8364         trouble; this can occur if re_search_internal ran out of memory.
8365
8366 2012-02-26  Bruno Haible  <bruno@clisp.org>
8367
8368         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8369         * m4/modfl-ieee.m4: New file.
8370         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8371         whether modfl works with Inf. Replace it if not.
8372         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8374         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8375         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8376         (Depends-on): Update dependencies.
8377         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8378         m4/signbit.m4.
8379         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8380         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8381
8382         modfl-ieee: Fix dependencies.
8383         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8384
8385         modfl-ieee: Fix test failures.
8386         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8387         * modules/modfl (Depends-on): Add isfinite, isinf.
8388
8389         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8390         * m4/modff-ieee.m4: New file.
8391         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8392         whether modff works with NaN and Inf. Replace it if not.
8393         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8395         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8396         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8397         (Depends-on): Update dependencies.
8398         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8399         m4/signbit.m4.
8400         (Depends-on): Add modf-ieee.
8401         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8402         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8403
8404         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8405         * m4/modf-ieee.m4: New file.
8406         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8407         whether modf works with NaN and Inf. Replace it if not.
8408         * lib/math.in.h (modf): New declaration.
8409         * lib/modf.c: New file.
8410         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8412         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8413         * modules/modf (Files): Add lib/modf.c.
8414         (Depends-on): Add math, isfinite, trunc, isinf.
8415         (configure.ac): Addrange to compile lib/modf.c if needed.
8416         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8417         m4/signbit.m4.
8418         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8419         * tests/test-math-c++.cc: Check the declaration of modf.
8420         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8421
8422         Tests for module 'modfl-ieee'.
8423         * modules/modfl-ieee-tests: New file.
8424         * tests/test-modfl-ieee.c: New file.
8425
8426         New module 'modfl-ieee'.
8427         * modules/modfl-ieee: New file.
8428
8429         Tests for module 'modf-ieee'.
8430         * modules/modf-ieee-tests: New file.
8431         * tests/test-modf-ieee.c: New file.
8432
8433         New module 'modf-ieee'.
8434         * modules/modf-ieee: New file.
8435
8436         Tests for module 'modff-ieee'.
8437         * modules/modff-ieee-tests: New file.
8438         * tests/test-modff-ieee.c: New file.
8439         * tests/test-modf-ieee.h: New file.
8440
8441         New module 'modff-ieee'.
8442         * modules/modff-ieee: New file.
8443
8444 2012-02-26  Bruno Haible  <bruno@clisp.org>
8445
8446         Tests for module 'fabsl-ieee'.
8447         * modules/fabsl-ieee-tests: New file.
8448         * tests/test-fabsl-ieee.c: New file.
8449
8450         New module 'fabsl-ieee'.
8451         * modules/fabsl-ieee: New file.
8452
8453         Tests for module 'fabs-ieee'.
8454         * modules/fabs-ieee-tests: New file.
8455         * tests/test-fabs-ieee.c: New file.
8456
8457         New module 'fabs-ieee'.
8458         * modules/fabs-ieee: New file.
8459
8460         Tests for module 'fabsf-ieee'.
8461         * modules/fabsf-ieee-tests: New file.
8462         * tests/test-fabsf-ieee.c: New file.
8463         * tests/test-fabs-ieee.h: New file.
8464
8465         New module 'fabsf-ieee'.
8466         * modules/fabsf-ieee: New file.
8467
8468 2012-02-26  Bruno Haible  <bruno@clisp.org>
8469
8470         Tests for module 'fmal-ieee'.
8471         * modules/fmal-ieee-tests: New file.
8472         * tests/test-fmal-ieee.c: New file.
8473
8474         New module 'fmal-ieee'.
8475         * modules/fmal-ieee: New file.
8476
8477         Tests for module 'fma-ieee'.
8478         * modules/fma-ieee-tests: New file.
8479         * tests/test-fma-ieee.c: New file.
8480
8481         New module 'fma-ieee'.
8482         * modules/fma-ieee: New file.
8483
8484         Tests for module 'fmaf-ieee'.
8485         * modules/fmaf-ieee-tests: New file.
8486         * tests/test-fmaf-ieee.c: New file.
8487         * tests/test-fma-ieee.h: New file.
8488
8489         New module 'fmaf-ieee'.
8490         * modules/fmaf-ieee: New file.
8491
8492 2012-02-26  Bruno Haible  <bruno@clisp.org>
8493
8494         Tests for module 'ldexpl-ieee'.
8495         * modules/ldexpl-ieee-tests: New file.
8496         * tests/test-ldexpl-ieee.c: New file.
8497
8498         New module 'ldexpl-ieee'.
8499         * modules/ldexpl-ieee: New file.
8500
8501         Tests for module 'ldexp-ieee'.
8502         * modules/ldexp-ieee-tests: New file.
8503         * tests/test-ldexp-ieee.c: New file.
8504
8505         New module 'ldexp-ieee'.
8506         * modules/ldexp-ieee: New file.
8507
8508         Tests for module 'ldexpf-ieee'.
8509         * modules/ldexpf-ieee-tests: New file.
8510         * tests/test-ldexpf-ieee.c: New file.
8511         * tests/test-ldexp-ieee.h: New file.
8512
8513         New module 'ldexpf-ieee'.
8514         * modules/ldexpf-ieee: New file.
8515
8516 2012-02-26  Bruno Haible  <bruno@clisp.org>
8517
8518         Refactor frexp*-ieee tests.
8519         * tests/test-frexp-ieee.h: New file.
8520         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8521         (main): Just call test_function.
8522         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8523         (main): Just call test_function.
8524         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8525         (main): Just call test_function.
8526         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8527         * modules/frexp-ieee-tests (Files): Likewise.
8528         * modules/frexpl-ieee-tests (Files): Likewise.
8529
8530         Tests for module 'frexpl-ieee'.
8531         * modules/frexpl-ieee-tests: New file.
8532         * tests/test-frexpl-ieee.c: New file.
8533
8534         New module 'frexpl-ieee'.
8535         * modules/frexpl-ieee: New file.
8536
8537         Tests for module 'frexp-ieee'.
8538         * modules/frexp-ieee-tests: New file.
8539         * tests/test-frexp-ieee.c: New file.
8540
8541         New module 'frexp-ieee'.
8542         * modules/frexp-ieee: New file.
8543
8544         Tests for module 'frexpf-ieee'.
8545         * modules/frexpf-ieee-tests: New file.
8546         * tests/test-frexpf-ieee.c: New file.
8547
8548         New module 'frexpf-ieee'.
8549         * modules/frexpf-ieee: New file.
8550
8551 2012-02-26  Bruno Haible  <bruno@clisp.org>
8552
8553         roundl-ieee tests: More tests.
8554         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8555         (main): Add tests for [MX] shaded specification in POSIX.
8556         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8557         (Depends-on): Add isnanl-nolibm.
8558
8559         round-ieee tests: More tests.
8560         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8561         (main): Add tests for [MX] shaded specification in POSIX.
8562         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8563         (Depends-on): Add isnand-nolibm.
8564
8565         roundf-ieee tests: More tests.
8566         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8567         (main): Add tests for [MX] shaded specification in POSIX.
8568         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8569         (Depends-on): Add isnanf-nolibm.
8570
8571         truncl-ieee tests: More tests.
8572         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8573         (main): Add tests for [MX] shaded specification in POSIX.
8574         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8575         (Depends-on): Add isnanl-nolibm.
8576
8577         trunc-ieee tests: More tests.
8578         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8579         (main): Add tests for [MX] shaded specification in POSIX.
8580         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8581         (Depends-on): Add isnand-nolibm.
8582
8583         truncf-ieee tests: More tests.
8584         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8585         (main): Add tests for [MX] shaded specification in POSIX.
8586         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8587         (Depends-on): Add isnanf-nolibm.
8588
8589         ceill-ieee tests: More tests.
8590         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8591         (main): Add tests for [MX] shaded specification in POSIX.
8592         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8593         (Depends-on): Add isnanl-nolibm.
8594
8595         ceil-ieee tests: More tests.
8596         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8597         (main): Add tests for [MX] shaded specification in POSIX.
8598         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8599         (Depends-on): Add isnand-nolibm.
8600
8601         ceilf-ieee tests: More tests.
8602         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8603         (main): Add tests for [MX] shaded specification in POSIX.
8604         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8605         (Depends-on): Add isnanf-nolibm.
8606
8607         floorl-ieee tests: More tests.
8608         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8609         (main): Add tests for [MX] shaded specification in POSIX.
8610         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8611         (Depends-on): Add isnanl-nolibm.
8612
8613         floor-ieee tests: More tests.
8614         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8615         (main): Add tests for [MX] shaded specification in POSIX.
8616         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8617         (Depends-on): Add isnand-nolibm.
8618
8619         floorf-ieee tests: More tests.
8620         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8621         (main): Add tests for [MX] shaded specification in POSIX.
8622         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8623         (Depends-on): Add isnanf-nolibm.
8624
8625 2012-02-26  Bruno Haible  <bruno@clisp.org>
8626
8627         fpieee: More comments.
8628         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8629
8630 2012-02-25  Bruno Haible  <bruno@clisp.org>
8631
8632         Tests for module 'log10l'.
8633         * modules/log10l-tests: New file.
8634         * tests/test-log10l.c: New file.
8635         * tests/test-math-c++.cc: Check the declaration of log10l.
8636
8637         New module 'log10l'.
8638         * lib/math.in.h (log10l): New declaration.
8639         * lib/log10l.c: New file.
8640         * m4/log10l.m4: New file.
8641         * modules/log10l: New file.
8642         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8644         HAVE_DECL_LOG10L.
8645         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8646         HAVE_DECL_LOG10L.
8647         * doc/posix-functions/log10l.texi: Mention the new module.
8648
8649 2012-02-25  Bruno Haible  <bruno@clisp.org>
8650
8651         fmodl, remainder*: Avoid wrong results due to rounding errors.
8652         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8653         expected bounds.
8654         * lib/remainderf.c (remainderf): Likewise.
8655         * lib/remainder.c (remainder): Likewise.
8656         * lib/remainderl.c (remainderl): Likewise.
8657
8658 2012-02-25  Bruno Haible  <bruno@clisp.org>
8659
8660         Tests for module 'remainderl'.
8661         * modules/remainderl-tests: New file.
8662         * tests/test-remainderl.c: New file.
8663         * tests/test-math-c++.cc: Check the declaration of remainderl.
8664
8665         New module 'remainderl'.
8666         * lib/math.in.h (remainderl): New declaration.
8667         * lib/remainderl.c: New file.
8668         * m4/remainderl.m4: New file.
8669         * modules/remainderl: New file.
8670         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8672         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8673         HAVE_REMAINDERL.
8674         * doc/posix-functions/remainderl.texi: Mention the new module.
8675
8676 2012-02-25  Bruno Haible  <bruno@clisp.org>
8677
8678         Tests for module 'remainderf'.
8679         * modules/remainderf-tests: New file.
8680         * tests/test-remainderf.c: New file.
8681         * tests/test-math-c++.cc: Check the declaration of remainderf.
8682
8683         New module 'remainderf'.
8684         * lib/math.in.h (remainderf): New declaration.
8685         * lib/remainderf.c: New file.
8686         * m4/remainderf.m4: New file.
8687         * modules/remainderf: New file.
8688         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8690         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8691         HAVE_REMAINDERF.
8692         * doc/posix-functions/remainderf.texi: Mention the new module.
8693
8694 2012-02-25  Bruno Haible  <bruno@clisp.org>
8695
8696         remainder: Support for MSVC.
8697         * lib/math.in.h (remainder): New declaration.
8698         * lib/remainder.c: New file.
8699         * m4/remainder.m4: New file.
8700         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8701         (Depends-on): Add math, round, fma.
8702         (configure.ac): Use results of gl_FUNC_REMAINDER.
8703         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8705         HAVE_DECL_REMAINDER.
8706         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8707         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8708         * tests/test-math-c++.cc: Check the declaration of remainder.
8709         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8710         problems are fixed.
8711
8712 2012-02-25  Bruno Haible  <bruno@clisp.org>
8713
8714         Tests for module 'fmodl'.
8715         * modules/fmodl-tests: New file.
8716         * tests/test-fmodl.c: New file.
8717         * tests/test-math-c++.cc: Check the declaration of fmodl.
8718
8719         New module 'fmodl'.
8720         * lib/math.in.h (fmodl): New declaration.
8721         * lib/fmodl.c: New file.
8722         * m4/fmodl.m4: New file.
8723         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8725         REPLACE_FMODL.
8726         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8727         REPLACE_FMODL.
8728         * modules/fmodl: New file.
8729         * doc/posix-functions/fmodl.texi: Mention the new module.
8730
8731 2012-02-25  Bruno Haible  <bruno@clisp.org>
8732
8733         Tests for module 'modfl'.
8734         * modules/modfl-tests: New file.
8735         * tests/test-modfl.c: New file.
8736         * tests/test-math-c++.cc: Check the declaration of modfl.
8737
8738         New module 'modfl'.
8739         * lib/math.in.h (modfl): New declaration.
8740         * lib/modfl.c: New file.
8741         * m4/modfl.m4: New file.
8742         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8744         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8745         * modules/modfl: New file.
8746         * doc/posix-functions/modfl.texi: Mention the new module.
8747
8748 2012-02-25  Bruno Haible  <bruno@clisp.org>
8749
8750         Tests for module 'fabsl'.
8751         * modules/fabsl-tests: New file.
8752         * tests/test-fabsl.c: New file.
8753         * tests/test-math-c++.cc: Check the declaration of fabsl.
8754
8755         New module 'fabsl'.
8756         * lib/math.in.h (fabsl): New declaration.
8757         * lib/fabsl.c: New file.
8758         * m4/fabsl.m4: New file.
8759         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8761         REPLACE_FABSL.
8762         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8763         REPLACE_FABSL.
8764         * modules/fabsl: New file.
8765         * doc/posix-functions/fabsl.texi: Mention the new module.
8766
8767 2012-02-25  Bruno Haible  <bruno@clisp.org>
8768
8769         fabs tests: More tests.
8770         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8771         (zero): New variable.
8772         (main): Add tests for signed zero.
8773         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8774
8775         fabsf tests: More tests.
8776         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8777         (zero): New variable.
8778         (main): Add tests for signed zero.
8779         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8780
8781 2012-02-24  Bruno Haible  <bruno@clisp.org>
8782
8783         atanl: Provide function definition on MSVC.
8784         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8785         function pointer.
8786         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8787
8788 2012-02-24  Bruno Haible  <bruno@clisp.org>
8789
8790         acosl: Provide function definition on MSVC.
8791         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8792         function pointer.
8793         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8794
8795 2012-02-24  Bruno Haible  <bruno@clisp.org>
8796
8797         asinl: Provide function definition on MSVC.
8798         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8799         function pointer.
8800         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8801
8802 2012-02-24  Bruno Haible  <bruno@clisp.org>
8803
8804         tanl: Provide function definition on MSVC.
8805         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8806         function pointer.
8807         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8808
8809 2012-02-24  Bruno Haible  <bruno@clisp.org>
8810
8811         cosl: Provide function definition on MSVC.
8812         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8813         function pointer.
8814         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8815
8816 2012-02-24  Bruno Haible  <bruno@clisp.org>
8817
8818         sinl: Provide function definition on MSVC.
8819         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8820         function pointer.
8821         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8822
8823 2012-02-24  Bruno Haible  <bruno@clisp.org>
8824
8825         logl: Provide function definition on MSVC.
8826         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8827         function pointer.
8828         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8829
8830 2012-02-24  Bruno Haible  <bruno@clisp.org>
8831
8832         expl: Provide function definition on MSVC.
8833         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8834         function pointer.
8835         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8836
8837 2012-02-24  Bruno Haible  <bruno@clisp.org>
8838
8839         sqrtl: Provide function definition on MSVC.
8840         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8841         a function pointer.
8842         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8843
8844 2012-02-24  Bruno Haible  <bruno@clisp.org>
8845
8846         ceill: Provide function definition on MSVC.
8847         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8848         used as a function pointer.
8849         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8850
8851 2012-02-24  Bruno Haible  <bruno@clisp.org>
8852
8853         floorl: Provide function definition on MSVC.
8854         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8855         used as a function pointer.
8856         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8857
8858 2012-02-24  Bruno Haible  <bruno@clisp.org>
8859
8860         ceilf: Provide function definition on MSVC.
8861         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8862         used as a function pointer.
8863         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8864
8865 2012-02-24  Bruno Haible  <bruno@clisp.org>
8866
8867         floorf: Provide function definition on MSVC.
8868         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8869         used as a function pointer.
8870         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8871
8872 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8873
8874         stdnoreturn: new module
8875         This implements a replacement for C11's <stdnoreturn.h>.
8876         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8877         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8878         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8879         * tests/test-stdnoreturn.c: New files.
8880
8881 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8882
8883         regex: fix false multibyte matches in some regular expressions
8884         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8885         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8886         * lib/regex_internal.c (re_string_skip_chars):
8887         Fix miscomputation of remain_len that may cause incomplete
8888         multi-byte character and false match.
8889
8890 2012-02-24  Jim Meyering  <meyering@redhat.com>
8891
8892         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8893         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8894         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8895         Remove now-unnecessary str''cmp obfuscation.
8896         Suggested by Akim Demaille.
8897
8898 2012-02-24  Bruno Haible  <bruno@clisp.org>
8899
8900         streq: Rename macro.
8901         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8902         * NEWS: Mention the change.
8903         * lib/mbrtowc.c (mbrtowc): Update.
8904         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8905         * lib/wcwidth.c (wcwidth): Update.
8906         Suggested by Akim Demaille and Jim Meyering.
8907
8908 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8909
8910         regex: fix typo in definition of MIN
8911         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8912         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8913
8914 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8915             Bruno Haible  <bruno@clisp.org>
8916
8917         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8918         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8919         entries into a stack-allocated buffer directly.
8920         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8921
8922 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8923             Bruno Haible  <bruno@clisp.org>
8924
8925         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8926
8927          - There were several instances of this pattern:
8928
8929              for (;;) {
8930                n = acl (f, GETACLCNT, 0, NULL);
8931                [ allocate an array A of size N ]
8932                if (acl (f, GETACL, n, a) == n)
8933                  break;
8934              }
8935
8936            This loop might never terminate if some other process is constantly
8937            manipulating the file's ACL.  The loop should be rewritten to
8938            terminate.
8939
8940          - The acl (... GETACLNT ...) call is merely an optimization; its value
8941            is merely a hint as to how big to make the array.  A better
8942            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8943            and just guess a reasonably-big size, growing the size and trying
8944            again if it's not large enough.  This guarantees termination, and
8945            saves a system call.
8946
8947         * lib/acl-internal.h: Include <limits.h>.
8948         (MIN, SIZE_MAX): New macros.
8949         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8950         a stack-allocated buffer, and use malloc if it does not fit. Don't
8951         use GETACLCNT.
8952         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8953
8954 2012-02-19  Bruno Haible  <bruno@clisp.org>
8955
8956         acl: Fix endless loop on Solaris with vxfs.
8957         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8958         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8959         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8960         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8961         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8962         Reported by Bill Jones in
8963         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8964
8965 2012-02-19  Bruno Haible  <bruno@clisp.org>
8966
8967         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8968         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8969         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8970         that this function returns 0 in some more cases.
8971
8972 2012-02-19  Bruno Haible  <bruno@clisp.org>
8973
8974         acl: Update doc references.
8975         * doc/acl-resources.txt: Update links to Solaris documentation.
8976
8977 2012-02-19  Bruno Haible  <bruno@clisp.org>
8978
8979         Fix test failure in many locales on Solaris 11.
8980         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8981         'tr' arguments.
8982         * tests/test-pipe-filter-ii1.c (main): Likewise.
8983         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8984         expressions in the C locale.
8985         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8986         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8987
8988 2012-02-19  Bruno Haible  <bruno@clisp.org>
8989
8990         gnulib-tool: Improve usage message.
8991         * gnulib-tool (func_usage): Move doc of --help and --version to the
8992         section "Operation modes".
8993
8994 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8995
8996         README-release: make it easier to execute commands
8997         * top/README-release: break commands out on to separate lines.
8998
8999 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9000
9001         GNUmakefile: simplify detection of unconfigured trees
9002         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9003         whether the tree make is being run from is already configured or
9004         not.  Related simplifications.
9005
9006 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9007
9008         * gnulib-tool (func_usage): Document --help and --version.
9009
9010 2012-02-11  Jim Meyering  <meyering@redhat.com>
9011
9012         bootstrap: don't exit 0 upon gnulib-tool failure
9013         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9014         its exit status, not 0.
9015
9016 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9017
9018         README-release: various improvements
9019         * top/README-release: Give a command to push changes for the
9020         release.  Add "distcheck" to list of other pre-release checks.
9021         Fix instance of "make stable" which should be "make TYPE".
9022
9023 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9024
9025         maint: replace FSF snail-mail addresses with URLs
9026         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9027         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9028         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9029         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9030         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9031         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9032         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9033         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9034         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9035         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9036         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9037         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9038         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9039         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9040         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9041         * lib/glthread/thread.c, lib/glthread/thread.h:
9042         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9043         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9044         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9045         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9046         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9047         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9048         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9049         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9050         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9051         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9052         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9053         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9054         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9055         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9056         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9057         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9058         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9059         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9060         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9061         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9062         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9063         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9064         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9065         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9066         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9067         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9068         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9069         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9070         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9071         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9072         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9073         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9074         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9075         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9076         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9077         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9078         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9079         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9080         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9081         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9082         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9083         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9084         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9085         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9086         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9087         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9088         * tests/test-poll.c, tests/test-quotearg-simple.c:
9089         * tests/test-quotearg.c, tests/test-quotearg.h:
9090         * tests/test-round-ieee.c, tests/test-round1.c:
9091         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9092         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9093         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9094         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9095         * tests/test-strerror.c, tests/test-strerror_r.c:
9096         * tests/test-strsignal.c, tests/test-strverscmp.c:
9097         * tests/test-xmemdup0.c:
9098         Replace FSF snail mail addresses with URLs, as per GNU coding
9099         standards.  See glibc bug
9100         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9101
9102 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9103
9104         README-release: capitalize a word and split a line
9105         * top/README-release: Fix punctuation and spacing.
9106
9107 2012-02-08  Akim Demaille  <demaille@gostai.com>
9108
9109         fatal-signal: use C prototypes (with explicit void).
9110         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9111         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9112
9113 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9114
9115         regex: spelling fix
9116         * lib/regexec.c: spelling fix
9117
9118         regex: rely on stdint.h for SIZE_MAX
9119         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9120
9121 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9122
9123         regex: merge glibc changes
9124
9125         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9126         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9127         (init_word_char): Work even if bitset words are not exactly 32 or
9128         64 bits wide.  Don't assume there are no padding bits.
9129         * lib/regex.c [_LIBC]: Do not include <config.h>.
9130         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9131         and -Wtype-limits.
9132         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9133         needless disagreement with glibc.  All uses changed.  Define it to
9134         1 only if _GNU_SOURCE, to match glibc.
9135         (_REG_RM_NAME): Remove; no longer needed, since the names in
9136         question are now all protected by __USE_GNU.
9137         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9138         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9139         * lib/regex_internal.h (MIN): New macro.
9140
9141         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9142         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9143
9144         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9145         * lib/regex_internal.c (re_string_fetch_byte_case):
9146         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9147         is miscompiled, and it turns out it is because of an incorrect
9148         attribute on re_string_fetch_byte_case.  Unlike
9149         re_string_peek_byte_case, this one is really not pure, it modifies
9150         memory (increments pstr->cur_idx), and with the pure attribute GCC
9151         assumed it doesn't and it cached the presumed value of
9152         regexp->cur_idx in a variable across the
9153          for (;; ++i)
9154            {
9155              if (i >= BRACKET_NAME_BUF_SIZE)
9156                return REG_EBRACK;
9157              if (token->type == OP_OPEN_CHAR_CLASS)
9158                ch = re_string_fetch_byte_case (regexp);
9159              else
9160                ch = re_string_fetch_byte (regexp);
9161              if (re_string_eoi(regexp))
9162                return REG_EBRACK;
9163              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9164                break;
9165              elem->opr.name[i] = ch;
9166            }
9167
9168         2011-11-29 Andreas Schwab <schwab@redhat.com>
9169         * lib/regcomp.c (build_equiv_class):
9170         Fix access after end of search string in regex matcher.
9171
9172         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9173         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9174
9175         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9176         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9177
9178         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9179         * lib/regcomp.c (parse_branch, parse_sub_exp):
9180         More regex memory leak fixes and tests.
9181         (parse_sub_exp, parse_bracket_exp):
9182         Fix memory leak for some invalid regular expressions.
9183
9184         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9185         * lib/regex_internal.c, lib/regexec.c:
9186         Fix unnecessary overallocation due to incomplete character.  When
9187         incomplete characters are found at the end of a string the code
9188         ran amok and allocated lots of memory.  Stricter limits are now in
9189         place.
9190
9191         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9192         * lib/regex.h: Update documentation.
9193
9194         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9195         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9196
9197         2010-05-05 Andreas Schwab <schwab@redhat.com>
9198         * lib/regexec.c (find_collation_sequence_value):
9199         Fix lookup of collation sequence value during regexp matching.
9200
9201         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9202         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9203
9204         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9205         * lib/regex.h: Cleanup namespace.
9206
9207         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9208         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9209
9210         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9211         * lib/regex_internal.h: Prevent some declarations and definitions
9212         to be seen when used in tests.
9213
9214         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9215         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9216         __libc_lock_* macros if not _LIBC.
9217         (struct re_dfa_t): Add lock.
9218
9219 2012-02-07  Eric Blake  <eblake@redhat.com>
9220
9221         maint.mk: also prohibit lower-case @var@
9222         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9223         lower case, like @top_srcdir@.
9224
9225 2012-02-04  Eric Blake  <eblake@redhat.com>
9226
9227         canonicalize: avoid uninitialized memory use
9228         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9229         random '/' left in dest.
9230         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9231
9232 2012-02-04  Bruno Haible  <bruno@clisp.org>
9233
9234         isatty: Fix test failure of ptsname_r on native Windows.
9235         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9236         and don't set errno.
9237         (isatty): Test first whether fd is valid. Set errno when returning 0.
9238
9239 2012-02-04  Bruno Haible  <bruno@clisp.org>
9240
9241         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9242         * tests/test-spawn-pipe-main.c: Include progname.h.
9243         (main): Invoke set_program_name.
9244         * modules/spawn-pipe-tests (Depends-on): Add progname.
9245
9246         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9247         * tests/test-nonblocking-socket-main.c: Include progname.h.
9248         (main): Invoke set_program_name.
9249         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9250
9251         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9252         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9253         (main): Invoke set_program_name.
9254         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9255
9256 2012-02-04  Eric Blake  <eblake@redhat.com>
9257
9258         canonicalize-lgpl: fix // handling
9259         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9260
9261         canonicalize: fix // handling
9262         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9263         /// to //, since only // is special.
9264
9265 2012-02-04  Bruno Haible  <bruno@clisp.org>
9266
9267         ioctl: Fix test failure on native Windows.
9268         * lib/ioctl.c: Include msvc-nothrow.h.
9269         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9270
9271 2012-02-04  Bruno Haible  <bruno@clisp.org>
9272
9273         fsync: Avoid test failure on native Windows.
9274         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9275         read-only.
9276
9277 2012-02-04  Bruno Haible  <bruno@clisp.org>
9278
9279         sys_select: Avoid syntax error on OpenBSD 5.0.
9280         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9281         currently being included, just include the system's <sys/select.h>.
9282
9283 2012-02-04  Bruno Haible  <bruno@clisp.org>
9284
9285         sys_select: Avoid syntax error on OpenBSD 5.0.
9286         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9287         <sys/select.h>, not before.
9288         Reported by Jiri B <jirib@devio.us>.
9289
9290 2012-02-04  Bruno Haible  <bruno@clisp.org>
9291
9292         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9293         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9294         global variables.
9295         * tests/test-get-rusage-data.c (main): Likewise.
9296         Reported by Jim Meyering.
9297
9298 2012-02-04  Bruno Haible  <bruno@clisp.org>
9299
9300         stdioext: Fix last commit.
9301         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9302
9303 2012-02-03  Bruno Haible  <bruno@clisp.org>
9304
9305         stdioext: Add tentative support for Plan9.
9306         * lib/stdio-impl.h: Include <errno.h>.
9307         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9308         * lib/freadable.c (freadable): Likewise.
9309         * lib/fwritable.c (fwritable): Likewise.
9310         * lib/fbufmode.c (fbufmode): Likewise.
9311         * lib/freading.c (freading): Likewise.
9312         * lib/fwriting.c (fwriting): Likewise.
9313         * lib/freadptr.c (freadptr): Likewise.
9314         * lib/freadseek.c (freadptrinc): Likewise.
9315         * lib/freadahead.c (freadahead): Likewise.
9316         * lib/fpurge.c (fpurge): Likewise.
9317         * lib/fseeko.c (rpl_fseeko): Likewise.
9318         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9319         Reported by Jens Staal <staal1978@gmail.com>.
9320
9321 2012-02-02  Jim Meyering  <meyering@redhat.com>
9322
9323         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9324         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9325         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9326         not even to try to add the attribute.  Instead, add a pragma to suppress
9327         the suggestion/warning.
9328
9329 2012-01-31  Karl Berry  <karl@gnu.org>
9330
9331         setstate doc: typo.
9332         * doc/posix-functions/setstate.texi (setstate): { not (.
9333
9334 2012-01-31  Bruno Haible  <bruno@clisp.org>
9335
9336         popen: Make more robust on Windows.
9337         * lib/popen.c: On native Windows, use the _popen based code even if
9338         HAVE_POPEN is set.
9339         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9340         environment variable on native Windows.
9341
9342 2012-01-30  Bruno Haible  <bruno@clisp.org>
9343
9344         pclose: Fix typo.
9345         * lib/stdio.in.h (pclose): Fix typo in warning message.
9346
9347 2012-01-30  Bruno Haible  <bruno@clisp.org>
9348
9349         doc about getlogin_r, setstate.
9350         * doc/posix-functions/getlogin_r.texi: List the incompatible
9351         declaration problem under "not fixed by gnulib".
9352         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9353         problem on Solaris 11 and other platforms.
9354
9355 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9356             Bruno Haible  <bruno@clisp.org>
9357
9358         poll tests: Make test more robust.
9359         * tests/test-poll.c: Include macros.h.
9360         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9361         return value of various I/O operations.
9362         * modules/poll-tests (Files): Add tests/macros.h.
9363
9364 2012-01-30  Bruno Haible  <bruno@clisp.org>
9365
9366         sys_stat: Fix support for mingw64 and MSVC.
9367         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9368         header files already do it.
9369         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9370         stat itself.
9371         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9372
9373 2012-01-30  Bruno Haible  <bruno@clisp.org>
9374
9375         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9377         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9378
9379 2012-01-29  Bruno Haible  <bruno@clisp.org>
9380
9381         quotearg: Fix test failure on MacOS X 10.5.
9382         * tests/test-quotearg-simple.c: Include localcharset.h.
9383         (main): If the locale encoding is not ASCII, bypass the tests of
9384         locale_quoting_style and clocale_quoting_style.
9385         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9386
9387 2012-01-29  Jim Meyering  <meyering@redhat.com>
9388
9389         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9390         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9391         detect uses of canonicalize_file_name.
9392
9393 2012-01-28  Bruno Haible  <bruno@clisp.org>
9394
9395         test-framework-sh: Fix test failure with AIX 7.1 diff.
9396         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9397         in column 1, like 'diff -c' does.
9398         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9399         whether 'diff -u' is used. Instead, test whether the output contains
9400         some '@' character.
9401
9402 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9403
9404         strtoimax: eliminate need for stdint.h, inttypes.h checks
9405         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9406         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9407         the prerequisites for a recently-introduced strtoimax test.
9408         I guess this might cause strtoimax to be replaced when not
9409         strictly necessary on older hosts, but this shouldn't introduce
9410         any bugs and it should make Emacs 'configure' faster on typical
9411         modern hosts.  Problem discovered when importing the latest gnulib
9412         to an Emacs test version.
9413         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9414
9415 2012-01-28  Bruno Haible  <bruno@clisp.org>
9416
9417         sys_time: Override 'struct timeval' on some native Windows platforms.
9418         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9419         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9420         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9421         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9422         needs to be overridden.
9423         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9424         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9425         * tests/test-sys_select.c: Check that the tv_sec member has the same
9426         size as a 'time_t'.
9427         * tests/test-sys_time.c: Likewise.
9428         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9429         is set, set also REPLACE_GETTIMEOFDAY.
9430         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9431         convert the resulting 'struct timeval' before returning.
9432         * lib/select.c: Include <sys/time.h>.
9433         (select, timeval): Undefine at the right place.
9434         * modules/select (Depends-on): Add sys_time.
9435         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9436         some Windows platforms.
9437         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9438
9439 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9440
9441         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9442         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9443         an integer.
9444         * lib/fcntl.c (dupfd): Likewise.
9445         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9446
9447 2012-01-28  Bruno Haible  <bruno@clisp.org>
9448
9449         fcntl: Avoid compilation error on native Windows.
9450         * modules/fcntl (Depends-on): Add 'close'.
9451
9452 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9453
9454         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9455         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9456         pointer to an integer.
9457         * lib/poll.c (IsConsoleHandle): Likewise.
9458         * lib/isatty.c (IsConsoleHandle): Likewise.
9459
9460 2012-01-28  Jim Meyering  <meyering@redhat.com>
9461
9462         doc: clarify README-release
9463         * top/README-release: Clarify: you should make a point to have
9464         the latest stable versions of build tools in your PATH, and the
9465         reference to buildreq is solely for its list of tool names, not
9466         for its minimal-functional version numbers.
9467         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9468
9469         maint.mk: use more readable (yet functionally equivalent) quoting
9470         It is common to quote a single quote in a single quoted string like
9471         this:  '...'\''...'.  Unless you know the idiom, that looks like
9472         gibberish, so prefer to double-quote the string when possible.
9473         Then you can use a more readable, lone single quote: "...'..."
9474         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9475         "don't" is more readable than the equivalent 'don'\''t'.
9476         (sc_cast_of_x_alloc_return_value): Likewise.
9477         (sc_cast_of_alloca_return_value): Likewise.
9478         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9479         rather than '\'':'\''.
9480
9481 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9482
9483         stdalign: relax _Alignof and tighten _Alignas test
9484         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9485         as it was too strict: alignof must divide offsetof, but it need
9486         not equal offsetof.  Inspired by Joseph S. Myers's comment
9487         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9488         Conversely, tighten the _Alignas test a bit, as the resulting
9489         alignment must be exactly 8.
9490
9491 2012-01-27  Bruno Haible  <bruno@clisp.org>
9492
9493         stdalign: Document the last change.
9494         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9495
9496 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9497
9498         stdalign: check that alignof and offsetof are consistent
9499         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9500         Problem reported for gnulib by Richard W.M. Jones in
9501         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9502
9503 2012-01-27  Jim Meyering  <meyering@redhat.com>
9504
9505         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9506         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9507         convert a sequence with gaps to the minimal containing range.
9508         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9509         * tests/test-update-copyright.sh: Test for this.
9510         The FSF confirmed it is ok to do this, assuming there is at
9511         least one significant change per year in the affected range:
9512         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9513
9514 2012-01-26  Bruno Haible  <bruno@clisp.org>
9515
9516         pipe2: refine doc about thread-safety
9517         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9518         multithread-safety problem.
9519         * doc/glibc-functions/accept4.texi: Likewise.
9520
9521 2012-01-26  Bruno Haible  <bruno@clisp.org>
9522
9523         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9524         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9525         In the test program, include <fcntl.h>, for O_RDONLY.
9526
9527 2012-01-26  Eric Blake  <eblake@redhat.com>
9528
9529         pipe2: document lack of thread-safety in replacement
9530         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9531         issue in replacement.
9532         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9533         Based on a report by Eric Wong.
9534
9535 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9536             Bruno Haible  <bruno@clisp.org>
9537
9538         malloca: Avoid warnings on x86_64 mingw64.
9539         * lib/malloca.c: Include <stdint.h>.
9540         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9541         * modules/malloca (Depends-on): Add stdint.
9542         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9543
9544 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9545
9546         obstack: remove __STDC__ conditionals
9547         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9548         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9549         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9550         m4/include_next.m4 as the only gnulib-maintained places that still
9551         refer to __STDC__.
9552
9553 2012-01-24  Bruno Haible  <bruno@clisp.org>
9554
9555         havelib: Modern quoting.
9556         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9557         the recent change to the GNU coding standards.
9558
9559 2012-01-24  Bruno Haible  <bruno@clisp.org>
9560
9561         stdint: Improve support for Android.
9562         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9563         Reported by Simon Josefsson <simon@josefsson.org>.
9564
9565 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9566
9567         doc: omit trailing empty lines from INSTALL etc.
9568         * doc/Makefile (INSTALL): Omit trailing empty lines.
9569         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9570         omit trailing empty lines.  This simplifies the build procedure.
9571
9572 2012-01-23  Jim Meyering  <meyering@redhat.com>
9573
9574         tests: avoid spurious warnings about gl_sockets_startup
9575         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9576         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9577         reporting a "statement with no effect".
9578         * tests/test-accept.c (main): Mark as "(void)".
9579         * tests/test-accept4.c (main): Likewise.
9580         * tests/test-bind.c (main): Likewise.
9581         * tests/test-connect.c (main): Likewise.
9582         * tests/test-getpeername.c (main): Likewise.
9583         * tests/test-getsockname.c (main): Likewise.
9584         * tests/test-getsockopt.c (main): Likewise.
9585         * tests/test-listen.c (main): Likewise.
9586         * tests/test-recv.c (main): Likewise.
9587         * tests/test-recvfrom.c (main): Likewise.
9588         * tests/test-send.c (main): Likewise.
9589         * tests/test-sendto.c (main): Likewise.
9590         * tests/test-setsockopt.c (main): Likewise.
9591         * tests/test-shutdown.c (main): Likewise.
9592
9593 2012-01-21  Bruno Haible  <bruno@clisp.org>
9594
9595         locale-fr.m4: Fix for Android.
9596         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9597         failure of the test program on Bionic libc.
9598
9599 2012-01-21  Jim Meyering  <meyering@redhat.com>
9600
9601         bootstrap: fail when bootstrap_post_import_hook fails
9602         Otherwise, it's far too easy to miss diagnostics emitted
9603         between gnulib-tool's output and that of running configure.
9604         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9605
9606 2012-01-17  Jim Meyering  <meyering@redhat.com>
9607
9608         maint: enable sc_trailing_blank
9609         * build-aux/pmccabe.css: Remove trailing blanks.
9610         * doc/acl-cygwin.txt: Likewise.
9611         * doc/gnu-oids.texi: Likewise
9612         * cfg.mk: Enable sc_trailing_blank.
9613         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9614
9615 2012-01-17  Jim Meyering  <meyering@redhat.com>
9616
9617         maint: enable sc_prohibit_openat_without_use
9618         * cfg.mk: Enable sc_prohibit_openat_without_use.
9619         Exempt lib/selinux-at.c.
9620
9621 2012-01-17  Jim Meyering  <meyering@redhat.com>
9622
9623         maint: enable sc_prohibit_cloexec_without_use
9624         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9625         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9626
9627 2012-01-17  Jim Meyering  <meyering@redhat.com>
9628
9629         maint: enable sc_prohibit_intprops_without_use
9630         * cfg.mk: Enable sc_prohibit_intprops_without_use
9631         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9632
9633 2012-01-17  Jim Meyering  <meyering@redhat.com>
9634
9635         maint: enable sc_prohibit_hash_pjw_without_use
9636         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9637         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9638         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9639         following " (".
9640
9641 2012-01-17  Jim Meyering  <meyering@redhat.com>
9642
9643         maint: enable double-word-prohibiting rule
9644         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9645         Exempt three files.
9646
9647 2012-01-17  Jim Meyering  <meyering@redhat.com>
9648
9649         maint: remove empty lines at EOF, but excluding modules/*
9650         Apply syntax rules at home as well as abroad.  Most changes
9651         were induced by running this:
9652           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9653             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9654             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9655         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9656         Exempt modules/* and two binary files.
9657         Also exempt doc/INSTALL*, per request from Bruno Haible.
9658         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9659         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9660         * doc/Copyright/request-assign.future: Likewise.
9661         * doc/Copyright/request-disclaim.changes: Likewise.
9662         * doc/INSTALL: Likewise.
9663         * doc/INSTALL.ISO: Likewise.
9664         * doc/INSTALL.UTF-8: Likewise.
9665         * doc/acl-cygwin.txt: Likewise.
9666         * doc/acl-resources.txt: Likewise.
9667         * doc/fdl-1.2.texi: Likewise.
9668         * doc/fdl-1.3.texi: Likewise.
9669         * doc/fdl.texi: Likewise.
9670         * lib/argp-pin.c: Likewise.
9671         * lib/round.c: Likewise.
9672         * lib/unicase/u16-totitle.c: Likewise.
9673         * lib/unictype/block_test.c: Likewise.
9674         * lib/uninorm/canonical-decomposition.c: Likewise.
9675         * m4/README: Likewise.
9676         * m4/relocatable-lib.m4: Likewise.
9677         * tests/test-isnand-nolibm.c: Likewise.
9678         * tests/test-isnand.c: Likewise.
9679         * tests/uninorm/NormalizationTest.txt: Likewise.
9680
9681 2012-01-17  Jim Meyering  <meyering@redhat.com>
9682
9683         maint: add framework to run syntax-check rules against gnulib sources
9684         * cfg.mk: New file, to disable all currently-failing tests.
9685         We'll enable them one by one, as they are made to pass.
9686         * Makefile (sc_maint): New rule.
9687
9688 2012-01-21  Bruno Haible  <bruno@clisp.org>
9689
9690         stdint: Add support for Android.
9691         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9692         include the system's <stdint.h>.
9693         Reported by Simon Josefsson <simon@josefsson.org>.
9694
9695 2012-01-19  Jim Meyering  <meyering@redhat.com>
9696
9697         bootstrap: add bootstrap_post_import_hook
9698         Bison does still need something like the gnulib_mk_hook whose
9699         invocation I had to remove along with slurp in commit 767ccd40.
9700         Technically, we could get along without it, but doing so would
9701         have required living with a warning and a mandatory post-bootstrap
9702         automake rerun.
9703         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9704         (bootstrap_post_import_hook): New function.
9705         Invoke it after gnulib-tool --import and before autoreconf.
9706
9707 2012-01-18  Jim Meyering  <meyering@redhat.com>
9708
9709         gitlog-to-changelog: don't use "no_"-prefixed variable name
9710         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9711         to enable both --cluster and --no-cluster.  Change variable name,
9712         s/\$no_cluster/$cluster/, and reverse usage to match.
9713
9714         gitlog-to-changelog: use "||", not "or" in expressions
9715         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9716         expressions.
9717
9718 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9719
9720         gitlog-to-changelog: new option --no-cluster
9721         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9722         clustering of adjacent commit messages.
9723
9724 2012-01-17  Jim Meyering  <meyering@redhat.com>
9725
9726         maint: spell file systems with two words, not one
9727         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9728         two words, not one.
9729
9730 2012-01-16  Jim Meyering  <meyering@redhat.com>
9731
9732         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9733         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9734
9735 2012-01-16  Eric Blake  <eblake@redhat.com>
9736
9737         bootstrap: cater to autoconf 2.59
9738         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9739         is not available.
9740
9741         bootstrap: properly check for libtool
9742         * build-aux/bootstrap (libtoolize): Also run libtool when older
9743         usage is detected.
9744
9745 2012-01-15  Bruno Haible  <bruno@clisp.org>
9746
9747         Improve support for MSVC 9.
9748         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9749         clashes on MSVC.
9750         * lib/fcntl.in.h: Likewise.
9751         * lib/stdlib.in.h: Likewise.
9752         * lib/sys_stat.in.h: Likewise.
9753
9754 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9755
9756         gnupload: we hold the master copy of this script now
9757         For motivation and more information, see:
9758         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9759         * build-aux/gnupload: Make it clear in the heading comments that the
9760         master copy of this file is maintained by gnulib.  Since we are at
9761         it, bump its copyright year and ...
9762         ($scriptversion): ... the date in its version.
9763         ($usage): Patches and bug reports should be sent to the gnulib list,
9764         not the automake one.
9765         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9766         anymore.
9767
9768 2012-01-15  Bruno Haible  <bruno@clisp.org>
9769
9770         Fix module 'random'.
9771         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9772         initstate, setstate are declared.
9773
9774 2012-01-14  Bruno Haible  <bruno@clisp.org>
9775
9776         Tests for module 'random'.
9777         * modules/random-tests: New file.
9778         * tests/test-random.c: New file, based on tests/test-random_r.c.
9779
9780         New module 'random'.
9781         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9782         declarations.
9783         * lib/random.c: New file, based on glibc/stdlib/random.c.
9784         * m4/random.m4: New file.
9785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9786         HAVE_RANDOM.
9787         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9788         * modules/random: New file.
9789         * config/srclist.txt: Add an entry for random.c.
9790         * doc/posix-functions/random.texi: Mention the 'random' module.
9791         * doc/posix-functions/initstate.texi: Likewise.
9792         * doc/posix-functions/setstate.texi: Likewise.
9793         * doc/posix-functions/srandom.texi: Likewise.
9794
9795 2012-01-12  Bruno Haible  <bruno@clisp.org>
9796
9797         random_r: Use common idioms.
9798         * lib/random_r.c: Include <stdlib.h> first.
9799
9800         random_r: Override incompatible API on AIX, OSF/1.
9801         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9802         Override the system function if REPLACE_RANDOM_R is 1.
9803         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9804         and OSF/1, set REPLACE_RANDOM_R.
9805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9806         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9807         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9808         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9809         * doc/glibc-functions/random_r.texi: Likewise.
9810         * doc/glibc-functions/setstate_r.texi: Likewise.
9811
9812         random_r: Support for MSVC 9.
9813         * lib/random_r.c: Include stdint.h, not inttypes.h.
9814
9815 2012-01-12  Eric Blake  <eblake@redhat.com>
9816
9817         inet_ntop: guard extra work by IF_LINT
9818         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9819         better code generation when not checking for warnings.
9820         Suggested by Paul Eggert and Jim Meyering.
9821
9822         strptime: fix regression on mingw
9823         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9824         Fix regression.  Reported by Bruno Haible.
9825
9826 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9827             Bruno Haible  <bruno@clisp.org>
9828
9829         copy-file: add error-code-returning variant.
9830         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9831         (qcopy_file_preserving): New declaration.
9832         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9833         copy_file_preserving. Change return type to 'int'. Don't emit an error
9834         message here.
9835         (copy_file_preserving): New function.
9836         * tests/test-copy-file.c: Include <stdlib.h>.
9837         (main): Test qcopy_file_preserving if the environment variable
9838         NO_STDERR_OUTPUT is set.
9839         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9840         with NO_STDERR_OUTPUT
9841         * tests/test-copy-file-2.sh: Likewise.
9842
9843 2012-01-10  Bruno Haible  <bruno@clisp.org>
9844
9845         copy-file: Use 'quote' module consistently.
9846         * lib/copy-file.c (copy_file_preserving): Use quote().
9847
9848         copy-file: Refactor.
9849         * lib/copy-file.c: Include quote.h.
9850         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9851         message here.
9852         * modules/copy-file (Depends-on): Add quote.
9853
9854         acl: Export qcopy_acl.
9855         * lib/acl.h (qcopy_acl): New declaration.
9856         * lib/copy-acl.c (qcopy_acl): Make non-static.
9857
9858         acl: Rename a local variable.
9859         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9860
9861         acl: Align return values of copy_acl and qcopy_acl.
9862         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9863         maybe < -1.
9864
9865 2012-01-11  Eric Blake  <eblake@redhat.com>
9866
9867         strptime: silence gcc warnings
9868         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9869         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9870         Reported by Daniel P. Berrange.
9871
9872         inet_ntop: silence gcc warning
9873         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9874         Reported by Daniel P. Berrange.
9875
9876 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9877
9878         getloadavg test: skip the test on GNU/Linux without /proc mounted
9879         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9880         file.  When /proc is not mounted, it always fails with ENOENT.
9881         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9882         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9883
9884 2012-01-10  Bruno Haible  <bruno@clisp.org>
9885
9886         regex: Avoid link error on MSVC 9.
9887         * modules/regex (Depends-on): Add wctype.
9888
9889 2012-01-10  Bruno Haible  <bruno@clisp.org>
9890
9891         doc: Mention --with-tests option.
9892         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9893         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9894         --with-tests.
9895         Reported by Reuben Thomas.
9896
9897 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9898
9899         users.txt: order package names lexicographically.
9900         * users.txt: Order package names lexicographically.
9901
9902 2012-01-10  Jim Meyering  <meyering@redhat.com>
9903
9904         maint.mk: fix description in comment
9905         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9906
9907         ignore-value: remove deprecated ignore_ptr function
9908         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9909         * NEWS: Note this.
9910
9911 2012-01-09  Jim Meyering  <meyering@redhat.com>
9912
9913         test-init.sh: avoid a subshell
9914         * tests/test-init.sh: Remove protective subshell.
9915         Suggested by Bernhard Voelker.  While a subshell is normally
9916         required to protect against older shells (Solaris, FreeBSD) that
9917         warn about a missing program before performing redirection, the
9918         shell-selection tests performed by init.sh probably exclude any
9919         offending shell.
9920
9921 2012-01-08  Bruno Haible  <bruno@clisp.org>
9922
9923         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9924         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9925         variable.
9926
9927 2012-01-08  Bruno Haible  <bruno@clisp.org>
9928
9929         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9930         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9931         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9932         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9933         macro.
9934         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9935         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9936         * lib/spawn_faction_addopen.c: Add workaround implementation if
9937         HAVE_WORKING_POSIX_SPAWN.
9938         * modules/spawn (Makefile): Substitute
9939         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9940         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9941         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9942         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9943         (Depends-on): Update conditions.
9944         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9945         the Solaris 11 bug.
9946
9947 2012-01-08  Bruno Haible  <bruno@clisp.org>
9948
9949         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9950         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9951         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9952         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9953         macro.
9954         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9955         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9956         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9957         HAVE_WORKING_POSIX_SPAWN.
9958         * modules/spawn (Makefile): Substitute
9959         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9960         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9961         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9962         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9963         (Depends-on): Update conditions.
9964         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9965         the Solaris 11 bug.
9966
9967 2012-01-08  Bruno Haible  <bruno@clisp.org>
9968
9969         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9970         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9971         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9972         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9973         HAVE_WORKING_POSIX_SPAWN.
9974         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9975         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9976         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9977         * lib/spawn_faction_addclose.c: Add workaround implementation if
9978         HAVE_WORKING_POSIX_SPAWN.
9979         * modules/spawn (Makefile): Substitute
9980         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9981         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9982         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9983         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9984         (Depends-on): Update conditions.
9985         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9986         the Solaris 11 bug.
9987
9988 2012-01-08  Bruno Haible  <bruno@clisp.org>
9989
9990         doc: Update for Solaris 11 2011-11.
9991         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9992         * m4/printf.m4: Update comments.
9993
9994 2012-01-08  Bruno Haible  <bruno@clisp.org>
9995
9996         mktime: Avoid compilation error on Solaris 11.
9997         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9998
9999 2012-01-08  Bruno Haible  <bruno@clisp.org>
10000
10001         doc: Small fix.
10002         * doc/posix-headers/nl_types.texi: Correct platforms list.
10003
10004 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10005
10006         Add lgpl-3.0 module.
10007         * MODULES.html.sh (Support for building documentation): Add
10008         lgpl-3.0.
10009         * modules/lgpl-3.0: New file.
10010
10011 2012-01-08  Jim Meyering  <meyering@redhat.com>
10012
10013         select.c: indent with spaces, not TABs
10014         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10015
10016 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10017
10018         quotearg: do not use grave accent for left quote
10019         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10020         locale_quoting_style.
10021         (quotearg_buffer_restyled): Fix example.
10022         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10023
10024 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10025
10026         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10027         Most programs do not have translation catalogs for English and much
10028         less separate catalogs for British and American English.  Drop the
10029         suggestion to translators about these two, and provide it
10030         automatically for Unicode locales.  Like most programs, even those
10031         using American English, we use single quotation marks.  This conflicts
10032         with the American typographic convention, but works better when you
10033         cite the entire error message within double quotes.  It also tries not
10034         to clash with established practice and with what non-gnulib programs
10035         will usually do.
10036         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10037         using an UTF-8 or GB-18030 locale.  The list of other locales with
10038         quotes was provided by Bruno Haible.
10039         (quotearg_buffer_restyled): Adjust instructions to translators.
10040         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10041         text, since this would be wrong when using Unicode.
10042         * modules/quotearg: Depend on c-strcaseeq.
10043
10044 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10045
10046         quotearg: fix Wikipedia link
10047         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10048
10049 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10050
10051         Fix for mingw with MSVC9.
10052         * m4/ld-version-script.m4: Check that compiler rejects version
10053         scripts with syntax errors.  Reported by Bruno Haible
10054         <bruno@clisp.org>.
10055
10056 2012-01-06  Bruno Haible  <bruno@clisp.org>
10057
10058         Talk about "native Windows API", not "Woe32".
10059         * lib/accept4.c: Update comments to mention native Windows.
10060         * lib/execute.c: Likewise.
10061         * lib/fatal-signal.c: Likewise.
10062         * lib/localcharset.c: Likewise.
10063         * lib/nanosleep.c: Likewise.
10064         * lib/nl_langinfo.c: Likewise.
10065         * lib/pclose.c: Likewise.
10066         * lib/pipe-filter-gi.c: Likewise.
10067         * lib/pipe-filter-ii.c: Likewise.
10068         * lib/pipe.c: Likewise.
10069         * lib/pipe2.c: Likewise.
10070         * lib/popen.c: Likewise.
10071         * lib/progreloc.c: Likewise.
10072         * lib/relocatable.c: Likewise.
10073         * lib/sigaction.c: Likewise.
10074         * lib/sigprocmask.c: Likewise.
10075         * lib/spawn-pipe.h: Likewise.
10076         * lib/spawn-pipe.c: Likewise.
10077         * lib/spawni.c: Likewise.
10078         * lib/stat-time.h: Likewise.
10079         * lib/w32spawn.h: Likewise.
10080         * tests/test-isatty.c: Likewise.
10081         * lib/config.charset: More comments.
10082         * doc/gnulib-intro.texi: Mention native Windows.
10083         * doc/posix-functions/_Exit_C99.texi: Likewise.
10084         * doc/posix-headers/fcntl.texi: Likewise.
10085
10086 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10087
10088         argp: Avoid crash if translator uses % characters in a translation.
10089         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10090         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10091
10092 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10093
10094         doc: C11 and C++11 are now official
10095         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10096         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10097         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10098         * modules/stdalign:
10099         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10100
10101 2012-01-06  Bruno Haible  <bruno@clisp.org>
10102
10103         uc-is-grapheme-break tests: Tweak.
10104         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10105         message.
10106
10107 2012-01-06  Bruno Haible  <bruno@clisp.org>
10108
10109         test-init.sh: correct the test for diff -u
10110         * tests/test-init.sh: Also redirect stdout to /dev/null.
10111
10112 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10113
10114         Use ', not `, for quoting output.
10115         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10116         (print_changelog_deltas, get_tool_versions, main program):
10117         * build-aux/git-version-gen:
10118         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10119         * build-aux/move-if-change (help):
10120         * build-aux/useless-if-before-free (usage, main program):
10121         * check-module (parse_module_file, usage)
10122         (find_included_lib_files, check_module):
10123         * lib/argmatch.c (main) [TEST]:
10124         * lib/argp-help.c (_help):
10125         * lib/getopt1.c (main) [TEST]:
10126         * lib/git-merge-changelog.c (usage):
10127         * lib/xstrtol-error.c (xstrtol_error):
10128         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10129         * m4/argz.m4 (gl_FUNC_ARGZ):
10130         * m4/bison.m4 (gl_BISON):
10131         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10132         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10133         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10134         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10135         * m4/gc-random.m4 (gl_GC_RANDOM):
10136         * m4/intl.m4 (gt_CHECK_DECL):
10137         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10138         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10139         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10140         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10141         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10142         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10143         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10144         * tests/test-dirname.c (main):
10145         * tests/test-getpass.c (main):
10146         * tests/test-iconvme.c (main):
10147         * tests/test-parse-datetime.c (LOG):
10148         * tests/test-xstrtoimax.sh:
10149         * tests/test-xstrtol.sh:
10150         * tests/test-xstrtoll.sh:
10151         * tests/test-xstrtoumax.sh:
10152         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10153         * top/GNUmakefile (abort-due-to-no-makefile):
10154         Quote 'like this', not `like this', as per the recent change to
10155         the GNU coding standards.
10156
10157 2012-01-05  Bruno Haible  <bruno@clisp.org>
10158
10159         strtoimax: Don't force a replacement on systems where intmax_t is int.
10160         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10161         'intmax_t' is not larger than 'int'.
10162         Reported by Pádraig Brady <P@draigBrady.com>.
10163
10164 2012-01-05  Bruno Haible  <bruno@clisp.org>
10165
10166         doc: Mention NetBSD bugs.
10167         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10168         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10169
10170 2012-01-05  Bruno Haible  <bruno@clisp.org>
10171
10172         strtoumax tests: Enhance tests.
10173         * tests/test-strtoumax.c (main): Add tests for large values.
10174
10175 2012-01-05  Bruno Haible  <bruno@clisp.org>
10176
10177         strtoimax: Work around AIX 5.1 bug.
10178         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10179         definition.
10180         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10181         Set HAVE_STRTOIMAX.
10182         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10183         REPLACE_STRTOIMAX.
10184         * modules/inttypes-incomplete (Makefile.am): Substitute
10185         REPLACE_STRTOIMAX.
10186         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10187         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10188         (Depends-on): Update conditions.
10189         * tests/test-strtoimax.c (main): Add tests for large values.
10190         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10191
10192 2012-01-05  Bruno Haible  <bruno@clisp.org>
10193
10194         inttypes: Modernize.
10195         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10196         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10197         (Makefile.am): Update inttypes.h rule.
10198
10199 2012-01-05  Jim Meyering  <meyering@redhat.com>
10200
10201         init.sh: don't waste a subshell just to redirect stderr
10202         * tests/init.sh: In testing for diff -u and diff -c, use a
10203         stderr-redirecting exec inside `...` rather than a subshell.
10204
10205         test-init.sh: avoid failure on HP-UX 11.00
10206         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10207         resolves to diff -c or cmp.  Reported by Bruno Haible.
10208
10209 2012-01-05  Bruno Haible  <bruno@clisp.org>
10210
10211         Tests for module 'strtoull'.
10212         * modules/strtoull-tests: New file.
10213         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10214
10215 2012-01-05  Bruno Haible  <bruno@clisp.org>
10216
10217         Tests for module 'strtoll'.
10218         * modules/strtoll-tests: New file.
10219         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10220
10221 2012-01-05  Bruno Haible  <bruno@clisp.org>
10222
10223         Tests for module 'strtoul'.
10224         * modules/strtoul-tests: New file.
10225         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10226
10227 2012-01-05  Bruno Haible  <bruno@clisp.org>
10228
10229         Tests for module 'strtol'.
10230         * modules/strtol-tests: New file.
10231         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10232
10233 2012-01-04  Jim Meyering  <meyering@redhat.com>
10234
10235         test-init.sh: accommodate Solaris 5.10's different diff -u output
10236         * tests/test-init.sh: Also exempt @@ lines from the comparison
10237         of diff output, since Solaris 5.10 and GNU diff formats differ.
10238         Reported by Stefano Lattarini.
10239
10240 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10241
10242         test-posixtm: don't assume signed integer wraparound
10243         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10244         after signed integer overflow.  Inspired by (though it may not
10245         fix) Bruno Haible's bug report in
10246         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10247
10248         Spell out "Windows 9x" and "Windows XP".
10249         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10250         "Windows 9x" and "WinXP" with "Windows XP".
10251
10252 2012-01-04  Jim Meyering  <meyering@redhat.com>
10253
10254         test-vc-list-files-cvs.sh: remove obsolete comment
10255         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10256         double exit.  Now that's all encapsulated via skip_ and Exit.
10257
10258 2012-01-04  Bruno Haible  <bruno@clisp.org>
10259
10260         Talk about "native Windows API", not "Win32".
10261         * lib/classpath.c: Update comments to mention native Windows.
10262         * lib/csharpexec.c: Likewise.
10263         * lib/dup2.c: Likewise.
10264         * lib/error.c: Likewise.
10265         * lib/fcntl.c: Likewise.
10266         * lib/filename.h: Likewise.
10267         * lib/findprog.c: Likewise.
10268         * lib/get-rusage-as.c: Likewise.
10269         * lib/get-rusage-data.c: Likewise.
10270         * lib/getpagesize.c: Likewise.
10271         * lib/javaexec.c: Likewise.
10272         * lib/msvc-inval.c: Likewise.
10273         * lib/msvc-nothrow.c: Likewise.
10274         * lib/nanosleep.c: Likewise.
10275         * lib/nonblocking.c: Likewise.
10276         * lib/printf-parse.c: Likewise.
10277         * lib/setlocale.c: Likewise.
10278         * lib/sigaction.c: Likewise.
10279         * lib/strerror_r.c: Likewise.
10280         * lib/tmpdir.c: Likewise.
10281         * lib/vasnprintf.c: Likewise.
10282         * lib/w32spawn.h: Likewise.
10283         * lib/waitpid.c: Likewise.
10284         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10285         * m4/locale-ar.m4: Likewise.
10286         * m4/locale-fr.m4: Likewise.
10287         * m4/locale-ja.m4: Likewise.
10288         * m4/locale-tr.m4: Likewise.
10289         * m4/locale-zh.m4: Likewise.
10290         * m4/printf.m4: Likewise.
10291         * tests/test-cloexec.c: Likewise.
10292         * tests/test-copy-acl.sh: Likewise.
10293         * tests/test-copy-file.sh: Likewise.
10294         * tests/test-file-has-acl.sh: Likewise.
10295         * tests/test-set-mode-acl.sh: Likewise.
10296         * tests/test-dup-safer.c: Likewise.
10297         * tests/test-dup2.c: Likewise.
10298         * tests/test-dup3.c: Likewise.
10299         * tests/test-fcntl.c: Likewise.
10300         * tests/test-nonblocking-pipe.h: Likewise.
10301         * tests/test-nonblocking-socket.h: Likewise.
10302         * tests/test-pipe.c: Likewise.
10303         * tests/test-pipe2.c: Likewise.
10304         * tests/test-spawn-pipe-child.c: Likewise.
10305         * doc/acl-resources.txt: Likewise.
10306         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10307         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10308         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10309         * lib/localcharset.c: Update comments to mention native Windows.
10310         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10311         * lib/localename.c: Likewise.
10312         * lib/progreloc.c: Likewise.
10313         * lib/relocatable.c: Likewise.
10314         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10315         (windows_compute_revents): Renamed from win32_compute_revents.
10316         (windows_compute_revents_socket): Renamed from
10317         win32_compute_revents_socket.
10318         * lib/select.c: Update comments to mention native Windows.
10319         (windows_poll_handle): Renamed from win32_poll_handle.
10320         * m4/threadlib.m4: Update comments to mention native Windows.
10321         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10322         --enable-threads=windows instead of --enable-threads=win32. Set
10323         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10324         * lib/glthread/lock.h: Update comments to mention native Windows.
10325         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10326         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10327         USE_WIN32_THREADS.
10328         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10329         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10330         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10331         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10332         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10333         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10334         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10335         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10336         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10337         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10338         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10339         * tests/test-tls.c: Likewise.
10340         Rationale:
10341         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10342         on both 32-bit and 64-bit Windows systems.
10343         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10344         line of distinction is between "native Windows" on one side and Unix/
10345         POSIX systems on the other side. More details in
10346         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10347         Suggested by Paul Eggert.
10348
10349 2012-01-03  Bruno Haible  <bruno@clisp.org>
10350
10351         isatty: Support for MSVC 9.
10352         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10353         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10354         (_isatty_nothrow): New function.
10355         (isatty): Use it instead of _isatty.
10356         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10357         * lib/poll.c (IsConsoleHandle): Likewise.
10358         * lib/select.c (IsConsoleHandle): Likewise.
10359         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10360         (gl_PREREQ_ISATTY): New macro.
10361         * modules/isatty (Depends-on): Add msvc-inval.
10362         (configure.ac): Invoke gl_PREREQ_ISATTY.
10363
10364 2012-01-03  Jim Meyering  <meyering@redhat.com>
10365
10366         maint.mk: remove temporary transition aid from over 1.5 years ago
10367         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10368         purpose was to aid in the transition (avoiding silent malfunction)
10369         from that old name to the new _sc_search_regexp.  This shim was
10370         added by commit 219c504b.
10371
10372         init.sh: do not try to accommodate compare arguments starting with "-"
10373         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10374         compare arguments that start with "-".  Besides, we do not worry
10375         about this when invoking diff or cmp; why start now with sed?
10376         Using "--" to separate options from argument would trigger sed
10377         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10378         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10379
10380 2012-01-02  Bruno Haible  <bruno@clisp.org>
10381
10382         Enhance tests for module 'isatty'.
10383         * modules/isatty-tests (Depends-on): Add pipe-posix.
10384         * tests/test-isatty.c: Include <fcntl.h>.
10385         (DEV_NULL): New macro.
10386         (main): Test the resut of isatty() also on regular files, pipes, and
10387         /dev/null.
10388
10389         New module 'isatty'.
10390         * lib/unistd.in.h (isatty): New declaration.
10391         * lib/isatty.c: New file, based on an idea of
10392         Bastien Roucariès <roucaries.bastien@gmail.com>.
10393         * m4/isatty.m4: New file.
10394         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10395         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10396         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10397         REPLACE_ISATTY.
10398         * modules/isatty: New file.
10399         * doc/posix-functions/isatty.texi: Mention the new module.
10400         Suggested by Paolo Bonzini.
10401
10402 2012-01-02  Bruno Haible  <bruno@clisp.org>
10403
10404         canonicalize: Tweak 2011-12-29 commit.
10405         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10406         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10407
10408 2012-01-02  Jim Meyering  <meyering@redhat.com>
10409
10410         gitlog-to-changelog: describe input syntax in --help output
10411         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10412
10413         gitlog-to-changelog: fix typo in --help: show backslash before email @
10414         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10415         in sources, but not in actual output.
10416
10417 2011-12-30  Jim Meyering  <meyering@redhat.com>
10418
10419         gitlog-to-changelog: don't malfunction when name contains %-directive
10420         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10421         in a name string cause trouble.  E.g., with a user name of "%s",
10422         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10423
10424 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10425
10426         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10427         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10428         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10429         the "  (tiny change)" notation that is appended to the standard
10430         ChangeLog "date  name  email" header line.
10431
10432 2012-01-01  Jim Meyering  <meyering@redhat.com>
10433
10434         test-framework-sh: init.sh: fix "make dist" failure
10435         When using gnulib-tool's --with-tests option and any module that
10436         depends on test-framework-sh, "make dist" would fail due to the
10437         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10438         in the gltests directory, and not in the gllib/ directory.
10439         One way to work around that is to move the EXTRA_DIST += init.sh
10440         from the primary module to the -tests one:
10441         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10442         * modules/test-framework-sh (Makefile.am): ...not here.
10443         Reported by Tom G. Christensen in
10444         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10445
10446         version-etc: update copyright year reported by --version
10447         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10448
10449 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10450
10451         canonicalize: only stat() if required
10452         * lib/canonicalize.c (canonicalize_filename_mode):
10453         Avoid calling l?stat() when both CAN_MISSING,
10454         and CAN_NOLINKS are set, as we neither need
10455         to resolve symlinks or test component existence.
10456
10457 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10458
10459         doc: cover st_ino issues once; add OpenVMS etc.
10460         * doc/posix-functions/stat.texi (stat):
10461         * doc/posix-functions/lstat.texi (lstat):
10462         * doc/posix-functions/fstatat.texi (fstatat):
10463         * doc/posix-functions/fstat.texi (fstat):
10464         Move general 'struct stat' stuff to sys_stat.texi,
10465         leaving behind a pointer.
10466         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10467         Merge duplicate info about 'struct stat' problems into here.
10468         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10469         and suggest partial workarounds.
10470
10471         same-inode: port to OpenVMS
10472         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10473         three st_ino values.
10474
10475 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10476
10477         canonicalize: fix references to stat() and lstat()
10478         * lib/canonicalize.c (canonicalize_filename_mode):
10479         Ensure references always resolve to a replacement
10480         function if required (even via a macro).
10481
10482 2011-12-30  Jim Meyering  <meyering@redhat.com>
10483
10484         gitlog-to-changelog: remove a little duplication
10485         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10486         rather than twice.
10487
10488 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10489
10490         canonicalize: add support for not resolving symlinks
10491         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10492         indicate we don't want to follow symlinks.  Also
10493         provide CAN_MODE_MASK to aid setting these existing
10494         mutually exclusive values.
10495         * lib/canonicalize.c (canonicalize_filename_mode):
10496         Extract the flags from can_mode parameter, which
10497         are currently just used to select between stat()
10498         and lstat().  Also ensure that mutually exclusive
10499         values are flagged immediately as invalid.
10500         * tests/test-canonicalize.c: Verify symlinks are
10501         not followed, and that invalid flag combinations
10502         are diagnosed.
10503
10504 2011-12-25  Jim Meyering  <meyering@redhat.com>
10505
10506         gitlog-to-changelog: do not clump multi-paragraph entries
10507         Identical header lines (date,name,email+coauthors) are suppressed,
10508         thus putting all entries with those same characteristics under
10509         a single header.  However, when a log entry consists of two or
10510         more paragraphs, it may not be clear where it starts and ends.
10511         This change makes it so that such an entry is always separated
10512         from others by a header line, even when that header would
10513         otherwise be suppressed.
10514         * build-aux/gitlog-to-changelog: Implement the above.
10515         Inspired by a related request from Stefano Lattarini in
10516         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10517
10518 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10519
10520         announce-gen: fix `cmd' typo in diagnostic
10521         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10522         diagnostic: a missing '$' meant that the command was not output.
10523
10524 2011-12-23  Jim Meyering  <meyering@redhat.com>
10525
10526         test-framework-sh: distribute init.sh
10527         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10528         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10529         fail due to the lack of init.sh.
10530
10531         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10532         * modules/atexit-tests: Rather than listing tests/init.sh,
10533         now that there's a module for it, simply depend on that new module.
10534         * modules/closein-tests: Likewise.
10535         * modules/exclude-tests: Likewise.
10536         * modules/getcwd-tests: Likewise.
10537         * modules/perror-tests: Likewise.
10538         * modules/pread-tests: Likewise.
10539         * modules/pwrite-tests: Likewise.
10540         * modules/vc-list-files-tests: Likewise.
10541         * modules/verify-tests: Likewise.
10542         * modules/xalloc-die-tests: Likewise.
10543         * modules/xstrtoimax-tests: Likewise.
10544         * modules/xstrtol-tests: Likewise.
10545         * modules/xstrtoll-tests: Likewise.
10546         * modules/xstrtoumax-tests: Likewise.
10547         * modules/yesno-tests: Likewise.
10548
10549 2011-12-22  Jim Meyering  <meyering@redhat.com>
10550
10551         test-framework-sh: add minimal tests of init.sh's compare function
10552         * modules/test-framework-sh-tests: New file.
10553         * tests/test-init.sh: New file.
10554
10555         test-framework-sh: new module
10556         * modules/test-framework-sh: New file.
10557         * MODULES.html.sh (Support for maintaining and releasing projects):
10558         List it.
10559
10560         init.sh: do not emit simulated diff output to stderr
10561         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10562
10563 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10564
10565         .gitignore: ignore gnulib.dvi and regex.info
10566         * doc/.gitignore:add gnulib.dvi and regex.info
10567
10568 2011-12-22  Jim Meyering  <meyering@redhat.com>
10569
10570         init.sh: correct previous change
10571         * tests/init.sh (compare): My previous change was wrong.
10572         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10573
10574         init.sh: avoid unwarranted test failure when using "set -e"
10575         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10576         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10577         a use like "compare exp out" would get evoke an unconditional failure.
10578
10579 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10580
10581         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10582         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10583         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10584         autoreconf that did not.
10585         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10586         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10587
10588 2011-12-17  Jim Meyering  <meyering@redhat.com>
10589
10590         bootstrap: remove some now-unneeded code
10591         This script arose back when gnulib-tool was young.
10592         Since then, it has seen improvements that render much of this
10593         script unnecessary.  In particular, it can now make symlinks
10594         to the files it uses.  Also, I no longer see as much value in
10595         marking files as read-only via comments.
10596         If you relied on the symlink-creation feature of the preceding
10597         version of this script, you can get most of that functionality
10598         by adding the --symlink option to the definition of
10599         gnulib_tool_option_extras in your bootstrap.conf file.
10600         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10601         Run autopoint and libtoolize *before* gnulib-tool.
10602         After it, run an abbreviated autoreconf, rather than a loop around
10603         all tools.
10604         (slirp, bt_mark_as_generated): Remove functions.
10605
10606 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10607
10608         ftoastr: fix typo
10609         * lib/ftoastr.h: Fix misspelling in comment.
10610
10611 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10612
10613         * top/README-release: fix punctuation.
10614
10615 2011-12-17  Jim Meyering  <meyering@redhat.com>
10616
10617         bootstrap: correct the recent buildreq change
10618         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10619         had no effect.
10620         * build-aux/bootstrap (buildreq): Bracket each search term with
10621         "*...*", so that the shell "case" statement works as intended.
10622         Add comments.
10623
10624 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10625
10626         build: let bootstrap resort to wget when downloading .po files
10627         * build-aux/bootstrap (download_po_files): Fallback to wget when
10628         downloading the .po files via rsync fails.  This is necessary to
10629         bootstrap from behind a strict firewall.
10630
10631 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10632
10633         stdint: don't assume C++11 when compiling with g++
10634         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10636         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10637         work also in C++ before C++11, as that improperly inhibits
10638         generating a substitute stdint.h for that case.
10639
10640 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         alloca: protect comment from gnulib-tool
10643         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10644         that gnulib-tool doesn't think it's a license, and munge it to
10645         say "GCC version 3".
10646
10647 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10648
10649         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10650         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10651         $(abs_top_builddir) instead of $(top_builddir).
10652
10653 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10654
10655         strftime-tests: also test nanoseconds
10656         * tests/test-strftime.c (T): Add a test of %N.
10657
10658 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10659
10660         inttypes, stdint: add C++11 support
10661         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10662         when including inttypes.h and stdint.h.  Support this change to
10663         the standard.
10664         * doc/posix-headers/inttypes.texi (inttypes.h):
10665         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10666         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10667         Define if not defined already, for the benefit of pre-C++11 hosts.
10668         Define the standard format macros (e.g., PRId8) always.
10669         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10670         Likewise, if __cpluspus.  Define the standard constant and limit
10671         macros (e.g., INT8_C, INT8_MAX) always.
10672         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10673         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10674         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10675         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10676         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10677         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10678         Likewise.
10679
10680 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10681
10682         nonblocking tests: Fix test failure on Linux/PPC.
10683         Suggested by Prerna Saxena in
10684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10685         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10686         Set to 1100000.
10687
10688 2011-12-12  Jim Meyering  <meyering@redhat.com>
10689
10690         argmatch: don't hard-code `' when listing valid option arguments
10691         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10692         use the quote function to add quotes.  Use fputs rather than
10693         fprintf for the format string with no format directive.
10694
10695 2011-12-07  Eric Blake  <eblake@redhat.com>
10696
10697         bootstrap: detect tools required by gnulib-tool
10698         * build-aux/bootstrap (buildreq): Provide minimum implicit
10699         dependencies.
10700         * DEPENDENCIES: Mention patch as a prereq.
10701
10702 2011-12-04  Bruno Haible  <bruno@clisp.org>
10703
10704         sethostname: Port to Windows platforms.
10705         * lib/sethostname.c: Provide an alternate implementation for Windows
10706         platforms.
10707         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10708         (main): Skip the test if sethostname() fails with EPERM. On Windows
10709         platforms, don't check the result of gethostname().
10710
10711 2011-12-04  Bruno Haible  <bruno@clisp.org>
10712             Jim Meyering  <meyering@redhat.com>
10713
10714         tests: Avoid spurious error message on platforms without mktemp program.
10715         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10716
10717 2011-12-04  Bruno Haible  <bruno@clisp.org>
10718
10719         sethostname: Fix documentation.
10720         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10721         "not fixed" section.
10722
10723 2011-12-03  Bruno Haible  <bruno@clisp.org>
10724
10725         gnulib-tool: Verify that the License field is present and non-empty.
10726         * gnulib-tool (func_get_license_raw): New function, extracted from
10727         func_get_license.
10728         (func_get_license): Use it. Warn if the module is not a test module and
10729         has no license.
10730         Suggested by Jim Meyering.
10731
10732 2011-12-03  Bruno Haible  <bruno@clisp.org>
10733
10734         sethostname tests: Fix link error on mingw.
10735         * tests/test-sethostname1.c: New file, extracted from
10736         tests/test-sethostname.c.
10737         * tests/test-sethostname2.c: New file, extracted from
10738         tests/test-sethostname.c.
10739         * tests/test-sethostname.c: Remove file.
10740         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10741         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10742         (Depends-on): Add gethostname.
10743         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10744         Link the latter with $(GETHOSTNAME_LIB).
10745
10746         sethostname tests: Fix compilation error on mingw.
10747         * tests/test-sethostname.c: Don't include <sys/types.h>.
10748         (geteuid): Use a dummy value without uid_t.
10749         * modules/sethostname-tests (Depends-on): Remove sys_types.
10750
10751         sethostname tests: Avoid a gcc warning.
10752         * tests/test-sethostname.c (main): Remove an unused variable.
10753
10754         Tweak last commit.
10755         * modules/sethostname-tests (Files): Sort by decreasing importance.
10756         (configure.ac): Check for geteuid.
10757         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10758         the test when there's nothing to test. Drop an unnecessary cast.
10759         Improve an error message. Verify that the final sethostname() call
10760         succeeds.
10761
10762 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10763
10764         Add a test suite for the sethostname module.
10765         * modules/sethostname-tests: New file.  A test program
10766         for the sethostname module.
10767         * tests/test-sethostname.c: Likewise.
10768
10769 2011-12-03  Bruno Haible  <bruno@clisp.org>
10770
10771         Tweak last commit.
10772         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10773         Fix preprocessor directives indentation. Fix typos.
10774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10775         * modules/unistd (Makefile): Likewise.
10776
10777 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10778
10779         Integrate the sethostname module into unistd.
10780         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10781         into the unistd.h header.
10782         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10783         preprocessor directives.
10784         * modules/unistd: Setup the Makefile substitutions of the
10785         SETHOSTNAME preprocessor directives.
10786
10787 2011-12-03  Bruno Haible  <bruno@clisp.org>
10788
10789         Tweak last commit.
10790         * lib/sethostname.c: Don't include <string.h>.
10791         (sethostname): No need to copy the argument string to the stack. Don't
10792         call clearerr. Preserve errno when fprintf failed.
10793         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10794         Don't invoke AC_REPLACE_FUNCS.
10795         * modules/sethostname (Link): Remove empty section.
10796         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10797         failure problem.
10798
10799 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10800
10801         New module 'sethostname'.
10802         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10803         for systems that lack it.
10804         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10805         sethostname declaration and function.
10806         * modules/sethostname: New file.  Define the sethostname module.
10807
10808 2011-12-03  Bruno Haible  <bruno@clisp.org>
10809
10810         Tweak last commit.
10811         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10812
10813 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10814
10815         Split the HOST_NAME_MAX detection into a separate m4 macro.
10816         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10817         macro so it can be used by the pending sethostname module.
10818
10819 2011-12-03  Bruno Haible  <bruno@clisp.org>
10820
10821         Fix module descriptions syntax.
10822         * modules/argv-iter (License): Fix syntax.
10823         * modules/di-set (License): Likewise.
10824         * modules/ino-map (License): Likewise.
10825         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10826
10827 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10828
10829         stdalign: port to Clang 3.0
10830         Problem reported by Simon Josefsson in
10831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10832         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10833         which has <stdalign.h> but which does not define alignof.
10834         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10835
10836 2011-12-01  Eric Blake  <eblake@redhat.com>
10837
10838         mktempd: silence dd usage
10839         * build-aux/mktempd (rand_bytes): Silence dd.
10840
10841 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10842
10843         manywarnings: Don't mention gcc version in docstring.
10844         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10845         Jim Meyering <meyering@redhat.com>.
10846
10847 2011-11-30  Jim Meyering  <meyering@redhat.com>
10848
10849         hash: mark a few floating point constants with "f" suffix
10850         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10851         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10852         floating point constants with "f", since they're destined to be
10853         saved/used as "float"s.
10854
10855 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10856
10857         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10858         * tests/test-float.c (test_long_double): Correct and re-enable the
10859         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10860
10861 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10862
10863         Avoid subtracting two pointers that don't point into the same block.
10864         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10865         only pointers into the same memory block are subtracted. We cannot
10866         assume that sizeof (ptrdiff_t) == sizeof (void *).
10867
10868 2011-11-29  Eric Blake  <eblake@redhat.com>
10869
10870         maint.mk: add syntax check for use of compare from init.sh
10871         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10872         moved here from coreutils.
10873
10874         manywarnings: drop -Wunsuffixed-float-constants
10875         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10876         '1.0D', which is the only way to silence this warning for 'double'.
10877
10878 2011-11-29  Jim Meyering  <meyering@redhat.com>
10879
10880         hash: mark compute_bucket_size with the pure attribute
10881         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10882
10883         quotearg, propername: correct pragma guard expression
10884         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10885         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10886
10887 2011-11-28  Jim Meyering  <meyering@redhat.com>
10888
10889         propername: do not mark proper_name with the const attribute
10890         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10891         since it examines data pointed to by its parameter.
10892         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10893         the suggestion from -Wsuggest-attribute=const.
10894
10895         propername: mark one more function as const
10896         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10897
10898 2011-11-27  Jim Meyering  <meyering@redhat.com>
10899
10900         mark functions with const and pure attributes
10901
10902         Mark functions per suggestions from gcc-4.6 when using these options:
10903         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10904         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10905         Follow these guidelines: when possible, apply the attribute to
10906         an extern declaration, not to its definition.  Apply it to the
10907         definition only when the definition is static.
10908         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10909         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10910         * lib/base64.h (isbase64): Likewise.
10911         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10912         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10913         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10914         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10915         (c_tolower, c_toupper): Likewise.
10916         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10917         * lib/chdir-long.c (find_non_slash): Likewise.
10918         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10919         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10920         * lib/file-type.h (file_type): Likewise.
10921         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10922         * lib/filevercmp.c (verrevcmp): Likewise.
10923         * lib/freadahead.h (freadahead): Likewise.
10924         * lib/fts.c (fts_maxarglen): Likewise.
10925         * lib/hash-pjw.h (hash_pjw): Likewise.
10926         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10927         * lib/hash.c (is_prime, next_prime): Likewise.
10928         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10929         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10930         (hash_table_ok, hash_get_first, hash_string): Likewise.
10931         (compute_bucket_size): Likewise.
10932         * lib/i-ring.h (i_ring_empty): Likewise.
10933         * lib/isnan.c (isnanl): Likewise.
10934         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10935         * lib/memcasecmp.h (memcasecmp): Likewise.
10936         * lib/memchr2.h (memchr2): Likewise.
10937         * lib/memcmp2.h (memcmp2): Likewise.
10938         * lib/parse-datetime.y (lookup_zone): Likewise.
10939         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10940         [!WINDOWS_SOCKETS]: Likewise.
10941         * lib/strnlen1.h (strnlen1): Likewise.
10942         * lib/uniwidth.in.h (uc_width): Likewise.
10943         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10944         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10945         (quoting_options_from_style): Add a comment.
10946         * lib/propername.h (proper_name): Add a comment.
10947
10948 2011-11-27  Bruno Haible  <bruno@clisp.org>
10949
10950         Remove unused macros from !_LIBC code in glibc-borrowed files.
10951         * lib/fnmatch.c (STRCOLL): Remove macro.
10952         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10953         * lib/glob.c (__stat, __readdir64): Remove macros.
10954         * lib/tempname.c (__open64, __xstat64): Remove macros.
10955         Suggested by Paul Eggert.
10956
10957 2011-11-27  Bruno Haible  <bruno@clisp.org>
10958
10959         getcwd: Fix link error on MSVC 9.
10960         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10961
10962 2011-11-27  Bruno Haible  <bruno@clisp.org>
10963
10964         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10965         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10966         HAVE_OPENDIR is 0.
10967         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10968         HAVE_CLOSEDIR is 0.
10969         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10970         is 0.
10971         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10972
10973 2011-11-27  Bruno Haible  <bruno@clisp.org>
10974
10975         getcwd: Fix bug from 2011-08-17.
10976         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10977         platforms that need it.
10978         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10979         code of 4 to be a failure, not a success. This ensures that
10980         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10981
10982 2011-11-27  Bruno Haible  <bruno@clisp.org>
10983
10984         binary-io tests: Avoid test failure on mingw when libtool is used.
10985         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10986         Don't verify the size of t-bin-out1.tmp here.
10987         * tests/test-binary-io.sh: Verify it here.
10988         Reported by Simon Josefsson.
10989
10990 2011-11-26  Bruno Haible  <bruno@clisp.org>
10991
10992         Fix conflict between two instantiations of module 'unistd'.
10993         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10994         ${include_guard_prefix} also in the autoconf snippet.
10995         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10997         GNULIB_UNISTD_H_GETOPT.
10998         * modules/getopt-posix (configure.ac): Set the
10999         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11000         * modules/getopt-gnu (configure.ac): Likewise.
11001         * modules/unistd (Makefile.am): Change the substitution value of
11002         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11003         Reported by Simon Josefsson.
11004
11005 2011-11-25  Bruno Haible  <bruno@clisp.org>
11006
11007         pagealign_alloc: Doc and comments.
11008         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11009         module.
11010         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11011
11012 2011-11-25  Jim Meyering  <meyering@redhat.com>
11013
11014         test-update-copyright.sh: avoid false-positive failure
11015         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11016         around false positive failure on Cygwin/Windows.  The latter was
11017         matching erroneously-created files with names like
11018         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11019
11020 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11021
11022         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11023         * m4/valgrind-tests.m4: Check that the parameters that will be
11024         used works, not just a subset of them.  Reported by Bruno Haible
11025         <bruno@clisp.org>.
11026
11027 2011-11-24  Jim Meyering  <meyering@redhat.com>
11028
11029         test-stdalign.c: comment out long double tests
11030         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11031         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11032         error: '_Alignas' specifiers cannot reduce alignment of \
11033         'static_longdouble_alignas'.
11034
11035 2011-11-22  Jim Meyering  <meyering@redhat.com>
11036
11037         init.sh: make "compare /dev/null FILE" output more readable
11038         * tests/init.sh (compare_): Document the preferred order of arguments.
11039         (emit_diff_u_header_): New function.
11040         (compare_dev_null_): Emit a simulated diff, rather than just the
11041         contents of the unexpected file.  Suggestion from Bruno Haible.
11042
11043 2011-11-21  Jim Meyering  <meyering@redhat.com>
11044             Eric Blake  <eblake@redhat.com>
11045
11046         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11047         * tests/init.sh: Make our compare function slightly more portable.
11048         Reported by Bruno Haible in
11049         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11050
11051 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11052
11053         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11054         before using it, in code that ends up in config.h.
11055
11056 2011-11-20  Bruno Haible  <bruno@clisp.org>
11057
11058         getcwd: Work around getcwd bug on AIX 5..7.
11059         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11060         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11061         Use a different value for gl_cv_func_getcwd_path_max. Move the
11062         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11063         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11064         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11065         Define HAVE_MINIMALLY_WORKING_GETCWD.
11066         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11067         where it is not even minimally working, that is, on AIX.
11068         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11069         m4/getcwd-path-max.m4.
11070         (main): Update exit code computation.
11071         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11072         getcwd does not handle long file names.
11073
11074 2011-11-20  Bruno Haible  <bruno@clisp.org>
11075
11076         getcwd: Fix bug from 2009-09-10.
11077         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11078         like "no".
11079
11080 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11081
11082         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11083
11084 2011-11-20  Bruno Haible  <bruno@clisp.org>
11085
11086         fma tests: Avoid shadowing local variables.
11087         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11088         expected.
11089
11090 2011-11-20  Bruno Haible  <bruno@clisp.org>
11091
11092         copysignf tests: Fix.
11093         * tests/test-copysignf.c: Fix signature check.
11094
11095 2011-11-20  Bruno Haible  <bruno@clisp.org>
11096
11097         fma: Remove unused code.
11098         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11099         unused macros.
11100
11101 2011-11-20  Bruno Haible  <bruno@clisp.org>
11102
11103         sethostname: Fix doc about AIX.
11104         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11105         sethostname; it has it.
11106
11107         sethostname: Mention more portability problems.
11108         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11109         problem.
11110         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11111
11112 2011-11-19  Bruno Haible  <bruno@clisp.org>
11113
11114         Depend on module fcntl-h when AT_FDCWD is used.
11115         * modules/utimens (Depends-on): Add fcntl-h.
11116         * modules/areadlinkat (Depends-on): Likewise.
11117         * modules/areadlinkat-with-size (Depends-on): Likewise.
11118         * modules/faccessat (Depends-on): Likewise.
11119         * modules/fchmodat (Depends-on): Likewise.
11120         * modules/fchownat (Depends-on): Likewise.
11121         * modules/getcwd (Depends-on): Likewise.
11122         * modules/mkdirat (Depends-on): Likewise.
11123         * modules/mkfifoat (Depends-on): Likewise.
11124         * modules/readlinkat (Depends-on): Likewise.
11125         * modules/symlinkat (Depends-on): Likewise.
11126         * modules/dup2-tests (Depends-on): Likewise.
11127         * modules/fdutimensat-tests (Depends-on): Likewise.
11128         * modules/futimens-tests (Depends-on): Likewise.
11129
11130 2011-11-19  Bruno Haible  <bruno@clisp.org>
11131
11132         euidaccess: Update a comment.
11133         * lib/euidaccess.c: Update comment about platforms with faccessat.
11134
11135 2011-11-19  Bruno Haible  <bruno@clisp.org>
11136
11137         openat: Fix file list.
11138         * modules/openat (Files): Remove lib/at-func.c.
11139
11140 2011-11-19  Bruno Haible  <bruno@clisp.org>
11141
11142         fstatat: Simplify.
11143         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11144         gnulib should define rpl_fstatat, there is a
11145         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11146
11147 2011-11-19  Bruno Haible  <bruno@clisp.org>
11148
11149         Ensure 'inline' can be used in tests/test-utimens-common.h.
11150         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11151         * modules/futimens-tests (configure.ac): Likewise.
11152         * modules/utimens-tests (configure.ac): Likewise.
11153         * modules/utimensat-tests (configure.ac): Likewise.
11154
11155 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11156
11157         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11158         not hash_insert0.
11159         (hash_insert_if_absent): Doc fix.
11160
11161 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11162
11163         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11164
11165 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11166
11167         test-getcwd: disambiguate exit status
11168         * tests/test-getcwd.c (test_long_name): Return 0..7.
11169         (main): Exit with an unambiguous exit status.  The old
11170         code yielded a mysterious mixture of two failure codes.
11171
11172         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11173         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11174         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11175         rpl_fstatat or fstatat.  This should fix the other problem
11176         reported by Kai Habel in
11177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11178         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11180         and I reproduced it on a Solaris 8 host we still have in production.
11181
11182 2011-11-18  Jim Meyering  <meyering@redhat.com>
11183
11184         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11185         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11186         Add a sentence to the comment.
11187         (hash_insert0): New function that simply calls hash_insert_if_absent.
11188         * lib/hash.h (hash_insert_if_absent): Declare it.
11189         (hash_insert0): Add deprecation attribute.
11190         (_GL_ATTRIBUTE_DEPRECATED): Define.
11191         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11192         not hash_insert0.
11193         * NEWS: Mention it, even though it's not really an incompatible change.
11194
11195 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11196
11197         openat: avoid compilation failure due to lack of <errno.h> inclusion
11198         * lib/openat.c: Include <errno.h>.
11199
11200 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11201
11202         * modules/getcwd (Depends-on): Add fdopendir.
11203         This fixes one of the two problems reported by Kai Habel in
11204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11205
11206         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11207         stdalign problem reported by Ian Beckwith in
11208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11209         * modules/crypto/gc-arcfour (Depends-on):
11210         Depend conditionally on crypto/arcfour.
11211         * modules/crypto/gc-arctwo (Depends-on):
11212         Depend conditionally on crypto/arctwo.
11213         * modules/crypto/gc-des (Depends-on):
11214         Depend conditionally on crypto/des.
11215         * modules/crypto/gc-hmac-md5 (Depends-on):
11216         Depend conditionally on crypto/hmac-md5.
11217         * modules/crypto/gc-hmac-sha1 (Depends-on):
11218         Depend conditionally on crypto/hmac-sha1.
11219         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11220         * modules/crypto/gc-md4 (Depends-on):
11221         Depend conditionally on crypto/md4.
11222         * modules/crypto/gc-md5 (Depends-on):
11223         Depend conditionally on crypto/md5.
11224         * modules/crypto/gc-rijndael (Depends-on):
11225         Depend conditionally on crypto/rijndael.
11226         * modules/crypto/gc-sha1 (Depends-on):
11227         Depend conditionally on crypto/sha1.
11228         * modules/crypto/gc-arcfour:
11229         * modules/crypto/gc-arctwo:
11230         * modules/crypto/gc-des:
11231         * modules/crypto/gc-hmac-md5:
11232         * modules/crypto/gc-hmac-sha1:
11233         * modules/crypto/gc-md2:
11234         * modules/crypto/gc-md4:
11235         * modules/crypto/gc-md5:
11236         * modules/crypto/gc-rijndael:
11237         * modules/crypto/gc-sha1:
11238         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11239         now that the conditional dependencies do the work for us.
11240
11241 2011-11-17  Jim Meyering  <meyering@redhat.com>
11242
11243         tests: factor st_ctime-comparison out of two headers
11244         * tests/test-utimens-common.h (ctime_compare): Define.
11245         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11246         * tests/test-lutimens.h (test_lutimens): Likewise.
11247         * tests/test-utimens.h (test_utimens): Likewise.
11248
11249         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11250         Invoke the test program via an init.sh-using wrapper.
11251         * tests/test-getcwd.sh: New file.
11252         * modules/getcwd-tests (Files): Add it.
11253         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11254
11255 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11256
11257         gitlog-to-changelog: support multi-author commits.
11258         The FSF cares about keeping track of all authors of patches to its
11259         projects, but Git doesn't provide obvious support for multi-author
11260         changesets. Consensus seems to be forming around the use of extra
11261         Signed-off-by inspired lines in the log message formatted as
11262         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11263         multi-author commits between version control systems.
11264         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11265         log message and output in standard ChangeLog multi-author format.
11266         Reported by Peter Rosin <peda@lysator.liu.se>
11267
11268 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11269             Bruno Haible  <bruno@clisp.org>
11270
11271         Fix some modules' file list.
11272         * modules/fstatat (Files): Add m4/lstat.m4.
11273         * modules/openat (Files): Likewise.
11274         * modules/unlinkat (Files): Likewise.
11275
11276 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11277
11278         maint.mk: fix tight-scope.mk generation in VPATH builds.
11279         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11280         reference with $(srcdir) so that the file is found correctly even
11281         when running `make syntax-check' in a VPATH build.
11282
11283 2011-11-13  Bruno Haible  <bruno@clisp.org>
11284             Jim Meyering  <meyering@redhat.com>
11285
11286         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11287         * tests/init.sh (compare): Remove "No differences encountered" or
11288         synonymous output from the 'diff' program.
11289
11290 2011-11-13  Bruno Haible  <bruno@clisp.org>
11291
11292         Makefile: Tweak indentation.
11293         * Makefile: Use tab as first character in every line that contains rule
11294         commands.
11295
11296 2011-11-13  Bruno Haible  <bruno@clisp.org>
11297
11298         Syntax check for copyright statements.
11299         * check-copyright: New file.
11300         * Makefile (sc_check_copyright): New rule.
11301
11302 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11303
11304         * build-aux/git-version-gen: Add --prefix to configure the tag
11305         match string.
11306
11307 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11308
11309         * build-aux/git-version-gen: Add --help and --version.
11310
11311 2011-11-12  Jim Meyering  <meyering@redhat.com>
11312
11313         revamp the other test-exclude?.sh scripts to use init.sh, too
11314         * tests/test-exclude1.sh: Use init.sh.
11315         * tests/test-exclude2.sh: Likewise.
11316         * tests/test-exclude3.sh: Likewise.
11317         * tests/test-exclude4.sh: Likewise.
11318         * tests/test-exclude5.sh: Likewise.
11319         * tests/test-exclude6.sh: Likewise.
11320         * tests/test-exclude7.sh: Likewise.
11321         * tests/test-exclude8.sh: Likewise.
11322         * modules/exclude-tests (Files): List init.sh.
11323
11324         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11325         These shell scripts ignored failure of the binary test-exclude,
11326         so making the latter return 77 didn't cause them to be skipped.
11327         * tests/test-exclude5.sh: Exit with test-exclude's error status
11328         when that program fails.  Revamp to use init.sh.
11329         * tests/test-exclude2.sh: Likewise.
11330
11331         test-exclude: fix a typo
11332         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11333
11334 2011-11-11  Bruno Haible  <bruno@clisp.org>
11335
11336         obstack: Fix compilation error on MSVC 9.
11337         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11338
11339 2011-11-11  Jim Meyering  <meyering@redhat.com>
11340
11341         test-exclude: skip tests rather than failing on deficient systems
11342         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11343         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11344         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11345         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11346
11347 2011-11-10  Bruno Haible  <bruno@clisp.org>
11348
11349         ptsname_r test: Avoid gcc warning on glibc systems.
11350         * tests/test-ptsname_r.c (null_ptr): New function.
11351         (test_errors): Use it.
11352
11353 2011-11-10  Bruno Haible  <bruno@clisp.org>
11354
11355         ptsname_r: Avoid compilation error on OSF/1 5.1.
11356         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11358         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11359         function is not declared or incompatibly declared.
11360         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11361         * modules/ptsname_r (Depends-on, configure.ac): Update.
11362         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11363
11364 2011-11-10  Bruno Haible  <bruno@clisp.org>
11365
11366         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11367         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11368         When cross-compiling, guess yes on all platforms except AIX.
11369         Reported by Ludovic Courtès <ludo@gnu.org>.
11370
11371 2011-11-09  Bruno Haible  <bruno@clisp.org>
11372
11373         ptsname_r tests: Fix bugs.
11374         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11375         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11376
11377 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11378
11379         fstatat: work with cross-compilation
11380         Problem reported by Ludovic Courtès in
11381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11382         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11383         "cross-compiling" and assume the bug is present.  Replace
11384         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11385         an inverted sense, to be more conservative about our assumptions.
11386         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11387
11388 2011-11-09  Bruno Haible  <bruno@clisp.org>
11389
11390         Improve MODULES.html output.
11391         * modules/mkfifoat (Description): Use the word "function".
11392         * modules/readlinkat (Description): Likewise.
11393         * modules/symlinkat (Description): Likewise.
11394
11395 2011-11-09  Eric Blake  <eblake@redhat.com>
11396
11397         ptsname_r-tests: new test module
11398         * modules/ptsname_r-tests: New module.
11399         * tests/test-ptsname_r.c: New file.
11400
11401         ptsname_r: new module
11402         * modules/ptsname_r: New module.
11403         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11404         * lib/ptsname.c (__ptsname_r): Split...
11405         * lib/ptsname_r.c: ...into new file.
11406         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11407         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11408         * modules/stdlib (Makefile.am): Substitute witnesses.
11409         * lib/stdlib.in.h (ptsname_r): Declare it.
11410         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11411         * MODULES.html.sh (Misc): Likewise.
11412         * modules/ptsname (Depends-on): Alter dependency.
11413         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11414
11415 2011-11-09  Jim Meyering  <meyering@redhat.com>
11416
11417         announce-gen: be more concise when there's only one URL+tarball
11418         * build-aux/announce-gen (get_tool_versions): When you distribute
11419         only one type of tarball, combine the first two "Here are..."
11420         sections and make the key-checking grammar independent of
11421         how many tarballs there are.
11422
11423 2011-11-09  Eric Blake  <eblake@redhat.com>
11424
11425         openpty: provide a stub on mingw
11426         * lib/pty.in.h (includes): Provide forward declarations.
11427         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11428
11429         raise: fix mingw handling of SIGPIPE
11430         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11431
11432 2011-11-08  Bruno Haible  <bruno@clisp.org>
11433
11434         More conditional dependencies.
11435         * modules/faccessat (Depends-on): Add conditions.
11436         * modules/fchmodat (Depends-on): Likewise.
11437         * modules/fchownat (Depends-on): Likewise.
11438         * modules/fstatat (Depends-on): Likewise.
11439         * modules/mkfifoat (Depends-on): Likewise.
11440         * modules/readlinkat (Depends-on): Likewise.
11441         * modules/symlinkat (Depends-on): Likewise.
11442         * modules/unlinkat (Depends-on): Likewise.
11443         * modules/utimensat (Depends-on): Likewise.
11444         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11445         * modules/linkat (Depends-on): Refine the conditions.
11446         * modules/renameat (Depends-on): Likewise.
11447
11448 2011-11-08  Bruno Haible  <bruno@clisp.org>
11449
11450         faccessat: Move AC_LIBOBJ invocation to module description.
11451         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11452         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11453         invocation from here...
11454         * modules/faccessat (configure.ac): ... to here. Invoke
11455         gl_PREREQ_FACCESSAT.
11456
11457 2011-11-08  Bruno Haible  <bruno@clisp.org>
11458
11459         faccessat: Simplify autoconf macro.
11460         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11461         gl_FUNC_EUIDACCESS.
11462
11463 2011-11-08  Bruno Haible  <bruno@clisp.org>
11464
11465         renameat: Fix dependencies.
11466         * modules/renameat (Depends-on): Add stdbool.
11467
11468 2011-11-08  Bruno Haible  <bruno@clisp.org>
11469
11470         mkfifoat: Fix module description.
11471         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11472         not gl_UNISTD_MODULE_INDICATOR.
11473
11474 2011-11-08  Bruno Haible  <bruno@clisp.org>
11475
11476         fstatat: Remove unused dependency.
11477         * modules/fstatat (Depends-on): Remove fstat.
11478
11479 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11480
11481         GNUmakefile: behave when Makefile is missing.
11482         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11483
11484 2011-11-08  Bruno Haible  <bruno@clisp.org>
11485
11486         openat: Conditionalize dependencies.
11487         * lib/openat.c: Reduce the scope of some #includes.
11488         * modules/openat (Depends-on): Add conditions.
11489
11490 2011-11-07  Jim Meyering  <meyering@redhat.com>
11491
11492         maint.mk: extract GPG key ID without using a temporary file
11493         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11494         without using a temporary file.  Based on a suggestion from Werner Koch
11495         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11496
11497 2011-11-07  Eric Blake  <eblake@redhat.com>
11498
11499         grantpt: fix typo
11500         * lib/stdlib.in.h (grantpt): Check correct function.
11501
11502         maint.mk: silence new syntax check
11503         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11504
11505 2011-11-06  Bruno Haible  <bruno@clisp.org>
11506
11507         Doc about floating-point and math API.
11508         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11509         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11510
11511 2011-11-06  Bruno Haible  <bruno@clisp.org>
11512
11513         stdalign tests: Skip the test when compiled by Sun C.
11514         * tests/test-stdalign.c (main): Skip the test on Sun C.
11515
11516 2011-11-06  Bruno Haible  <bruno@clisp.org>
11517
11518         ansi-c++-opt: Complete the 2011-06-05 change.
11519         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11520         does not support namespaces, set the variable to "no", not to ":".
11521
11522 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11523
11524         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11525
11526 2011-11-06  Bruno Haible  <bruno@clisp.org>
11527
11528         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11529         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11530         (minus_zerol) [HP-UX]: New macro.
11531         (unary_minus) [HP-UX]: New function.
11532         (copysignl) [HP-UX]: Use unary_minus function.
11533
11534 2011-11-06  Bruno Haible  <bruno@clisp.org>
11535
11536         ldexp, ldexpf, ldexpl: Enhance tests.
11537         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11538         and tests/test-ldexpl.c.
11539         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11540         LDEXP, MIN_EXP, MAX_EXP): New macros.
11541         Include test-ldexp.h.
11542         (main): Just call test_function.
11543         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11544         infinity.h, nan.h.
11545         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11546         MAX_EXP): New macros.
11547         Include test-ldexp.h.
11548         (x, y): Remove variables.
11549         (main): Just call test_function.
11550         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11551         infinity.h, nan.h.
11552         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11553         MAX_EXP): New macros.
11554         Include test-ldexp.h.
11555         (x, y): Remove variables.
11556         (main): Just call test_function.
11557         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11558         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11559         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11560         (Depends-on): Add isnand-nolibm, signbit, float.
11561         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11562         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11563         (Depends-on): Add isnanf-nolibm, signbit, float.
11564
11565 2011-11-06  Bruno Haible  <bruno@clisp.org>
11566
11567         math tests: Cosmetics.
11568         * tests/test-math-c++.cc: Reorder declarations.
11569
11570 2011-11-05  Bruno Haible  <bruno@clisp.org>
11571
11572         fma*: Simplify test.
11573         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11574         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11575
11576         Tests for module 'fmal'.
11577         * modules/fmal-tests: New file.
11578         * tests/test-fmal1.c: New file.
11579         * tests/test-fmal2.c: New file.
11580
11581         New module 'fmal'.
11582         * lib/math.in.h (fmal): New declaration.
11583         * lib/fmal.c: New file.
11584         * m4/fmal.m4: New file.
11585         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11587         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11588         REPLACE_FMAL.
11589         * modules/fmal: New file.
11590         * doc/posix-functions/fmal.texi: Mention the new module and the various
11591         bugs.
11592
11593         Tests for module 'fmaf'.
11594         * modules/fmaf-tests: New file.
11595         * tests/test-fmaf1.c: New file.
11596         * tests/test-fmaf2.c: New file.
11597
11598         New module 'fmaf'.
11599         * lib/math.in.h (fmaf): New declaration.
11600         * lib/fmaf.c: New file.
11601         * m4/fmaf.m4: New file.
11602         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11604         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11605         REPLACE_FMAF.
11606         * modules/fmaf: New file.
11607         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11608         bugs.
11609
11610         Tests for module 'fma'.
11611         * modules/fma-tests: New file.
11612         * tests/test-fma1.c: New file.
11613         * tests/test-fma1.h: New file.
11614         * tests/test-fma2.c: New file.
11615         * tests/test-fma2.h: New file.
11616
11617         New module 'fma'.
11618         * lib/math.in.h (fma): New declaration.
11619         * lib/fma.c: New file.
11620         * m4/fma.m4: New file.
11621         * m4/fegetround.m4: New file.
11622         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11624         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11625         REPLACE_FMA.
11626         * modules/fma: New file.
11627         * doc/posix-functions/fma.texi: Mention the new module and the various
11628         bugs.
11629
11630         Extend gl_MATHFUNC.
11631         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11632         Support 'void' as argument type.
11633         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11634
11635 2011-11-05  Jim Meyering  <meyering@redhat.com>
11636
11637         maint.mk: also prohibit inclusion of dirent.h without use
11638         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11639
11640 2011-11-05  Bruno Haible  <bruno@clisp.org>
11641
11642         ldexpl tests: Avoid test failure on MSVC 9.
11643         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11644         value. Needed in order to enforce the conversion from a value greater
11645         than LDBL_MAX to Infinity.
11646
11647 2011-11-05  Bruno Haible  <bruno@clisp.org>
11648
11649         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11650         * modules/at-internal: New file, extracted from modules/openat.
11651         * modules/openat-h: New file.
11652         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11653         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11654         * modules/openat (Description): Add reference to POSIX function.
11655         (Files): Remove lib/openat.h, lib/openat-proc.c.
11656         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11657         intprops, unistd.
11658         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11659         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11660         gl_FCNTL_MODULE_INDICATOR.
11661         (Include): Remove unistd.h, openat.h.
11662         * modules/areadlinkat (Files): Add lib/at-func.c.
11663         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11664         openat-die, openat-h, save-cwd.
11665         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11666         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11667         openat-die, openat-h, save-cwd, unistd.
11668         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11669         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11670         openat-h, save-cwd. Remove fcntl-h, openat.
11671         * modules/fchmodat (Files): Remove lib/openat.h.
11672         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11673         openat, stdbool, unistd.
11674         * modules/fchownat (Files): Remove lib/openat.h.
11675         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11676         openat, stdbool, sys_stat.
11677         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11678         lib/openat-proc.c.
11679         (Depends-on): Add at-internal.
11680         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11681         * modules/fstatat (Files): Remove lib/openat.h.
11682         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11683         stdbool, unistd.
11684         * modules/fts (Depends-on): Add openat-h.
11685         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11686         openat.
11687         * modules/mkdirat (Files): Remove lib/openat.h.
11688         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11689         openat, stdbool, sys_stat.
11690         * modules/mkfifoat (Files): Add lib/at-func.c.
11691         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11692         openat-h, save-cwd. Remove fcntl-h, openat.
11693         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11694         * modules/readlinkat (Files): Add lib/at-func.c.
11695         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11696         openat-h, save-cwd. Remove fcntl-h, openat.
11697         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11698         openat.
11699         * modules/selinux-at (Files): Add lib/at-func.c.
11700         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11701         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11702         * modules/symlinkat (Files): Add lib/at-func.c.
11703         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11704         openat-h, save-cwd. Remove fcntl-h, openat.
11705         * modules/unlinkat (Files): Remove lib/openat.h.
11706         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11707         stdbool.
11708         * modules/utimensat (Files): Add lib/at-func.c.
11709         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11710         openat-die, openat-h, save-cwd.
11711         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11712         * modules/fdutimensat-tests (Depends-on): Add openat.
11713         * modules/fstatat-tests (Depends-on): Add openat-h.
11714         * modules/readlinkat-tests (Depends-on): Add openat.
11715         * modules/symlinkat-tests (Depends-on): Add openat.
11716
11717 2011-11-05  Bruno Haible  <bruno@clisp.org>
11718
11719         openat: Include <stdbool.h>.
11720         * lib/openat.c: Include <stdbool.h>.
11721
11722 2011-11-04  Bruno Haible  <bruno@clisp.org>
11723
11724         fchownat, renameat, unlinkat: Fix dependencies.
11725         * modules/fchownat (Depends-on): Add fstatat.
11726         * modules/renameat (Depends-on): Likewise.
11727         * modules/unlinkat (Depends-on): Likewise.
11728
11729 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11730
11731         openat: remove direct dependency on dirent
11732         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11733         and hasn't been needed ever since fdopendir was split into its own
11734         module on 2009-08-31.
11735         * modules/openat (Depends-on): Remove dirent.
11736
11737 2011-11-04  Bruno Haible  <bruno@clisp.org>
11738
11739         renameat: Optimize code size.
11740         * modules/renameat (configure.ac): Don't compile at-func2.c if
11741         REPLACE_RENAMEAT is 1.
11742
11743 2011-11-04  Bruno Haible  <bruno@clisp.org>
11744
11745         openat tests: Fix file list.
11746         * modules/openat-tests (Files): Add tests/test-open.h.
11747
11748 2011-11-04  Bruno Haible  <bruno@clisp.org>
11749
11750         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11751         * modules/fchmodat (Depends-on): Add openat-die.
11752         * modules/fchownat (Depends-on): Likewise.
11753         * modules/linkat (Depends-on): Likewise.
11754         * modules/renameat (Depends-on): Likewise.
11755         * modules/openat (Depends-on): Add dirent.
11756
11757 2011-11-04  Jim Meyering  <meyering@redhat.com>
11758
11759         at-func*.c: fix comments
11760         * lib/at-func2.c: Correct/improve first-line comment.
11761         * lib/at-func.c: Correct grammar in first-line comment.
11762
11763 2011-11-04  Bruno Haible  <bruno@clisp.org>
11764
11765         New module 'mkdirat', split off from module 'openat'.
11766         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11767         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11768         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11769         * modules/mkdirat: New file, extracted from modules/openat.
11770         * modules/openat (Files): Remove lib/mkdirat.c.
11771         (Depends-on): Remove mkdir.
11772         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11773         (Include): Remove <sys/stat.h>.
11774         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11775         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11776         tests/test-mkdir.h.
11777         (Depends-on): Remove ignore-value.
11778         (Makefile.am): Remove rules for test-mkdirat.
11779         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11780         of module 'openat'.
11781         * NEWS: Mention the change.
11782
11783 2011-11-04  Bruno Haible  <bruno@clisp.org>
11784
11785         closedir: Avoid warning on mingw.
11786         * lib/closedir.c: Include <unistd.h>.
11787
11788 2011-11-04  Bruno Haible  <bruno@clisp.org>
11789
11790         New module 'fstatat', split off from module 'openat'.
11791         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11792         defined.
11793         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11794         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11795         gl_FUNC_FSTATAT.
11796         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11797         * modules/fstatat: New file, extracted from modules/openat.
11798         * modules/openat (Files): Remove lib/fstatat.c.
11799         (Depends-on): Remove lstat.
11800         (configure.ac): Remove AC_LIBOBJ of fstatat.
11801         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11802         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11803         tests/test-lstat.h, tests/test-stat.h.
11804         (Depends-on): Remove getcwd-lgpl.
11805         (Makefile.am): Remove rules for test-fstatat.
11806         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11807         of module 'openat'.
11808         * NEWS: Mention the change.
11809         * modules/getcwd (Depends-on): Add fstatat.
11810         * modules/linkat (Depends-on): Likewise.
11811         * modules/mkfifoat-tests (Depends-on): Likewise.
11812         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11813
11814 2011-11-03  Bruno Haible  <bruno@clisp.org>
11815
11816         New module 'unlinkat', split off from module 'openat'.
11817         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11818         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11819         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11820         * modules/unlinkat: New file, extracted from modules/openat. Correct
11821         the dependency conditions.
11822         * modules/openat (Files): Remove lib/unlinkat.c.
11823         (Depends-on): Remove rmdir, unlink.
11824         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11825         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11826         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11827         tests/test-rmdir.h, tests/test-unlink.h.
11828         (Depends-on): Remove unlinkdir.
11829         (Makefile.am): Remove rules for test-unlinkat.
11830         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11831         of module 'openat'.
11832         * NEWS: Mention the change.
11833         * modules/linkat-tests (Depends-on): Add unlinkat.
11834         * modules/mkfifoat-tests (Depends-on): Likewise.
11835         * modules/readlinkat-tests (Depends-on): Likewise.
11836
11837 2011-11-02  Bruno Haible  <bruno@clisp.org>
11838
11839         New module 'fchmodat', split off from module 'openat'.
11840         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11841         defined.
11842         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11843         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11844         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11845         * modules/fchmodat: New file, extracted from modules/openat.
11846         * modules/openat (Files): Remove lib/fchmodat.c.
11847         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11848         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11849         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11850         (Makefile.am): Remove rules for test-fchmodat.
11851         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11852         of module 'openat'.
11853         * NEWS: Mention the change.
11854
11855 2011-11-02  Jim Meyering  <meyering@redhat.com>
11856
11857         putenv: indent #definition of "environ" to placate cppi
11858         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11859
11860         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11861         Git logs are often treated as immutable, because editing them
11862         changes the SHA1 checksums of all descendants.  Thus, errors in
11863         git logs tend to stay there forever.  However, when we generate
11864         a ChangeLog file -- typically for distribution -- from that git log,
11865         we can actually make corrections in the generated file.  The key
11866         lies in recording in machine-readable/applicable form the desired
11867         corrections.  See --help for description and an example.
11868         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11869         (usage): Describe it; alphabetize option descriptions.
11870         (main): Honor the new option, carefully.
11871
11872 2011-11-01  Jim Meyering  <meyering@redhat.com>
11873
11874         gitlog-to-changelog: avoid an infloop
11875         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11876         that ends up being empty.
11877
11878 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11879
11880         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11881         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11882         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11883         contains (possibly-quoted) backslashes.  This should avoid
11884         all-too-common shell bugs if COMPLICATED contains backslashes in
11885         the "wrong" places.  Reported by David Evans in
11886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11887         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11888         because we want ASCII ranges.  Is there some reason we don't use
11889         the C locale everywhere in this script?
11890         (func_module, top level): Avoid unwanted pathname expansion when
11891         $repo_url_prefix or $repo_url_suffix_repl contain shell
11892         metacharacters like '?' and '*'.
11893
11894 2011-11-01  Bruno Haible  <bruno@clisp.org>
11895
11896         fchownat: Improve description.
11897         * modules/fchownat (Description): Add link to function.
11898
11899 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11900
11901         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11902         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11904         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11905
11906 2011-11-01  Bruno Haible  <bruno@clisp.org>
11907
11908         alignof: Avoid collision with stdalign module.
11909         * lib/alignof.h (alignof): Remove macro.
11910         * NEWS: Mention the change.
11911         Reported by Paul Eggert.
11912
11913 2011-11-01  Bruno Haible  <bruno@clisp.org>
11914
11915         New module 'fchownat', split off from module 'openat'.
11916         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11917         defined.
11918         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11919         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11920         invoke gl_FUNC_FCHOWNAT.
11921         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11922         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11923         * modules/fchownat: New file, extracted from modules/openat.
11924         * modules/openat (Files): Remove lib/fchownat.c.
11925         (Depends-on): Remove lchown.
11926         (configure.ac): Remove AC_LIBOBJ of fchownat.
11927         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11928         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11929         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11930         (Depends-on): Remove mgetgroups, usleep, stat-time.
11931         (configure.ac): Remove test for getegid.
11932         (Makefile.am): Remove rules for test-fchownat.
11933         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11934         of module 'openat'.
11935         * NEWS: Mention the change.
11936
11937 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11938
11939         stdalign: port better to MSVC and to Sun C 5.11
11940         This fixes some of the problems reported by Bruno Haible in
11941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11942         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11943         shortcomings of MSVC and of Sun C 5.11.
11944         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11945         around __declspec arg.
11946         * modules/stdalign-tests (Files): Add tests/macros.h.
11947         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11948         Include macros.h, for ASSERT.
11949         (DECLARE_ALIGNED): Remove.
11950         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11951         to catch bug), and to 1 if not (simplifies the rest of the code).
11952         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11953         (CHECK_AUTO): Remove.
11954         (CHECK_ALIGNED): Check only the alignment of the static vars,
11955         since auto var alignment isn't supported by Sun C 5.11.
11956         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11957         ASSERT failures are easier to diagnose.
11958
11959 2011-10-31  Bruno Haible  <bruno@clisp.org>
11960
11961         doc about some IRIX 5.3 problems.
11962         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11963         on IRIX 5.3.
11964         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11965         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11966         5.3.
11967         * doc/posix-functions/grantpt.texi: Likewise.
11968         * doc/posix-functions/unlockpt.texi: Likewise.
11969         * doc/posix-functions/lgamma.texi: Likewise.
11970         * doc/posix-functions/nextafter.texi: Likewise.
11971         * doc/posix-functions/remainder.texi: Likewise.
11972         * doc/posix-functions/select.texi: Mention misplaced declaration on
11973         IRIX 5.3.
11974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11975
11976 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11977
11978         gitlog-to-changelog: fix git-log invocation.
11979         git-log mishandles date strings before 1970-01-01 UTC, and there is
11980         no use to specify --since=1970-01-01 by default anyway.
11981         * build-aux/gitlog-to-changelog: By default, when no --since option
11982         was given, do not specify explicit --since option to git-log.
11983
11984 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11985
11986         gitlog-to-changelog: new option --append-dot.
11987         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11988         first non-blank line of each commit message terminated with a dot.
11989
11990 2011-10-30  Bruno Haible  <bruno@clisp.org>
11991
11992         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11993         * lib/ffsl.h: Include <config.h>.
11994         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11995
11996 2011-10-30  Jim Meyering  <meyering@redhat.com>
11997
11998         GNUmakefile: reenable "make syntax-check" for most projects
11999         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12000         build-aux variable", "syntax-check" would do nothing but succeed with
12001         the "No version control files detected..." diagnostic (unless you
12002         happened to override _build-aux via cfg.mk).
12003         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12004         to precede inclusion of maint.mk.  Otherwise, these variables would
12005         be used undefined in any project that does not override the default.
12006
12007 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12008
12009         gitlog-to-changelog: treat a message with only blank lines as empty.
12010         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12011         trailing blank lines before the code that issues a warning about an
12012         empty commit message.
12013
12014 2011-10-30  Jim Meyering  <meyering@redhat.com>
12015
12016         test-parse-datetime.c: avoid new DST-related false positive test failure
12017         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12018         based on the time/date we'll convert, not the current time.
12019         Otherwise, the moment we cross a DST boundary like today's in
12020         Europe, (CEST to CET), that offset ends up being one hour off.
12021
12022 2011-10-27  Bruno Haible  <bruno@clisp.org>
12023
12024         fstat: Tweak documentation.
12025         * modules/fstat (Description): More precise description.
12026
12027 2011-10-27  Bruno Haible  <bruno@clisp.org>
12028
12029         Update documentation regarding 'largefile' module.
12030         * doc/posix-functions/fstat.texi: Tweak wording.
12031         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12032         problems with huge directories and/or small ino_t types.
12033         * doc/posix-functions/readdir.texi: Likewise.
12034         * doc/posix-functions/rewinddir.texi: Likewise.
12035
12036 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12037
12038         maint.mk: don't maintain a second build-aux variable.
12039         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12040         depends on GNUmakefile, which already maintains a cfg.mk
12041         overridable $(_build-aux) for projects with a non-standard
12042         build-aux directory location, although without the $(srcdir)
12043         prefix.  Use that variable consistently instead of introducing a
12044         second one.  Adjust all call sites.
12045
12046 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12047
12048         Add stdalign module and use it in other modules.
12049         This is based on a previous proposal by Bruno Haible
12050         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12051
12052         stdalign: new module
12053         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12054         * modules/stdalign: New files.
12055         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12056         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12057
12058         stdalign-tests: new module
12059         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12060
12061         argp: use stdalign
12062         * lib/argp-parse.c: Include <stdalign.h>.
12063         (alignof): Remove.
12064         * modules/argp (Depends-on): Add stdalign.
12065
12066         crypto libraries: use stdalign
12067         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12068         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12069         Do not include <stdlib.h> twice, in md4.c.
12070         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12071         because we are accessing a pointer's bit-pattern, not a size.
12072         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12073         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12074         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12075         * modules/crypto/sha512: Likewise.
12076
12077         sys_socket: use stdalign, not alignof
12078         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12079         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12080
12081 2011-10-27  Bruno Haible  <bruno@clisp.org>
12082
12083         raise test: Avoid a test failure on Linux/MIPS.
12084         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12085         because 99 is a valid signal on Linux/MIPS.
12086
12087 2011-10-27  Bruno Haible  <bruno@clisp.org>
12088
12089         nonblocking tests: Fix test failure on Linux/MIPS.
12090         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12091         Set to 270000.
12092
12093 2011-10-27  Bruno Haible  <bruno@clisp.org>
12094
12095         utimensat: Work around problem on Linux/hppa.
12096         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12097         values.
12098         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12099
12100 2011-10-25  Jim Meyering  <meyering@redhat.com>
12101
12102         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12103         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12104         after symbols like NULL, size_t, etc.
12105         Reported by Alfred M. Szmidt.
12106
12107         maint.mk: exempt ENODATA from a syntax-check rule
12108         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12109         from the sc_prohibit_always-defined_macros syntax-check rule.
12110         Add a comment.  See this for more details:
12111         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12112
12113 2011-10-23  Jim Meyering  <meyering@redhat.com>
12114
12115         fts: close parent dir FD before returning from post-traversal fts_read
12116         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12117         unlink A, even though an FD open on A remained.  This is suboptimal
12118         (holding a file descriptor open longer than needed), but otherwise not
12119         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12120         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12121         that represents a real problem: it causes the removal of A to fail
12122         with e.g., "rm: cannot remove `A': Device or resource busy"
12123
12124         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12125         directory file descriptors.  After completing the final, FTS_DP,
12126         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12127         cache, but then proceeded to add a new FD to it via the subsequent
12128         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12129         final file descriptor would be closed only via fts_close's call to
12130         fd_ring_clear.  Now, it is usually closed earlier, via the final
12131         FTS_DP-returning fts_read call.
12132         * lib/fts.c (restore_initial_cwd): New function, converted from
12133         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12134         Update callers.
12135         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12136         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12137
12138 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12139             Bruno Haible  <bruno@clisp.org>
12140             Jim Meyering  <jim@meyering.net>
12141
12142         readme-release: improve safety of release prep instructions.
12143         * README-release: Don't git pull all branches when only master
12144         is needed for the release process.
12145         Run make maintainer-clean before changing trees and merging.
12146         Don't try to run ./configure right after git pull in case files
12147         that influence the bootstrap process have changed, move the
12148         ./configure step to after running ./bootstrap.
12149         Don't bootstrap "one last time"... it's the first time!
12150
12151 2011-10-22  Bruno Haible  <bruno@clisp.org>
12152
12153         errno, strerror-override: Support for MSVC 10.
12154         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12155         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12156         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12157         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12158         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12159         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12160         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12161         Assign values compatible with MSVC 10.
12162         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12163         New macros.
12164         (GNULIB_defined_EWINSOCK): New macro.
12165         * lib/strerror-override.c (strerror_override): Update accordingly.
12166         * lib/strerror-override.h: Likewise.
12167         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12168         longer equal to the corresponding errno value.
12169         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12170
12171 2011-10-22  Bruno Haible  <bruno@clisp.org>
12172
12173         perror: Recognize when test program crashes.
12174         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12175         strerror, set gl_cv_func_perror_works to no.
12176         Reported by Daniel Richard G. <skunk@iskunk.org>.
12177
12178         perror: Fix indentation.
12179         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12180
12181 2011-10-22  Bruno Haible  <bruno@clisp.org>
12182
12183         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12184         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12185         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12186         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12187         functions, not as a macro.
12188         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12189         macros.
12190         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12191         absence of macro.
12192         Suggested by Eric Blake.
12193         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12194
12195 2011-10-21  Bruno Haible  <bruno@clisp.org>
12196
12197         relocatable-prog-wrapper: Don't leave object files behind.
12198         * build-aux/install-reloc: Re-synchronize list of .o files to be
12199         removed with list of compilation units.
12200
12201 2011-10-20  Bruno Haible  <bruno@clisp.org>
12202
12203         openpty, posix_openpt: Remove code duplication.
12204         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12205         * lib/openpty.c: Include <stdlib.h>.
12206         (openpty): Use posix_openpt on all platforms except IRIX.
12207         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12208
12209 2011-10-20  Bruno Haible  <bruno@clisp.org>
12210
12211         unlockpt: Detect invalid argument.
12212         * lib/unlockpt.c: Include <fcntl.h>.
12213         (unlockpt): Check whether fd is valid, using fcntl().
12214         * modules/unlockpt (Depends-on): Add fcntl-h.
12215
12216 2011-10-20  Bruno Haible  <bruno@clisp.org>
12217
12218         openpty: Avoid compilation error on AIX 6.1.
12219         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12220
12221 2011-10-20  Bruno Haible  <bruno@clisp.org>
12222
12223         posix_openpt: Support for OpenBSD.
12224         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12225         (posix_openpt) [OpenBSD]: New code.
12226         * lib/grantpt.c: Include <fcntl.h>.
12227         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12228         * modules/grantpt (Depends-on): Add fcntl-h.
12229
12230 2011-10-20  Bruno Haible  <bruno@clisp.org>
12231
12232         posix_openpt test: Coding style.
12233         * tests/test-posix_openpt.c: Use GNU coding style.
12234
12235 2011-10-20  Bruno Haible  <bruno@clisp.org>
12236
12237         grantpt: Support --avoid=pt_chown.
12238         * modules/grantpt (Files): Add lib/pty-private.h.
12239
12240 2011-10-20  Bruno Haible  <bruno@clisp.org>
12241
12242         posix_openpt: Fix autoconf macro.
12243         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12244         unneeded check for _getpty.
12245
12246 2011-10-20  Bruno Haible  <bruno@clisp.org>
12247
12248         openpty: Update comments.
12249         * lib/openpty.c: Add comments about Minix.
12250
12251 2011-10-19  Eric Blake  <eblake@redhat.com>
12252
12253         openpty: relax license
12254         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12255
12256         pt_chown: use configmake to simplify build
12257         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12258
12259         ptsname and others: relax license
12260         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12261         * modules/unlockpt (License): Likewise.
12262         * modules/pt_chown (License): Likewise.
12263         * modules/ptsname (License): Likewise.
12264         * modules/ttyname_r (License): Likewise.
12265
12266 2011-10-19  Jim Meyering  <meyering@redhat.com>
12267
12268         posix_openpt: remove spurious #endif
12269         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12270
12271 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12272
12273         maint.mk: Respect $(build_aux) in web-manual rule.
12274         * top/maint.mk (web-manual): Find gen-announce script in user's
12275         $(build_aux) directory instead of hard-coding 'build-aux'.
12276
12277 2011-10-19  Bruno Haible  <bruno@clisp.org>
12278
12279         posix_openpt: Fix compilation error.
12280         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12281         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12282         Mention the openpty module as an alternative.
12283
12284 2011-10-19  Bruno Haible  <bruno@clisp.org>
12285
12286         Support for old NeXTstep 3.3 frexp().
12287         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12288         execution time of the test to 5 seconds.
12289         Reported by Daniel Richard G. <skunk@iskunk.org>.
12290
12291 2011-10-19  Bruno Haible  <bruno@clisp.org>
12292
12293         Support for old NeXTstep 3.3 sed.
12294         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12295         part, use /.../, not \|...|. Escape periods in the header file name.
12296         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12297         Reported by Daniel Richard G. <skunk@iskunk.org>.
12298
12299 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12300
12301         Support for old NeXTstep 3.3 gcc.
12302         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12303         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12304         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12305         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12306         * lib/regex.h (_Restrict_arr_): Likewise.
12307         * lib/regex_internal.h (re_token_t): Likewise.
12308         * lib/regexec.c (check_node_accept_bytes): Likewise.
12309         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12310
12311 2011-10-18  Eric Blake  <eblake@redhat.com>
12312
12313         posix_openpt: new module
12314         * modules/posix_openpt: New module.
12315         * m4/posix_openpt.m4: New file.
12316         * lib/posix_openpt.c: Likewise.
12317         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12318         (gl_STDLIB_H_DEFAULTS): Set defaults.
12319         * modules/stdlib (Makefile.am): Substitute macros.
12320         * lib/stdlib.in.h (posix_openpt): Declare.
12321         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12322         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12323         * modules/posix_openpt-tests: New test module.
12324         * tests/test-posix_openpt.c: New test.
12325
12326 2011-10-15  Bruno Haible  <bruno@clisp.org>
12327
12328         xstrtoll: Fix compilation failure.
12329         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12330         from lib/strtol.c.
12331         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12332         some platforms.
12333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12334
12335 2011-10-15  Bruno Haible  <bruno@clisp.org>
12336
12337         vasnprintf: Optimize bit search operation.
12338         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12340         gl_DOUBLE_EXPONENT_LOCATION.
12341         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12342         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12343         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12344         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12345         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12346         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12347         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12348         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12349         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12350
12351 2011-10-15  Bruno Haible  <bruno@clisp.org>
12352
12353         vasnprintf: Fix comments.
12354         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12355
12356 2011-10-14  Bruno Haible  <bruno@clisp.org>
12357
12358         Tests for module 'integer_length_ll'.
12359         * modules/integer_length_ll-tests: New file.
12360         * tests/test-integer_length_ll.c: New file.
12361
12362         New module 'integer_length_ll'.
12363         * lib/integer_length_ll.c: New file.
12364         * modules/integer_length_ll: New file.
12365
12366 2011-10-14  Bruno Haible  <bruno@clisp.org>
12367
12368         Tests for module 'integer_length_l'.
12369         * modules/integer_length_l-tests: New file.
12370         * tests/test-integer_length_l.c: New file.
12371
12372         New module 'integer_length_l'.
12373         * lib/integer_length_l.c: New file.
12374         * modules/integer_length_l: New file.
12375
12376 2011-10-14  Bruno Haible  <bruno@clisp.org>
12377
12378         Tests for module 'integer_length'.
12379         * modules/integer_length-tests: New file.
12380         * tests/test-integer_length.c: New file.
12381
12382         New module 'integer_length'.
12383         * lib/integer_length.h: New file.
12384         * lib/integer_length.c: New file.
12385         * modules/integer_length: New file.
12386
12387 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12388
12389         popen: Fix dependency conditions.
12390         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12391
12392 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12393
12394         perror: Fix autoconf test.
12395         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12396         <stdlib.h> and <string.h>.
12397
12398 2011-10-14  Bruno Haible  <bruno@clisp.org>
12399
12400         ffsl: Optimize on 64-bit platforms.
12401         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12402         unrolling.
12403
12404 2011-10-13  Bruno Haible  <bruno@clisp.org>
12405
12406         ffsl: Optimize on 32-bit platforms.
12407         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12408         use ffs() without a loop.
12409
12410         ffsl, ffsll: Optimize for GCC.
12411         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12412         * lib/ffsl.c (GCC_BUILTIN): New macro.
12413         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12414
12415 2011-10-13  Bruno Haible  <bruno@clisp.org>
12416
12417         ffs, bcopy, memset: Support symbol renaming via config.h.
12418         * lib/ffs.c: Include <config.h>.
12419         * lib/bcopy.c: Likewise.
12420         * lib/memset.c: Likewise.
12421
12422 2011-10-10  Bruno Haible  <bruno@clisp.org>
12423
12424         atanl: Simplify for platforms where 'long double' == 'double'.
12425         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12426         alternative implementation.
12427         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12428         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12429         * modules/atanl (Depends-on): Add atan. Update conditions.
12430
12431 2011-10-10  Bruno Haible  <bruno@clisp.org>
12432
12433         acosl: Simplify for platforms where 'long double' == 'double'.
12434         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12435         alternative implementation.
12436         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12437         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12438         * modules/acosl (Depends-on): Add acos. Update conditions.
12439
12440 2011-10-10  Bruno Haible  <bruno@clisp.org>
12441
12442         asinl: Simplify for platforms where 'long double' == 'double'.
12443         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12444         alternative implementation.
12445         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12446         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12447         * modules/asinl (Depends-on): Add asin. Update conditions.
12448
12449 2011-10-10  Bruno Haible  <bruno@clisp.org>
12450
12451         tanl: Simplify for platforms where 'long double' == 'double'.
12452         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12453         implementation.
12454         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12455         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12456         * modules/tanl (Depends-on): Add tan. Update conditions.
12457         (configure.ac): Don't compile trigl.c if
12458         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12459
12460 2011-10-10  Bruno Haible  <bruno@clisp.org>
12461
12462         cosl: Simplify for platforms where 'long double' == 'double'.
12463         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12464         implementation.
12465         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12466         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12467         * modules/cosl (Depends-on): Add cos. Update conditions.
12468         (configure.ac): Don't compile sincosl.c and trigl.c if
12469         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12470
12471 2011-10-10  Bruno Haible  <bruno@clisp.org>
12472
12473         sinl: Simplify for platforms where 'long double' == 'double'.
12474         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12475         implementation.
12476         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12477         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12478         * modules/sinl (Depends-on): Add sin. Update conditions.
12479         (configure.ac): Don't compile sincosl.c and trigl.c if
12480         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12481
12482 2011-10-10  Bruno Haible  <bruno@clisp.org>
12483
12484         logl: Simplify for platforms where 'long double' == 'double'.
12485         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12486         implementation.
12487         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12488         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12489         * modules/logl (Depends-on): Add log. Update conditions.
12490
12491 2011-10-10  Bruno Haible  <bruno@clisp.org>
12492
12493         expl: Simplify for platforms where 'long double' == 'double'.
12494         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12495         implementation.
12496         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12497         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12498         * modules/expl (Depends-on): Add exp. Update conditions.
12499
12500 2011-10-10  Bruno Haible  <bruno@clisp.org>
12501
12502         sqrtl: Simplify for platforms where 'long double' == 'double'.
12503         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12504         alternative implementation.
12505         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12506         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12507         * modules/sqrtl (Depends-on): Update conditions.
12508
12509 2011-10-10  Bruno Haible  <bruno@clisp.org>
12510
12511         ldexpl: Simplify for platforms where 'long double' == 'double'.
12512         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12513         alternative implementation.
12514         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12515         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12516         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12517
12518 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12519
12520         ffsll: set correct witness
12521         * modules/ffsll (configure.ac): Fix typo.
12522
12523 2011-10-10  Bruno Haible  <bruno@clisp.org>
12524
12525         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12526         * lib/printf-frexpl.c: Include <config.h>.
12527         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12528         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12529         second time.
12530         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12531         gl_LONG_DOUBLE_VS_DOUBLE.
12532         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12533         conditions.
12534
12535 2011-10-10  Bruno Haible  <bruno@clisp.org>
12536
12537         frexpl: Simplify for platforms where 'long double' == 'double'.
12538         * lib/frexpl.c: Include <config.h>.
12539         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12540         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12541         time.
12542         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12543         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12544         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12545         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12546         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12547         conditions.
12548
12549 2011-10-10  Jim Meyering  <meyering@redhat.com>
12550
12551         test-renameat: don't leave behind a temporary file
12552         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12553           ERROR: files left in build directory after distclean:
12554           ./gltests/test-renameat.too
12555           make[1]: *** [distcleancheck] Error 1
12556         Reported by Tom G. Christensen.
12557
12558 2011-10-09  Bruno Haible  <bruno@clisp.org>
12559
12560         rint: Determine RINT_LIBM correctly on AIX 7.
12561         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12562         directly, not only through a function pointer. Also accept an optional
12563         4th argument with extra code.
12564         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12565         rintf() call by gcc when optimizing.
12566
12567         mathfunc.m4: Refactor.
12568         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12569         m4 variable.
12570
12571 2011-10-09  Bruno Haible  <bruno@clisp.org>
12572
12573         rintl: Simplify for platforms where 'long double' == 'double'.
12574         * lib/rintl.c: Include <config.h>.
12575         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12576         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12577         time.
12578         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12579         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12580         * modules/rintl (Depends-on): Add rint. Update conditions.
12581
12582 2011-10-09  Bruno Haible  <bruno@clisp.org>
12583
12584         roundl: Simplify for platforms where 'long double' == 'double'.
12585         * lib/roundl.c: Include <config.h>.
12586         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12587         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12588         time.
12589         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12590         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12591         * modules/roundl (Depends-on): Add round. Update conditions.
12592
12593 2011-10-09  Bruno Haible  <bruno@clisp.org>
12594
12595         truncl: Simplify for platforms where 'long double' == 'double'.
12596         * lib/truncl.c: Include <config.h>.
12597         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12598         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12599         time.
12600         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12601         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12602         * modules/truncl (Depends-on): Add trunc. Update conditions.
12603
12604 2011-10-09  Bruno Haible  <bruno@clisp.org>
12605
12606         ceill: Simplify for platforms where 'long double' == 'double'.
12607         * lib/ceill.c: Include <config.h>.
12608         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12609         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12610         time.
12611         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12612         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12613         * modules/ceill (Depends-on): Add ceil. Update conditions.
12614
12615 2011-10-09  Bruno Haible  <bruno@clisp.org>
12616
12617         floorl: Simplify for platforms where 'long double' == 'double'.
12618         * lib/floorl.c: Include <config.h>.
12619         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12620         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12621         time.
12622         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12623         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12624         * modules/floorl (Depends-on): Add floor. Update conditions.
12625
12626 2011-10-09  Bruno Haible  <bruno@clisp.org>
12627
12628         rint: Fix ordering constraints.
12629         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12630         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12631         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12632
12633 2011-10-09  Bruno Haible  <bruno@clisp.org>
12634
12635         copysignl: Simplify for platforms where 'long double' == 'double'.
12636         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12637         alternative.
12638         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12639         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12640         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12641
12642 2011-10-09  Bruno Haible  <bruno@clisp.org>
12643
12644         Tests for module 'rintl'.
12645         * modules/rintl-tests: New file.
12646         * tests/test-rintl.c: New file.
12647
12648         New module 'rintl'.
12649         * lib/math.in.h (rintl): New declaration.
12650         * lib/rintl.c: New file.
12651         * m4/rintl.m4: New file.
12652         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12654         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12655         * modules/rintl: New file.
12656         * tests/test-math-c++.cc: Check the declaration of rintl.
12657         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12658         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12659         * doc/posix-functions/rintl.texi: Mention the new module.
12660
12661 2011-10-09  Bruno Haible  <bruno@clisp.org>
12662
12663         Tests for module 'rintf'.
12664         * modules/rintf-tests: New file.
12665         * tests/test-rintf.c: New file.
12666
12667         New module 'rintf'.
12668         * lib/math.in.h (rintf): New declaration.
12669         * lib/rintf.c: New file.
12670         * m4/rintf.m4: New file.
12671         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12673         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12674         * modules/rintf: New file.
12675         * tests/test-math-c++.cc: Check the declaration of rintf.
12676         * doc/posix-functions/rintf.texi: Mention the new module.
12677
12678 2011-10-09  Bruno Haible  <bruno@clisp.org>
12679
12680         rint: Support for MSVC.
12681         * lib/math.in.h (rint): New declaration.
12682         * lib/rint.c: New file.
12683         * m4/rint.m4: New file.
12684         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12686         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12687         * modules/rint (Description): Fix.
12688         (Files): Add lib/rint.c, m4/rint.m4.
12689         (Depends-on): Add math.
12690         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12691         gl_MATH_MODULE_INDICATOR.
12692         * tests/test-math-c++.cc: Check the declaration of rint.
12693         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12694         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12695         * doc/posix-functions/rint.texi: Mention the replacement provided by
12696         the module.
12697
12698         rint tests: More tests.
12699         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12700         minus-zero.h, infinity.h, nan.h.
12701         (main): Skip the test if the current rounding mode is not standard. Add
12702         tests for negative numbers, minus zero, infinity, NaN.
12703         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12704         tests/nan.h.
12705         (Depends-on): Add isnand-nolibm.
12706
12707 2011-10-09  Bruno Haible  <bruno@clisp.org>
12708
12709         Tests for module 'copysignl'.
12710         * modules/copysignl-tests: New file.
12711         * tests/test-copysignl.c: New file.
12712
12713         New module 'copysignl'.
12714         * lib/math.in.h (copysignl): New declaration.
12715         * lib/copysignl.c: New file.
12716         * m4/copysignl.m4: New file.
12717         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12719         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12720         HAVE_COPYSIGNL.
12721         * modules/copysignl: New file.
12722         * tests/test-math-c++.cc: Check the declaration of copysignl.
12723         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12724         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12725         * doc/posix-functions/copysignl.texi: Mention the new module.
12726
12727 2011-10-09  Bruno Haible  <bruno@clisp.org>
12728
12729         Tests for module 'copysignf'.
12730         * modules/copysignf-tests: New file.
12731         * tests/test-copysignf.c: New file.
12732
12733         New module 'copysignf'.
12734         * lib/math.in.h (copysignf): New declaration.
12735         * lib/copysignf.c: New file.
12736         * m4/copysignf.m4: New file.
12737         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12739         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12740         HAVE_COPYSIGNF.
12741         * modules/copysignf: New file.
12742         * tests/test-math-c++.cc: Check the declaration of copysignf.
12743         * doc/posix-functions/copysignf.texi: Mention the new module.
12744
12745 2011-10-09  Bruno Haible  <bruno@clisp.org>
12746
12747         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12748         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12749         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12750         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12751         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12752         gl_SIGNAL_H_DEFAULTS.
12753
12754 2011-10-09  Bruno Haible  <bruno@clisp.org>
12755
12756         poll: Make macro safer.
12757         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12758         ac_cv_header_poll_h is not set.
12759
12760 2011-10-09  Bruno Haible  <bruno@clisp.org>
12761
12762         copysign: Provide replacement.
12763         * lib/math.in.h (copysign): New declaration.
12764         * lib/copysign.c: New file.
12765         * m4/copysign.m4: New file.
12766         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12768         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12769         HAVE_COPYSIGN.
12770         * modules/copysign (Description): Clarify.
12771         (Files): Add lib/copysign.c, m4/copysign.m4.
12772         (Depends-on): Add math, signbit.
12773         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12774         gl_MATH_MODULE_INDICATOR.
12775         * tests/test-math-c++.cc: Check the declaration of copysign.
12776         * doc/posix-functions/copysign.texi: Mention the effects of the module
12777         on Minix and MSVC.
12778
12779 2011-10-09  Bruno Haible  <bruno@clisp.org>
12780
12781         isinf: Ensure macro on AIX 5.1.
12782         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12783         macro.
12784         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12785
12786 2011-10-09  Bruno Haible  <bruno@clisp.org>
12787
12788         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12789         * modules/snprintf-posix-tests (configure.ac): Require
12790         gl_LONG_DOUBLE_VS_DOUBLE.
12791         * modules/sprintf-posix-tests (configure.ac): Likewise.
12792         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12793         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12794         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12795         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12796         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12797         tests on platforms where 'long double' is the same as 'double'.
12798         * tests/test-sprintf-posix.h (test_function): Likewise.
12799         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12800         * tests/test-vasprintf-posix.c (test_function): Likewise.
12801
12802         *printf: Fix for platforms where 'long double' == 'double'.
12803         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12804         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12805         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12806         * modules/fprintf-posix (Files): Likewise.
12807         * modules/obstack-printf-posix (Files): Likewise.
12808         * modules/snprintf-posix (Files): Likewise.
12809         * modules/sprintf-posix (Files): Likewise.
12810         * modules/vasnprintf (Files): Likewise.
12811         * modules/vasnprintf-posix (Files): Likewise.
12812         * modules/vasprintf-posix (Files): Likewise.
12813         * modules/vdprintf-posix (Files): Likewise.
12814         * modules/vfprintf-posix (Files): Likewise.
12815         * modules/vsnprintf-posix (Files): Likewise.
12816         * modules/vsprintf-posix (Files): Likewise.
12817         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12818         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12819         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12820         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12821         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12822         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12823         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12824
12825         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12826         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12827         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12828         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12829         'long double'.
12830         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12831
12832         isinf: Fix for platforms where 'long double' == 'double'.
12833         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12834         Don't blindly assume 80-bit 'long double'.
12835
12836         isfinite: Fix for platforms where 'long double' == 'double'.
12837         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12838         Don't blindly assume 80-bit 'long double'.
12839
12840         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12841         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12842         * modules/isfinite-tests (configure.ac): Require
12843         gl_LONG_DOUBLE_VS_DOUBLE.
12844         * modules/isinf-tests (configure.ac): Likewise.
12845         * modules/isnan-tests (configure.ac): Likewise.
12846         * modules/isnanl-tests (configure.ac): Likewise.
12847         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12848         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12849         tests on platforms where 'long double' is the same as 'double'.
12850         * tests/test-isinf.c (test_isinfl): Likewise.
12851         * tests/test-isnan.c (test_long_double): Likewise.
12852         * tests/test-isnanl.h (main): Likewise.
12853
12854 2011-10-08  Bruno Haible  <bruno@clisp.org>
12855
12856         Tests for module 'tanhf'.
12857         * modules/tanhf-tests: New file.
12858         * tests/test-tanhf.c: New file.
12859
12860         New module 'tanhf'.
12861         * lib/math.in.h (tanhf): New declaration.
12862         * lib/tanhf.c: New file.
12863         * m4/tanhf.m4: New file.
12864         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12866         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12867         * modules/tanhf: New file.
12868         * tests/test-math-c++.cc: Check the declaration of tanhf.
12869         * doc/posix-functions/tanhf.texi: Mention the new module.
12870
12871         tanh: Use a .m4 file.
12872         * m4/tanh.m4: New file.
12873         * modules/tanh (Files): Add it.
12874         (configure.ac): Just invoke gl_FUNC_TANH.
12875
12876 2011-10-08  Bruno Haible  <bruno@clisp.org>
12877
12878         Tests for module 'coshf'.
12879         * modules/coshf-tests: New file.
12880         * tests/test-coshf.c: New file.
12881
12882         New module 'coshf'.
12883         * lib/math.in.h (coshf): New declaration.
12884         * lib/coshf.c: New file.
12885         * m4/coshf.m4: New file.
12886         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12888         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12889         * modules/coshf: New file.
12890         * tests/test-math-c++.cc: Check the declaration of coshf.
12891         * doc/posix-functions/coshf.texi: Mention the new module.
12892
12893         cosh: Use a .m4 file.
12894         * m4/cosh.m4: New file.
12895         * modules/cosh (Files): Add it.
12896         (configure.ac): Just invoke gl_FUNC_COSH.
12897
12898 2011-10-08  Bruno Haible  <bruno@clisp.org>
12899
12900         Tests for module 'sinhf'.
12901         * modules/sinhf-tests: New file.
12902         * tests/test-sinhf.c: New file.
12903
12904         New module 'sinhf'.
12905         * lib/math.in.h (sinhf): New declaration.
12906         * lib/sinhf.c: New file.
12907         * m4/sinhf.m4: New file.
12908         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12910         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12911         * modules/sinhf: New file.
12912         * tests/test-math-c++.cc: Check the declaration of sinhf.
12913         * doc/posix-functions/sinhf.texi: Mention the new module.
12914
12915         sinh: Use a .m4 file.
12916         * m4/sinh.m4: New file.
12917         * modules/sinh (Files): Add it.
12918         (configure.ac): Just invoke gl_FUNC_SINH.
12919
12920 2011-10-08  Bruno Haible  <bruno@clisp.org>
12921
12922         Tests for module 'atan2f'.
12923         * modules/atan2f-tests: New file.
12924         * tests/test-atan2f.c: New file.
12925
12926         New module 'atan2f'.
12927         * lib/math.in.h (atan2f): New declaration.
12928         * lib/atan2f.c: New file.
12929         * m4/atan2f.m4: New file.
12930         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12932         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12933         * modules/atan2f: New file.
12934         * tests/test-math-c++.cc: Check the declaration of atan2f.
12935         * doc/posix-functions/atan2f.texi: Mention the new module.
12936
12937         atan2: Use a .m4 file.
12938         * m4/atan2.m4: New file.
12939         * modules/atan2 (Files): Add it.
12940         (configure.ac): Just invoke gl_FUNC_ATAN2.
12941
12942 2011-10-08  Bruno Haible  <bruno@clisp.org>
12943
12944         Tests for module 'atanf'.
12945         * modules/atanf-tests: New file.
12946         * tests/test-atanf.c: New file.
12947
12948         New module 'atanf'.
12949         * lib/math.in.h (atanf): New declaration.
12950         * lib/atanf.c: New file.
12951         * m4/atanf.m4: New file.
12952         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12954         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12955         * modules/atanf: New file.
12956         * tests/test-math-c++.cc: Check the declaration of atanf.
12957         * doc/posix-functions/atanf.texi: Mention the new module.
12958
12959         atan: Use a .m4 file.
12960         * m4/atan.m4: New file.
12961         * modules/atan (Files): Add it.
12962         (configure.ac): Just invoke gl_FUNC_ATAN.
12963
12964 2011-10-08  Bruno Haible  <bruno@clisp.org>
12965
12966         Tests for module 'acosf'.
12967         * modules/acosf-tests: New file.
12968         * tests/test-acosf.c: New file.
12969
12970         New module 'acosf'.
12971         * lib/math.in.h (acosf): New declaration.
12972         * lib/acosf.c: New file.
12973         * m4/acosf.m4: New file.
12974         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12976         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12977         * modules/acosf: New file.
12978         * tests/test-math-c++.cc: Check the declaration of acosf.
12979         * doc/posix-functions/acosf.texi: Mention the new module.
12980
12981         acos: Use a .m4 file.
12982         * m4/acos.m4: New file.
12983         * modules/acos (Files): Add it.
12984         (configure.ac): Just invoke gl_FUNC_ACOS.
12985
12986 2011-10-08  Bruno Haible  <bruno@clisp.org>
12987
12988         Tests for module 'asinf'.
12989         * modules/asinf-tests: New file.
12990         * tests/test-asinf.c: New file.
12991
12992         New module 'asinf'.
12993         * lib/math.in.h (asinf): New declaration.
12994         * lib/asinf.c: New file.
12995         * m4/asinf.m4: New file.
12996         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12998         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12999         * modules/asinf: New file.
13000         * tests/test-math-c++.cc: Check the declaration of asinf.
13001         * doc/posix-functions/asinf.texi: Mention the new module.
13002
13003         asin: Use a .m4 file.
13004         * m4/asin.m4: New file.
13005         * modules/asin (Files): Add it.
13006         (configure.ac): Just invoke gl_FUNC_ASIN.
13007
13008 2011-10-08  Bruno Haible  <bruno@clisp.org>
13009
13010         Tests for module 'tanf'.
13011         * modules/tanf-tests: New file.
13012         * tests/test-tanf.c: New file.
13013
13014         New module 'tanf'.
13015         * lib/math.in.h (tanf): New declaration.
13016         * lib/tanf.c: New file.
13017         * m4/tanf.m4: New file.
13018         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13020         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13021         * modules/tanf: New file.
13022         * tests/test-math-c++.cc: Check the declaration of tanf.
13023         * doc/posix-functions/tanf.texi: Mention the new module.
13024
13025         tan: Use a .m4 file.
13026         * m4/tan.m4: New file.
13027         * modules/tan (Files): Add it.
13028         (configure.ac): Just invoke gl_FUNC_TAN.
13029
13030 2011-10-08  Bruno Haible  <bruno@clisp.org>
13031
13032         Tests for module 'cosf'.
13033         * modules/cosf-tests: New file.
13034         * tests/test-cosf.c: New file.
13035
13036         New module 'cosf'.
13037         * lib/math.in.h (cosf): New declaration.
13038         * lib/cosf.c: New file.
13039         * m4/cosf.m4: New file.
13040         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13042         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13043         * modules/cosf: New file.
13044         * tests/test-math-c++.cc: Check the declaration of cosf.
13045         * doc/posix-functions/cosf.texi: Mention the new module.
13046
13047         cos: Use a .m4 file.
13048         * m4/cos.m4: New file.
13049         * modules/cos (Files): Add it.
13050         (configure.ac): Just invoke gl_FUNC_COS.
13051
13052 2011-10-08  Bruno Haible  <bruno@clisp.org>
13053
13054         Tests for module 'sinf'.
13055         * modules/sinf-tests: New file.
13056         * tests/test-sinf.c: New file.
13057
13058         New module 'sinf'.
13059         * lib/math.in.h (sinf): New declaration.
13060         * lib/sinf.c: New file.
13061         * m4/sinf.m4: New file.
13062         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13064         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13065         * modules/sinf: New file.
13066         * tests/test-math-c++.cc: Check the declaration of sinf.
13067         * doc/posix-functions/sinf.texi: Mention the new module.
13068
13069         sin: Use a .m4 file.
13070         * m4/sin.m4: New file.
13071         * modules/sin (Files): Add it.
13072         (configure.ac): Just invoke gl_FUNC_SIN.
13073
13074 2011-10-08  Bruno Haible  <bruno@clisp.org>
13075
13076         Tests for module 'powf'.
13077         * modules/powf-tests: New file.
13078         * tests/test-powf.c: New file.
13079
13080         New module 'powf'.
13081         * lib/math.in.h (powf): New declaration.
13082         * lib/powf.c: New file.
13083         * m4/powf.m4: New file.
13084         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13086         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13087         * modules/powf: New file.
13088         * tests/test-math-c++.cc: Check the declaration of powf.
13089         * doc/posix-functions/powf.texi: Mention the new module.
13090
13091         pow: Use a .m4 file.
13092         * m4/pow.m4: New file.
13093         * modules/pow (Files): Add it.
13094         (configure.ac): Just invoke gl_FUNC_POW.
13095
13096 2011-10-08  Bruno Haible  <bruno@clisp.org>
13097
13098         Tests for module 'log10f'.
13099         * modules/log10f-tests: New file.
13100         * tests/test-log10f.c: New file.
13101
13102         New module 'log10f'.
13103         * lib/math.in.h (log10f): New declaration.
13104         * lib/log10f.c: New file.
13105         * m4/log10f.m4: New file.
13106         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13108         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13109         * modules/log10f: New file.
13110         * tests/test-math-c++.cc: Check the declaration of log10f.
13111         * doc/posix-functions/log10f.texi: Mention the new module.
13112
13113         log10: Use a .m4 file.
13114         * m4/log10.m4: New file.
13115         * modules/log10 (Files): Add it.
13116         (configure.ac): Just invoke gl_FUNC_LOG10.
13117
13118 2011-10-08  Bruno Haible  <bruno@clisp.org>
13119
13120         Tests for module 'logf'.
13121         * modules/logf-tests: New file.
13122         * tests/test-logf.c: New file.
13123
13124         New module 'logf'.
13125         * lib/math.in.h (logf): New declaration.
13126         * lib/logf.c: New file.
13127         * m4/logf.m4: New file.
13128         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13130         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13131         * modules/logf: New file.
13132         * tests/test-math-c++.cc: Check the declaration of logf.
13133         * doc/posix-functions/logf.texi: Mention the new module.
13134
13135         log: Use a .m4 file.
13136         * m4/log.m4: New file.
13137         * modules/log (Files): Add it.
13138         (configure.ac): Just invoke gl_FUNC_LOG.
13139
13140 2011-10-08  Bruno Haible  <bruno@clisp.org>
13141
13142         Tests for module 'expf'.
13143         * modules/expf-tests: New file.
13144         * tests/test-expf.c: New file.
13145
13146         New module 'expf'.
13147         * lib/math.in.h (expf): New declaration.
13148         * lib/expf.c: New file.
13149         * m4/expf.m4: New file.
13150         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13152         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13153         * modules/expf: New file.
13154         * tests/test-math-c++.cc: Check the declaration of expf.
13155         * doc/posix-functions/expf.texi: Mention the new module.
13156
13157         exp: Use a .m4 file.
13158         * m4/exp.m4: New file.
13159         * modules/exp (Files): Add it.
13160         (configure.ac): Just invoke gl_FUNC_EXP.
13161
13162 2011-10-08  Bruno Haible  <bruno@clisp.org>
13163
13164         Tests for module 'sqrtf'.
13165         * modules/sqrtf-tests: New file.
13166         * tests/test-sqrtf.c: New file.
13167
13168         New module 'sqrtf'.
13169         * lib/math.in.h (sqrtf): New declaration.
13170         * lib/sqrtf.c: New file.
13171         * m4/sqrtf.m4: New file.
13172         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13174         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13175         * modules/sqrtf: New file.
13176         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13177         * doc/posix-functions/sqrtf.texi: Mention the new module.
13178
13179 2011-10-08  Bruno Haible  <bruno@clisp.org>
13180
13181         Tests: Avoid link failures w.r.t. libintl.
13182         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13183         $(LIBINTL).
13184         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13185         $(LIBINTL).
13186         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13187         against $(LIBINTL).
13188         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13189         $(LIBINTL).
13190         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13191         $(LIBINTL).
13192         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13193
13194 2011-10-08  Bruno Haible  <bruno@clisp.org>
13195
13196         pow tests: Defeat compiler optimizations.
13197         * tests/test-pow.c (main): Assign arguments to x and y before use.
13198
13199 2011-10-08  Bruno Haible  <bruno@clisp.org>
13200
13201         gnulib-tool: Improve last commit.
13202         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13203         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13204         ignore dependencies that are not among the modules list.
13205
13206 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13207
13208         gnulib-tool: don't follow dependencies to avoided modules
13209         This fixes a bug that is related to the previous one.
13210         * gnulib-tool (func_modules_transitive_closure)
13211         (func_emit_autoconf_snippets):
13212         Check whether a dependency is acceptable before using it.
13213         (--extract-dependencies): Report an error if --avoid is also used,
13214         since this combination of options is not yet supported.
13215
13216         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13217         Problem reported by Peter Dyballa in
13218         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13219         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13220         when echoing "$condition".
13221
13222 2011-10-07  Bruno Haible  <bruno@clisp.org>
13223
13224         Fix documentation about math functions on MacOS X.
13225         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13226         MacOS X 10.5.
13227         * doc/posix-functions/fdim.texi: Likewise.
13228         * doc/posix-functions/feclearexcept.texi: Likewise.
13229         * doc/posix-functions/fegetenv.texi: Likewise.
13230         * doc/posix-functions/fegetround.texi: Likewise.
13231         * doc/posix-functions/feholdexcept.texi: Likewise.
13232         * doc/posix-functions/feraiseexcept.texi: Likewise.
13233         * doc/posix-functions/fesetenv.texi: Likewise.
13234         * doc/posix-functions/fesetround.texi: Likewise.
13235         * doc/posix-functions/fetestexcept.texi: Likewise.
13236         * doc/posix-functions/feupdateenv.texi: Likewise.
13237         * doc/posix-functions/fmax.texi: Likewise.
13238         * doc/posix-functions/fmin.texi: Likewise.
13239         * doc/posix-functions/log2.texi: Likewise.
13240         * doc/posix-functions/modff.texi: Likewise.
13241         * doc/posix-functions/nan.texi: Likewise.
13242         * doc/posix-functions/nanf.texi: Likewise.
13243         * doc/posix-functions/nextafterf.texi: Likewise.
13244         * doc/posix-functions/remquo.texi: Likewise.
13245
13246 2011-10-07  Bruno Haible  <bruno@clisp.org>
13247
13248         modff: Drop assumption about library that defines modff.
13249         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13250         AC_CHECK_FUNCS.
13251         * modules/modff (Files): Add m4/mathfunc.m4.
13252
13253 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13254
13255         raise tests: Avoid a GCC warning.
13256         * tests/test-raise.c (handler): Use _Noreturn.
13257
13258 2011-10-07  Bruno Haible  <bruno@clisp.org>
13259
13260         Tests for module 'ldexpf'.
13261         * modules/ldexpf-tests: New file.
13262         * tests/test-ldexpf.c: New file.
13263
13264         New module 'ldexpf'.
13265         * lib/math.in.h (ldexpf): New declaration.
13266         * lib/ldexpf.c: New file.
13267         * m4/ldexpf.m4: New file.
13268         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13270         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13271         * modules/ldexpf: New file.
13272         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13273         * doc/posix-functions/ldexpf.texi: Mention the new module.
13274
13275 2011-10-06  Bruno Haible  <bruno@clisp.org>
13276
13277         frexpf: Work around problems on IRIX and mingw.
13278         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13280         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13281         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13282         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13283         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13284         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13285
13286 2011-10-06  Bruno Haible  <bruno@clisp.org>
13287
13288         fabsf: Drop assumption about library that defines fabsf.
13289         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13290         AC_CHECK_FUNCS.
13291         * modules/fabsf (Files): Add m4/mathfunc.m4.
13292
13293 2011-10-06  Bruno Haible  <bruno@clisp.org>
13294
13295         frexpf: Drop assumption about library that defines frexpf.
13296         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13297         'int *', 'float *', 'long double *', 'float', 'long double'.
13298         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13299         AC_CHECK_FUNCS.
13300         * modules/frexpf (Files): Add m4/mathfunc.m4.
13301
13302         Tests for module 'frexpf'.
13303         * modules/frexpf-tests: New file.
13304         * tests/test-frexpf.c: New file.
13305
13306         New module 'frexpf'.
13307         * lib/math.in.h (frexpf): New declaration.
13308         * lib/frexpf.c: New file.
13309         * m4/frexpf.m4: New file.
13310         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13312         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13313         * modules/frexpf: New file.
13314         * tests/test-math-c++.cc: Check the declaration of frexpf.
13315         * doc/posix-functions/frexpf.texi: Mention the new module.
13316
13317 2011-10-06  Bruno Haible  <bruno@clisp.org>
13318
13319         math: Sort function declarations of math.in.h.
13320         * lib/math.in.h (frexp, logb): Move declarations.
13321
13322 2011-10-05  Bruno Haible  <bruno@clisp.org>
13323
13324         Tests for module 'modff'.
13325         * modules/modff-tests: New file.
13326         * tests/test-modff.c: New file.
13327
13328         New module 'modff'.
13329         * lib/math.in.h (modff): New declaration.
13330         * lib/modff.c: New file.
13331         * m4/modff.m4: New file.
13332         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13334         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13335         * modules/modff: New file.
13336         * tests/test-math-c++.cc: Check the declaration of modff.
13337         * doc/posix-functions/modff.texi: Mention the new module.
13338
13339         modf tests: Make test sharper.
13340         * tests/test-modf.c (main): Strengthen upper bound.
13341
13342         modf: Use a .m4 file.
13343         * m4/modf.m4: New file.
13344         * modules/modf (Files): Add it.
13345         (configure.ac): Just invoke gl_FUNC_MODF.
13346
13347 2011-10-05  Bruno Haible  <bruno@clisp.org>
13348
13349         Tests for module 'fmodf'.
13350         * modules/fmodf-tests: New file.
13351         * tests/test-fmodf.c: New file.
13352
13353         New module 'fmodf'.
13354         * lib/math.in.h (fmodf): New declaration.
13355         * lib/fmodf.c: New file.
13356         * m4/fmodf.m4: New file.
13357         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13359         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13360         * modules/fmodf: New file.
13361         * tests/test-math-c++.cc: Check the declaration of fmodf.
13362         * doc/posix-functions/fmodf.texi: Mention the new module.
13363
13364         fmod: Use a .m4 file.
13365         * m4/fmod.m4: New file.
13366         * modules/fmod (Files): Add it.
13367         (configure.ac): Just invoke gl_FUNC_FMOD.
13368
13369 2011-10-05  Bruno Haible  <bruno@clisp.org>
13370
13371         Tests for module 'fabsf'.
13372         * modules/fabsf-tests: New file.
13373         * tests/test-fabsf.c: New file.
13374
13375         New module 'fabsf'.
13376         * lib/math.in.h (fabsf): New declaration.
13377         * lib/fabsf.c: New file.
13378         * m4/fabsf.m4: New file.
13379         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13381         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13382         * modules/fabsf: New file.
13383         * tests/test-math-c++.cc: Check the declaration of fabsf.
13384         * doc/posix-functions/fabsf.texi: Mention the new module.
13385
13386         fabs: Use a .m4 file.
13387         * m4/fabs.m4: New file.
13388         * modules/fabs (Files): Add it.
13389         (configure.ac): Just invoke gl_FUNC_FABS.
13390
13391 2011-10-05  Jim Meyering  <meyering@redhat.com>
13392
13393         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13394         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13395         ls -lL regression introduced in coreutils-8.12, it does so at the
13396         cost of an additional stat call in the common case.  Besides, now
13397         that the kernel change that prompted commit 95f7c57f has been reverted
13398         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13399         we have no use for commit 95f7c57f, "file-has-acl: use
13400         acl_extended_file_nofollow if available".
13401
13402 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13403
13404         file-has-acl: revert unintended change in behavior of ls -L
13405         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13406         derived from...
13407         (file_has_acl): ...code here.  Call it.
13408         This problem was introduced with 2011-07-22 commit 95f7c57f,
13409         "file-has-acl: use acl_extended_file_nofollow if available".
13410         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13411
13412 2011-10-03  Bruno Haible  <bruno@clisp.org>
13413
13414         poll: Avoid link errors on MSVC.
13415         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13416         * modules/poll (Depends-on): Add sockets.
13417         (Link): New section.
13418         * NEWS: Mention the change.
13419         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13420         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13421         $(LIB_POLL) instead of $(LIBSOCKET).
13422
13423 2011-10-03  Bruno Haible  <bruno@clisp.org>
13424
13425         sys_select tests: Fix link error on MSVC 9.
13426         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13427         with $(LIB_SELECT) instead of $(LIBSOCKET).
13428
13429 2011-10-03  Bruno Haible  <bruno@clisp.org>
13430
13431         sys_select: Fix compilation error on mingw.
13432         * lib/sys_select.in.h: On native Windows, include <io.h>.
13433
13434 2011-10-03  Bruno Haible  <bruno@clisp.org>
13435
13436         wmemset: Support for MSVC.
13437         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13438         whether wmemset() exists.
13439
13440 2011-10-03  Bruno Haible  <bruno@clisp.org>
13441
13442         wmemmove: Support for MSVC.
13443         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13444         whether wmemmove() exists.
13445
13446 2011-10-03  Bruno Haible  <bruno@clisp.org>
13447
13448         wmemcpy: Support for MSVC.
13449         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13450         whether wmemcpy() exists.
13451
13452 2011-10-03  Bruno Haible  <bruno@clisp.org>
13453
13454         wmemcmp: Support for MSVC.
13455         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13456         whether wmemcmp() exists.
13457
13458 2011-10-03  Bruno Haible  <bruno@clisp.org>
13459
13460         wmemchr: Support for MSVC.
13461         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13462         whether wmemchr() exists.
13463
13464 2011-10-03  Bruno Haible  <bruno@clisp.org>
13465
13466         glthread/*, strsignal: Support for MSVC.
13467         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13468         including <winsock.h> on MSVC 9.
13469         * lib/glthread/lock.h: Likewise.
13470         * lib/glthread/thread.h: Likewise.
13471         * lib/glthread/tls.h: Likewise.
13472         * lib/glthread/yield.h: Likewise.
13473         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13474         if HAVE_UNISTD_H is false.
13475         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13476
13477 2011-10-03  Bruno Haible  <bruno@clisp.org>
13478
13479         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13480         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13481         Set to 100000.
13482
13483 2011-10-03  Bruno Haible  <bruno@clisp.org>
13484
13485         acl: Fix specification.
13486         * lib/file-has-acl.c (file_has_acl): Fix specification.
13487
13488 2011-10-03  Bruno Haible  <bruno@clisp.org>
13489
13490         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13491         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13492         (compute_curr_prefix, shared_library_fullname,
13493         find_shared_library_fullname, get_shared_library_fullname, relocate):
13494         Use it together with PIC && INSTALLDIR.
13495         Reported by <jojelino@gmail.com>
13496         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13497
13498 2011-10-01  Jim Meyering  <meyering@redhat.com>
13499
13500         maint.mk: adjust a release-related rule not to require use of gzip
13501         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13502         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13503         projects that build only .tar.xz files.  Also fix an erroneous test.
13504
13505         test-linkat: don't leave behind a temporary file
13506         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13507         Otherwise, coreutils' "make distcheck" would fail with this:
13508           Only in /c/cu/tests/torture/coreutils/test/\
13509             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13510           make[2]: *** [my-distcheck] Error 1
13511
13512         float, math: add omitted file
13513         * lib/itold.c: Add file, required for yesterday's float change.
13514
13515 2011-10-01  Bruno Haible  <bruno@clisp.org>
13516
13517         isinf: Fix for OpenBSD/x86.
13518         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13519         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13520         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13521
13522 2011-10-01  Bruno Haible  <bruno@clisp.org>
13523
13524         isfinite: Fix syntax error in configure test.
13525         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13526
13527         isfinite: Fix typo.
13528         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13529         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13530
13531 2011-10-01  Bruno Haible  <bruno@clisp.org>
13532
13533         nonblocking tests: Fix test failure on Linux/IA-64.
13534         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13535         Set to 270000.
13536
13537 2011-10-01  Bruno Haible  <bruno@clisp.org>
13538
13539         mkfifoat tests: Fix a test failure on mingw.
13540         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13541         with error ENOSYS.
13542
13543 2011-09-30  Bruno Haible  <bruno@clisp.org>
13544
13545         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13546         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13547         'long double'. Set REPLACE_ITOLD.
13548         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13549         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13550         * lib/itold.c: New file.
13551         * modules/float (Files): Add lib/itold.c.
13552         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13553         (Makefile.am): Substitute REPLACE_ITOLD.
13554         * modules/math (Depends-on): Add float.
13555         (Makefile.am): Substitute REPLACE_ITOLD.
13556         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13557         * doc/posix-headers/math.texi: Likewise.
13558         * doc/posix-functions/logl.texi: Likewise.
13559
13560 2011-09-30  Bruno Haible  <bruno@clisp.org>
13561
13562         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13563         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13564         Set to 140000.
13565
13566 2011-09-30  Bruno Haible  <bruno@clisp.org>
13567
13568         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13569         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13570         invocation, say "right after AC_PROG_CC_STDC", not "right after
13571         AC_PROG_CC".
13572         Reported by Gary V. Vaughan <gary@gnu.org>.
13573
13574 2011-09-30  Bruno Haible  <bruno@clisp.org>
13575
13576         Centralize C99 requirement.
13577         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13578         * modules/stdarg (configure.ac-early): Invoke it instead of
13579         AC_PROG_CC_STDC.
13580         Reported by Gary V. Vaughan and Paul Eggert.
13581
13582 2011-09-29  Bruno Haible  <bruno@clisp.org>
13583
13584         float: Fix LDBL_MAX value on Linux/PowerPC.
13585         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13586         on Linux/PowerPC.
13587         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13588         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13589         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13590         platform.
13591         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13592
13593 2011-09-29  Bruno Haible  <bruno@clisp.org>
13594
13595         doc: Improve doc about gl_EARLY.
13596         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13597         AC_PROG_CC_STDC invocation.
13598         Reported by Gary V. Vaughan <gary@gnu.org>.
13599
13600 2011-09-28  Bruno Haible  <bruno@clisp.org>
13601
13602         fgetc, fputc, fread, fwrite tests: Fix link error.
13603         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13604         on non-MSVC platforms.
13605         * tests/test-fputc.c (main): Likewise.
13606         * tests/test-fread.c (main): Likewise.
13607         * tests/test-fwrite.c (main): Likewise.
13608         Reported by Jim Meyering.
13609
13610 2011-09-27  Bruno Haible  <bruno@clisp.org>
13611
13612         fputc, fwrite tests: Avoid test failure on MSVC.
13613         * tests/test-fgetc.c: Include msvc-inval.h.
13614         (main): Invoke gl_msvc_inval_ensure_handler.
13615         * tests/test-fputc.c: Include msvc-inval.h.
13616         (main): Invoke gl_msvc_inval_ensure_handler.
13617         * tests/test-fread.c: Include msvc-inval.h.
13618         (main): Invoke gl_msvc_inval_ensure_handler.
13619         * tests/test-fwrite.c: Include msvc-inval.h.
13620         (main): Invoke gl_msvc_inval_ensure_handler.
13621         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13622         * modules/fputc-tests (Depends-on): Likewise.
13623         * modules/fread-tests (Depends-on): Likewise.
13624         * modules/fwrite-tests (Depends-on): Likewise.
13625
13626 2011-09-27  Bruno Haible  <bruno@clisp.org>
13627
13628         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13629         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13630         (raise): Remove older, duplicated declaration.
13631         (_gl_raise_SIGPIPE): New declaration.
13632         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13633         (rpl_raise): Remove function.
13634         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13635         a gnulib-defined SIGPIPE here.
13636         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13637         'sigprocmask' has detected missing signal-blocking and the module
13638         'sigpipe' is enabled.
13639         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13640
13641 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13642
13643         base64-tests: avoid memory leak
13644         * tests/test-base64.c (main): Plug memory leak.
13645
13646         base32: new module
13647         * modules/base32: New module.
13648         * lib/base32.c: New file.
13649         * lib/base32.h: Likewise.
13650         * m4/base32.m4: Likewise.
13651         * modules/base32-tests: New test.
13652         * tests/test-base32.c: Likewise.
13653         * MODULES.html.sh (Misc): Mention it.
13654
13655 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13656
13657         gnulib: use more-standard license notice wording
13658         * gnulib-tool (func_emit_copyright_notice): When emitting a
13659         license notice into a file, use the standard wording as suggested
13660         by the current information for GNU maintainers, except say "file"
13661         rather than "program".  The new wording gives a license version
13662         number, which addresses an issue raised by Glenn Morris in
13663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13664         * m4/onceonly.m4: Use that same wording here, too.
13665
13666         dup2: minor simplification
13667         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13668         as lib/dup2.c no longer uses 'inline'.
13669
13670 2011-09-25  Bruno Haible  <bruno@clisp.org>
13671
13672         strings: Fix compilation error on MSVC.
13673         * lib/strings.in.h: Include <stddef.h> for size_t.
13674
13675 2011-09-25  Bruno Haible  <bruno@clisp.org>
13676
13677         fflush et al.: Document limitation on MSVC.
13678         * doc/posix-functions/fflush.texi: Document possible crash in handling
13679         mode other than DEFAULT_HANDLING.
13680         * doc/posix-functions/fgetc.texi: Likewise.
13681         * doc/posix-functions/fputc.texi: Likewise.
13682         * doc/posix-functions/fread.texi: Likewise.
13683         * doc/posix-functions/fwrite.texi: Likewise.
13684
13685 2011-09-25  Bruno Haible  <bruno@clisp.org>
13686
13687         msvc-inval: Allow three invalid parameter handling modes.
13688         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13689         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13690         macros.
13691         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13692         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13693         SANE_LIBRARY_HANDLING as a no-op.
13694         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13695         <stdlib.h>.
13696         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13697
13698 2011-09-25  Bruno Haible  <bruno@clisp.org>
13699
13700         msvc-inval: Make handler multithread-safe.
13701         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13702         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13703         declarations.
13704         (gl_msvc_inval_current): New declaration.
13705         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13706         Operate on the structure returned by gl_msvc_inval_current().
13707         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13708         Remove varaiables.
13709         (tls_index, tls_initialized): New variables.
13710         (not_per_thread): New variable.
13711         (gl_msvc_inval_current): New function.
13712         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13713         returned by gl_msvc_inval_current().
13714
13715 2011-09-25  Bruno Haible  <bruno@clisp.org>
13716
13717         msvc-inval: Install handler globally.
13718         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13719         !_MSC_VER.
13720         (gl_msvc_invalid_parameter_handler): Remove declaration.
13721         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13722         declarations.
13723         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13724         Install the handler globally, don't uninstall it.
13725         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13726         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13727         currently valid, call RaiseException instead.
13728         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13729         for !_MSC_VER.
13730
13731 2011-09-25  Bruno Haible  <bruno@clisp.org>
13732
13733         strerror_r-posix: Fix for MSVC 9.
13734         * lib/strerror_r.c (local_snprintf): New function.
13735         (snprintf): Define to local_snprintf, not to _snprintf.
13736
13737 2011-09-25  Bruno Haible  <bruno@clisp.org>
13738
13739         ftruncate: Support for MSVC 9.
13740         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13741         (chsize_nothrow): New function.
13742         (chsize): Redefine as a macro.
13743         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13744         * modules/ftruncate (Depends-on): Add msvc-inval.
13745
13746 2011-09-25  Bruno Haible  <bruno@clisp.org>
13747
13748         New module 'fstat'.
13749         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13750         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13751         * lib/fchdir.c (rpl_fstat): Remove function.
13752         * m4/fstat.m4: New file.
13753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13755         declared.
13756         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13757         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13758         * modules/fstat: New file.
13759         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13760         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13761         is set.
13762         * doc/posix-functions/fstat.texi: Mention the new module and the
13763         problem on MSVC.
13764         * NEWS: Mention the change.
13765         * modules/acl (Depends-on): Add fstat.
13766         * modules/chdir-safer (Depends-on): Likewise.
13767         * modules/chown (Depends-on): Likewise.
13768         * modules/copy-file (Depends-on): Likewise.
13769         * modules/fchdir (Depends-on): Likewise.
13770         * modules/fdopendir (Depends-on): Likewise.
13771         * modules/fopen (Depends-on): Likewise.
13772         * modules/fts (Depends-on): Likewise.
13773         * modules/getcwd (Depends-on): Likewise.
13774         * modules/isapipe (Depends-on): Likewise.
13775         * modules/linkat (Depends-on): Likewise.
13776         * modules/lseek (Depends-on): Likewise.
13777         * modules/mkdir-p (Depends-on): Likewise.
13778         * modules/open (Depends-on): Likewise.
13779         * modules/openat (Depends-on): Likewise.
13780         * modules/read-file (Depends-on): Likewise.
13781         * modules/renameat (Depends-on): Likewise.
13782         * modules/utimens (Depends-on): Likewise.
13783
13784 2011-09-25  Bruno Haible  <bruno@clisp.org>
13785
13786         linkat: Fix compilation on MSVC 9.
13787         * lib/linkat.c: Don't include <stdint.h>.
13788
13789 2011-09-25  Bruno Haible  <bruno@clisp.org>
13790
13791         fclose: Support for MSVC 9.
13792         * lib/fclose.c: Include msvc-inval.h.
13793         (fclose_nothrow): New function.
13794         (rpl_fclose): Use it.
13795         * modules/fclose (Depends-on): Add msvc-inval.
13796         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13797
13798 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13799
13800         dup2: minor simplifications
13801         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13802         that it's a performance win.
13803         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13804         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13805
13806 2011-09-24  Jim Meyering  <meyering@redhat.com>
13807
13808         test-futimens: avoid a warning from gcc -Wshadow
13809         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13810         to avoid a shadowing warning.
13811
13812 2011-09-24  Bruno Haible  <bruno@clisp.org>
13813
13814         fdopen: Support for MSVC 9.
13815         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13816         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13817         * lib/fdopen.c: Include msvc-inval.h.
13818         (fdopen_nothrow): New function.
13819         (rpl_fdopen): Use it.
13820         * modules/fdopen (Depends-on): Add msvc-inval.
13821         * modules/fclose-tests (Depends-on): Add fdopen.
13822         * modules/fflush-tests (Depends-on): Likewise.
13823         * modules/fgetc-tests (Depends-on): Likewise.
13824         * modules/fputc-tests (Depends-on): Likewise.
13825         * modules/fread-tests (Depends-on): Likewise.
13826         * modules/freopen-tests (Depends-on): Likewise.
13827         * modules/fseeko-tests (Depends-on): Likewise.
13828         * modules/ftello-tests (Depends-on): Likewise.
13829         * modules/fwrite-tests  (Depends-on): Likewise.
13830         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13831
13832 2011-09-24  Bruno Haible  <bruno@clisp.org>
13833
13834         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13835         * modules/fgetc-tests (Depends-on): Add unistd.
13836         * modules/fputc-tests (Depends-on): Likewise.
13837         * modules/fread-tests (Depends-on): Likewise.
13838         * modules/fwrite-tests (Depends-on): Likewise.
13839
13840 2011-09-24  Bruno Haible  <bruno@clisp.org>
13841
13842         dup: Simplify autoconf test.
13843         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13844         on gl_MSVC_INVAL's result.
13845
13846 2011-09-24  Bruno Haible  <bruno@clisp.org>
13847
13848         Tests for function fwrite().
13849         * modules/fwrite-tests: New file.
13850         * tests/test-fwrite.c: New file.
13851         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13852
13853         Tests for function fread().
13854         * modules/fread-tests: New file.
13855         * tests/test-fread.c: New file.
13856         * modules/stdio-tests (Depends-on): Add fread-tests.
13857
13858         Activate fputc tests.
13859         * modules/stdio-tests (Depends-on): Add fputc-tests.
13860
13861         Enhance fgetc, fputc tests.
13862         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13863         * tests/test-fputc.c (main): Likewise.
13864
13865 2011-09-24  Bruno Haible  <bruno@clisp.org>
13866
13867         write: Support for MSVC 9.
13868         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13869         is not 1.
13870         * lib/write.c (write_nothrow): New function.
13871         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13872         not 1. Use write_nothrow.
13873         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13874         invalid parameter handler.
13875         (gl_PREREQ_WRITE): New macro.
13876         * modules/write (Depends-on): Add msvc-inval.
13877         (configure.ac): Invoke gl_PREREQ_WRITE.
13878         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13879
13880 2011-09-24  Bruno Haible  <bruno@clisp.org>
13881
13882         read: Fix last commit.
13883         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13884
13885 2011-09-24  Bruno Haible  <bruno@clisp.org>
13886
13887         dup2: Fix last commit.
13888         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13889         (rpl_dup2): Disable fcntl workaround on native Windows.
13890
13891         sigprocmask: Make code safer.
13892         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13893         section that changes macro definitions for this compilation unit.
13894
13895 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13896
13897         dup2: clarify by coalescing Windows-specific material
13898         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13899         "msvc-nothrow.h"' to the Windows-specific section, so that the
13900         Emacs source need not contain these include files.
13901         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13902         Windows-specific fixes into this function rather than just the
13903         nothrow fix, as this shortens and clarifies the code.  Always
13904         define as a function, as that's a bit cleaner than having it be
13905         sometimes a function and sometimes a macro.
13906         (rpl_dup2): Move the Windows-specific stuff out of here and into
13907         ms_windows_dup2.  Don't protect the Haiku-related fix with
13908         "#if !defined __linux__", as the same code also works around
13909         a Linux kernel bug, and it doesn't add any system calls on any
13910         platform.  Add comment about FreeBSD 6.1.
13911
13912         sigprocmask: move #include directive
13913         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13914         Windows-specific section, so that the Emacs source need not
13915         contain msvc-inval.h.
13916
13917 2011-09-23  Bruno Haible  <bruno@clisp.org>
13918
13919         read: Support for MSVC 9.
13920         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13921         is not 1.
13922         * lib/read.c (read_nothrow): New function.
13923         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13924         read_nothrow.
13925         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13926         invalid parameter handler.
13927         (gl_PREREQ_READ): New macro.
13928         * modules/read (Depends-on): Add msvc-inval.
13929         (configure.ac): Invoke gl_PREREQ_READ.
13930         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13931
13932 2011-09-23  Bruno Haible  <bruno@clisp.org>
13933
13934         close: Support for MSVC 9.
13935         * lib/close.c: Include <errno.h>, msvc-inval.h.
13936         (close_nothrow): New function.
13937         (rpl_close): Use it.
13938         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13939         invalid parameter handler.
13940         * modules/close (Depends-on): Add msvc-inval.
13941         * modules/dup2-tests (Depends-on): Add close.
13942         * modules/dup3-tests (Depends-on): Likewise.
13943         * modules/fcntl-tests (Depends-on): Likewise.
13944         * modules/spawn-pipe-tests (Depends-on): Likewise.
13945         * modules/unistd-safer-tests (Depends-on): Likewise.
13946         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13947
13948 2011-09-23  Bruno Haible  <bruno@clisp.org>
13949
13950         New module 'dup'.
13951         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13952         Allow replacement.
13953         * lib/dup.c: New file.
13954         * lib/fchdir.c (rpl_dup): Remove function.
13955         * m4/dup.m4: New file.
13956         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13957         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13958         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13959         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13960         * modules/dup: New file.
13961         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13962         'dup' module is in use.
13963         * modules/fdopendir (Depends-on): Add dup.
13964         * modules/fdutimensat-tests (Depends-on): Likewise.
13965         * modules/fts (Depends-on): Likewise.
13966         * modules/futimens-tests (Depends-on): Likewise.
13967         * modules/posix_spawnp-tests (Depends-on): Likewise.
13968         * modules/unistd-safer-tests (Depends-on): Likewise.
13969         * modules/utimens-tests (Depends-on): Likewise.
13970         * doc/posix-functions/dup.texi: Mention the new module and the problem
13971         on MSVC.
13972
13973 2011-09-23  Bruno Haible  <bruno@clisp.org>
13974
13975         getdtablesize: Support for MSVC 9.
13976         * lib/getdtablesize.c: Include msvc-inval.h.
13977         (_setmaxstdio_nothrow): New function.
13978         (_setmaxstdio): Redefine it.
13979         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13980         * modules/getdtablesize (Depends-on): Add msvc-inval.
13981         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13982
13983 2011-09-23  Bruno Haible  <bruno@clisp.org>
13984
13985         signal-h: Rename from signal.
13986         * modules/signal-h: Renamed from modules/signal.
13987         * modules/pthread_sigmask (Depends-on): Update.
13988         * modules/raise (Depends-on): Likewise.
13989         * modules/sigaction (Depends-on): Likewise.
13990         * modules/sigpipe (Depends-on): Likewise.
13991         * modules/sigprocmask (Depends-on): Likewise.
13992         * modules/sys_select (Depends-on): Likewise.
13993         * modules/signal-h-tests: Renamed from modules/signal-tests.
13994         (Files, Depends-on, Makefile.am): Update.
13995         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13996         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13997         (Files, Makefile.am): Update.
13998         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13999         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14000         * modules/signal: New placeholder file.
14001         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14002         * doc/posix-headers/signal.texi: Update.
14003         * NEWS: Mention the change.
14004
14005 2011-09-23  Bruno Haible  <bruno@clisp.org>
14006
14007         sigprocmask: Avoid crashes through signal() on MSVC 9.
14008         * lib/sigprocmask.c: Include msvc-inval.h.
14009         (signal_nothrow): New function.
14010         (signal): Redefine it.
14011         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14012         * modules/sigprocmask (Depends-on): Add msvc-inval.
14013         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14014
14015 2011-09-23  Bruno Haible  <bruno@clisp.org>
14016
14017         Tests for module 'raise'.
14018         * modules/raise-tests: New file.
14019         * tests/test-raise.c: New file.
14020
14021         raise: Support for MSVC.
14022         * lib/signal.in.h (raise): New declaration.
14023         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14024         for native Windows platforms.
14025         * m4/raise.m4: New file.
14026         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14027         HAVE_RAISE, REPLACE_RAISE.
14028         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14029         REPLACE_RAISE.
14030         * modules/raise (Status, Notice): Remove fields.
14031         (Files): Add m4/raise.m4.
14032         (Depends-on): Add signal, msvc-inval.
14033         (configure.ac): Use the common idioms.
14034         (Maintainer): Add me.
14035         * tests/test-signal-c++.cc: Check the signature of raise.
14036         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14037
14038 2011-09-23  Bruno Haible  <bruno@clisp.org>
14039
14040         pipe2: Fix compilation on pre-C99 compilers.
14041         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14042
14043 2011-09-23  Bruno Haible  <bruno@clisp.org>
14044
14045         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14046         * lib/msvc-nothrow.h: New file.
14047         * lib/msvc-nothrow.c: New file.
14048         * m4/msvc-nothrow.m4: New file.
14049         * modules/msvc-nothrow: New file.
14050         * lib/dup2.c: Include msvc-nothrow.h.
14051         (rpl_dup2): No need to protect _get_osfhandle call here.
14052         * lib/accept4.c: Include msvc-nothrow.h.
14053         * lib/error.c: Likewise.
14054         * lib/fcntl.c: Likewise.
14055         * lib/lseek.c: Likewise.
14056         * lib/nonblocking.c: Likewise.
14057         * lib/poll.c: Likewise.
14058         * lib/read.c: Likewise.
14059         * lib/select.c: Likewise.
14060         * lib/sockets.h: Likewise.
14061         * lib/sockets.c: Likewise.
14062         * lib/stdio-read.c: Likewise.
14063         * lib/stdio-write.c: Likewise.
14064         * lib/write.c: Likewise.
14065         * lib/w32sock.h: Likewise.
14066         * lib/w32spawn.h: Likewise.
14067         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14068         * lib/fsync.c: Likewise.
14069         * lib/isapipe.c: Likewise.
14070         * modules/dup2 (Depends-on): Add msvc-nothrow.
14071         * modules/accept4 (Depends-on): Likewise.
14072         * modules/error (Depends-on): Likewise.
14073         * modules/fcntl (Depends-on): Likewise.
14074         * modules/lseek (Depends-on): Likewise.
14075         * modules/nonblocking (Depends-on): Likewise.
14076         * modules/poll (Depends-on): Likewise.
14077         * modules/read (Depends-on): Likewise.
14078         * modules/select (Depends-on): Likewise.
14079         * modules/sockets (Depends-on): Likewise.
14080         * modules/sigpipe (Depends-on): Likewise.
14081         * modules/write (Depends-on): Likewise.
14082         * modules/accept (Depends-on): Likewise.
14083         * modules/bind (Depends-on): Likewise.
14084         * modules/connect (Depends-on): Likewise.
14085         * modules/gethostname (Depends-on): Likewise.
14086         * modules/getpeername (Depends-on): Likewise.
14087         * modules/getsockname (Depends-on): Likewise.
14088         * modules/getsockopt (Depends-on): Likewise.
14089         * modules/ioctl (Depends-on): Likewise.
14090         * modules/listen (Depends-on): Likewise.
14091         * modules/recv (Depends-on): Likewise.
14092         * modules/recvfrom (Depends-on): Likewise.
14093         * modules/send (Depends-on): Likewise.
14094         * modules/sendto (Depends-on): Likewise.
14095         * modules/setsockopt (Depends-on): Likewise.
14096         * modules/shutdown (Depends-on): Likewise.
14097         * modules/socket (Depends-on): Likewise.
14098         * modules/execute (Depends-on): Likewise.
14099         * modules/spawn-pipe (Depends-on): Likewise.
14100         * modules/flock (Depends-on): Likewise.
14101         * modules/fsync (Depends-on): Likewise.
14102         * modules/isapipe (Depends-on): Likewise.
14103         * tests/test-cloexec.c: Include msvc-nothrow.h.
14104         * tests/test-dup-safer.c: Likewise.
14105         * tests/test-dup2.c: Likewise.
14106         * tests/test-dup3.c: Likewise.
14107         * tests/test-fcntl.c: Likewise.
14108         * tests/test-pipe.c: Likewise.
14109         * tests/test-pipe2.c: Likewise.
14110         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14111         * modules/unistd-safer-tests (Depends-on): Likewise.
14112         * modules/dup2-tests (Depends-on): Likewise.
14113         * modules/dup3-tests (Depends-on): Likewise.
14114         * modules/fcntl-tests (Depends-on): Likewise.
14115         * modules/pipe-posix-tests (Depends-on): Likewise.
14116         * modules/pipe2-tests (Depends-on): Likewise.
14117
14118 2011-09-23  Bruno Haible  <bruno@clisp.org>
14119
14120         dup2: Make code more maintainable.
14121         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14122         (rpl_dup2): Use it.
14123         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14124         * modules/dup2 (configure.ac): Invoke it.
14125         Reported by Paul Eggert.
14126
14127 2011-09-23  Bruno Haible  <bruno@clisp.org>
14128
14129         msvc-inval: Fix compilation error.
14130         * lib/msvc-inval.h: Include <excpt.h>.
14131
14132 2011-09-23  Bruno Haible  <bruno@clisp.org>
14133
14134         mkdir: Tweak for MSVC 9.
14135         * lib/sys_stat.in.h: Update comments.
14136         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14137
14138         Tests for module 'chdir'.
14139         * modules/chdir-tests: New file.
14140         * tests/test-chdir.c: New file.
14141
14142         New module 'chdir'.
14143         * modules/chdir: New file.
14144         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14145         (chdir): New declaration.
14146         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14147         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14148         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14149         * tests/test-unistd-c++.cc: Check signature of chdir.
14150         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14151         * modules/chdir-long (Depends-on): Add chdir.
14152         * modules/fchdir (Depends-on): Likewise.
14153         * modules/rename (Depends-on): Likewise.
14154         * modules/savewd (Depends-on): Likewise.
14155
14156         rmdir: Support for mingw, MSVC 9.
14157         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14158         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14159
14160         getcwd: Tweak for MSVC 9.
14161         * lib/unistd.in.h: Update comments.
14162         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14163
14164 2011-09-22  Bruno Haible  <bruno@clisp.org>
14165
14166         strerror_r-posix: Avoid a link error on MSVC.
14167         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14168         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14169
14170 2011-09-22  Bruno Haible  <bruno@clisp.org>
14171
14172         select: Avoid link errors on MSVC.
14173         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14174         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14175         * modules/pselect (Link): Likewise.
14176         * NEWS: Mention the change.
14177         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14178         test-select-stdin against $(LIB_SELECT).
14179         * modules/pselect-tests (Makefile.am): Link test-pselect against
14180         $(LIB_SELECT).
14181
14182 2011-09-22  Bruno Haible  <bruno@clisp.org>
14183
14184         select: Avoid compilation error on MSVC.
14185         * lib/select.c: Don't include <stdbool.h>.
14186
14187 2011-09-21  Bruno Haible  <bruno@clisp.org>
14188
14189         Consolidate all uses of PATH_MAX in *.m4 files.
14190         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14191         macros.
14192         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14193         and gl_PATHMAX_SNIPPET.
14194         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14195         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14196         * modules/chdir-long (Files): Add m4/pathmax.m4.
14197         * modules/getcwd (Files): Likewise.
14198
14199 2011-09-21  Bruno Haible  <bruno@clisp.org>
14200
14201         ftruncate: Un-deprecate, concentrate on Win32 support.
14202         * modules/ftruncate (Status, Notice): Remove sections.
14203         (Depends-on): Add largefile.
14204         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14205         non-mingw platforms.
14206         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14207         include <io.h>.
14208         * modules/perror-tests (Depends-on): Add ftruncate.
14209         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14210         'ftruncate' module.
14211
14212 2011-09-21  Bruno Haible  <bruno@clisp.org>
14213
14214         Add dependencies to new dirent related modules.
14215         * modules/opendir (Depends-on): Add closedir.
14216         * modules/getcwd (Depends-on): Add opendir, closedir.
14217         * modules/dirent-safer-tests (Depends-on): Likewise.
14218         * modules/fdopendir-tests (Depends-on): Likewise.
14219         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14220         * modules/renameat-tests (Depends-on): Likewise.
14221
14222 2011-09-21  Bruno Haible  <bruno@clisp.org>
14223
14224         opendir: Avoid compilation error on mingw.
14225         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14226         * modules/opendir (Depends-on): Add unistd.
14227
14228 2011-09-21  Bruno Haible  <bruno@clisp.org>
14229
14230         ftruncate tests: Avoid a test failure on mingw.
14231         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14232
14233 2011-09-21  Bruno Haible  <bruno@clisp.org>
14234
14235         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14236         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14237         native Windows.
14238
14239 2011-09-21  Bruno Haible  <bruno@clisp.org>
14240
14241         New module 'fdopen'.
14242         * lib/stdio.in.h (fdopen): New declaration.
14243         * lib/fdopen.c: New file.
14244         * m4/fdopen.m4: New file.
14245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14246         REPLACE_FDOPEN.
14247         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14248         REPLACE_FDOPEN.
14249         * modules/fdopen: New file.
14250         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14251         * tests/test-stdio-c++.cc: Check signature of fdopen.
14252         * doc/posix-functions/fdopen.texi: Mention the new module.
14253
14254 2011-09-21  Bruno Haible  <bruno@clisp.org>
14255
14256         unlockpt tests: Avoid test failure on NetBSD 5.1.
14257         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14258         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14259
14260 2011-09-21  Bruno Haible  <bruno@clisp.org>
14261
14262         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14263         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14264         * tests/test-getlogin_r.c (main): Likewise.
14265
14266 2011-09-20  Bruno Haible  <bruno@clisp.org>
14267
14268         time tests: Don't require pid_t.
14269         * doc/posix-headers/time.texi: Revert last change.
14270         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14271         * tests/test-time.c: Comment out the check for pid_t.
14272
14273 2011-09-20  Bruno Haible  <bruno@clisp.org>
14274
14275         fsync tests: Avoid a test failure on mingw.
14276         * tests/test-fsync.c (main): Allow a failure with EIO.
14277
14278 2011-09-20  Bruno Haible  <bruno@clisp.org>
14279
14280         euidaccess: Update comments.
14281         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14282
14283 2011-09-20  Bruno Haible  <bruno@clisp.org>
14284
14285         Ensure EBADF returns for socket functions on mingw.
14286         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14287         descriptor is invalid.
14288         * lib/bind.c (rpl_bind): Likewise.
14289         * lib/connect.c (rpl_connect): Likewise.
14290         * lib/getpeername.c (rpl_getpeername): Likewise.
14291         * lib/getsockname.c (rpl_getsockname): Likewise.
14292         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14293         * lib/listen.c (rpl_listen): Likewise.
14294         * lib/recv.c (rpl_recv): Likewise.
14295         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14296         * lib/send.c (rpl_send): Likewise.
14297         * lib/sendto.c (rpl_sendto): Likewise.
14298         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14299         * lib/shutdown.c (rpl_shutdown): Likewise.
14300
14301 2011-09-20  Bruno Haible  <bruno@clisp.org>
14302
14303         select tests: EBADF tests.
14304         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14305         test_bad_fd): New functions.
14306         (test_function): Invoke also test_bad_fd.
14307
14308 2011-09-20  Bruno Haible  <bruno@clisp.org>
14309
14310         Tests for module 'posix_spawn_file_actions_addopen.
14311         * modules/posix_spawn_file_actions_addopen-tests: New file.
14312         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14313
14314         Tests for module 'posix_spawn_file_actions_adddup2'.
14315         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14316         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14317
14318         Tests for module 'posix_spawn_file_actions_addclose'.
14319         * modules/posix_spawn_file_actions_addclose-tests: New file.
14320         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14321
14322 2011-09-20  Bruno Haible  <bruno@clisp.org>
14323
14324         Tests for module 'unlockpt'.
14325         * modules/unlockpt-tests: New file.
14326         * tests/test-unlockpt.c: New file.
14327         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14328
14329         Tests for module 'grantpt'.
14330         * modules/grantpt-tests: New file.
14331         * tests/test-grantpt.c: New file.
14332         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14333
14334 2011-09-20  Bruno Haible  <bruno@clisp.org>
14335
14336         freopen tests: EBADF tests.
14337         * tests/test-freopen.c: Include errno.h, unistd.h.
14338         (main): Add tests for EBADF, commented out for the moment.
14339
14340         fclose tests: EBADF tests.
14341         * tests/test-fclose.c (main): Add tests for EBADF.
14342
14343         fflush tests: EBADF tests.
14344         * tests/test-fflush.c: Include errno.h, macros.h.
14345         (main): Add tests for EBADF.
14346
14347         ftello tests: EBADF tests.
14348         * tests/test-ftello4.sh: New file.
14349         * tests/test-ftello4.c: New file.
14350         * modules/ftello-tests (Files): Add them.
14351         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14352
14353         fseeko tests: EBADF tests.
14354         * tests/test-fseeko4.sh: New file.
14355         * tests/test-fseeko4.c: New file.
14356         * modules/fseeko-tests (Files): Add them.
14357         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14358
14359         Tests for function fputc().
14360         * modules/fputc-tests: New file.
14361         * tests/test-fputc.c: New file.
14362         * modules/stdio-tests (Depends-on): Add fputc-tests.
14363
14364         Tests for function fgetc().
14365         * modules/fgetc-tests: New file.
14366         * tests/test-fgetc.c: New file.
14367         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14368
14369         Tests for function fdopen().
14370         * modules/fdopen-tests: New file.
14371         * tests/test-fdopen.c: New file.
14372         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14373
14374         Tests for module 'vdprintf'.
14375         * modules/vdprintf-tests: New file.
14376         * tests/test-vdprintf.c: New file.
14377
14378         Tests for module 'dprintf'.
14379         * modules/dprintf-tests: New file.
14380         * tests/test-dprintf.c: New file.
14381
14382 2011-09-20  Bruno Haible  <bruno@clisp.org>
14383
14384         Tests for module 'ioctl'.
14385         * modules/ioctl-tests: New file.
14386         * tests/test-ioctl.c: New file.
14387
14388 2011-09-20  Bruno Haible  <bruno@clisp.org>
14389
14390         fcntl tests: EBADF tests.
14391         * tests/test-fcntl.c (main): Add more tests for EBADF.
14392
14393 2011-09-20  Bruno Haible  <bruno@clisp.org>
14394
14395         utimensat tests: EBADF tests.
14396         * tests/test-utimensat.c (main): Add tests for EBADF.
14397
14398         renameat tests: EBADF tests.
14399         * tests/test-renameat.c (main): Add tests for EBADF.
14400
14401         mkfifoat tests: EBADF tests.
14402         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14403
14404         readlinkat tests: EBADF tests.
14405         * tests/test-readlinkat.c (main): Add tests for EBADF.
14406
14407         symlinkat tests: EBADF tests.
14408         * tests/test-symlinkat.c (main): Add tests for EBADF.
14409
14410         linkat tests: EBADF tests.
14411         * tests/test-linkat.c (main): Add tests for EBADF.
14412
14413         Tests for module 'faccessat'.
14414         * modules/faccessat-tests: New file.
14415         * tests/test-faccessat.c: New file.
14416
14417         fdopendir tests: EBADF tests.
14418         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14419
14420         openat tests: EBADF tests.
14421         * tests/test-fchownat.c (main): Add tests for EBADF.
14422         * tests/test-fstatat.c (main): Likewise.
14423         * tests/test-mkdirat.c (main): Likewise.
14424         * tests/test-openat.c (main): Likewise.
14425         * tests/test-unlinkat.c (main): Likewise.
14426         * tests/test-fchmodat.c: New file.
14427         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14428         (Makefile.am): Also run 'test-fchmodat'.
14429
14430 2011-09-20  Bruno Haible  <bruno@clisp.org>
14431
14432         utimens, futimens, fdutimensat tests: EBADF tests.
14433         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14434
14435         Tests for function fstat().
14436         * modules/fstat-tests: New file.
14437         * tests/test-fstat.c: New file.
14438         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14439
14440 2011-09-20  Bruno Haible  <bruno@clisp.org>
14441
14442         test-ttyname_r tests: EBADF tests.
14443         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14444
14445         Tests for module 'isatty'.
14446         * modules/isatty-tests: New file.
14447         * tests/test-isatty.c: New file.
14448
14449         Tests for module 'write'.
14450         * modules/write-tests: New file.
14451         * tests/test-write.c: New file.
14452
14453         Tests for module 'read'.
14454         * modules/read-tests: New file.
14455         * tests/test-read.c: New file.
14456
14457         pwrite tests: EBADF tests.
14458         * tests/test-pwrite.c (main): Add tests for EBADF.
14459
14460         pread tests: EBADF tests.
14461         * tests/test-pread.c (main): Add tests for EBADF.
14462
14463         lseek tests: EBADF tests.
14464         * tests/test-lseek.c (main): Add more tests for EBADF.
14465
14466         Tests for module 'ftruncate'.
14467         * modules/ftruncate-tests: New file.
14468         * tests/test-ftruncate.sh: New file.
14469         * tests/test-ftruncate.c: New file.
14470
14471         fsync tests: EBADF tests.
14472         * tests/test-fsync.c (main): Add more tests for EBADF.
14473
14474         fdatasync tests: EBADF tests.
14475         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14476
14477         Tests for module 'fchown'.
14478         * modules/fchown-tests: New file.
14479         * tests/test-fchown.c: New file.
14480
14481         Tests for module 'fchmod'.
14482         * modules/fchmod-tests: New file.
14483         * tests/test-fchmod.c: New file.
14484
14485         fchdir tests: EBADF tests.
14486         * tests/test-fchdir.c (main): Add more tests for EBADF.
14487
14488         dup2 tests: EBADF tests.
14489         * tests/test-dup2.c (main): Add more tests for EBADF.
14490
14491         Tests for module 'dup'.
14492         * modules/dup-tests: New file.
14493         * tests/test-dup.c: New file.
14494
14495         Tests for module 'close'.
14496         * modules/close-tests: New file.
14497         * tests/test-close.c: New file.
14498
14499 2011-09-20  Bruno Haible  <bruno@clisp.org>
14500
14501         Tests for module 'shutdown'.
14502         * modules/shutdown-tests: New file.
14503         * tests/test-shutdown.c: New file.
14504
14505         Tests for module 'setsockopt'.
14506         * modules/setsockopt-tests: New file.
14507         * tests/test-setsockopt.c: New file.
14508
14509         Tests for module 'sendto'.
14510         * modules/sendto-tests: New file.
14511         * tests/test-sendto.c: New file.
14512
14513         Tests for module 'send'.
14514         * modules/send-tests: New file.
14515         * tests/test-send.c: New file.
14516
14517         Tests for module 'recvfrom'.
14518         * modules/recvfrom-tests: New file.
14519         * tests/test-recvfrom.c: New file.
14520
14521         Tests for module 'recv'.
14522         * modules/recv-tests: New file.
14523         * tests/test-recv.c: New file.
14524
14525         Tests for module 'listen'.
14526         * modules/listen-tests: New file.
14527         * tests/test-listen.c: New file.
14528
14529         Tests for module 'getsockopt'.
14530         * modules/getsockopt-tests: New file.
14531         * tests/test-getsockopt.c: New file.
14532
14533         Tests for module 'getsockname'.
14534         * modules/getsockname-tests: New file.
14535         * tests/test-getsockname.c: New file.
14536
14537         Tests for module 'getpeername'.
14538         * modules/getpeername-tests: New file.
14539         * tests/test-getpeername.c: New file.
14540
14541         Tests for module 'connect'.
14542         * modules/connect-tests: New file.
14543         * tests/test-connect.c: New file.
14544
14545         Tests for module 'bind'.
14546         * modules/bind-tests: New file.
14547         * tests/test-bind.c: New file.
14548
14549         accept4 tests: Fix for native Windows.
14550         * tests/test-accept4.c: Include sockets.h.
14551         (main): Invoke gl_sockets_startup.
14552         * modules/accept4-tests (Depends-on): Add sockets.
14553
14554         accept tests: Fix for native Windows.
14555         * tests/test-accept.c: Include sockets.h.
14556         (main): Invoke gl_sockets_startup.
14557         * modules/accept-tests (Depends-on): Add sockets.
14558
14559 2011-09-19  Bruno Haible  <bruno@clisp.org>
14560
14561         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14562         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14563         do...while(0).
14564         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14565         Suggested by Paul Eggert.
14566
14567 2011-09-19  Bruno Haible  <bruno@clisp.org>
14568
14569         sched: Ensure pid_t is defined.
14570         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14571         not define pid_t.
14572         * lib/sched.in.h: Include <sys/types.h>.
14573         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14575
14576 2011-09-19  Bruno Haible  <bruno@clisp.org>
14577
14578         msvc-inval: Ensure the entire expansion is a single statement.
14579         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14580         of braces.
14581
14582 2011-09-19  Jim Meyering  <meyering@redhat.com>
14583
14584         tests: use printf, not echo in init.sh's warn_ function
14585         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14586         misbehave when given strings containing a backslash or starting
14587         with e.g., -n.  James Youngman suggested setting IFS.
14588
14589 2011-09-19  Eric Blake  <eblake@redhat.com>
14590
14591         futimens: enhance test
14592         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14593         closed non-negative fd.
14594
14595         date: accept 'hence' as opposite of 'ago'
14596         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14597         * tests/test-parse-datetime.c (main): Enhance test.
14598         Suggested by Jesse Wilson.
14599
14600 2011-09-19  Jim Meyering  <meyering@redhat.com>
14601
14602         getcwd: don't fail in a deep directory on a system without openat
14603         Before this change, getcwd would fail when called from a directory
14604         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14605         the non-openat implementation used "..", "../..", "../../..", etc.
14606         to access ancestor directories.  With too many, that string would
14607         be longer than PATH_MAX.
14608         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14609         using gnulib's openat replacement.
14610         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14611         we're using the replacement function.
14612
14613 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14614
14615         maint.mk: avoid warnings from perl about missing files
14616         * top/maint.mk (def_sym_regex): Ignore files listed in
14617         $(gl_other_headers_) that do not exist, say because a project
14618         does not use a corresponding module.
14619
14620 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14621
14622         stat: use pathmax.h only if needed
14623         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14624         This is better for Emacs, which does not have a mingw port and
14625         therefore can avoid the pathmax module.
14626
14627         utimens: remove dependency on dup2
14628         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14629         to work around the Linux kernel bug.
14630         * modules/utimens (Depends-on): Remove dup2.
14631
14632 2011-09-18  Bruno Haible  <bruno@clisp.org>
14633
14634         inet_ntop, inet_pton: Look for it also in libresolv.
14635         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14636         libnsl, search for it in libresolv.
14637         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14638         Needed on Solaris 7.
14639
14640 2011-09-18  Bruno Haible  <bruno@clisp.org>
14641
14642         accept, accept4 tests: Avoid link error on Solaris.
14643         * modules/accept-tests (Makefile.am): Link test-accept against
14644         $(LIBSOCKET).
14645         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14646         $(LIBSOCKET).
14647
14648         accept4: Avoid link error on Solaris.
14649         * modules/accept4 (Link): New section.
14650
14651         socket functions: Avoid link errors on Solaris.
14652         * modules/accept (Depends-on): Add socketlib.
14653         (Link): New section.
14654         * modules/bind (Depends-on): Add socketlib.
14655         (Link): New section.
14656         * modules/connect (Depends-on): Add socketlib.
14657         (Link): New section.
14658         * modules/getpeername (Depends-on): Add socketlib.
14659         (Link): New section.
14660         * modules/getsockname (Depends-on): Add socketlib.
14661         (Link): New section.
14662         * modules/getsockopt (Depends-on): Add socketlib.
14663         (Link): New section.
14664         * modules/listen (Depends-on): Add socketlib.
14665         (Link): New section.
14666         * modules/recv (Depends-on): Add socketlib.
14667         (Link): New section.
14668         * modules/recvfrom (Depends-on): Add socketlib.
14669         (Link): New section.
14670         * modules/send (Depends-on): Add socketlib.
14671         (Link): New section.
14672         * modules/sendto (Depends-on): Add socketlib.
14673         (Link): New section.
14674         * modules/setsockopt (Depends-on): Add socketlib.
14675         (Link): New section.
14676         * modules/shutdown (Depends-on): Add socketlib.
14677         (Link): New section.
14678         * modules/socket (Depends-on): Add socketlib.
14679         (Link): New section.
14680
14681 2011-09-18  Bruno Haible  <bruno@clisp.org>
14682
14683         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14684         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14685         than 5 seconds.
14686         * modules/ptsname-tests (configure.ac): Test for alarm.
14687
14688 2011-09-18  Bruno Haible  <bruno@clisp.org>
14689
14690         posix_spawn_file_actions_add*: Fix module dependencies.
14691         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14692         posix_spawn_file_actions_init.
14693         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14694         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14695
14696 2011-09-18  Bruno Haible  <bruno@clisp.org>
14697
14698         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14699         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14700         * tests/test-renameat.c (main): Likewise.
14701
14702 2011-09-18  Bruno Haible  <bruno@clisp.org>
14703
14704         Tests for module 'accept4'.
14705         * modules/accept4-tests: New file.
14706         * tests/test-accept4.c: New file.
14707
14708 2011-09-18  Bruno Haible  <bruno@clisp.org>
14709
14710         Tests for module 'accept'.
14711         * modules/accept-tests: New file.
14712         * tests/test-accept.c: New file.
14713
14714 2011-09-18  Bruno Haible  <bruno@clisp.org>
14715
14716         dup2: Support for MSVC.
14717         * lib/dup2.c: Include msvc-inval.h.
14718         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14719         _get_osfhandle calls.
14720         * modules/dup2 (Depends-on): Add msvc-inval.
14721         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14722
14723         New module 'msvc-inval'.
14724         * lib/msvc-inval.h: New file.
14725         * lib/msvc-inval.c: New file.
14726         * m4/msvc-inval.m4: New file.
14727         * modules/msvc-inval: New file.
14728
14729 2011-09-17  Bruno Haible  <bruno@clisp.org>
14730
14731         Tests for module 'pclose'.
14732         * modules/pclose-tests: New file.
14733
14734         New module 'pclose'.
14735         * lib/stdio.in.h (pclose): New declaration.
14736         * lib/pclose.c: New file.
14737         * m4/pclose.m4: New file.
14738         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14739         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14740         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14741         * modules/pclose: New file.
14742         * modules/popen-tests (Depends-on): Add pclose.
14743         * modules/popen-safer-tests (Depends-on): Likewise.
14744         * doc/posix-functions/pclose.texi: Mention the new module.
14745
14746 2011-09-17  Bruno Haible  <bruno@clisp.org>
14747
14748         popen: Support for MSVC.
14749         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14750         * lib/popen.c (popen): Provide alternate definition for native Windows.
14751         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14753         * modules/popen (Depends-on, configure.ac): Update condition.
14754         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14755         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14756         fixed.
14757
14758 2011-09-17  Bruno Haible  <bruno@clisp.org>
14759
14760         isnanl, isnand, isnanf: Work around MSVC bug.
14761         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14762
14763 2011-09-17  Bruno Haible  <bruno@clisp.org>
14764
14765         sys_socket tests: Fix recent mistake.
14766         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14767
14768 2011-09-17  Bruno Haible  <bruno@clisp.org>
14769
14770         putenv: Support for MSVC.
14771         * modules/putenv (Depends-on): Add environ.
14772         * lib/putenv.c (environ): Disable declaration.
14773         * lib/unistd.in.h: Update comment.
14774
14775 2011-09-17  Bruno Haible  <bruno@clisp.org>
14776
14777         math: Avoid macro redefinition warnings on MSVC.
14778         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14779         Undefine before redefining.
14780
14781 2011-09-17  Bruno Haible  <bruno@clisp.org>
14782
14783         doc: Mention functions which are declared as macros.
14784         * doc/posix-functions/*[fl].texi: Mention that some functions are
14785         defined as macros with arguments only.
14786
14787 2011-09-17  Bruno Haible  <bruno@clisp.org>
14788
14789         Add dependencies to new dirent related modules.
14790         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14791         * modules/fts (Depends-on): Likewise.
14792         * modules/glob (Depends-on): Likewise.
14793         * modules/savedir (Depends-on): Likewise.
14794         * modules/scandir (Depends-on): Likewise.
14795         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14796         * modules/fdopendir (Depends-on): Add opendir.
14797
14798 2011-09-17  Bruno Haible  <bruno@clisp.org>
14799
14800         inet_pton: Support for MSVC on Windows Vista or newer.
14801         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14802         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14803         HAVE_DECL_INET_PTON is defined.
14804         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14805         On platforms with <winsock2.h>, test whether inet_pton is declared in
14806         <ws2tcpip.h>. If so, arrange to replace it.
14807         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14808         REPLACE_INET_PTON.
14809         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14810         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14811         (Depends-on, configure.ac): Update condition.
14812         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14813
14814 2011-09-17  Bruno Haible  <bruno@clisp.org>
14815
14816         inet_ntop: Support for MSVC on Windows Vista or newer.
14817         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14818         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14819         HAVE_DECL_INET_NTOP is defined.
14820         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14821         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14822         <ws2tcpip.h>. If so, arrange to replace it.
14823         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14824         REPLACE_INET_NTOP.
14825         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14826         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14827         (Depends-on, configure.ac): Update condition.
14828         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14829
14830 2011-09-16  Eric Blake  <eblake@redhat.com>
14831
14832         test-fsync: yet another enhancement
14833         * tests/test-fsync.c (main): Also test behavior on read-only text
14834         file.
14835
14836 2011-09-16  Bruno Haible  <bruno@clisp.org>
14837
14838         Enhance fsync, fdatasync tests.
14839         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14840         * tests/test-fdatasync.c (main): Likewise.
14841
14842 2011-09-16  Bruno Haible  <bruno@clisp.org>
14843
14844         Support for MSVC compiler: Ensure mode_t gets defined.
14845         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14846         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14847         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14848         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14849         * tests/test-fcntl-h.c: Check that mode_t is defined.
14850         * tests/test-sys_stat.c: Likewise.
14851         * tests/test-sys_types.c: Likewise.
14852         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14853         * doc/posix-headers/sys_stat.texi: Likewise.
14854         * doc/posix-headers/sys_types.texi: Likewise.
14855
14856 2011-09-16  Bruno Haible  <bruno@clisp.org>
14857
14858         sys_stat: Support for MSVC.
14859         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14860         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14861         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14862         MSVC.
14863
14864 2011-09-16  Bruno Haible  <bruno@clisp.org>
14865
14866         Support for MSVC compiler: Ensure off_t gets defined.
14867         * lib/unistd.in.h: Include <sys/types.h>.
14868         * tests/test-fcntl-h.c: Check that off_t is defined.
14869         * tests/test-sys_stat.c: Likewise.
14870         * tests/test-sys_types.c: Likewise.
14871
14872 2011-09-16  Eric Blake  <eblake@redhat.com>
14873
14874         fdatasync: port to Solaris
14875         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14876         * modules/fdatasync (Link): Document it.
14877         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14878
14879         fdatasync: port to MacOS X 10.7
14880         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14881         declared.
14882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14883         * modules/unistd (Makefile.am): Substitute it.
14884         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14885         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14886
14887         fdatasync: minor improvements
14888         * modules/fdatasync (Depends-on): Add condition for fsync.
14889         * lib/fdatasync.c (fdatasync): Add comment.
14890         * tests/test-unistd-c++.cc: Test fdatasync.
14891
14892         unistd: update refs to newer POSIX
14893         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14894         Suggested by Bruno Haible.
14895
14896         fdatasync: new module
14897         * modules/fsync (Description): Document difference to fdatasync.
14898         * modules/fdatasync: New module.
14899         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14900         * lib/fdatasync.c (fdatasync): Likewise.
14901         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14902         defaults.
14903         * modules/unistd (Makefile.am): Set witnesses.
14904         * lib/unistd.in.h (fdatasync): Declare.
14905         * MODULES.html.sh: Document it.
14906         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14907         * modules/fdatasync-tests: New test.
14908         * tests/test-fdatasync.c: Likewise.
14909
14910 2011-09-16  Eric Blake  <eblake@redhat.com>
14911
14912         test-fsync: enhance tests
14913         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14914         * tests/test-fsync.c (main): Enhance test.
14915
14916 2011-09-15  Bruno Haible  <bruno@clisp.org>
14917
14918         Support for MSVC compiler: Ensure ssize_t gets defined.
14919         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14920         * doc/posix-headers/stdio.texi: Likewise.
14921         * modules/stdio (Depends-on): Add ssize_t.
14922         * modules/sys_socket (Depends-on): Likewise.
14923         * modules/sys_types (Depends-on): Likewise.
14924         * modules/sys_uio (Depends-on): Likewise.
14925         * modules/unistd (Depends-on): Likewise.
14926         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14927         * tests/test-sys_types.c: Check that ssize_t is defined.
14928
14929 2011-09-14  Bruno Haible  <bruno@clisp.org>
14930
14931         Avoid using #, the m4 comment starter character, near brackets.
14932         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14933         delimiter character in sed expressions.
14934         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14935         Suggested by Eric Blake.
14936
14937         Properly quote AC_CHECK_DECLS' 4th argument.
14938         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14939         argument.
14940         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14941         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14942         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14943         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14944         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14945         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14946         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14947         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14948         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14949         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14950         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14951         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14952         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14953         * m4/isinf.m4 (gl_ISINF): Likewise.
14954         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14955         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14956         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14957         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14958         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14959         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14960         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14961         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14962         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14963         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14964         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14965         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14967         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14969         Reported by Eric Blake.
14970
14971         Properly quote AC_CHECK_DECL's 4th argument.
14972         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14973         argument.
14974         * m4/argp.m4 (gl_ARGP): Likewise.
14975         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14976         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14977         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14978         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14979         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14980         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14981         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14982         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14983         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14984         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14985         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14986         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14987         Reported by Eric Blake.
14988
14989 2011-09-14  Eric Blake  <eblake@redhat.com>
14990
14991         opendir: avoid compile warning
14992         * lib/opendir.c (includes): Always include errno.h.
14993         Reported by Tatsuro MATSUOKA.
14994
14995 2011-09-14  Jim Meyering  <meyering@redhat.com>
14996
14997         maint.mk: sc_tight_scope: propagate failure from sub-make
14998         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14999         Reported by Martin von Gagern.
15000
15001 2011-09-13  Bruno Haible  <bruno@clisp.org>
15002
15003         tempname: Support for MSVC.
15004         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15005         MSVC.
15006         * modules/tempname (Depends-on): Add fcntl-h.
15007
15008 2011-09-13  Bruno Haible  <bruno@clisp.org>
15009
15010         sys_time: Support for MSVC.
15011         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15012         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15013         include <winsock2.h>.
15014         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15015         function declarations that collide with POSIX.
15016         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15017         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15018
15019 2011-09-13  Bruno Haible  <bruno@clisp.org>
15020
15021         stat: Support for MSVC.
15022         * lib/stat.c: Include pathmax.h.
15023         * modules/stat (Depends-on): Add pathmax.
15024
15025         pathmax: Support for native Windows.
15026         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15027
15028 2011-09-12  Bruno Haible  <bruno@clisp.org>
15029
15030         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15031         * lib/dirent.in.h (struct dirent): New type.
15032         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15033         DT_WHT): New macros.
15034         (DIR): New type.
15035         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15036         (readdir, rewinddir): New declarations.
15037         * lib/dirent-private.h: New file.
15038         * lib/opendir.c: New file.
15039         * lib/readdir.c: New file.
15040         * lib/rewinddir.c: New file.
15041         * lib/closedir.c: New file.
15042         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15043         * m4/opendir.m4: New file.
15044         * m4/readdir.m4: New file.
15045         * m4/rewinddir.m4: New file.
15046         * m4/closedir.m4: New file.
15047         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15048         REPLACE_CLOSEDIR here.
15049         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15050         readdir, rewinddir are declared.
15051         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15052         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15053         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15054         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15055         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15056         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15057         * modules/opendir: New file.
15058         * modules/readdir: New file.
15059         * modules/rewinddir: New file.
15060         * modules/closedir: New file.
15061         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15062         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15063         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15064         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15065         * NEWS: Mention the 'fchdir' change.
15066
15067 2011-09-11  Bruno Haible  <bruno@clisp.org>
15068
15069         asm-underscore.m4: Support for MSVC.
15070         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15071         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15072
15073 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15074
15075         Doc about crypt functions.
15076         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15077         needing for _GNU_SOURCE to get crypt.
15078         * doc/posix-functions/encrypt.texi: Likewise.
15079         * doc/posix-functions/setkey.texi: Likewise.
15080
15081 2011-09-11  Bruno Haible  <bruno@clisp.org>
15082
15083         doc: Update regarding MSVC 9.
15084         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15085         tested".
15086         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15087         * doc/posix-headers/*.texi: Likewise.
15088         * doc/pastposix-functions/*.texi: Likewise.
15089         * doc/glibc-functions/*.texi: Likewise.
15090         * doc/glibc-headers/*.texi: Likewise.
15091
15092 2011-09-11  Bruno Haible  <bruno@clisp.org>
15093
15094         unistd et al.: Don't assume <unistd.h> exists.
15095         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15096         does not exist.
15097         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15098         exist. But include <stdlib.h>.
15099         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15100         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15101         symlink() does not exist.
15102         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15103         include <io.h> instead.
15104         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15105         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15106         include <direct.h> instead.
15107         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15108         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15109         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15110         <io.h> instead.
15111         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15112         correctly if the system does not have hard links.
15113         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15114         <direct.h> instead.
15115         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15116         it when looking for function declarations.
15117         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15118         <direct.h> and <io.h> instead.
15119         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15120
15121 2011-09-11  Bruno Haible  <bruno@clisp.org>
15122
15123         strcase: Support for MSVC.
15124         * modules/strcase (Status, Notice): Remove obsoletion mark.
15125         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15126         * doc/posix-functions/strncasecmp.texi: Likewise.
15127
15128         strings: Don't assume <strings.h> exists.
15129         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15130         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15131         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15132         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15133
15134 2011-09-11  Bruno Haible  <bruno@clisp.org>
15135
15136         dirent: Don't assume <dirent.h> exists.
15137         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15138         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15139         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15140         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15141
15142 2011-09-11  Bruno Haible  <bruno@clisp.org>
15143
15144         Fix wint_t on MSVC.
15145         * lib/wchar.in.h (wint_t): On MSVC, override it.
15146         * lib/wctype.in.h (wint_t): Likewise.
15147         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15148         MSVC.
15149         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15150         * doc/posix-headers/wctype.texi: Likewise.
15151
15152 2011-09-11  Bruno Haible  <bruno@clisp.org>
15153
15154         sys_types: Fix typo.
15155         * lib/sys_types.in.h: Fix typo in comment.
15156         Reported by Paul Eggert.
15157
15158         Support for MSVC compiler: Ensure size_t gets defined.
15159         * modules/strings (Depends-on): Add 'sys_types'.
15160         * modules/sys_uio (Depends-on): Likewise.
15161         * lib/sys_uio.in.h: Update comment.
15162
15163         C++ tests for module 'sys_types'.
15164         * modules/sys_types-c++-tests: New file.
15165         * tests/test-sys_types-c++.cc: New file.
15166
15167         Tests for module 'sys_types'.
15168         * modules/sys_types-tests: New file.
15169         * tests/test-sys_types.c: New file.
15170
15171         New module 'sys_types'.
15172         * lib/sys_types.in.h: New file.
15173         * m4/sys_types_h.m4: New file.
15174         * modules/sys_types: New file.
15175         * doc/posix-headers/sys_types.texi: Mention the new module and the
15176         size_t problem on MSVC 9.
15177
15178 2011-09-11  Bruno Haible  <bruno@clisp.org>
15179
15180         Support for MSVC compiler: Avoid division by a literal 0.
15181         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15182         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15183         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15184         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15185         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15186         * tests/infinity.h: New file.
15187         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15188         on MSVC.
15189         * tests/test-ceilf1.c: Include infinity.h.
15190         (main): Use Infinityf.
15191         * tests/test-ceil1.c: Include infinity.h.
15192         (main): Use Infinityd.
15193         * tests/test-ceill.c: Include infinity.h.
15194         (main): Use Infinityl.
15195         * tests/test-dprintf-posix.c: Include infinity.h.
15196         (test_function): Use Infinityd.
15197         * tests/test-floorf1.c: Include infinity.h.
15198         (main): Use Infinityf.
15199         * tests/test-floor1.c: Include infinity.h.
15200         (main): Use Infinityd.
15201         * tests/test-floorl.c: Include infinity.h.
15202         (main): Use Infinityl.
15203         * tests/test-fprintf-posix.c: Include infinity.h.
15204         (test_function): Use Infinityd.
15205         * tests/test-frexp.c: Include infinity.h.
15206         (main): Use Infinityd.
15207         * tests/test-frexpl.c: Include infinity.h.
15208         (main): Use Infinityl.
15209         * tests/test-isfinite.c: Include infinity.h.
15210         (test_isfinitef): Use Infinityf.
15211         (test_isfinited): Use Infinityd.
15212         (test_isfinitel): Use Infinityl.
15213         * tests/test-isinf.c: Include infinity.h.
15214         (test_isinff): Use Infinityf.
15215         (test_isinfd): Use Infinityd.
15216         (test_isinfl): Use Infinityl.
15217         * tests/test-isnan.c: Include infinity.h.
15218         (test_float): Use Infinityf.
15219         (test_double): Use Infinityd.
15220         (test_long_double): Use Infinityl.
15221         * tests/test-isnanf.h: Include infinity.h.
15222         (main): Use Infinityf.
15223         * tests/test-isnand.h: Include infinity.h.
15224         (main): Use Infinityd.
15225         * tests/test-isnanl.h: Include infinity.h.
15226         (main): Use Infinityl.
15227         * tests/test-ldexpl.c: Include infinity.h.
15228         (main): Use Infinityl.
15229         * tests/test-printf-posix.h: Include infinity.h.
15230         (test_function): Use Infinityd.
15231         * tests/test-roundf1.c: Include infinity.h.
15232         (main): Use Infinityf.
15233         * tests/test-round1.c: Include infinity.h.
15234         (main): Use Infinityd.
15235         * tests/test-roundl.c: Include infinity.h.
15236         (main): Use Infinityl.
15237         * tests/test-signbit.c: Include infinity.h.
15238         (test_signbitf): Use Infinityf.
15239         (test_signbitd): Use Infinityd.
15240         (test_signbitl): Use Infinityl.
15241         * tests/test-snprintf-posix.h: Include infinity.h.
15242         (test_function): Use Infinityd, Infinityl.
15243         * tests/test-sprintf-posix.h: Include infinity.h.
15244         (test_function): Use Infinityd, Infinityl.
15245         * tests/test-truncf1.c: Include infinity.h.
15246         (main): Use Infinityf.
15247         * tests/test-trunc1.c: Include infinity.h.
15248         (main): Use Infinityd.
15249         * tests/test-truncl.c: Include infinity.h.
15250         (main): Use Infinityl.
15251         * tests/test-vasnprintf-posix.c: Include infinity.h.
15252         (test_function): Use Infinityd, Infinityl.
15253         * tests/test-vasprintf-posix.c: Include infinity.h.
15254         (test_function): Use Infinityd, Infinityl.
15255         * modules/ceilf-tests (Files): Add tests/infinity.h.
15256         * modules/ceil-tests (Files): Likewise.
15257         * modules/ceill-tests (Files): Likewise.
15258         * modules/dprintf-posix-tests (Files): Likewise.
15259         * modules/floorf-tests (Files): Likewise.
15260         * modules/floor-tests (Files): Likewise.
15261         * modules/floorl-tests (Files): Likewise.
15262         * modules/fprintf-posix-tests (Files): Likewise.
15263         * modules/frexp-tests (Files): Likewise.
15264         * modules/frexp-nolibm-tests (Files): Likewise.
15265         * modules/frexpl-tests (Files): Likewise.
15266         * modules/frexpl-nolibm-tests (Files): Likewise.
15267         * modules/isfinite-tests (Files): Likewise.
15268         * modules/isinf-tests (Files): Likewise.
15269         * modules/isnan-tests (Files): Likewise.
15270         * modules/isnanf-tests (Files): Likewise.
15271         * modules/isnanf-nolibm-tests (Files): Likewise.
15272         * modules/isnand-tests (Files): Likewise.
15273         * modules/isnand-nolibm-tests (Files): Likewise.
15274         * modules/isnanl-tests (Files): Likewise.
15275         * modules/isnanl-nolibm-tests (Files): Likewise.
15276         * modules/ldexpl-tests (Files): Likewise.
15277         * modules/printf-posix-tests (Files): Likewise.
15278         * modules/roundf-tests (Files): Likewise.
15279         * modules/round-tests (Files): Likewise.
15280         * modules/roundl-tests (Files): Likewise.
15281         * modules/signbit-tests (Files): Likewise.
15282         * modules/snprintf-posix-tests (Files): Likewise.
15283         * modules/sprintf-posix-tests (Files): Likewise.
15284         * modules/truncf-tests (Files): Likewise.
15285         * modules/trunc-tests (Files): Likewise.
15286         * modules/truncl-tests (Files): Likewise.
15287         * modules/vasnprintf-posix-tests (Files): Likewise.
15288         * modules/vasprintf-posix-tests (Files): Likewise.
15289         * modules/vdprintf-posix-tests (Files): Likewise.
15290         * modules/vfprintf-posix-tests (Files): Likewise.
15291         * modules/vprintf-posix-tests (Files): Likewise.
15292         * modules/vsnprintf-posix-tests (Files): Likewise.
15293         * modules/vsprintf-posix-tests (Files): Likewise.
15294         * modules/xprintf-posix-tests (Files): Likewise.
15295
15296 2011-09-11  Bruno Haible  <bruno@clisp.org>
15297
15298         Ensure pid_t gets defined.
15299         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15300         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15301         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15302         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15303         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15304         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15305         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15306         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15307         * tests/test-fcntl-h.c: Check that pid_t is defined.
15308         * tests/test-sched.c: Likewise.
15309         * tests/test-termios.c: Likewise.
15310         * tests/test-time.c: Likewise.
15311         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15312         * doc/posix-headers/signal.texi: Likewise.
15313         * doc/posix-headers/sys_types.texi: Likewise.
15314         * doc/posix-headers/time.texi: Likewise.
15315
15316 2011-09-11  Bruno Haible  <bruno@clisp.org>
15317
15318         acl: Fix compilation on Solaris 10 (older version).
15319         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15320         of ACE_EVERYONE.
15321         * lib/set-mode-acl.c (qset_acl): Likewise.
15322         Reported by Christian Jullien <eligis@orange.fr>.
15323
15324 2011-09-10  Bruno Haible  <bruno@clisp.org>
15325
15326         iconv, unsetenv: Add support for MSVC compiler.
15327         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15328         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15329
15330 2011-09-10  Bruno Haible  <bruno@clisp.org>
15331
15332         *printf: Add support for MSVC compiler.
15333         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15334         handles the exception caused by the %n directive. When cross-compiling,
15335         guess no on native Windows.
15336         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15337         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15338         emulate it through vsnprintf.
15339         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15340         * doc/posix-functions/dprintf.texi: Update documentation regarding
15341         MSVC 9.
15342         * doc/posix-functions/fprintf.texi: Likewise.
15343         * doc/posix-functions/printf.texi: Likewise.
15344         * doc/posix-functions/snprintf.texi: Likewise.
15345         * doc/posix-functions/sprintf.texi: Likewise.
15346         * doc/posix-functions/swprintf.texi: Likewise.
15347         * doc/posix-functions/vdprintf.texi: Likewise.
15348         * doc/posix-functions/vfprintf.texi: Likewise.
15349         * doc/posix-functions/vprintf.texi: Likewise.
15350         * doc/posix-functions/vsnprintf.texi: Likewise.
15351         * doc/posix-functions/vsprintf.texi: Likewise.
15352         * doc/glibc-functions/asprintf.texi: Likewise.
15353         * doc/glibc-functions/obstack_printf.texi: Likewise.
15354         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15355         * doc/glibc-functions/vasprintf.texi: Likewise.
15356
15357 2011-09-10  Bruno Haible  <bruno@clisp.org>
15358
15359         nocrash: Add support for native Windows.
15360         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15361
15362 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15363             Bruno Haible  <bruno@clisp.org>
15364
15365         absolute-header, include-next: Add support for MSVC compiler.
15366         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15367         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15368         directory separator in #line directives.
15369         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15370         recognize also backslash as directory separator in #line directives.
15371
15372 2011-09-08  Jim Meyering  <meyering@redhat.com>
15373
15374         maint.mk: mark the post-release commit log with "maint: " prefix
15375         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15376         one-line commit-log summary.
15377
15378 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15379             Bruno Haible  <bruno@clisp.org>
15380
15381         Doc about crypt functions.
15382         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15383         systems.
15384         * doc/posix-functions/encrypt.texi: Likewise.
15385         * doc/posix-functions/setkey.texi: Likewise.
15386
15387 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15388
15389         * lib/gc.h: Fix copyright header.
15390
15391 2011-09-07  Bruno Haible  <bruno@clisp.org>
15392
15393         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15394         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15395         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15396
15397 2011-09-07  Bruno Haible  <bruno@clisp.org>
15398
15399         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15400         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15401         * lib/freopen.c: Likewise.
15402         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15403         * lib/lstat.c: Likewise.
15404         * lib/stat.c: Likewise.
15405         * lib/open.c: Use different syntax for include of <fcntl.h>.
15406         * lib/openat.c: Include fcntl.h again, explicitly.
15407
15408 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15409
15410         parse-datetime: document the newly accepted format
15411         * doc/parse-datetime.texi (Combined date and time of day items):
15412         New section.
15413
15414 2011-09-06  Bruno Haible  <bruno@clisp.org>
15415
15416         acl: Fix a test failure on newer Solaris 10 with ZFS.
15417         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15418         ENOSYS as no ACL.
15419         Reported by Jim Meyering.
15420
15421 2011-09-06  Bruno Haible  <bruno@clisp.org>
15422
15423         acl: Update for AIX >= 5.3 with NFS.
15424         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15425         ENOSYS as no ACL.
15426
15427         acl: Fix a test failure on AIX >= 5.3 with NFS.
15428         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15429         as no ACL.
15430
15431 2011-09-06  Bruno Haible  <bruno@clisp.org>
15432
15433         acl: Fix a test failure on IRIX 6.5 with NFS.
15434         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15435         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15436         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15437         * lib/copy-acl.c (qcopy_acl): Likewise.
15438
15439 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15440
15441         openat: port to AIX 7.1 with large files
15442         AIX 7.1 does a "#define openat open64at" if large files are in use,
15443         so we can't simply #undef openat.  Use the orig_openat trick (similar
15444         to orig_open in lib/open.c) to work around the problem.  Problem
15445         reported by Kevin Brott for GNU tar, in the thread containing
15446         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15447         * lib/openat.c (__need_system_fcntl_h): Define first.
15448         Include <fcntl.h> and <sys/types.h> before undefining.
15449         (orig_openat) [HAVE_OPENAT]: New inline function.
15450         (openat) [HAVE_OPENAT]: Do not undef.
15451         (rpl_openat): Use orig_openat, not openat.
15452
15453 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15454             Bruno Haible  <bruno@clisp.org>
15455
15456         acl: Avoid errors on NonStop Kernel.
15457         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15458         ENOTSUP errors.
15459
15460 2011-09-05  Bruno Haible  <bruno@clisp.org>
15461
15462         acl: Clean up Solaris code.
15463         * lib/acl-internal.h: Remove no-op #if.
15464         * lib/file-has-acl.c: Likewise.
15465         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15466         * lib/copy-acl.c (qcopy_acl): Likewise.
15467
15468 2011-09-05  Bruno Haible  <bruno@clisp.org>
15469
15470         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15471         binaries built on the original Solaris 10.
15472         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15473         trivial.
15474
15475 2011-09-05  Bruno Haible  <bruno@clisp.org>
15476
15477         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15478         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15479         10.
15480         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15481         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15482         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15483         instead of acl_get, facl_get, acl_set, facl_set.
15484
15485 2011-09-05  Bruno Haible  <bruno@clisp.org>
15486
15487         copy-file: Try unit tests on more file systems.
15488         * tests/test-copy-file-1.sh: New file.
15489         * tests/test-copy-file-2.sh: New file.
15490         * modules/copy-file-tests (Files): Add them.
15491         (Makefile.am): Add them to TESTS.
15492
15493         acl: Try unit tests on more file systems.
15494         * tests/test-file-has-acl-1.sh: New file.
15495         * tests/test-file-has-acl-2.sh: New file.
15496         * tests/test-set-mode-acl-1.sh: New file.
15497         * tests/test-set-mode-acl-2.sh: New file.
15498         * tests/test-copy-acl-1.sh: New file.
15499         * tests/test-copy-acl-2.sh: New file.
15500         * modules/acl-tests (Files): Add them.
15501         (Makefile.am): Add them to TESTS.
15502
15503 2011-09-04  Bruno Haible  <bruno@clisp.org>
15504
15505         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15506         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15507         10.
15508         (OLD_ALLOW, OLD_DENY): New macros.
15509         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15510         ACE_ACCESS_ALLOWED_ACE_TYPE.
15511         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15512         ACE_ACCESS_DENIED_ACE_TYPE.
15513         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15514         (NEW_ACE_EXECUTE): Fix value.
15515         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15516         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15517         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15518         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15519         NEW_ACE_SYNCHRONIZE): New macros.
15520         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15521         instead of acl_fromtext, acl_set, facl_set.
15522         Fixes a coreutils/tests/cp/perm failure.
15523
15524 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15525
15526         openat: test for fstatat (..., 0) bug
15527         Further testing with tar suggests that fstatat (..., 0)
15528         does not work in general, on AIX 7.1; see
15529         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15530         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15531         replacement fstatat (which is what older AIX releases were using
15532         anyway).
15533         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15534         use is now changed to orig_fstatat.  This was probably the right
15535         thing to do anyway.
15536         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15537         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15538         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15539         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15540         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15541         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15542         if the bug is found.
15543
15544         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15545         This tests for another fstatat bug on AIX 7.1:
15546         fstatat (AT_FDCWD, ..., 0) does not work.  See
15547         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15548         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15549         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15550         (rpl_fstatat): Adjust so that it works around either (or both)
15551         bugs if present.
15552         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15553
15554 2011-09-03  Karl Berry  <karl@gnu.org>
15555
15556         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15557         in index entries.
15558
15559 2011-09-02  Bruno Haible  <bruno@clisp.org>
15560
15561         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15562         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15563         values of AR, ARFLAGS, RANLIB.
15564         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15565
15566 2011-09-02  Bruno Haible  <bruno@clisp.org>
15567
15568         Find 'ar' program that fits with --host argument.
15569         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15570
15571 2011-09-02  Bruno Haible  <bruno@clisp.org>
15572
15573         tests: init.sh: Support any non-GNU diff.
15574         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15575         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15576         Solaris 8.
15577
15578 2011-09-02  Bruno Haible  <bruno@clisp.org>
15579
15580         tests: init.sh: work also with any non-GNU diff that supports -u
15581         * tests/init.sh: Relax check for diff -u support.
15582         Rather than checking for GNU diff via --version, simply check
15583         for support for -u itself.  Useful at least on OpenBSD 4.9,
15584         AIX 7.1, IRIX 6.5, and Solaris 10.
15585
15586 2011-09-01  Bruno Haible  <bruno@clisp.org>
15587
15588         strtoimax, strtoumax: Document problem on HP-UX 11.
15589         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15590         * doc/posix-functions/strtoumax.texi: Likewise.
15591
15592 2011-09-01  Bruno Haible  <bruno@clisp.org>
15593
15594         strtoumax: Avoid link error on OSF/1 with DTK cc.
15595         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15596         defined as a function.
15597         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15598         strtoumax is defined, not whether it is declared.
15599
15600 2011-09-01  Bruno Haible  <bruno@clisp.org>
15601
15602         strtoimax: Avoid link error on OSF/1 with DTK cc.
15603         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15604         defined as a function.
15605         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15606         strtoimax is defined, not whether it is declared.
15607
15608 2011-09-01  Bruno Haible  <bruno@clisp.org>
15609
15610         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15611         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15612         as a function.
15613         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15614         whether it is declared.
15615
15616 2011-09-01  Bruno Haible  <bruno@clisp.org>
15617
15618         imaxabs: Avoid link error on OSF/1 with DTK cc.
15619         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15620         as a function.
15621         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15622         whether it is declared.
15623
15624 2011-09-01  Bruno Haible  <bruno@clisp.org>
15625
15626         Tests for module 'strtoumax'.
15627         * modules/strtoumax-tests: New file.
15628         * tests/test-strtoumax.c: New file.
15629
15630         Tests for module 'strtoimax'.
15631         * modules/strtoimax-tests: New file.
15632         * tests/test-strtoimax.c: New file.
15633
15634         Tests for module 'imaxdiv'.
15635         * modules/imaxdiv-tests: New file.
15636         * tests/test-imaxdiv.c: New file.
15637
15638         Tests for module 'imaxabs'.
15639         * modules/imaxabs-tests: New file.
15640         * tests/test-imaxabs.c: New file.
15641
15642 2011-09-01  Bruno Haible  <bruno@clisp.org>
15643
15644         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15645         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15646         pthread_create.
15647
15648 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15649
15650         openat: work around AIX 7.1 fstatat issue
15651         This should fix the problem that was not properly fixed
15652         in the previous change, dated 2011-08-30.
15653         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15654         __need_system_stat_h defined.
15655         (orig_fstatat) [HAVE_FSTATAT]: New function.
15656         (rpl_fstatat): Go back to the old way of doing things,
15657         except call orig_fstatat instead of fstatat.
15658         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15659         Remove unnecessary check whether fstatat fills in st_size etc.
15660
15661 2011-09-01  Bruno Haible  <bruno@clisp.org>
15662
15663         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15664         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15665         just include the system's header.
15666
15667 2011-08-31  Jim Meyering  <meyering@redhat.com>
15668
15669         tests: avoid spurious assertion failure in test-float.c on ppc64
15670         * tests/test-float.c (test_long_double): Comment out an assertion,
15671         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15672         with gcc-4.4.4.
15673
15674         maint: indent with spaces, not TABs
15675         I need to get in the habit of running gnulib's "make check".
15676         Both of these would have been caught.
15677         * m4/largefile.m4: Indent with spaces, not TABs.
15678         * lib/parse-datetime.y (iso_8601_time): Likewise.
15679         Spotted by Pádraig Brady.
15680
15681         test-parse-datetime.c: accommodate a relatively strict gcc warning
15682         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15683         to avoid a warning from gcc's -Werror=missing-declarations.
15684         Insert a few spaces-before-funcall-parenthesis.
15685
15686 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15687
15688         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15689         The parser now accepts ISO 8601 date-time strings with "T" as the
15690         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15691         with a space between the date and time strings.  Now it also parses
15692         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15693         variants like "2004-02-29T16:21:42.333-07:00"
15694         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15695         of day representation using the 'T' separator character.
15696         * doc/parse-datetime.texi (General date syntax): replace use of
15697         deprecated --iso-8601 option with --rfc-3339 in example of date
15698         command output formats that can be parsed.
15699         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15700         lib/parse-datetime.y.
15701         (gmt_offset): New function.
15702         (main): Add additional test cases to validate ISO8601 extended
15703         date and time of day parsing.
15704
15705 2011-08-31  Bruno Haible  <bruno@clisp.org>
15706
15707         freopen: Documentation.
15708         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15709         name.
15710         Reported by Claudio Bley <claudio.bley@gmail.com>.
15711
15712 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15713
15714         freopen: Don't crash if the filename argument is NULL.
15715         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15716         NULL.
15717
15718 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15719
15720         openat: work around AIX 7.1 fstatat bug
15721         Problem reported by Kevin Brott for GNU tar, in the thread containing
15722         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15723         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15724         FSTATAT_ST_SIZE_ETC_BROKEN.
15725         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15726         rpl_fstatat.
15727         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15728         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15729         AC_CHECK_FUNCS_ONCE for fstatat.
15730         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15731         fchmodat, mkdirat, openat and unlinkat.
15732
15733 2011-08-30  Bruno Haible  <bruno@clisp.org>
15734
15735         Avoid endless recursions if config.h includes some header files.
15736         * lib/fopen.c (__need_FILE): Define already before including config.h.
15737         * lib/freopen.c (__need_FILE): Likewise.
15738         * lib/open.c (__need_system_fcntl_h): Likewise.
15739         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15740         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15741         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15742
15743 2011-08-25  Karl Berry  <karl@gnu.org>
15744
15745         * config/srclist.txt (ylwrap): new try.
15746         * build-aux/ylwrap: new file.
15747
15748 2011-08-23  Bruno Haible  <bruno@clisp.org>
15749
15750         tmpdir: Use a good default directory on native Windows.
15751         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15752         (P_tmpdir): Default to _P_tmpdir on native Windows.
15753         (path_search): On native Windows, try the value returned by GetTempPath
15754         before trying P_tmpdir.
15755         * modules/tmpdir (Depends-on): Add pathmax.
15756         Suggested by John Darrington <john@darrington.wattle.id.au>.
15757
15758 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15759
15760         doc: fix typo in README-release
15761         * top/README-release: Capitalize first word of a sentence.
15762
15763 2011-08-19  Jim Meyering  <meyering@redhat.com>
15764
15765         fts: do not exhaust memory when processing million-entry directories
15766         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15767         directory would require about 256*N bytes of memory.  Thus, it was
15768         easy to construct a directory too large to be processed by any of
15769         those tools.  With this change, fts' maximum memory utilization is
15770         now limited to around 30MB.
15771         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15772         (fts_read): When we've processed the final entry (i.e., when
15773         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15774         using the parent entry to read any remaining entries.  Dispatch
15775         depending on what fts_build returns:
15776         - NULL+stop, aka failure: stop
15777         - NULL otherwise: move up in the dir hierarchy
15778         - non-NULL: handle this new entry
15779         (fts_build): Declare and use new local, continue_readdir.
15780         Prepare to be called from fts_read, when the entries
15781         from a partially-read directory have just been exhausted.
15782         In that case, we'll skip the opendir and instead use the parent's
15783         fts_dirp and derive dir_fd from that.
15784         Finally, in the readdir loop, if we read max_entries entries,
15785         exit the loop ensuring *not* to call closedir.  This is required
15786         so that fts_dirp can be reused on a subsequent call.
15787         Prompted by Ben England's report of memory exhaustion in find
15788         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15789
15790         maint: fts: move decl of `dp' down into while loop; split a long line
15791         * lib/fts.c (fts_build): No semantic change.
15792
15793         fts: add/use new struct member, fts_dirp
15794         We are about to use this to manage any directory with
15795         too many entries to read all of them into memory at once.
15796         To do that, we'll need to save the DIR* pointer in each
15797         affected FTSENT struct.
15798         * lib/fts_.h: Include <dirent.h>.
15799         (struct FTSENT) [fts_dirp]: New member.
15800         * lib/fts.c (closedir_and_clear): Define.
15801         Use it in place of closedir so that we are sure to
15802         clear the new fts_dirp member when done with it.
15803         (fts_alloc): Initialize the new member.
15804         (fts_lfree): Free, if needed.
15805
15806         maint: fts: give __opendir2 a new parameter and rename
15807         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15808         than surreptitiously using sole caller's "dir_fd".
15809         (fts_opendir): Rename from __opendir2.
15810
15811         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15812         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15813
15814         maint: fts.c: correct off-by-one indentation
15815         * lib/fts.c (fts_build): Correct indentation, change style
15816         of a couple of block comments, and bracing style.
15817
15818         maint: fts.c: move __opendir2 #define "up" out of function body
15819         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15820
15821         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15822         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15823         out for a long time and besides was useful only on BSD systems.
15824
15825 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15826
15827         regex: port to Stratus OpenVOS
15828         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15829         define to empty, rather than attempting nonportable optimizations.
15830         Problem reported by Paul Green in:
15831         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15832         and fix suggested by Eric Blake in:
15833         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15834
15835 2011-08-17  Eric Blake  <eblake@redhat.com>
15836
15837         getcwd: fix test failures on mingw
15838         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15839         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15840         test if long directory cannot be created, and allow mingw errno.
15841
15842         getcwd-lgpl: fix m4 to match relaxed test for BSD
15843         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15844         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15845         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15846         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15847         signature problem.
15848
15849         getcwd: fix compilation on mingw64
15850         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15851         getcwd.
15852         Reported by Marc-André Lureau.
15853
15854         pipe2: silence compiler warning
15855         * lib/pipe2.c (pipe2): Hide label if it is not used.
15856
15857 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15858
15859         relocatable-prog: fix link error
15860         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15861         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15862         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15863         into modules/relocatable-lib without noticing that
15864         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15865         also needs to build relocatable.c.
15866
15867 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15868
15869         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15870         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15871         shell code: it contained a 'break' that was not in a loop.
15872         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15873         via a shell-language loop; this may have been true in old Autoconf
15874         versions, but it's not true in Autoconf 2.68.  I found this bug
15875         when testing coreutils git on Solaris 8, whose shell complains
15876         about the syntax error.
15877
15878 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15879
15880         * lib/base64.c: Fix comment to reference RFC 4648.
15881         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15882         <gvtulder@gmail.com>.
15883
15884 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15885
15886         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15887
15888         po/Makefile.in.in: fix make -q problem
15889         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15890         rule, since there's no file named 'check-macro-version' and its
15891         use as a file breaks make -q.
15892         (all): Don't depend on check-macro-version.
15893         (CHECK_MACRO_VERSION): New macro.
15894         (stamp-po): Use it.
15895
15896         configmake: fix make -q problem
15897         * modules/configmake (configmake.h): Update configmake.h's time stamp
15898         even if the file does not change.  Otherwise, 'make -q' fails.
15899         Problem reported by Simon Josefsson in
15900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15901
15902 2011-08-11  Jim Meyering  <meyering@redhat.com>
15903
15904         git-version-gen: correct the advice in a comment
15905         * build-aux/git-version-gen: Correct comment.
15906         Don't recommend to list .tarball-version in .gitignore.
15907
15908 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15909
15910         base64: fix off-by-one buffer size bug
15911         Problem and (trivial) fix reported by Gijs van Tulder in
15912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15913         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15914         * tests/test-base64.c (main): Catch the bug.
15915
15916 2011-08-10  Eric Blake  <eblake@redhat.com>
15917
15918         closein: correct comments
15919         * lib/closein.c (close_stdin): Improve comments.
15920
15921 2011-08-09  Bruno Haible  <bruno@clisp.org>
15922
15923         More tests for 'fseeko'.
15924         * tests/test-fseeko3.c: New file, from Eric Blake.
15925         * tests/test-fseeko3.sh: New file.
15926         * modules/fseeko-tests (Files): Add them.
15927         (TESTS): Add test-fseeko3.sh.
15928         (check_PROGRAMS): Add test-fseeko3.
15929
15930 2011-08-09  Eric Blake  <eblake@redhat.com>
15931
15932         fseeko: remove unneeded hack
15933         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15934
15935         fseeko: fix bug on glibc
15936         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15937         Reported by John W. Eaton.
15938
15939 2011-08-08  Bruno Haible  <bruno@clisp.org>
15940
15941         unictype/base: Fix interoperability with preinstalled libunistring.
15942         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15943         Reported by Simon Josefsson.
15944
15945 2011-08-08  Bruno Haible  <bruno@clisp.org>
15946
15947         iswblank: Detect declaration correctly.
15948         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15949         AC_CHECK_DECLS invocation.
15950
15951 2011-08-08  Bruno Haible  <bruno@clisp.org>
15952
15953         tcgetsid: Detect declaration correctly.
15954         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15955         AC_CHECK_DECLS invocation.
15956         Reported by Simon Josefsson.
15957
15958 2011-08-08  Eric Blake  <eblake@redhat.com>
15959
15960         largefile: fix typo that regressed large file support
15961         * modules/largefile (configure.ac-early): Fix section name.
15962
15963 2011-08-06  Karl Berry  <karl@gnu.org>
15964
15965         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15966         a separate module.
15967
15968 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15969
15970         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15971         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15972         get prototype for free.
15973
15974 2011-08-04  Bruno Haible  <bruno@clisp.org>
15975
15976         Tests for module 'pathmax'.
15977         * modules/pathmax-tests: New file.
15978         * tests/test-pathmax.c: New file.
15979
15980         canonicalize-lgpl: Support larger filenames on the Hurd.
15981         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15982         Reported by Paul Eggert.
15983
15984         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15985         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15986         * lib/chdir-long.h: Include pathmax.h.
15987         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15988         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15989         (PATH_MAX): Remove code that is done by pathmax.h.
15990         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15991         * lib/tmpfile.c: Add a comment.
15992         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15993         * modules/chdir-long (Depends-on): Add pathmax.
15994         * modules/getcwd (Depends-on): Add pathmax.
15995         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15996         is not defined.
15997         * doc/posix-headers/limits.texi: Mention the pathmax module.
15998         * NEWS: Mention the change.
15999
16000 2011-08-02  Bruno Haible  <bruno@clisp.org>
16001
16002         pthread_sigmask: Actually use results of gl_THREADLIB.
16003         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16004         gl_THREADLIB, not gl_[]THREADLIB.
16005         Reported by Eric Blake.
16006
16007 2011-08-02  Jim Meyering  <meyering@redhat.com>
16008
16009         maint.mk: relax the default _gl_TS_function_match regexp
16010         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16011         space between function name and "(" in an "extern" declaration.
16012         That would fail to match a decl with no space there: extern void foo();
16013
16014 2011-07-31  Iain Nicol  <iain@thenicols.net>
16015
16016         git-version-gen: document that EXTRA_DIST must include .version
16017         * build-aux/git-version-gen: In the how-to-use comment, document
16018         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16019         will fail when run from an unpacked distribution tarball.
16020
16021 2011-08-01  Bruno Haible  <bruno@clisp.org>
16022
16023         wctype-h: Fix last change.
16024         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16025         REPLACE_TOWLOWER to 0.
16026         Reported by Sam Steingold <sds@gnu.org>.
16027
16028 2011-07-31  Bruno Haible  <bruno@clisp.org>
16029
16030         frexpl: Update autoconf test.
16031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16032         according to changes of 2011-06-20.
16033
16034 2011-07-31  Bruno Haible  <bruno@clisp.org>
16035
16036         sys_utsname: Add support for Minix.
16037         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16038         <sys/utsname.h>.
16039         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16040         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16041
16042 2011-07-31  Bruno Haible  <bruno@clisp.org>
16043
16044         strings: Add support for Minix.
16045         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16046         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16047         * doc/posix-headers/strings.texi: Document the Minix problem.
16048
16049 2011-07-31  Bruno Haible  <bruno@clisp.org>
16050
16051         wctype-h: Add support for Minix.
16052         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16053         REPLACE_TOWLOWER.
16054         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16055         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16056         REPLACE_ISWCNTRL.
16057
16058 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16059
16060         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16061         This is a performance improvement for 64-bit hosts: it causes the
16062         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16063
16064 2011-07-31  Bruno Haible  <bruno@clisp.org>
16065
16066         stdioext: Add support for Minix.
16067         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16068         * lib/fpurge.c (fpurge): Likewise.
16069         * lib/freadahead.c (freadahead): Likewise.
16070         * lib/freadable.c (freadable): Likewise.
16071         * lib/freading.c (freading): Likewise.
16072         * lib/freadptr.c (freadptr): Likewise.
16073         * lib/freadseek.c (freadptrinc): Likewise.
16074         * lib/fseeko.c (rpl_fseeko): Likewise.
16075         * lib/fseterr.c (fseterr): Likewise.
16076         * lib/fwritable.c (fwritable): Likewise.
16077         * lib/fwriting.c (fwriting): Likewise.
16078         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16079         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16080
16081 2011-07-31  Bruno Haible  <bruno@clisp.org>
16082
16083         errno: Port to Minix.
16084         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16085         ECONNABORTED are defined.
16086         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16087         GNULIB_defined_ECONNABORTED): New macros.
16088         * lib/strerror-override.h (strerror_override): Test also
16089         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16090         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16091         ECONNABORTED.
16092         * doc/posix-headers/errno.texi: Mention the Minix problem.
16093
16094 2011-07-31  Bruno Haible  <bruno@clisp.org>
16095
16096         Work around declaration collisions on Minix.
16097         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16098         defined, set REPLACE_MBSINIT.
16099         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16100         defined, set REPLACE_MBRTOWC.
16101         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16102         set REPLACE_MBRLEN.
16103         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16104         defined, set REPLACE_MBSRTOWCS.
16105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16106         defined, set REPLACE_WCRTOMB.
16107         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16108         defined, set REPLACE_WCSRTOMBS.
16109
16110 2011-07-31  Bruno Haible  <bruno@clisp.org>
16111
16112         Add support for Minix with ACK compiler.
16113         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16114         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16115         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16116
16117 2011-07-31  Bruno Haible  <bruno@clisp.org>
16118
16119         Documentation about Minix.
16120         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16121         * doc/glibc-headers/*.texi: Likewise.
16122         * doc/posix-functions/*.texi: Likewise.
16123         * doc/glibc-functions/*.texi: Likewise.
16124
16125 2011-07-31  Bruno Haible  <bruno@clisp.org>
16126
16127         snippet/warn-on-use: Fix indentation.
16128         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16129
16130 2011-07-25  Jim Meyering  <meyering@redhat.com>
16131
16132         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16133         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16134         commands.
16135
16136 2011-07-27  Jim Meyering  <meyering@redhat.com>
16137
16138         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16139         * top/maint.mk (gl_extract_significant_defines_): Now that
16140         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16141         gnulib/lib/signal.in.h, and now that we recommend to
16142         define-if-undefined those two symbols in application code,
16143         we must filter them out of the "significant" list.
16144         This avoids a "make syntax-check" failure in coreutils.
16145
16146 2011-07-26  Eric Blake  <eblake@redhat.com>
16147
16148         warnings: add comments about previous patch
16149         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16150         * m4/include_next.m4: Likewise.
16151         * m4/warn-on-use.m4: Likewise.
16152         * m4/warnings.m4: Likewise, and simplify use.
16153         Suggested by Stefano Lattarini.
16154
16155         include-next, warnings: support older autoconf
16156         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16157         AS_VAR_PUSHDEF in a way that works with older autoconf.
16158         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16159         Reported by Daniel P. Berrange.
16160
16161 2011-07-25  Bruno Haible  <bruno@clisp.org>
16162
16163         fseek, ftell: Fix doc.
16164         * doc/posix-functions/fseek.texi: Reword statement about
16165         AC_SYS_LARGEFILE.
16166         * doc/posix-functions/ftell.texi: Likewise.
16167
16168 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16169             Bruno Haible  <bruno@clisp.org>
16170
16171         Add dependencies to the 'largefile' module.
16172         * modules/fopen (Depends-on): Add 'largefile'.
16173         * modules/freopen (Depends-on): Likewise.
16174         * modules/fseeko (Depends-on): Likewise.
16175         * modules/ftello (Depends-on): Likewise.
16176         * modules/glob (Depends-on): Likewise.
16177         * modules/lseek (Depends-on): Likewise.
16178         * modules/lstat (Depends-on): Likewise.
16179         * modules/mkostemp (Depends-on): Likewise.
16180         * modules/mkostemps (Depends-on): Likewise.
16181         * modules/mkstemp (Depends-on): Likewise.
16182         * modules/mkstemps (Depends-on): Likewise.
16183         * modules/open (Depends-on): Likewise.
16184         * modules/openat (Depends-on): Likewise.
16185         * modules/pread (Depends-on): Likewise.
16186         * modules/pwrite (Depends-on): Likewise.
16187         * modules/scandir (Depends-on): Likewise.
16188         * modules/stat (Depends-on): Likewise.
16189         * modules/tmpfile (Depends-on): Likewise.
16190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16191         since the containing module now depends on the largefile module.
16192         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16193         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16194         off_t is fixed by gnulib.
16195         * doc/posix-functions/freopen.texi: Likewise.
16196         * doc/posix-functions/fseeko.texi: Likewise.
16197         * doc/posix-functions/fstatat.texi: Likewise.
16198         * doc/posix-functions/ftello.texi: Likewise.
16199         * doc/posix-functions/glob.texi: Likewise.
16200         * doc/posix-functions/lseek.texi: Likewise.
16201         * doc/posix-functions/lstat.texi: Likewise.
16202         * doc/posix-functions/mkstemp.texi: Likewise.
16203         * doc/posix-functions/open.texi: Likewise.
16204         * doc/posix-functions/openat.texi: Likewise.
16205         * doc/posix-functions/pread.texi: Likewise.
16206         * doc/posix-functions/pwrite.texi: Likewise.
16207         * doc/posix-functions/scandir.texi: Likewise.
16208         * doc/posix-functions/stat.texi: Likewise.
16209         * doc/posix-functions/tmpfile.texi: Likewise.
16210         * doc/glibc-functions/mkostemp.texi: Likewise.
16211         * doc/glibc-functions/mkostemps.texi: Likewise.
16212         * doc/glibc-functions/mkstemps.texi: Likewise.
16213
16214 2011-07-25  Bruno Haible  <bruno@clisp.org>
16215
16216         fcntl: Move AC_LIBOBJ invocation to module description.
16217         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16218         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16219
16220         fcntl: Remove call-in from fchdir.m4.
16221         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16223
16224         dup3: Remove potential call-in from fchdir.m4.
16225         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16227
16228         dup2: Move AC_LIBOBJ invocation to module description.
16229         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16230         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16231         Don't invoke AC_LIBOBJ.
16232         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16233
16234         dup2: Remove call-in from fchdir.m4.
16235         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16237
16238         fclose: Move AC_LIBOBJ invocation to module description.
16239         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16240         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16241         to 1.
16242         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16243
16244         fclose: Remove call-in from close.m4.
16245         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16246         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16247
16248         close: Move AC_LIBOBJ invocation to module description.
16249         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16250         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16251         1.
16252         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16253
16254         close: Remove call-in from fchdir.m4.
16255         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16257
16258         open: Move AC_LIBOBJ invocation to module description.
16259         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16260         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16261         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16262
16263         open: Remove call-in from fchdir.m4.
16264         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16266
16267         fchdir: Start to remove gl_REPLACE_* idiom.
16268         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16269         (gl_FUNC_FCHDIR): Invoke it.
16270
16271 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16272
16273         * lib/ftell.c (ftell): Comment out cast.
16274
16275         close: use gl_REPLACE_FCLOSE only if defined
16276         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16277         is defined.  The close module doesn't depend on the fclose module
16278         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16280         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16281
16282 2011-07-24  Jim Meyering  <meyering@redhat.com>
16283
16284         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16285         * tests/test-select.h (test_function): Declare as "static".
16286
16287 2011-07-24  Bruno Haible  <bruno@clisp.org>
16288
16289         doc: Mention the effects of AC_SYS_LARGEFILE.
16290         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16291         on this function.
16292         * doc/posix-functions/aio_error.texi: Likewise.
16293         * doc/posix-functions/aio_fsync.texi: Likewise.
16294         * doc/posix-functions/aio_read.texi: Likewise.
16295         * doc/posix-functions/aio_return.texi: Likewise.
16296         * doc/posix-functions/aio_suspend.texi: Likewise.
16297         * doc/posix-functions/aio_write.texi: Likewise.
16298         * doc/posix-functions/fgetpos.texi: Likewise.
16299         * doc/posix-functions/fopen.texi: Likewise.
16300         * doc/posix-functions/freopen.texi: Likewise.
16301         * doc/posix-functions/fsetpos.texi: Likewise.
16302         * doc/posix-functions/fstatvfs.texi: Likewise.
16303         * doc/posix-functions/ftruncate.texi: Likewise.
16304         * doc/posix-functions/ftw.texi: Likewise.
16305         * doc/posix-functions/getrlimit.texi: Likewise.
16306         * doc/posix-functions/glob.texi: Likewise.
16307         * doc/posix-functions/lio_listio.texi: Likewise.
16308         * doc/posix-functions/lockf.texi: Likewise.
16309         * doc/posix-functions/mkstemp.texi: Likewise.
16310         * doc/posix-functions/mmap.texi: Likewise.
16311         * doc/posix-functions/nftw.texi: Likewise.
16312         * doc/posix-functions/openat.texi: Likewise.
16313         * doc/posix-functions/opendir.texi: Likewise.
16314         * doc/posix-functions/posix_fadvise.texi: Likewise.
16315         * doc/posix-functions/posix_fallocate.texi: Likewise.
16316         * doc/posix-functions/pread.texi: Likewise.
16317         * doc/posix-functions/pwrite.texi: Likewise.
16318         * doc/posix-functions/readdir.texi: Likewise.
16319         * doc/posix-functions/readdir_r.texi: Likewise.
16320         * doc/posix-functions/rewinddir.texi: Likewise.
16321         * doc/posix-functions/scandir.texi: Likewise.
16322         * doc/posix-functions/seekdir.texi: Likewise.
16323         * doc/posix-functions/setrlimit.texi: Likewise.
16324         * doc/posix-functions/statvfs.texi: Likewise.
16325         * doc/posix-functions/telldir.texi: Likewise.
16326         * doc/posix-functions/tmpfile.texi: Likewise.
16327         * doc/posix-functions/truncate.texi: Likewise.
16328         * doc/glibc-functions/fallocate.texi: Likewise.
16329         * doc/glibc-functions/fstatfs.texi: Likewise.
16330         * doc/glibc-functions/fts_children.texi: Likewise.
16331         * doc/glibc-functions/fts_read.texi: Likewise.
16332         * doc/glibc-functions/getdirentries.texi: Likewise.
16333         * doc/glibc-functions/mkostemp.texi: Likewise.
16334         * doc/glibc-functions/mkostemps.texi: Likewise.
16335         * doc/glibc-functions/mkstemps.texi: Likewise.
16336         * doc/glibc-functions/preadv.texi: Likewise.
16337         * doc/glibc-functions/pwritev.texi: Likewise.
16338         * doc/glibc-functions/sendfile.texi: Likewise.
16339         * doc/glibc-functions/statfs.texi: Likewise.
16340
16341 2011-07-24  Bruno Haible  <bruno@clisp.org>
16342
16343         doc: Fix typo.
16344         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16345
16346 2011-07-24  Bruno Haible  <bruno@clisp.org>
16347
16348         doc: Mention fsusage.
16349         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16350
16351 2011-07-24  Bruno Haible  <bruno@clisp.org>
16352
16353         doc: Mention new glibc headers and functions.
16354         * doc/glibc-headers/gshadow.texi: New file.
16355         * doc/glibc-functions/endsgent.texi: New file.
16356         * doc/glibc-functions/fgetsgent.texi: New file.
16357         * doc/glibc-functions/fgetsgent_r.texi: New file.
16358         * doc/glibc-functions/getsgent.texi: New file.
16359         * doc/glibc-functions/getsgent_r.texi: New file.
16360         * doc/glibc-functions/getsgnam.texi: New file.
16361         * doc/glibc-functions/getsgnam_r.texi: New file.
16362         * doc/glibc-functions/putsgent.texi: New file.
16363         * doc/glibc-functions/setsgent.texi: New file.
16364         * doc/glibc-functions/sgetsgent.texi: New file.
16365         * doc/glibc-functions/sgetsgent_r.texi: New file.
16366         * doc/glibc-functions/malloc_info.texi: New file.
16367         * doc/glibc-functions/preadv.texi: New file.
16368         * doc/glibc-functions/pwritev.texi: New file.
16369         * doc/glibc-functions/register_printf_modifier.texi: New file.
16370         * doc/glibc-functions/register_printf_specifier.texi: New file.
16371         * doc/glibc-functions/register_printf_type.texi: New file.
16372         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16373         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16374         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16375         * doc/glibc-functions/pthread_getname_np.texi: New file.
16376         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16377         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16378         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16379         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16380         * doc/glibc-functions/pthread_setname_np.texi: New file.
16381         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16382         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16383         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16384         * doc/glibc-functions/qsort_r.texi: New file.
16385         * doc/glibc-functions/quick_exit.texi: New file.
16386         * doc/glibc-functions/syncfs.texi: New file.
16387         * doc/gnulib.texi: Include them.
16388         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16389         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16390         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16391         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16392         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16393         * doc/glibc-functions/execvpe.texi: Likewise.
16394
16395 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16396
16397         ftell: don't include <unistd.h>
16398         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16399         guaranteed to define off_t, and the ftell module depends on the
16400         stdio module.
16401
16402         ftell: do not assume wraparound signed arithmetic
16403         * lib/ftell.c: Include <limits.h>.
16404         (ftell): Don't assume wraparound signed arithmetic.
16405
16406 2011-07-24  Bruno Haible  <bruno@clisp.org>
16407
16408         close: No longer depend on module 'fclose'.
16409         * modules/close (Depends-on): Remove fclose.
16410         * NEWS: Mention the change.
16411         Suggested by Sam Steingold <sds@gnu.org>.
16412
16413 2011-07-24  Bruno Haible  <bruno@clisp.org>
16414
16415         fsusage: Enable large volume support on AIX >= 5.2.
16416         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16417         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16418         instead of STAT_STATVFS.
16419         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16420
16421         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16422         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16423         f_blocks field only on MacOS X.
16424
16425         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16427         * modules/fsusage (Depends-on): Add largefile.
16428
16429 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16430
16431         * README: Modernize discussion of signed integers.
16432         Assuming overflow wraparound is no longer safe.
16433         Mention ones' complement and signed magnitude.
16434
16435 2011-07-22  Bruno Haible  <bruno@clisp.org>
16436
16437         select tests, pselect tests: Refactor.
16438         * tests/test-select.h: New file, extracted from tests/test-select.c.
16439         (select_fn): New type.
16440         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16441         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16442         test_pipe): Add my_select argument.
16443         (test_function): Renamed from main. Add my_select argument.
16444         * tests/test-select.c: Move most code to tests/test-select.h. Include
16445         test-select.h.
16446         * modules/select-tests (Files): Add tests/test-select.h.
16447         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16448         (my_select, main): New functions.
16449         * modules/pselect-tests (Files): Add tests/test-select.h,
16450         tests/macros.h, tests/signature.h.
16451         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16452         (configure.ac): Check for <sys/wait.h>.
16453
16454 2011-07-22  Bruno Haible  <bruno@clisp.org>
16455
16456         sys_select tests: Check the signature of FD_*.
16457         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16458         signature tests from here...
16459         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16460         here.
16461         * modules/sys_select-tests (Files): Add tests/signature.h.
16462
16463 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16464
16465         largefile: new module, replacing large-inode
16466         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16467         * MODULES.html.sh: Add largefile, remove large-inode.
16468         * modules/largefile, m4/largefile.m4: New files.
16469         * modules/large-inode, m4/large-inode.m4: Remove.
16470
16471         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16472         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16473         implementations that use only 32 bits to count blocks.
16474         On typical hosts with 1024-byte blocks, this fails with file
16475         systems as small as 4 TiB.  Problem reported by Herb Wartens
16476         <http://debbugs.gnu.org/9140> and this should also fix a similar
16477         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16478
16479         large-inode: New module
16480         * MODULES.html.sh: Add it.
16481         * modules/large-inode, m4/large-inode.m4: New files.
16482
16483         extensions: Enable extensions on MacOS X 10.5 and later.
16484         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16485
16486 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16487
16488         file-has-acl: use acl_extended_file_nofollow if available
16489         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16490         (acl_extended_file): New macro.
16491         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16492         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16493
16494 2011-07-21  Bruno Haible  <bruno@clisp.org>
16495
16496         Declare system functions in a way that works with C++.
16497         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16498         declare fdopendir as extern "C".
16499         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16500         declare frexpl as extern "C".
16501         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16502         declare gai_strerror as extern "C".
16503         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16504         programs, declare gai_strerror as extern "C".
16505         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16506         declare getlogin_r as extern "C".
16507         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16508         as extern "C".
16509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16510         declare ldexpl as extern "C".
16511         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16512         as extern "C".
16513         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16514         program, declare getmntinfo as extern "C".
16515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16516         stpncpy as extern "C".
16517         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16518         program, declare __xpg_strerror_r as extern "C".
16519         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16520         strndup as extern "C".
16521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16522         declare memset and bzero as extern "C".
16523         Reported by Sam Steingold <sds@gnu.org>.
16524
16525 2011-07-12  Jim Meyering  <meyering@redhat.com>
16526
16527         maint.mk: prohibit inclusion of "verify.h" without use
16528         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16529
16530 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16531
16532         timer-time: A new module to check for timer_settime()
16533         * m4/timer_time.m4: Check for the posix function.
16534         * modules/timer-time: Add the new module.
16535         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16536         Mention it.
16537
16538 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16539             Bruno Haible  <bruno@clisp.org>
16540
16541         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16542         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16543         not defined, assume POSIX threads and look for pthread_sigmask in
16544         $LIBS, without changing $CPPFLAGS.
16545
16546 2011-07-19  Bruno Haible  <bruno@clisp.org>
16547
16548         strstr: Update cross-compilation guess.
16549         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16550         CPUs, guess no, in view of glibc
16551         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16552         Suggested by Eric Blake. Reported by Reuben Thomas.
16553
16554 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16555
16556         getopt-gnu: suppress core dumps from detection code
16557         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16558         to suppress core dumps that may well occur on glibc systems.
16559         * modules/getopt-gnu: Depend on nocrash.
16560
16561 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16562
16563         pthread_sigmask: ensure usleep is declared
16564         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16565         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16566
16567 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16568
16569         doc: Document NonStop portability issues.
16570         * doc/posix-functions/sigaction.texi (sigaction):
16571         * doc/posix-headers/signal.texi (signal.h):
16572         Document NonStop.  See Joachim Schmitz in
16573         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16574
16575 2011-07-15  Bruno Haible  <bruno@clisp.org>
16576
16577         ffsl, ffsll: Avoid unportable behaviour.
16578         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16579
16580 2011-07-15  Bruno Haible  <bruno@clisp.org>
16581
16582         ffs: More tests.
16583         * tests/test-ffs.c (NBITS): New macro.
16584         (main): Add more tests.
16585         * tests/test-ffsl.c (NBITS): New macro.
16586         (main): Add more tests.
16587         * tests/test-ffsll.c (NBITS): New macro.
16588         (main): Add more tests.
16589
16590 2011-07-15  Eric Blake  <eblake@redhat.com>
16591
16592         ffsl, ffsll: new modules
16593         * modules/ffsl: New file.
16594         * modules/ffsll: Likewise.
16595         * m4/ffsl.m4: Likewise.
16596         * m4/ffsll.m4: Likewise.
16597         * lib/ffsl.c: Likewise.
16598         * lib/ffsl.h: Likewise.
16599         * lib/ffsll.c: Likewise.
16600         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16601         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16602         * modules/string (Makefile.am): Substitute witnesses.
16603         * lib/strings.in.h (ffsl, ffsll): Declare.
16604         * modules/ffsl-tests: New test file.
16605         * modules/ffsll-tests: Likewise.
16606         * tests/test-ffsl.c: Likewise.
16607         * tests/test-ffsll.c: Likewise.
16608         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16609         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16610         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16611
16612         ffs: fix m4 prerequisite
16613         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16614
16615         ffs: avoid undefined behavior
16616         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16617         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16618         Reported by Bruno Haible.
16619
16620 2011-07-12  Bruno Haible  <bruno@clisp.org>
16621
16622         pthread_sigmask: Rely on module 'threadlib'.
16623         * modules/pthread_sigmask (Depends-on): Add threadlib.
16624         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16625         is defined.
16626
16627 2011-07-12  Bruno Haible  <bruno@clisp.org>
16628
16629         regex: Depend on module 'strcase'.
16630         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16631
16632 2011-07-12  Jim Meyering  <meyering@redhat.com>
16633
16634         warn-on-use: fix typo in file name
16635         * modules/snippet/warn-on-use (Files): Correct file name:
16636         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16637
16638 2011-07-12  Bruno Haible  <bruno@clisp.org>
16639
16640         strings: Document module.
16641         * doc/posix-headers/strings.texi: Mention module 'strings'.
16642
16643 2011-07-12  Bruno Haible  <bruno@clisp.org>
16644
16645         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16646         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16647         (Files, Makefile.am): Update.
16648         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16649         * modules/stdlib (Depends-on): Update.
16650
16651 2011-07-12  Bruno Haible  <bruno@clisp.org>
16652
16653         * NEWS: Mention the changes.
16654
16655         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16656         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16657         (Files, Makefile.am): Update.
16658         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16659         * modules/arpa_inet (Depends-on): Update.
16660         * modules/ctype (Depends-on): Update.
16661         * modules/dirent (Depends-on): Update.
16662         * modules/fcntl-h (Depends-on): Update.
16663         * modules/glob (Depends-on): Update.
16664         * modules/iconv-h (Depends-on): Update.
16665         * modules/inttypes-incomplete (Depends-on): Update.
16666         * modules/langinfo (Depends-on): Update.
16667         * modules/locale (Depends-on): Update.
16668         * modules/math (Depends-on): Update.
16669         * modules/netdb (Depends-on): Update.
16670         * modules/poll-h (Depends-on): Update.
16671         * modules/pty (Depends-on): Update.
16672         * modules/search (Depends-on): Update.
16673         * modules/signal (Depends-on): Update.
16674         * modules/spawn (Depends-on): Update.
16675         * modules/stdio (Depends-on): Update.
16676         * modules/stdlib (Depends-on): Update.
16677         * modules/string (Depends-on): Update.
16678         * modules/strings (Depends-on): Update.
16679         * modules/sys_file (Depends-on): Update.
16680         * modules/sys_ioctl (Depends-on): Update.
16681         * modules/sys_select (Depends-on): Update.
16682         * modules/sys_socket (Depends-on): Update.
16683         * modules/sys_stat (Depends-on): Update.
16684         * modules/sys_time (Depends-on): Update.
16685         * modules/sys_times (Depends-on): Update.
16686         * modules/sys_utsname (Depends-on): Update.
16687         * modules/sys_wait (Depends-on): Update.
16688         * modules/termios (Depends-on): Update.
16689         * modules/time (Depends-on): Update.
16690         * modules/unistd (Depends-on): Update.
16691         * modules/wchar (Depends-on): Update.
16692         * modules/wctype-h (Depends-on): Update.
16693         * MODULES.html.sh (Support for building libraries and executables):
16694         Update.
16695
16696         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16697         * modules/snippet/unused-parameter: Renamed from
16698         modules/unused-parameter.
16699         (Files, Makefile.am): Update.
16700         * build-aux/snippet/unused-parameter.h: Renamed from
16701         build-aux/unused-parameter.h.
16702         * modules/selinux-h (Depends-on): Update.
16703         * modules/unistr/base (Depends-on): Update.
16704         * MODULES.html.sh (Core language properties): Update.
16705
16706         Rename module 'link-warning' to 'snippet/link-warning'.
16707         * modules/snippet/link-warning: Renamed from modules/link-warning.
16708         (Files, Makefile.am): Update.
16709         * build-aux/snippet/link-warning.h: Renamed from
16710         build-aux/link-warning.h.
16711         * MODULES.html.sh (Support for building libraries and executables):
16712         Update.
16713
16714         Rename module 'c++defs' to 'snippet/c++defs'.
16715         * modules/snippet/c++defs: Renamed from modules/c++defs.
16716         (Files, Makefile.am): Update.
16717         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16718         * modules/arpa_inet (Depends-on): Update.
16719         * modules/ctype (Depends-on): Update.
16720         * modules/dirent (Depends-on): Update.
16721         * modules/fcntl-h (Depends-on): Update.
16722         * modules/glob (Depends-on): Update.
16723         * modules/iconv-h (Depends-on): Update.
16724         * modules/langinfo (Depends-on): Update.
16725         * modules/locale (Depends-on): Update.
16726         * modules/math (Depends-on): Update.
16727         * modules/netdb (Depends-on): Update.
16728         * modules/poll-h (Depends-on): Update.
16729         * modules/pty (Depends-on): Update.
16730         * modules/search (Depends-on): Update.
16731         * modules/signal (Depends-on): Update.
16732         * modules/spawn (Depends-on): Update.
16733         * modules/stdio (Depends-on): Update.
16734         * modules/stdlib (Depends-on): Update.
16735         * modules/string (Depends-on): Update.
16736         * modules/strings (Depends-on): Update.
16737         * modules/sys_ioctl (Depends-on): Update.
16738         * modules/sys_select (Depends-on): Update.
16739         * modules/sys_socket (Depends-on): Update.
16740         * modules/sys_stat (Depends-on): Update.
16741         * modules/sys_time (Depends-on): Update.
16742         * modules/sys_wait (Depends-on): Update.
16743         * modules/termios (Depends-on): Update.
16744         * modules/time (Depends-on): Update.
16745         * modules/unistd (Depends-on): Update.
16746         * modules/wchar (Depends-on): Update.
16747         * modules/wctype-h (Depends-on): Update.
16748
16749         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16750         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16751         (Files, Makefile.am): Update.
16752         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16753         * modules/argv-iter (Depends-on): Update.
16754         * modules/arpa_inet (Depends-on): Update.
16755         * modules/dirent (Depends-on): Update.
16756         * modules/fcntl-h (Depends-on): Update.
16757         * modules/fnmatch (Depends-on): Update.
16758         * modules/getopt-posix (Depends-on): Update.
16759         * modules/glob (Depends-on): Update.
16760         * modules/iconv-h (Depends-on): Update.
16761         * modules/inttypes-incomplete (Depends-on): Update.
16762         * modules/locale (Depends-on): Update.
16763         * modules/math (Depends-on): Update.
16764         * modules/netdb (Depends-on): Update.
16765         * modules/search (Depends-on): Update.
16766         * modules/signal (Depends-on): Update.
16767         * modules/spawn (Depends-on): Update.
16768         * modules/stdio (Depends-on): Update.
16769         * modules/stdlib (Depends-on): Update.
16770         * modules/string (Depends-on): Update.
16771         * modules/strings (Depends-on): Update.
16772         * modules/sys_socket (Depends-on): Update.
16773         * modules/sys_stat (Depends-on): Update.
16774         * modules/sys_time (Depends-on): Update.
16775         * modules/sys_times (Depends-on): Update.
16776         * modules/sys_utsname (Depends-on): Update.
16777         * modules/time (Depends-on): Update.
16778         * modules/unistd (Depends-on): Update.
16779         * modules/wchar (Depends-on): Update.
16780         * MODULES.html.sh (Support for building libraries and executables):
16781         Update.
16782
16783 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16784
16785         Improvements on _Noreturn and related modules.
16786
16787         modules/_Exit-tests: test _Noreturn too
16788         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16789         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16790         (main): Use them.
16791
16792         stdnoreturn, stdnoreturn-tests: remove modules
16793         They're not needed here and a bit premature for use elsewhere.  See
16794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16795         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16796         * tests/test-stdnoreturn.c: Remove files.
16797         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16798         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16799         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16800         and using noreturn.
16801         * modules/openat, modules/sigpipe-die, modules/xalloc:
16802         * modules/xmemdup0, modules/xstrtol:
16803         Remove dependency on stdnoreturn.
16804
16805         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16806         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16807         Reparenthesize to avoid GCC warning.
16808         Support Microsoft's syntax.
16809         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16810
16811         _Noreturn-tests: remove module
16812         * modules/_Noreturn-tests: Remove.
16813         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16814         * tests/test-_Noreturn.c: Remove.
16815         * tests/test-stdnoreturn.c: Merge from the old
16816         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16817
16818 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16819
16820         _Noreturn, stdnoreturn, and related modules.
16821
16822         * top/maint.mk: Adjust to new noreturn support.
16823         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16824         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16825
16826         xalloc: use stdnoreturn.h
16827         * lib/xalloc.h: Include <stdnoreturn.h>.
16828         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16829         * modules/xalloc (Depends-on): Add stdnoreturn.
16830
16831         xstrtol: use stdnoreturn.h
16832         * lib/xstrtol.h: Include <stdnoreturn.h>.
16833         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16834         * modules/xstrtol (Depends-on): Add stdnoreturn.
16835
16836         xmemdup0: use stdnoreturn.h
16837         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16838         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16839         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16840
16841         sigpipe-die: use stdnoreturn.h
16842         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16843         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16844         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16845
16846         openat: use stdnoreturn.h
16847         * lib/openat.h: Include <stdnoreturn.h>.
16848         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16849         * modules/openat (Depends-on): Add stdnoreturn.
16850
16851         * lib/openat-die.c (openat_save_fail): Modernize comment.
16852
16853         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16854
16855         * lib/glthread/thread.h: Modernize comment.
16856
16857         obstack: use _Noreturn
16858         * lib/obstack.c (__attribute__): Remove macro.
16859         (print_and_abort): Use _Noreturn.
16860
16861         c-stack: use _Noreturn
16862         * lib/c-stack.c (die, overflow_handler, segv_handler):
16863         Use _Noreturn rather than __attribute__((noreturn)).
16864
16865         argmatch-tests, exclude_tests: use _Noreturn
16866         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16867         Remove.
16868         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16869
16870         stdlib: use _Noreturn
16871         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16872         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16873         * modules/stdlib (Depends-on): Add _Noreturn.
16874         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16875
16876         stdnoreturn-tests: new module
16877         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16878
16879         stdnoreturn: new module
16880         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16881         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16882
16883         _Noreturn-tests: new module
16884         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16885
16886         _Noreturn: new module
16887         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16888         New section, mentioning it.
16889         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16890
16891         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16892
16893 2011-07-11  Eric Blake  <eblake@redhat.com>
16894
16895         ffs: new module
16896         * modules/ffs: New file.
16897         * m4/ffs.m4: Likewise.
16898         * lib/ffs.c: Likewise.
16899         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16900         * modules/strings (Makefile.am): Substitute witness.
16901         (Depends-on): Add c++defs.
16902         * lib/strings.in.h (ffs): Declare.
16903         * modules/ffs-tests: New test file.
16904         * tests/test-ffs.c: Test new module.
16905         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16906         * doc/posix-functions/ffs.texi (ffs): Likewise.
16907
16908         regex: avoid compiler warning
16909         * lib/regex.c (includes): Include <strings.h>, for use of
16910         strcasecmp in regcomp.c.
16911         Reported by Joachim Schmitz.
16912
16913 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16914
16915         stdint: respect system's intmax_t if INTMAX_MAX
16916         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16917         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16918         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16919         long but int64_t is long long, and where we will clash with the
16920         system intmax_t if we override it.  See
16921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16922         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16923         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16924         similarly for UINTMAX_C.
16925
16926 2011-07-08  Bruno Haible  <bruno@clisp.org>
16927
16928         pthread_sigmask tests: Avoid a compiler warning.
16929         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16930         non-zero.
16931
16932         sigprocmask tests: A better way to avoid a compiler warning.
16933         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16934         (main): Complain if system() returns non-zero.
16935         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16936
16937 2011-07-08  Bruno Haible  <bruno@clisp.org>
16938
16939         pthread_sigmask: Work around IRIX bug.
16940         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16941         bug.
16942         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16943         there may be unblocked pending signals.
16944         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16945
16946 2011-07-08  Bruno Haible  <bruno@clisp.org>
16947
16948         pthread_sigmask: Work around Cygwin bug.
16949         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16950         bug.
16951         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16952         the system's pthread_sigmask function.
16953         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16954
16955 2011-07-08  Bruno Haible  <bruno@clisp.org>
16956
16957         pthread_sigmask: Work around bug in single-threaded implementation.
16958         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16959         FreeBSD, HP-UX, Solaris bug.
16960         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16961         * lib/pthread_sigmask.c: Include <stddef.h>.
16962         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16963         the system's pthread_sigmask function.
16964         * modules/pthread_sigmask (configure.ac): Invoke
16965         gl_PREREQ_PTHREAD_SIGMASK.
16966         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16967         HP-UX, Solaris.
16968
16969 2011-07-08  Eric Blake  <eblake@redhat.com>
16970
16971         test-sigprocmask: avoid compiler warning
16972         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16973         * tests/test-sigprocmask.c (main): Use it to silence warning.
16974         Reported by Jim Meyering.
16975
16976         test-snprintf: avoid compiler warning
16977         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16978         * tests/test-vsnprintf.c (main): Likewise.
16979         Reported by Jim Meyering.
16980
16981 2011-07-08  Bruno Haible  <bruno@clisp.org>
16982
16983         Tests for module 'pthread_sigmask'.
16984         * modules/pthread_sigmask-tests: New file.
16985         * tests/test-pthread_sigmask1.c: New file, based on
16986         tests/test-sigprocmask.c.
16987         * tests/test-pthread_sigmask2.c: New file.
16988
16989 2011-07-08  Jim Meyering  <meyering@redhat.com>
16990
16991         test-getopt.h: avoid warning about an unused variable
16992         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16993
16994 2011-07-07  Jim Meyering  <meyering@redhat.com>
16995
16996         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16997         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16998         now that it no longer contains leading TABs.
16999         Remove unused "url=FIXME" statement.
17000
17001 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17002
17003         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17004         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17005         When gl_THREADLIB is not in use, assume that the POSIX sematics
17006         are desired.  This is better for Emacs, which uses POSIX semantics
17007         on GNUish and/or POSIXish platforms, and does not use threads at
17008         all otherwise.
17009
17010         pthread_sigmask: fix typo when testing for libraries
17011         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17012         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17013
17014 2011-07-08  Eric Blake  <eblake@redhat.com>
17015
17016         fts: introduce FTS_NOATIME
17017         * lib/fts_.h (FTS_NOATIME): New bit flag.
17018         (FTS_OPTIONMASK): Adjust.
17019         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17020         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17021
17022 2011-07-08  Bruno Haible  <bruno@clisp.org>
17023
17024         Tests for module 'thread'.
17025         * modules/thread-tests: New file.
17026         * tests/test-thread_self.c: New file.
17027         * tests/test-thread_create.cc: New file.
17028
17029 2011-07-08  Bruno Haible  <bruno@clisp.org>
17030
17031         thread: Avoid gcc warnings when using gl_thread_self().
17032         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17033         'void *'.
17034         (gl_thread_self_pointer): Update.
17035
17036 2011-07-07  Bruno Haible  <bruno@clisp.org>
17037
17038         signal-c++-tests: Check declaration of pthread_sigmask.
17039         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17040         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17041         $(LIB_PTHREAD_SIGMASK).
17042
17043 2011-07-07  Bruno Haible  <bruno@clisp.org>
17044
17045         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17046         * lib/signal.in.h (pthread_sigmask): Override if
17047         REPLACE_PTHREAD_SIGMASK is 1.
17048         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17049         REPLACE_PTHREAD_SIGMASK.
17050         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17051         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17052         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17053         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17054         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17055
17056 2011-07-07  Bruno Haible  <bruno@clisp.org>
17057
17058         pthread_sigmask: Ensure declaration in <signal.h>.
17059         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17060         include <pthread.h>.
17061         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17062         problem.
17063
17064 2011-07-07  Bruno Haible  <bruno@clisp.org>
17065
17066         pthread_sigmask: Document the module.
17067         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17068
17069 2011-07-07  Bruno Haible  <bruno@clisp.org>
17070
17071         pthread_sigmask: Follow gnulib conventions.
17072         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17073         gl_PTHREAD_SIGMASK.
17074         * modules/pthread_sigmask (configure.ac): Update.
17075
17076 2011-07-07  Bruno Haible  <bruno@clisp.org>
17077
17078         pthread_sigmask: Make declaration C++ safe.
17079         * lib/signal.in.h: In two special conditions, just do an #include_next.
17080         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17081         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17082         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17083         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17084         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17085         not REPLACE_PTHREAD_MASK.
17086         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17087         not REPLACE_PTHREAD_MASK.
17088         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17089
17090 2011-07-07  Bruno Haible  <bruno@clisp.org>
17091
17092         pthread_sigmask: Fix return value.
17093         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17094         * lib/pthread_sigmask.c: New file.
17095         * modules/pthread_sigmask (Files): Add it.
17096         (configure.ac): Invoke AC_LIBOBJ.
17097
17098 2011-07-07  Eric Blake  <eblake@redhat.com>
17099
17100         getopt: more portable argv creation
17101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17102         const, use char arrays rather than strings.
17103         Suggested by Paul Eggert.
17104
17105 2011-07-07  Bruno Haible  <bruno@clisp.org>
17106
17107         Tests for module 'sigprocmask'.
17108         * modules/sigprocmask-tests: New file.
17109         * tests/test-sigprocmask.c: New file.
17110
17111 2011-07-07  Bruno Haible  <bruno@clisp.org>
17112
17113         float tests: Tweak.
17114         * tests/test-float.c (main): Tweak skip message.
17115
17116 2011-07-07  Eric Blake  <eblake@redhat.com>
17117
17118         getopt: avoid compiler warning during configure
17119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17120         assigning string literals to non-const pointer.
17121
17122         getopt-gnu: avoid crash in glibc getopt
17123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17124         * tests/test-getopt.h (test_getopt): Enhance test.
17125         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17126         * doc/posix-functions/getopt.texi (getopt): Document it.
17127         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17128         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17129         Likewise.
17130
17131 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17132
17133         getopt: handle W; without long options in getopt [BZ #12922]
17134         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17135         but no long options are defined, just return 'W'.
17136
17137 2011-07-07  Bruno Haible  <bruno@clisp.org>
17138
17139         Avoid literal tabs.
17140         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17141         variable containing a tab instead of a literal tab.
17142         Reported by Jim Meyering.
17143
17144 2011-07-07  Bruno Haible  <bruno@clisp.org>
17145
17146         Comments.
17147         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17148
17149 2011-07-06  Bruno Haible  <bruno@clisp.org>
17150
17151         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17152         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17153         <winsock2.h>.
17154         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17155         lib/sys_socket.in.h.
17156         (close, gethostname): Hide declarations from <winsock2.h>.
17157         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17158         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17159         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17160         (select): Don't override if gnulib's <sys/select.h> was already
17161         included.
17162         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17163         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17164         setsockopt, shutdown, select): Tweak indentation.
17165
17166 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17167
17168         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17169         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17170         in an application that does not use the sys_select module.
17171
17172 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17173
17174         poll: do not return 0 on timeout=-1
17175         * lib/poll.c: Loop with yield if no events occurred.
17176
17177 2011-07-06  Eric Blake  <eblake@redhat.com>
17178
17179         pthread_sigmask: always replace when not using pthread
17180         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17181         replacement when using some threading other than pthread.  Fix
17182         logic bug.
17183
17184 2011-07-06  Bruno Haible  <bruno@clisp.org>
17185
17186         Comments.
17187         * m4/printf.m4: Update comments about mingw.
17188
17189 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17190
17191         sys_select: define sigset_t more portably
17192         * lib/sys_select.in.h: Always include <sys/types.h>, since
17193         we now need sigset_t and mingw defines it there.
17194         Include <signal.h> before split inclusion guard, to avoid
17195         mishaps on Solaris, whose <signal.h> eventually includes us.
17196         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17197         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17198         which come from ...
17199         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17200         gl_CHECK_TYPE_SIGSET_T.
17201         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17202         does the real work.
17203         * modules/sys_select (Depends-on): Add 'signal'.
17204
17205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17206         Suggested by Bruno Haible.
17207
17208         pselect: Use pthread_sigmask, not sigprocmask.
17209         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17210         multithreaded apps better than sigprocmask does.
17211         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17212         sigprocmask directly.
17213
17214 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17215
17216         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17217         Don't #undef,  since we don't need any underlying pselect.
17218         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17219         (Depends-on): Add select.
17220         (Link): Add $(LIBSOCKET).
17221         These changes suggested by Bruno Haible.
17222
17223         pselect: document better
17224         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17225         * doc/posix-functions/pselect.texi (pselect): Document new module.
17226
17227         pthread_sigmask: new module
17228         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17229         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17230         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17231         This is done only as a macro; I don't know how well that'll
17232         work for C++.  Move <sys/types.h> include before the include_next,
17233         to avoid mishap on Solaris.
17234         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17235         * modules/signal (Makefile.am): Substitute the check's results.
17236         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17237
17238         test-pselect: new module
17239         * modules/pselect-tests, tests/test-pselect.c: New files.
17240         * tests/test-select.c, tests/test-sys_select-c++.cc:
17241         If TEST_PSELECT is defined, test pselect instead of testing select.
17242
17243         * tests/test-sys_select.c (sigset_t): Test for it, too.
17244         Suggested by Bruno Haible.
17245
17246 2011-07-05  Eric Blake  <eblake@redhat.com>
17247
17248         snprintf: guarantee %1$d, for libintl
17249         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17250         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17251         * doc/posix-functions/snprintf.texi (snprintf): Update.
17252         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17253         * tests/test-snprintf.c (main): Enhance test.
17254         * tests/test-vsnprintf.c (main): Likewise.
17255
17256 2011-07-05  Jim Meyering  <meyering@redhat.com>
17257
17258         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17259         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17260         per Bruno's request, to accommodate this idiom (no space after "#")
17261         even when the function is inside an #if block:
17262         char *
17263         gets (char *s)
17264         #undef gets
17265         {
17266           ...
17267         }
17268
17269 2011-07-04  Jim Meyering  <meyering@redhat.com>
17270
17271         maint: indent with spaces, not TABs, and add a rule to check this
17272         * tests/test-userspec.c: Indent with spaces, not TABs.
17273         * tests/test-argp.c: Likewise.
17274         * tests/test-c-stack2.sh: Likewise.
17275         * tests/test-parse-duration.sh: Likewise
17276         * m4/strtod.m4: Likewise.
17277         * m4/alloca.m4: Likewise.
17278         * m4/pselect.m4: Likewise.
17279         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17280
17281 2011-07-03  Jim Meyering  <meyering@redhat.com>
17282
17283         maint.mk: correct omissions in prohibit_argmatch_without_use check
17284         This rule would mistakenly report that argmatch.h is included without
17285         use even when both the argmatch and invalid_arg macro were used.
17286         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17287         of argmatch and invalid_arg.
17288
17289 2011-07-03  Bruno Haible  <bruno@clisp.org>
17290
17291         Comments about EINTR.
17292         * lib/safe-read.h: Explain the purpose of this module.
17293         * lib/safe-write.h: Likewise.
17294         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17295         module.
17296         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17297         module.
17298         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17299
17300 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17301
17302         xnanosleep: Rewrite to use new dtotimespec module.
17303         It has the conversion code that used to be in xnanosleep.
17304         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17305         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17306         (TIME_T_MAX): Remove.
17307         (xnanosleep): Rewrite in terms of dtotimespec.
17308         * modules/xnanosleep (Depends-on): Add dtotimespec.
17309         Remove intprops, stdbool.
17310
17311         timespec-add, timespec-sub: new modules
17312         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17313         * lib/timespec-add.c, lib/timespec-sub.c:
17314         * modules/timespec-add, modules/timespec-sub: New files.
17315
17316         dtotimespec: new module
17317         * lib/timespec.h (dtotimespec): New decl.
17318         * lib/dtotimespec.c, modules/dtotimespec: New files.
17319
17320         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17321
17322         pselect: new module
17323         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17324         (pselect): New decls.
17325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17326         since the standard pselect decl uses 'restrict'.
17327         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17328         HAVE_PSELECT, REPLACE_PSELECT.
17329         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17330         HAVE_PSELECT, REPLACE_PSELECT.
17331         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17332
17333         sys_select: don't depend on sys_socket
17334         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17336         This fix works on GNU and GNU-like platforms, but has not been tested
17337         on native Windows.
17338         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17340         gl_HEADER_SYS_SOCKET.
17341         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17342         gl_PREREQ_SYS_H_WINSOCK2.
17343
17344 2011-06-29  Eric Blake  <eblake@redhat.com>
17345
17346         pipe2: fix C89 compile problem
17347         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17348         Reported by Bruno Haible.
17349
17350         pipe, pipe2: don't corrupt fd on error
17351         * lib/pipe.c (pipe): Leave fd unchanged on error.
17352         * lib/pipe2.c (pipe2): Likewise.
17353         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17354         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17355
17356 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17357
17358         mmap-anon: do not use regular expressions inadvertently
17359         * m4/mmap-anon.m4: Remove trailing period from strings sought
17360         in the output.
17361
17362 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17363
17364         nanosleep: fix integer overflow problem
17365         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17366         arithmetic wraps around on overflow.
17367
17368         nanosleep: simplify carrying
17369         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17370         first call to the underyling nanosleep, not for the last one.
17371         This doesn't fix any bugs, but it simplifies the computation of
17372         the remaining delay.  Found while auditing integer overflow issues.
17373
17374         dup2: remove test for existence of fcntl
17375         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17376         "#if HAVE_FCNTL", in the configure-time test program.
17377         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17378         and therefore speeds up "configure" a bit.  Found while
17379         adding the dup2 module to Emacs.
17380
17381 2011-06-24  Eric Blake  <eblake@redhat.com>
17382
17383         maint.mk: enhance useless header checks
17384         * top/maint.mk (_sc_header_without_use): Check both include
17385         styles.
17386         (sc_prohibit_assert_without_use)
17387         (sc_prohibit_close_stream_without_use)
17388         (sc_prohibit_getopt_without_use)
17389         (sc_prohibit_quotearg_without_use)
17390         (sc_prohibit_quote_without_use)
17391         (sc_prohibit_long_options_without_use)
17392         (sc_prohibit_inttostr_without_use)
17393         (sc_prohibit_ignore_value_without_use)
17394         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17395         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17396         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17397         (sc_prohibit_hash_pjw_without_use)
17398         (sc_prohibit_safe_read_without_use)
17399         (sc_prohibit_argmatch_without_use)
17400         (sc_prohibit_canonicalize_without_use)
17401         (sc_prohibit_root_dev_ino_without_use)
17402         (sc_prohibit_openat_without_use)
17403         (sc_prohibit_c_ctype_without_use)
17404         (sc_prohibit_signal_without_use)
17405         (sc_prohibit_stdio--_without_use)
17406         (sc_prohibit_stdio-safer_without_use)
17407         (sc_prohibit_strings_without_use)
17408         (sc_prohibit_intprops_without_use)
17409         (sc_prohibit_stddef_without_use)
17410         (sc_prohibit_xfreopen_without_use): Update clients.
17411
17412 2011-06-24  Jim Meyering  <meyering@redhat.com>
17413
17414         syntax-check: keep one maint.mk rule in sync with its header
17415         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17416         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17417         I prefer to avoid temporary files here, so use <(...), but that
17418         is not supported by /bin/sh, so...
17419         (SHELL): Define to /bin/bash.
17420
17421 2011-06-24  Eric Blake  <eblake@redhat.com>
17422
17423         maint.mk: update sc_prohibit_intprops_without_use
17424         * top/maint.mk (_intprops_names): Match recent changes.
17425
17426 2011-06-24  Bruno Haible  <bruno@clisp.org>
17427
17428         strerror-override: No-op tweak.
17429         * lib/strerror-override.h (strerror_override): Reorder conditions,
17430         for consistency with lib/strerror-override.c.
17431
17432 2011-06-23  Eric Blake  <eblake@redhat.com>
17433
17434         maint.mk: test further PATH_MAX issues
17435         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17436         (sc_prohibit_path_max_allocation): ...and also test alloca.
17437         Suggested by Jim Meyering.
17438
17439 2011-06-22  Eric Blake  <eblake@redhat.com>
17440
17441         maint.mk: add syntax-check to avoid char[PATH_MAX]
17442         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17443
17444         stat: be robust to PATH_MAX definition
17445         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17446         * modules/stat (Depends-on): Add verify.
17447
17448         link: work around IRIX bug
17449         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17450         * lib/link.c (rpl_link): Work around it.
17451         * tests/test-link.h (test_link): Enhance test.
17452         * doc/posix-functions/link.texi (link): Document the bug.
17453
17454         getopt: silence clang warning
17455         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17456         dereference.
17457         Reported by Gustavo Martin Domato.
17458
17459 2011-06-22  Jim Meyering  <meyering@redhat.com>
17460
17461         bootstrap: do not insert a blank line into each .gitignore file
17462         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17463
17464 2011-06-21  Eric Blake  <eblake@redhat.com>
17465
17466         perror: test for output mismatch
17467         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17468         perror on IRIX.
17469
17470         strerror_r: fix OpenBSD behavior on out-of-range
17471         * lib/strerror_r.c (strerror_r): Always use maximal string.
17472         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17473
17474         strerror_r: fix OpenBSD behavior on 0
17475         * lib/strerror-override.c (strerror_override): Also override 0
17476         when needed.
17477         * lib/strerror-override.h (strerror_override): Likewise.
17478         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17479         earlier.
17480         * lib/strerror_r.c (strerror_r): Likewise.
17481         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17482         behavior...
17483         (gl_FUNC_STRERROR_0): ...into new macro.
17484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17485         is overridden.
17486         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17487         * modules/strerror-override (Files): Add strerror.m4.
17488         (configure.ac): Also provide override for 0 when needed.
17489         * doc/posix-functions/strerror.texi (strerror): Document this.
17490         * doc/posix-functions/perror.texi (perror): Likewise.
17491
17492         perror: adjust array size
17493         * modules/perror (Depends-on): Add strerror-override.
17494         * lib/perror.c (perror): Use it to avoid magic number.
17495
17496         strerror-override: reduce size
17497         * lib/strerror-override.c (strerror_override): Use fewer lines.
17498
17499 2011-06-20  Bruno Haible  <bruno@clisp.org>
17500
17501         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17502         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17503
17504 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17505
17506         alloca: port to compilers that can optimize like GCC 4.6.0
17507         * lib/alloca.c (find_stack_direction): New signature, taken from
17508         Autoconf git.  This works with GCC 4.6.0.  This code should never
17509         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17510         be used with other compilers that optimize as well as GCC 4.6.0 does.
17511         (alloca): Adjust to new signature.
17512         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17513         New macro, which patches Autoconf in a similar way.
17514
17515         c-stack: stop worrying about stack direction
17516         * lib/c-stack.c (find_stack_direction): Remove.
17517         (segv_handler): Don't worry about stack direction growth, as it's
17518         too much of a pain to configure this correctly, given how compilers
17519         are optimizing-away our stack-growth detection code.  Instead, assume
17520         that any access to just before or just after the stack is OK.
17521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17522         Don't require AC_FUNC_ALLOCA; no longer needed.
17523
17524 2011-06-20  Eric Blake  <eblake@redhat.com>
17525
17526         test-stat: don't allocate PATH_MAX bytes
17527         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17528         PATH_MAX-sized buffer.
17529         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17530         * modules/stat-tests (Depends-on): Likewise.
17531         * tests/test-fstatat.c (includes): Drop pathmax.h.
17532         * tests/test-stat.c (includes): Likewise.
17533         Reported by Bruno Haible.
17534
17535 2011-06-20  Bruno Haible  <bruno@clisp.org>
17536
17537         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17538         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17539         * lib/float.c: New file.
17540         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17541         REPLACE_FLOAT_LDBL.
17542         * modules/float (Files): Add lib/float.c.
17543         (configure.ac): Invoke AC_LIBOBJ.
17544         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17545
17546 2011-06-20  Bruno Haible  <bruno@clisp.org>
17547
17548         Tests for module 'float'.
17549         * modules/float-tests: New file.
17550         * tests/test-float.c: New file.
17551
17552 2011-06-19  Bruno Haible  <bruno@clisp.org>
17553
17554         isinf: Coding style.
17555         * lib/isinf.c: Use GNU coding style.
17556
17557 2011-06-19  Bruno Haible  <bruno@clisp.org>
17558
17559         linkat test: Avoid test failure on AIX 7.1.
17560         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17561         * tests/test-link.h (test_link): Likewise.
17562
17563 2011-06-19  Bruno Haible  <bruno@clisp.org>
17564
17565         pread test: Avoid test failure on OpenBSD 4.9.
17566         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17567
17568 2011-06-19  Bruno Haible  <bruno@clisp.org>
17569
17570         sprintf-posix: Fix test failure on AIX 7.1.
17571         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17572         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17573         on AIX.
17574         * doc/posix-functions/fprintf.texi: Likewise.
17575         * doc/posix-functions/printf.texi: Likewise.
17576         * doc/posix-functions/snprintf.texi: Likewise.
17577         * doc/posix-functions/sprintf.texi: Likewise.
17578         * doc/posix-functions/vdprintf.texi: Likewise.
17579         * doc/posix-functions/vfprintf.texi: Likewise.
17580         * doc/posix-functions/vprintf.texi: Likewise.
17581         * doc/posix-functions/vsnprintf.texi: Likewise.
17582         * doc/posix-functions/vsprintf.texi: Likewise.
17583
17584 2011-06-19  Bruno Haible  <bruno@clisp.org>
17585
17586         roundl-ieee: Fix test failure on AIX 7.1.
17587         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17588         * doc/posix-functions/roundl.texi: Mention problem with negative
17589         arguments.
17590
17591 2011-06-19  Bruno Haible  <bruno@clisp.org>
17592
17593         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17594         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17595         * doc/posix-functions/round.texi: Mention problem with negative
17596         arguments.
17597         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17598
17599 2011-06-19  Bruno Haible  <bruno@clisp.org>
17600
17601         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17603         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17604         * doc/posix-functions/roundf.texi: Mention problem with negative
17605         arguments.
17606         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17607
17608 2011-06-19  Bruno Haible  <bruno@clisp.org>
17609
17610         ceilf-ieee: Work around bug on MacOS X 10.5.
17611         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17612
17613         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17614         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17615         IEEE compliant, avoid compiler optimizations.
17616         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17617         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17618         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17619         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17620         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17621         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17622         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17623         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17624         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17625         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17626
17627 2011-06-19  Bruno Haible  <bruno@clisp.org>
17628
17629         ceilf-ieee: Work around bug on AIX 7.1.
17630         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17631         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17632
17633 2011-06-19  Bruno Haible  <bruno@clisp.org>
17634
17635         ceil-ieee: Work around bug on AIX 7.1.
17636         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17637         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17638
17639 2011-06-18  Bruno Haible  <bruno@clisp.org>
17640
17641         fsync test: Avoid test failure on MacOS X and AIX.
17642         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17643         EINVAL.
17644
17645 2011-06-18  Bruno Haible  <bruno@clisp.org>
17646
17647         openat, fdopendir tests: Fix link errors.
17648         * modules/openat-tests (Depends-on): Add progname.
17649         * modules/fdopendir-tests (Depends-on): Likewise.
17650         * tests/test-fchownat.c: Include progname.h.
17651         (main): Call set_program_name.
17652         * tests/test-fstatat.c: Include progname.h.
17653         (main): Call set_program_name.
17654         * tests/test-mkdirat.c: Include progname.h.
17655         (main): Call set_program_name.
17656         * tests/test-openat.c: Include progname.h.
17657         (main): Call set_program_name.
17658         * tests/test-unlinkat.c: Include progname.h.
17659         (main): Call set_program_name.
17660         * tests/test-fdopendir.c: Include progname.h.
17661         (main): Call set_program_name.
17662
17663 2011-06-18  Bruno Haible  <bruno@clisp.org>
17664
17665         Doc update.
17666         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17667         HP-UX.
17668         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17669
17670 2011-06-18  Bruno Haible  <bruno@clisp.org>
17671
17672         getcwd tests: Avoid compilation error on HP-UX 11.31.
17673         * modules/getcwd-tests (Depends-on): Add pathmax.
17674         * tests/test-getcwd.c: Include pathmax.h.
17675
17676 2011-06-18  Bruno Haible  <bruno@clisp.org>
17677
17678         isfinite, isinf: Fix link error on AIX 6 and 7.
17679         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17680         needed, also test the macro with a 'float' argument.
17681         * m4/isinf.m4 (gl_ISINF): Likewise.
17682
17683 2011-06-18  Bruno Haible  <bruno@clisp.org>
17684
17685         getloadavg: Don't clobber LIBS. Regression from previous commit.
17686         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17687         AC_CHECK_LIB from here...
17688         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17689         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17690         gl_func_getloadavg_done.
17691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17692
17693 2011-06-18  Bruno Haible  <bruno@clisp.org>
17694
17695         clean-temp: Improve documentation.
17696         * lib/clean-temp.h: Explain better how to use this module.
17697         Reported by John Darrington <john@darrington.wattle.id.au>.
17698
17699 2011-06-17  Bruno Haible  <bruno@clisp.org>
17700
17701         pread, pwrite: Avoid cc warning on AIX.
17702         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17703         (pwrite): Likewise.
17704
17705 2011-06-17  Bruno Haible  <bruno@clisp.org>
17706
17707         spawn-pipe tests: Fix link error.
17708         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17710
17711 2011-06-17  Bruno Haible  <bruno@clisp.org>
17712
17713         Tests: Remove unnecessary dependency.
17714         * modules/canonicalize-tests (Depends-on): Remove progname.
17715         * modules/chown-tests (Depends-on): Likewise.
17716         * modules/dirname-tests (Depends-on): Likewise.
17717         * modules/fdopendir-tests (Depends-on): Likewise.
17718         * modules/fdutimensat-tests (Depends-on): Likewise.
17719         * modules/hash-tests (Depends-on): Likewise.
17720         * modules/lchown-tests (Depends-on): Likewise.
17721         * modules/linkat-tests (Depends-on): Likewise.
17722         * modules/renameat-tests (Depends-on): Likewise.
17723         * modules/spawn-pipe-tests (Depends-on): Likewise.
17724         * modules/utimensat-tests (Depends-on): Likewise.
17725
17726 2011-06-17  Bruno Haible  <bruno@clisp.org>
17727
17728         spawn-pipe tests: Fix link error.
17729         * tests/test-spawn-pipe-child.c: Undefine fflush.
17730
17731 2011-06-17  Bruno Haible  <bruno@clisp.org>
17732
17733         Fix tests link errors.
17734         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17735         * modules/chown-tests (Makefile.am): Don't link test-chown with
17736         LIBINTL.
17737         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17738         LIBINTL.
17739         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17740         LIBINTL.
17741         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17742         LIBINTL.
17743
17744 2011-06-16  Bruno Haible  <bruno@clisp.org>
17745
17746         crypto/gc-sha1: Fix recent regression.
17747         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17748         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17749
17750         crypto/gc-md5: Fix recent regression.
17751         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17752
17753         crypto/gc-md4: Fix recent regression.
17754         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17755         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17756
17757         crypto/gc-arctwo: Fix recent regression.
17758         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17759         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17760
17761         crypto/gc-rijndael: Fix recent regression.
17762         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17763         (configure.ac): Invoke AC_LIBOBJ here.
17764         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17766
17767         crypto/gc-hmac-sha1: Fix recent regression.
17768         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17769         (configure.ac): Invoke AC_LIBOBJ here.
17770         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17771         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17772
17773         crypto/gc-hmac-md5: Fix recent regression.
17774         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17775         (configure.ac): Invoke AC_LIBOBJ here.
17776         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17778
17779         crypto/gc-des: Fix recent regression.
17780         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17781         (configure.ac): Invoke AC_LIBOBJ here.
17782         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17784
17785         crypto/gc-arcfour: Fix recent regression.
17786         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17787         (configure.ac): Invoke AC_LIBOBJ here.
17788         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17790
17791 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17792
17793         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17794         After the 2011-05-21 change, this macro requires
17795         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17796         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17797
17798 2011-06-16  Bruno Haible  <bruno@clisp.org>
17799
17800         fprintftime: Move AC_LIBOBJ invocations to module description.
17801         * m4/fprintftime.m4: Remove file.
17802         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17803         (configure.ac): Remove gl_FPRINTFTIME call.
17804         (Makefile.am): Augment lib_SOURCES.
17805         Reported by Jim Meyering.
17806
17807 2011-06-16  Bruno Haible  <bruno@clisp.org>
17808
17809         tmpfile-safer: Finish 2011-05-23 commit.
17810         * m4/stdio-safer.m4: Really remove file.
17811         Reported by Jim Meyering.
17812
17813 2011-06-16  Bruno Haible  <bruno@clisp.org>
17814
17815         syntax-check: Fix typo.
17816         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17817         printf-posix.m4.
17818         Reported by Jim Meyering.
17819
17820 2011-06-13  Jim Meyering  <meyering@redhat.com>
17821
17822         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17823         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17824
17825 2011-05-23  Bruno Haible  <bruno@clisp.org>
17826
17827         yesno: Move AC_LIBOBJ invocations to module description.
17828         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17829         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17830
17831 2011-05-23  Bruno Haible  <bruno@clisp.org>
17832
17833         xstrtol: Move AC_LIBOBJ invocations to module description.
17834         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17835         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17836
17837 2011-05-23  Bruno Haible  <bruno@clisp.org>
17838
17839         xstrtold: Move AC_LIBOBJ invocations to module description.
17840         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17841         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17842
17843 2011-05-23  Bruno Haible  <bruno@clisp.org>
17844
17845         xstrtod: Move AC_LIBOBJ invocations to module description.
17846         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17847         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17848
17849 2011-05-23  Bruno Haible  <bruno@clisp.org>
17850
17851         xnanosleep: Move AC_LIBOBJ invocations to module description.
17852         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17853         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17854
17855 2011-05-23  Bruno Haible  <bruno@clisp.org>
17856
17857         xgetcwd: Move AC_LIBOBJ invocations to module description.
17858         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17859         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17860
17861 2011-05-23  Bruno Haible  <bruno@clisp.org>
17862
17863         xalloc: Move AC_LIBOBJ invocations to module description.
17864         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17865         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17866
17867 2011-05-23  Bruno Haible  <bruno@clisp.org>
17868
17869         write-any-file: Move AC_LIBOBJ invocations to module description.
17870         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17871         invocation.
17872         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17873
17874 2011-05-23  Bruno Haible  <bruno@clisp.org>
17875
17876         utimens: Move AC_LIBOBJ invocations to module description.
17877         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17878         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17879
17880 2011-05-23  Bruno Haible  <bruno@clisp.org>
17881
17882         utimecmp: Move AC_LIBOBJ invocations to module description.
17883         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17884         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17885
17886 2011-05-23  Bruno Haible  <bruno@clisp.org>
17887
17888         userspec: Move AC_LIBOBJ invocations to module description.
17889         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17890         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17891
17892 2011-05-23  Bruno Haible  <bruno@clisp.org>
17893
17894         unlinkdir: Move AC_LIBOBJ invocations to module description.
17895         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17896         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17897
17898 2011-05-23  Bruno Haible  <bruno@clisp.org>
17899
17900         unistd-safer: Move AC_LIBOBJ invocations to module description.
17901         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17902         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17903
17904 2011-05-23  Bruno Haible  <bruno@clisp.org>
17905
17906         tempname: Move AC_LIBOBJ invocations to module description.
17907         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17908         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17909
17910 2011-05-23  Bruno Haible  <bruno@clisp.org>
17911
17912         strftime: Move AC_LIBOBJ invocations to module description.
17913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17914         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17915
17916 2011-05-23  Bruno Haible  <bruno@clisp.org>
17917
17918         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17919         * m4/stdlib-safer.m4: Remove file.
17920         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17921         (configure.ac): Remove gl_STDLIB_SAFER call.
17922         (Makefile.am): Augment lib_SOURCES.
17923
17924 2011-05-23  Bruno Haible  <bruno@clisp.org>
17925
17926         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17927         * m4/stdio-safer.m4: Remove file.
17928         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17929         (configure.ac): Remove gl_TMPFILE_SAFER call.
17930         (Makefile.am): Augment lib_SOURCES.
17931
17932 2011-05-23  Bruno Haible  <bruno@clisp.org>
17933
17934         popen-safer: Move AC_LIBOBJ invocations to module description.
17935         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17936         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17937         (configure.ac): Remove gl_POPEN_SAFER call.
17938         (Makefile.am): Augment lib_SOURCES.
17939
17940 2011-05-23  Bruno Haible  <bruno@clisp.org>
17941
17942         freopen-safer: Move AC_LIBOBJ invocations to module description.
17943         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17944         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17945         (configure.ac): Remove gl_FREOPEN_SAFER call.
17946         (Makefile.am): Augment lib_SOURCES.
17947
17948 2011-05-23  Bruno Haible  <bruno@clisp.org>
17949
17950         fopen-safer: Move AC_LIBOBJ invocations to module description.
17951         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17952         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17953         (configure.ac): Remove gl_FOPEN_SAFER call.
17954         (Makefile.am): Augment lib_SOURCES.
17955
17956 2011-05-23  Bruno Haible  <bruno@clisp.org>
17957
17958         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17959         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17960         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17961
17962 2011-05-23  Bruno Haible  <bruno@clisp.org>
17963
17964         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17965         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17966         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17967
17968 2011-05-23  Bruno Haible  <bruno@clisp.org>
17969
17970         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17971         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17972         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17973
17974 2011-05-23  Bruno Haible  <bruno@clisp.org>
17975
17976         settime: Move AC_LIBOBJ invocations to module description.
17977         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17978         * modules/settime (Makefile.am): Augment lib_SOURCES.
17979
17980 2011-05-23  Bruno Haible  <bruno@clisp.org>
17981
17982         savedir: Move AC_LIBOBJ invocations to module description.
17983         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17984         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17985
17986 2011-05-23  Bruno Haible  <bruno@clisp.org>
17987
17988         save-cwd: Move AC_LIBOBJ invocations to module description.
17989         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17990         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17991
17992 2011-05-23  Bruno Haible  <bruno@clisp.org>
17993
17994         same: Move AC_LIBOBJ invocations to module description.
17995         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17996         * modules/same (Makefile.am): Augment lib_SOURCES.
17997
17998 2011-05-23  Bruno Haible  <bruno@clisp.org>
17999
18000         safe-write: Move AC_LIBOBJ invocations to module description.
18001         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18002         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18003         instead of gl_SAFE_WRITE.
18004         (Makefile.am): Augment lib_SOURCES.
18005
18006 2011-05-23  Bruno Haible  <bruno@clisp.org>
18007
18008         safe-read: Move AC_LIBOBJ invocations to module description.
18009         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18010         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18011         of gl_SAFE_READ.
18012         (Makefile.am): Augment lib_SOURCES.
18013
18014 2011-05-23  Bruno Haible  <bruno@clisp.org>
18015
18016         safe-alloc: Move AC_LIBOBJ invocations to module description.
18017         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18018         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18019
18020 2011-05-23  Bruno Haible  <bruno@clisp.org>
18021
18022         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18023         * m4/rijndael.m4: Remove file.
18024         * modules/crypto/rijndael (Files): Remove it.
18025         (configure.ac): Remove gl_RIJNDAEL call.
18026         (Makefile.am): Augment lib_SOURCES.
18027
18028 2011-05-23  Bruno Haible  <bruno@clisp.org>
18029
18030         readtokens: Move AC_LIBOBJ invocations to module description.
18031         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18032         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18033
18034 2011-05-23  Bruno Haible  <bruno@clisp.org>
18035
18036         read-file: Move AC_LIBOBJ invocations to module description.
18037         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18038         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18039         of gl_FUNC_READ_FILE.
18040         (Makefile.am): Augment lib_SOURCES.
18041
18042 2011-05-23  Bruno Haible  <bruno@clisp.org>
18043
18044         quotearg: Move AC_LIBOBJ invocations to module description.
18045         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18046         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18047
18048 2011-05-23  Bruno Haible  <bruno@clisp.org>
18049
18050         quote: Move AC_LIBOBJ invocations to module description.
18051         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18052         * modules/quote (Makefile.am): Augment lib_SOURCES.
18053
18054 2011-05-23  Bruno Haible  <bruno@clisp.org>
18055
18056         posixver: Move AC_LIBOBJ invocations to module description.
18057         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18058         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18059
18060 2011-05-23  Bruno Haible  <bruno@clisp.org>
18061
18062         posixtm: Move AC_LIBOBJ invocations to module description.
18063         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18064         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18065
18066 2011-05-23  Bruno Haible  <bruno@clisp.org>
18067
18068         physmem: Move AC_LIBOBJ invocations to module description.
18069         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18070         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18071
18072 2011-05-23  Bruno Haible  <bruno@clisp.org>
18073
18074         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18075         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18076         invocation.
18077         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18078
18079 2011-05-23  Bruno Haible  <bruno@clisp.org>
18080
18081         mpsort: Move AC_LIBOBJ invocations to module description.
18082         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18083         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18084
18085 2011-05-23  Bruno Haible  <bruno@clisp.org>
18086
18087         modechange: Move AC_LIBOBJ invocations to module description.
18088         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18089         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18090
18091 2011-05-23  Bruno Haible  <bruno@clisp.org>
18092
18093         mkdir-p: Move AC_LIBOBJ invocations to module description.
18094         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18095         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18096
18097 2011-05-23  Bruno Haible  <bruno@clisp.org>
18098
18099         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18100         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18101         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18102
18103 2011-05-23  Bruno Haible  <bruno@clisp.org>
18104
18105         mgetgroups: Move AC_LIBOBJ invocations to module description.
18106         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18107         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18108
18109 2011-05-23  Bruno Haible  <bruno@clisp.org>
18110
18111         memxor: Move AC_LIBOBJ invocations to module description.
18112         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18113         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18114
18115 2011-05-23  Bruno Haible  <bruno@clisp.org>
18116
18117         memcoll: Move AC_LIBOBJ invocations to module description.
18118         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18119         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18120
18121 2011-05-23  Bruno Haible  <bruno@clisp.org>
18122
18123         memcasecmp: Move AC_LIBOBJ invocations to module description.
18124         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18125         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18126
18127 2011-05-23  Bruno Haible  <bruno@clisp.org>
18128
18129         crypto/md5: Move AC_LIBOBJ invocations to module description.
18130         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18131         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18132
18133 2011-05-23  Bruno Haible  <bruno@clisp.org>
18134
18135         crypto/md4: Move AC_LIBOBJ invocations to module description.
18136         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18137         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18138
18139 2011-05-23  Bruno Haible  <bruno@clisp.org>
18140
18141         crypto/md2: Move AC_LIBOBJ invocations to module description.
18142         * m4/md2.m4: Remove file.
18143         * modules/crypto/md2 (Files): Remove it.
18144         (configure.ac): Remove gl_MD2 call.
18145         (Makefile.am): Augment lib_SOURCES.
18146
18147 2011-05-23  Bruno Haible  <bruno@clisp.org>
18148
18149         long-options: Move AC_LIBOBJ invocations to module description.
18150         * m4/long-options.m4: Remove file.
18151         * modules/long-options (Files): Remove it.
18152         (configure.ac): Remove gl_LONG_OPTIONS call.
18153         (Makefile.am): Augment lib_SOURCES.
18154
18155 2011-05-23  Bruno Haible  <bruno@clisp.org>
18156
18157         i-ring: Move AC_LIBOBJ invocations to module description.
18158         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18159         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18160
18161 2011-05-23  Bruno Haible  <bruno@clisp.org>
18162
18163         idcache: Move AC_LIBOBJ invocations to module description.
18164         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18165         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18166
18167 2011-05-23  Bruno Haible  <bruno@clisp.org>
18168
18169         human: Move AC_LIBOBJ invocations to module description.
18170         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18171         * modules/human (Makefile.am): Augment lib_SOURCES.
18172
18173 2011-05-23  Bruno Haible  <bruno@clisp.org>
18174
18175         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18176         * m4/hmac-sha1.m4: Remove file.
18177         * modules/crypto/hmac-sha1 (Files): Remove it.
18178         (configure.ac): Remove gl_HMAC_SHA1 call.
18179         (Makefile.am): Augment lib_SOURCES.
18180
18181 2011-05-23  Bruno Haible  <bruno@clisp.org>
18182
18183         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18184         * m4/hmac-md5.m4: Remove file.
18185         * modules/crypto/hmac-md5 (Files): Remove it.
18186         (configure.ac): Remove gl_HMAC_MD5 call.
18187         (Makefile.am): Augment lib_SOURCES.
18188
18189 2011-05-23  Bruno Haible  <bruno@clisp.org>
18190
18191         hash: Move AC_LIBOBJ invocations to module description.
18192         * m4/hash.m4: Remove file.
18193         * modules/hash (Files): Remove it.
18194         (configure.ac): Remove gl_HASH call.
18195         (Makefile.am): Augment lib_SOURCES.
18196
18197 2011-05-23  Bruno Haible  <bruno@clisp.org>
18198
18199         hard-locale: Move AC_LIBOBJ invocations to module description.
18200         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18201         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18202
18203 2011-05-23  Bruno Haible  <bruno@clisp.org>
18204
18205         getugroups: Move AC_LIBOBJ invocations to module description.
18206         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18207         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18208
18209 2011-05-23  Bruno Haible  <bruno@clisp.org>
18210
18211         gettime: Move AC_LIBOBJ invocations to module description.
18212         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18213         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18214
18215 2011-05-23  Bruno Haible  <bruno@clisp.org>
18216
18217         getndelim2: Move AC_LIBOBJ invocations to module description.
18218         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18219         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18220
18221 2011-05-23  Bruno Haible  <bruno@clisp.org>
18222
18223         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18224         * m4/gc-pbkdf2-sha1.m4: Remove file.
18225         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18226         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18227         (Makefile.am): Augment lib_SOURCES.
18228
18229 2011-05-23  Bruno Haible  <bruno@clisp.org>
18230
18231         fts: Move AC_LIBOBJ invocations to module description.
18232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18233         * modules/fts (configure.ac): ... to here.
18234
18235 2011-05-23  Bruno Haible  <bruno@clisp.org>
18236
18237         file-type: Move AC_LIBOBJ invocations to module description.
18238         * m4/file-type.m4: Remove file.
18239         * modules/file-type (Files): Remove it.
18240         (configure.ac): Remove gl_FILE_TYPE call.
18241         (Makefile.am): Augment lib_SOURCES.
18242
18243 2011-05-23  Bruno Haible  <bruno@clisp.org>
18244
18245         filenamecat*: Respect rules for use of AC_LIBOBJ.
18246         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18247         Remove AC_LIBOBJ invocation.
18248         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18249         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18250
18251 2011-05-23  Bruno Haible  <bruno@clisp.org>
18252
18253         filemode: Move AC_LIBOBJ invocations to module description.
18254         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18255         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18256
18257 2011-05-23  Bruno Haible  <bruno@clisp.org>
18258
18259         openat-safer: Move AC_LIBOBJ invocations to module description.
18260         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18261         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18262
18263 2011-05-23  Bruno Haible  <bruno@clisp.org>
18264
18265         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18266         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18267         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18268
18269 2011-05-23  Bruno Haible  <bruno@clisp.org>
18270
18271         exclude: Move AC_LIBOBJ invocations to module description.
18272         * m4/exclude.m4: Remove file.
18273         * modules/exclude (Files): Remove it.
18274         (configure.ac): Remove gl_EXCLUDE call.
18275         (Makefile.am): Augment lib_SOURCES.
18276
18277 2011-05-23  Bruno Haible  <bruno@clisp.org>
18278
18279         dirname*: Respect rules for use of AC_LIBOBJ.
18280         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18281         invocations.
18282         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18283         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18284
18285 2011-05-23  Bruno Haible  <bruno@clisp.org>
18286
18287         dirent-safer: Move AC_LIBOBJ invocations to module description.
18288         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18289         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18290
18291 2011-05-23  Bruno Haible  <bruno@clisp.org>
18292
18293         crypto/des: Move AC_LIBOBJ invocations to module description.
18294         * m4/des.m4: Remove file.
18295         * modules/crypto/des (Files): Remove it.
18296         (configure.ac): Remove gl_DES call.
18297         (Makefile.am): Augment lib_SOURCES.
18298
18299 2011-05-23  Bruno Haible  <bruno@clisp.org>
18300
18301         cycle-check: Move AC_LIBOBJ invocations to module description.
18302         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18303         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18304
18305 2011-05-23  Bruno Haible  <bruno@clisp.org>
18306
18307         c-strtold: Move AC_LIBOBJ invocations to module description.
18308         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18309         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18310
18311 2011-05-23  Bruno Haible  <bruno@clisp.org>
18312
18313         c-strtod: Move AC_LIBOBJ invocations to module description.
18314         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18315         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18316
18317 2011-05-23  Bruno Haible  <bruno@clisp.org>
18318
18319         crc: Move AC_LIBOBJ invocations to module description.
18320         * m4/crc.m4: Remove file.
18321         * modules/crc (Files): Remove it.
18322         (configure.ac): Remove gl_CRC call.
18323         (Makefile.am): Augment lib_SOURCES.
18324
18325 2011-05-23  Bruno Haible  <bruno@clisp.org>
18326
18327         close-stream: Move AC_LIBOBJ invocations to module description.
18328         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18329         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18330
18331 2011-05-23  Bruno Haible  <bruno@clisp.org>
18332
18333         closeout: Move AC_LIBOBJ invocations to module description.
18334         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18335         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18336
18337 2011-05-23  Bruno Haible  <bruno@clisp.org>
18338
18339         closein: Move AC_LIBOBJ invocations to module description.
18340         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18341         * modules/closein (Makefile.am): Augment lib_SOURCES.
18342
18343 2011-05-23  Bruno Haible  <bruno@clisp.org>
18344
18345         cloexec: Move AC_LIBOBJ invocations to module description.
18346         * m4/cloexec.m4: Remove file.
18347         * modules/cloexec (Files): Remove it.
18348         (configure.ac): Remove gl_CLOEXEC call.
18349         (Makefile.am): Augment lib_SOURCES.
18350
18351 2011-05-23  Bruno Haible  <bruno@clisp.org>
18352
18353         check-version: Move AC_LIBOBJ invocations to module description.
18354         * m4/check-version.m4: Remove file.
18355         * modules/check-version (Files): Remove it.
18356         (configure.ac): Remove gl_CHECK_VERSION call.
18357         (Makefile.am): Augment lib_SOURCES.
18358
18359 2011-05-23  Bruno Haible  <bruno@clisp.org>
18360
18361         chdir-safer: Move AC_LIBOBJ invocations to module description.
18362         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18363         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18364
18365 2011-05-23  Bruno Haible  <bruno@clisp.org>
18366
18367         canonicalize: Move AC_LIBOBJ invocations to module description.
18368         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18369         AC_LIBOBJ invocation.
18370         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18371
18372 2011-05-23  Bruno Haible  <bruno@clisp.org>
18373
18374         canon-host: Move AC_LIBOBJ invocations to module description.
18375         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18376         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18377         instead of gl_CANON_HOST.
18378         (Makefile.am): Augment lib_SOURCES.
18379
18380 2011-05-23  Bruno Haible  <bruno@clisp.org>
18381
18382         backupfile: Move AC_LIBOBJ invocations to module description.
18383         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18384         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18385
18386 2011-05-23  Bruno Haible  <bruno@clisp.org>
18387
18388         argmatch: Move AC_LIBOBJ invocations to module description.
18389         * m4/argmatch.m4: Remove file.
18390         * modules/argmatch (Files): Remove it.
18391         (configure.ac): Remove gl_ARGMATCH call.
18392         (Makefile.am): Augment lib_SOURCES.
18393
18394 2011-05-23  Bruno Haible  <bruno@clisp.org>
18395
18396         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18397         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18398         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18399
18400 2011-05-23  Bruno Haible  <bruno@clisp.org>
18401
18402         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18403         * m4/arcfour.m4: Remove file.
18404         * modules/crypto/arcfour (Files): Remove it.
18405         (configure.ac): Remove gl_ARCFOUR call.
18406         (Makefile.am): Augment lib_SOURCES.
18407
18408 2011-05-22  Bruno Haible  <bruno@clisp.org>
18409
18410         write: Move AC_LIBOBJ invocations to module description.
18411         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18412         * modules/write (configure.ac): ... to here.
18413
18414 2011-05-22  Bruno Haible  <bruno@clisp.org>
18415
18416         wmemset: Move AC_LIBOBJ invocations to module description.
18417         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18418         here...
18419         * modules/wmemset (configure.ac): ... to here.
18420
18421 2011-05-22  Bruno Haible  <bruno@clisp.org>
18422
18423         wmemmove: Move AC_LIBOBJ invocations to module description.
18424         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18425         here...
18426         * modules/wmemmove (configure.ac): ... to here.
18427
18428 2011-05-22  Bruno Haible  <bruno@clisp.org>
18429
18430         wmemcpy: Move AC_LIBOBJ invocations to module description.
18431         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18432         here...
18433         * modules/wmemcpy (configure.ac): ... to here.
18434
18435 2011-05-22  Bruno Haible  <bruno@clisp.org>
18436
18437         wmemcmp: Move AC_LIBOBJ invocations to module description.
18438         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18439         here...
18440         * modules/wmemcmp (configure.ac): ... to here.
18441
18442 2011-05-22  Bruno Haible  <bruno@clisp.org>
18443
18444         wmemchr: Move AC_LIBOBJ invocations to module description.
18445         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18446         here...
18447         * modules/wmemchr (configure.ac): ... to here.
18448
18449 2011-05-22  Bruno Haible  <bruno@clisp.org>
18450
18451         wcswidth: Move AC_LIBOBJ invocations to module description.
18452         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18453         here...
18454         * modules/wcswidth (configure.ac): ... to here.
18455
18456 2011-05-22  Bruno Haible  <bruno@clisp.org>
18457
18458         wcwidth: Respect rules for use of AC_LIBOBJ.
18459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18460         invocation from here...
18461         * modules/wcwidth (configure.ac): ... to here.
18462         (Depends-on): Update conditions.
18463
18464 2011-05-22  Bruno Haible  <bruno@clisp.org>
18465
18466         wctype: Move AC_LIBOBJ invocations to module description.
18467         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18468         invocation from here...
18469         * modules/wctype (configure.ac): ... to here.
18470         (Depends-on): Update conditions.
18471
18472 2011-05-22  Bruno Haible  <bruno@clisp.org>
18473
18474         wctrans: Move AC_LIBOBJ invocations to module description.
18475         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18476         invocation from here...
18477         * modules/wctrans (configure.ac): ... to here.
18478
18479 2011-05-22  Bruno Haible  <bruno@clisp.org>
18480
18481         wctomb: Move AC_LIBOBJ invocations to module description.
18482         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18483         invocations from here...
18484         * modules/wctomb (configure.ac): ... to here.
18485
18486 2011-05-22  Bruno Haible  <bruno@clisp.org>
18487
18488         wctob: Move AC_LIBOBJ invocations to module description.
18489         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18490         gl_PREREQ_WCTOB invocations from here...
18491         * modules/wctob (configure.ac): ... to here.
18492         (Depends-on): Update conditions.
18493
18494 2011-05-22  Bruno Haible  <bruno@clisp.org>
18495
18496         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18497         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18498         here...
18499         * modules/wcsxfrm (configure.ac): ... to here.
18500
18501 2011-05-22  Bruno Haible  <bruno@clisp.org>
18502
18503         wcstok: Move AC_LIBOBJ invocations to module description.
18504         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18505         * modules/wcstok (configure.ac): ... to here.
18506
18507 2011-05-22  Bruno Haible  <bruno@clisp.org>
18508
18509         wcsstr: Move AC_LIBOBJ invocations to module description.
18510         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18511         * modules/wcsstr (configure.ac): ... to here.
18512
18513 2011-05-22  Bruno Haible  <bruno@clisp.org>
18514
18515         wcsspn: Move AC_LIBOBJ invocations to module description.
18516         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18517         * modules/wcsspn (configure.ac): ... to here.
18518
18519 2011-05-22  Bruno Haible  <bruno@clisp.org>
18520
18521         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18522         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18523         gl_PREREQ_WCSRTOMBS invocations from here...
18524         * modules/wcsrtombs (configure.ac): ... to here.
18525
18526 2011-05-22  Bruno Haible  <bruno@clisp.org>
18527
18528         wcsrchr: Move AC_LIBOBJ invocations to module description.
18529         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18530         here...
18531         * modules/wcsrchr (configure.ac): ... to here.
18532
18533 2011-05-22  Bruno Haible  <bruno@clisp.org>
18534
18535         wcspbrk: Move AC_LIBOBJ invocations to module description.
18536         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18537         here...
18538         * modules/wcspbrk (configure.ac): ... to here.
18539
18540 2011-05-22  Bruno Haible  <bruno@clisp.org>
18541
18542         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18543         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18544         gl_PREREQ_WCSNRTOMBS invocations from here...
18545         * modules/wcsnrtombs (configure.ac): ... to here.
18546
18547 2011-05-22  Bruno Haible  <bruno@clisp.org>
18548
18549         wcsnlen: Move AC_LIBOBJ invocations to module description.
18550         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18551         here...
18552         * modules/wcsnlen (configure.ac): ... to here.
18553
18554 2011-05-22  Bruno Haible  <bruno@clisp.org>
18555
18556         wcsncpy: Move AC_LIBOBJ invocations to module description.
18557         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18558         here...
18559         * modules/wcsncpy (configure.ac): ... to here.
18560
18561 2011-05-22  Bruno Haible  <bruno@clisp.org>
18562
18563         wcsncmp: Move AC_LIBOBJ invocations to module description.
18564         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18565         here...
18566         * modules/wcsncmp (configure.ac): ... to here.
18567
18568 2011-05-22  Bruno Haible  <bruno@clisp.org>
18569
18570         wcsncat: Move AC_LIBOBJ invocations to module description.
18571         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18572         here...
18573         * modules/wcsncat (configure.ac): ... to here.
18574
18575 2011-05-22  Bruno Haible  <bruno@clisp.org>
18576
18577         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18578         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18579         from here...
18580         * modules/wcsncasecmp (configure.ac): ... to here.
18581
18582 2011-05-22  Bruno Haible  <bruno@clisp.org>
18583
18584         wcslen: Move AC_LIBOBJ invocations to module description.
18585         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18586         * modules/wcslen (configure.ac): ... to here.
18587
18588 2011-05-22  Bruno Haible  <bruno@clisp.org>
18589
18590         wcsdup: Move AC_LIBOBJ invocations to module description.
18591         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18592         * modules/wcsdup (configure.ac): ... to here.
18593
18594 2011-05-22  Bruno Haible  <bruno@clisp.org>
18595
18596         wcscspn: Move AC_LIBOBJ invocations to module description.
18597         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18598         here...
18599         * modules/wcscspn (configure.ac): ... to here.
18600
18601 2011-05-22  Bruno Haible  <bruno@clisp.org>
18602
18603         wcscpy: Move AC_LIBOBJ invocations to module description.
18604         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18605         * modules/wcscpy (configure.ac): ... to here.
18606
18607 2011-05-22  Bruno Haible  <bruno@clisp.org>
18608
18609         wcscoll: Move AC_LIBOBJ invocations to module description.
18610         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18611         here...
18612         * modules/wcscoll (configure.ac): ... to here.
18613
18614 2011-05-22  Bruno Haible  <bruno@clisp.org>
18615
18616         wcscmp: Move AC_LIBOBJ invocations to module description.
18617         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18618         * modules/wcscmp (configure.ac): ... to here.
18619
18620 2011-05-22  Bruno Haible  <bruno@clisp.org>
18621
18622         wcschr: Move AC_LIBOBJ invocations to module description.
18623         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18624         * modules/wcschr (configure.ac): ... to here.
18625
18626 2011-05-22  Bruno Haible  <bruno@clisp.org>
18627
18628         wcscat: Move AC_LIBOBJ invocations to module description.
18629         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18630         * modules/wcscat (configure.ac): ... to here.
18631
18632 2011-05-22  Bruno Haible  <bruno@clisp.org>
18633
18634         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18635         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18636         here...
18637         * modules/wcscasecmp (configure.ac): ... to here.
18638
18639 2011-05-22  Bruno Haible  <bruno@clisp.org>
18640
18641         wcrtomb: Move AC_LIBOBJ invocations to module description.
18642         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18643         invocations from here...
18644         * modules/wcrtomb (configure.ac): ... to here.
18645
18646 2011-05-22  Bruno Haible  <bruno@clisp.org>
18647
18648         wcpncpy: Move AC_LIBOBJ invocations to module description.
18649         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18650         here...
18651         * modules/wcpncpy (configure.ac): ... to here.
18652
18653 2011-05-22  Bruno Haible  <bruno@clisp.org>
18654
18655         wcpcpy: Move AC_LIBOBJ invocations to module description.
18656         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18657         * modules/wcpcpy (configure.ac): ... to here.
18658
18659 2011-05-22  Bruno Haible  <bruno@clisp.org>
18660
18661         waitpid: Move AC_LIBOBJ invocations to module description.
18662         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18663         invocation from here...
18664         * modules/waitpid (configure.ac): ... to here.
18665
18666 2011-05-22  Bruno Haible  <bruno@clisp.org>
18667
18668         utimensat: Move AC_LIBOBJ invocations to module description.
18669         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18670         here...
18671         * modules/utimensat (configure.ac): ... to here.
18672
18673 2011-05-22  Bruno Haible  <bruno@clisp.org>
18674
18675         usleep: Move AC_LIBOBJ invocations to module description.
18676         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18677         here...
18678         * modules/usleep (configure.ac): ... to here.
18679
18680 2011-05-22  Bruno Haible  <bruno@clisp.org>
18681
18682         unlockpt: Move AC_LIBOBJ invocations to module description.
18683         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18684         gl_PREREQ_UNLOCKPT invocations from here...
18685         * modules/unlockpt (configure.ac): ... to here.
18686
18687 2011-05-22  Bruno Haible  <bruno@clisp.org>
18688
18689         unlink: Respect rules for use of AC_LIBOBJ.
18690         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18691         * modules/unlink (configure.ac): ... to here.
18692
18693 2011-05-22  Bruno Haible  <bruno@clisp.org>
18694
18695         uname: Move AC_LIBOBJ invocations to module description.
18696         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18697         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18698         here...
18699         * modules/uname (configure.ac): ... to here.
18700
18701 2011-05-22  Bruno Haible  <bruno@clisp.org>
18702
18703         ttyname_r: Move AC_LIBOBJ invocations to module description.
18704         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18705         gl_PREREQ_TTYNAME_R invocations from here...
18706         * modules/ttyname_r (configure.ac): ... to here.
18707
18708 2011-05-22  Bruno Haible  <bruno@clisp.org>
18709
18710         tsearch: Move AC_LIBOBJ invocations to module description.
18711         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18712         invocations from here...
18713         * modules/tsearch (configure.ac): ... to here.
18714
18715 2011-05-22  Bruno Haible  <bruno@clisp.org>
18716
18717         towctrans: Move AC_LIBOBJ invocations to module description.
18718         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18719         AC_LIBOBJ invocation from here...
18720         * modules/towctrans (configure.ac): ... to here.
18721
18722 2011-05-22  Bruno Haible  <bruno@clisp.org>
18723
18724         tmpfile: Move AC_LIBOBJ invocations to module description.
18725         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18726         invocations from here...
18727         * modules/tmpfile (configure.ac): ... to here.
18728
18729 2011-05-22  Bruno Haible  <bruno@clisp.org>
18730
18731         times: Move AC_LIBOBJ invocations to module description.
18732         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18733         * modules/times (configure.ac): ... to here.
18734
18735 2011-05-22  Bruno Haible  <bruno@clisp.org>
18736
18737         time_r: Move AC_LIBOBJ invocations to module description.
18738         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18739         invocations from here...
18740         * modules/time_r (configure.ac): ... to here.
18741
18742 2011-05-22  Bruno Haible  <bruno@clisp.org>
18743
18744         timegm: Move AC_LIBOBJ invocations to module description.
18745         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18746         invocations from here...
18747         * modules/timegm (configure.ac): ... to here.
18748
18749 2011-05-22  Bruno Haible  <bruno@clisp.org>
18750
18751         tcgetsid: Move AC_LIBOBJ invocations to module description.
18752         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18753         and gl_PREREQ_TCGETSID invocations from here...
18754         * modules/tcgetsid (configure.ac): ... to here.
18755         (Depends-on): Update conditions.
18756
18757 2011-05-22  Bruno Haible  <bruno@clisp.org>
18758
18759         symlinkat: Move AC_LIBOBJ invocations to module description.
18760         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18761         here...
18762         * modules/symlinkat (configure.ac): ... to here.
18763
18764 2011-05-22  Bruno Haible  <bruno@clisp.org>
18765
18766         symlink: Move AC_LIBOBJ invocations to module description.
18767         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18768         here...
18769         * modules/symlink (configure.ac): ... to here.
18770
18771 2011-05-22  Bruno Haible  <bruno@clisp.org>
18772
18773         strverscmp: Move AC_LIBOBJ invocations to module description.
18774         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18775         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18776         from here...
18777         * modules/strverscmp (configure.ac): ... to here.
18778
18779 2011-05-22  Bruno Haible  <bruno@clisp.org>
18780
18781         strtok_r: Move AC_LIBOBJ invocations to module description.
18782         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18783         and gl_PREREQ_STRTOK_R invocations from here...
18784         * modules/strtok_r (configure.ac): ... to here.
18785         (Depends-on): Update conditions.
18786
18787 2011-05-22  Bruno Haible  <bruno@clisp.org>
18788
18789         strtoumax: Move AC_LIBOBJ invocations to module description.
18790         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18792         from here...
18793         * modules/strtoumax (configure.ac): ... to here.
18794
18795 2011-05-22  Bruno Haible  <bruno@clisp.org>
18796
18797         strtoimax: Move AC_LIBOBJ invocations to module description.
18798         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18799         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18800         from here...
18801         * modules/strtoimax (configure.ac): ... to here.
18802
18803 2011-05-22  Bruno Haible  <bruno@clisp.org>
18804
18805         strtoull: Move AC_LIBOBJ invocations to module description.
18806         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18807         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18808         from here...
18809         * modules/strtoull (configure.ac): ... to here.
18810
18811 2011-05-22  Bruno Haible  <bruno@clisp.org>
18812
18813         strtoll: Move AC_LIBOBJ invocations to module description.
18814         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18815         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18816         here...
18817         * modules/strtoll (configure.ac): ... to here.
18818
18819 2011-05-22  Bruno Haible  <bruno@clisp.org>
18820
18821         strtoul: Move AC_LIBOBJ invocations to module description.
18822         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18823         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18824         * modules/strtoul (configure.ac): ... to here.
18825
18826 2011-05-22  Bruno Haible  <bruno@clisp.org>
18827
18828         strtol: Move AC_LIBOBJ invocations to module description.
18829         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18830         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18831         * modules/strtol (configure.ac): ... to here.
18832
18833 2011-05-22  Bruno Haible  <bruno@clisp.org>
18834
18835         strtod: Move AC_LIBOBJ invocations to module description.
18836         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18837         invocations from here...
18838         * modules/strtod (configure.ac): ... to here.
18839
18840 2011-05-22  Bruno Haible  <bruno@clisp.org>
18841
18842         strstr*: Move AC_LIBOBJ invocations to module description.
18843         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18844         invocations from here...
18845         * modules/strstr-simple (configure.ac): ... to here.
18846         * modules/strstr (configure.ac): ... and here.
18847
18848 2011-05-22  Bruno Haible  <bruno@clisp.org>
18849
18850         strsignal: Move AC_LIBOBJ invocations to module description.
18851         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18852         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18853         * modules/strsignal (configure.ac): ... to here.
18854         (Depends-on): Update conditions.
18855
18856 2011-05-22  Bruno Haible  <bruno@clisp.org>
18857
18858         strsep: Move AC_LIBOBJ invocations to module description.
18859         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18861         here...
18862         * modules/strsep (configure.ac): ... to here.
18863
18864 2011-05-22  Bruno Haible  <bruno@clisp.org>
18865
18866         strptime: Move AC_LIBOBJ invocations to module description.
18867         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18868         gl_PREREQ_STRPTIME invocations from here...
18869         * modules/strptime (configure.ac): ... to here.
18870
18871 2011-05-22  Bruno Haible  <bruno@clisp.org>
18872
18873         strpbrk: Move AC_LIBOBJ invocations to module description.
18874         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18875         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18876         here...
18877         * modules/strpbrk (configure.ac): ... to here.
18878
18879 2011-05-22  Bruno Haible  <bruno@clisp.org>
18880
18881         strnlen: Move AC_LIBOBJ invocations to module description.
18882         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18883         invocations from here...
18884         * modules/strnlen (configure.ac): ... to here.
18885
18886 2011-05-22  Bruno Haible  <bruno@clisp.org>
18887
18888         strndup: Move AC_LIBOBJ invocations to module description.
18889         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18890         invocations from here...
18891         * modules/strndup (configure.ac): ... to here.
18892         (Depends-on): Update conditions.
18893
18894 2011-05-22  Bruno Haible  <bruno@clisp.org>
18895
18896         strncat: Move AC_LIBOBJ invocations to module description.
18897         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18898         invocations from here...
18899         * modules/strncat (configure.ac): ... to here.
18900
18901 2011-05-22  Bruno Haible  <bruno@clisp.org>
18902
18903         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18904         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18905         invocations from here...
18906         * modules/strdup (configure.ac): ... to here.
18907         * modules/strdup-posix (configure.ac): ... and here.
18908
18909 2011-05-22  Bruno Haible  <bruno@clisp.org>
18910
18911         strcspn: Move AC_LIBOBJ invocations to module description.
18912         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18914         here...
18915         * modules/strcspn (configure.ac): ... to here.
18916
18917 2011-05-22  Bruno Haible  <bruno@clisp.org>
18918
18919         strchrnul: Move AC_LIBOBJ invocations to module description.
18920         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18921         gl_PREREQ_STRCHRNUL invocations from here...
18922         * modules/strchrnul (configure.ac): ... to here.
18923
18924 2011-05-22  Bruno Haible  <bruno@clisp.org>
18925
18926         strcasestr*: Move AC_LIBOBJ invocations to module description.
18927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18928         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18929         * modules/strcasestr-simple (configure.ac): ... to here.
18930         * modules/strcasestr (configure.ac): ... and here.
18931
18932 2011-05-22  Bruno Haible  <bruno@clisp.org>
18933
18934         strcase: Move AC_LIBOBJ invocations to module description.
18935         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18936         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18937         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18938         gl_PREREQ_STRNCASECMP invocations from here...
18939         * modules/strcase (configure.ac): ... to here.
18940
18941 2011-05-22  Bruno Haible  <bruno@clisp.org>
18942
18943         stpncpy: Move AC_LIBOBJ invocations to module description.
18944         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18945         here...
18946         * modules/stpncpy (configure.ac): ... to here.
18947
18948 2011-05-22  Bruno Haible  <bruno@clisp.org>
18949
18950         stpcpy: Move AC_LIBOBJ invocations to module description.
18951         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18952         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18953         here...
18954         * modules/stpcpy (configure.ac): ... to here.
18955
18956 2011-05-21  Bruno Haible  <bruno@clisp.org>
18957
18958         stat: Move AC_LIBOBJ invocations to module description.
18959         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18960         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18961         here...
18962         * modules/stat (configure.ac): ... to here.
18963
18964 2011-05-21  Bruno Haible  <bruno@clisp.org>
18965
18966         sleep: Move AC_LIBOBJ invocations to module description.
18967         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18968         * modules/sleep (configure.ac): ... to here.
18969
18970 2011-05-21  Bruno Haible  <bruno@clisp.org>
18971
18972         signbit: Move AC_LIBOBJ invocations to module description.
18973         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18974         * modules/signbit (configure.ac): ... to here.
18975
18976 2011-05-21  Bruno Haible  <bruno@clisp.org>
18977
18978         sigprocmask: Move AC_LIBOBJ invocations to module description.
18979         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18980         gl_PREREQ_SIGPROMASK invocations from here...
18981         * modules/sigprocmask (configure.ac): ... to here.
18982
18983 2011-05-21  Bruno Haible  <bruno@clisp.org>
18984
18985         sigaction: Move AC_LIBOBJ invocations to module description.
18986         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18987         gl_PREREQ_SIGACTION invocations from here...
18988         * modules/sigaction (configure.ac): ... to here.
18989
18990 2011-05-21  Bruno Haible  <bruno@clisp.org>
18991
18992         sig2str: Move AC_LIBOBJ invocations to module description.
18993         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18995         here...
18996         * modules/sig2str (configure.ac): ... to here.
18997
18998 2011-05-21  Bruno Haible  <bruno@clisp.org>
18999
19000         setlocale: Move AC_LIBOBJ invocations to module description.
19001         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19002         gl_PREREQ_SETLOCALE invocations from here...
19003         * modules/setlocale (configure.ac): ... to here.
19004
19005 2011-05-21  Bruno Haible  <bruno@clisp.org>
19006
19007         unsetenv: Move AC_LIBOBJ invocations to module description.
19008         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19009         and gl_PREREQ_UNSETENV invocations from here...
19010         * modules/unsetenv (configure.ac): ... to here.
19011         (Depends-on): Update.
19012
19013 2011-05-21  Bruno Haible  <bruno@clisp.org>
19014
19015         setenv: Move AC_LIBOBJ invocations to module description.
19016         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19017         here...
19018         * modules/setenv (configure.ac): ... to here.
19019
19020 2011-05-21  Bruno Haible  <bruno@clisp.org>
19021
19022         selinux-h: Move AC_LIBOBJ invocations to module description.
19023         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19024         AC_LIBOBJ invocation from here...
19025         * modules/selinux-h (configure.ac): ... to here.
19026
19027 2011-05-21  Bruno Haible  <bruno@clisp.org>
19028
19029         select: Respect rules for use of AC_LIBOBJ.
19030         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19031         here...
19032         * modules/select (configure.ac): ... to here.
19033
19034 2011-05-21  Bruno Haible  <bruno@clisp.org>
19035
19036         scandir: Move AC_LIBOBJ invocations to module description.
19037         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19038         invocations from here...
19039         * modules/scandir (configure.ac): ... to here.
19040
19041 2011-05-21  Bruno Haible  <bruno@clisp.org>
19042
19043         rpmatch: Move AC_LIBOBJ invocations to module description.
19044         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19046         here...
19047         * modules/rpmatch (configure.ac): ... to here.
19048
19049 2011-05-21  Bruno Haible  <bruno@clisp.org>
19050
19051         rmdir: Respect rules for use of AC_LIBOBJ.
19052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19053         * modules/rmdir (configure.ac): ... to here.
19054
19055 2011-05-21  Bruno Haible  <bruno@clisp.org>
19056
19057         renameat: Move AC_LIBOBJ invocations to module description.
19058         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19059         here...
19060         * modules/renameat (configure.ac): ... to here.
19061
19062 2011-05-21  Bruno Haible  <bruno@clisp.org>
19063
19064         rename: Respect rules for use of AC_LIBOBJ.
19065         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19066         here...
19067         * modules/rename (configure.ac): ... to here.
19068
19069 2011-05-21  Bruno Haible  <bruno@clisp.org>
19070
19071         remove: Move AC_LIBOBJ invocations to module description.
19072         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19073         here...
19074         * modules/remove (configure.ac): ... to here.
19075
19076 2011-05-21  Bruno Haible  <bruno@clisp.org>
19077
19078         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19079         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19080         macro.
19081         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19082         * modules/relocatable-lib (configure.ac): ... to here.
19083         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19084         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19085
19086 2011-05-21  Bruno Haible  <bruno@clisp.org>
19087
19088         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19089         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19090         here...
19091         * modules/relocatable-prog (configure.ac): ... to here.
19092
19093 2011-05-21  Bruno Haible  <bruno@clisp.org>
19094
19095         regex: Move AC_LIBOBJ invocations to module description.
19096         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19097         invocations from here...
19098         * modules/regex (configure.ac): ... to here.
19099
19100 2011-05-21  Bruno Haible  <bruno@clisp.org>
19101
19102         realloc-*: Move AC_LIBOBJ invocations to module description.
19103         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19104         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19105         AC_LIBOBJ invocations from here...
19106         * modules/realloc-gnu (configure.ac): ... to here.
19107         * modules/realloc-posix (configure.ac): ... and here.
19108
19109 2011-05-21  Bruno Haible  <bruno@clisp.org>
19110
19111         readutmp: Move AC_LIBOBJ invocations to module description.
19112         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19113         * modules/readutmp (configure.ac): ... to here.
19114
19115 2011-05-21  Bruno Haible  <bruno@clisp.org>
19116
19117         readlinkat: Move AC_LIBOBJ invocations to module description.
19118         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19119         here...
19120         * modules/readlinkat (configure.ac): ... to here.
19121
19122 2011-05-21  Bruno Haible  <bruno@clisp.org>
19123
19124         readlink: Move AC_LIBOBJ invocations to module description.
19125         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19126         gl_PREREQ_READLINK invocations from here...
19127         * modules/readlink (configure.ac): ... to here.
19128
19129 2011-05-21  Bruno Haible  <bruno@clisp.org>
19130
19131         readline: Move AC_LIBOBJ invocations to module description.
19132         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19133         gl_PREREQ_READLINE invocations from here...
19134         * modules/readline (configure.ac): ... to here.
19135
19136 2011-05-21  Bruno Haible  <bruno@clisp.org>
19137
19138         read: Move AC_LIBOBJ invocations to module description.
19139         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19140         * modules/read (configure.ac): ... to here.
19141
19142 2011-05-21  Bruno Haible  <bruno@clisp.org>
19143
19144         rawmemchr: Move AC_LIBOBJ invocations to module description.
19145         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19147         from here...
19148         * modules/rawmemchr (configure.ac): ... to here.
19149
19150 2011-05-21  Bruno Haible  <bruno@clisp.org>
19151
19152         random_r: Move AC_LIBOBJ invocations to module description.
19153         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19154         gl_PREREQ_RANDOM_R invocations from here...
19155         * modules/random_r (configure.ac): ... to here.
19156
19157 2011-05-21  Bruno Haible  <bruno@clisp.org>
19158
19159         pwrite: Move AC_LIBOBJ invocations to module description.
19160         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19161         * modules/pwrite (configure.ac): ... to here.
19162
19163 2011-05-21  Bruno Haible  <bruno@clisp.org>
19164
19165         putenv: Move AC_LIBOBJ invocations to module description.
19166         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19167         * modules/putenv (configure.ac): ... to here.
19168
19169 2011-05-21  Bruno Haible  <bruno@clisp.org>
19170
19171         login_tty: Move AC_LIBOBJ invocations to module description.
19172         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19173         * modules/login_tty (configure.ac): ... to here.
19174
19175 2011-05-21  Bruno Haible  <bruno@clisp.org>
19176
19177         openpty: Move AC_LIBOBJ invocations to module description.
19178         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19179         * modules/openpty (configure.ac): ... to here.
19180
19181 2011-05-21  Bruno Haible  <bruno@clisp.org>
19182
19183         forkpty: Move AC_LIBOBJ invocations to module description.
19184         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19185         * modules/forkpty (configure.ac): ... to here.
19186
19187 2011-05-21  Bruno Haible  <bruno@clisp.org>
19188
19189         ptsname: Move AC_LIBOBJ invocations to module description.
19190         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19191         invocations from here...
19192         * modules/ptsname (configure.ac): ... to here.
19193
19194 2011-05-21  Bruno Haible  <bruno@clisp.org>
19195
19196         pread: Move AC_LIBOBJ invocations to module description.
19197         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19198         * modules/pread (configure.ac): ... to here.
19199
19200 2011-05-21  Bruno Haible  <bruno@clisp.org>
19201
19202         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19203         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19204         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19205         * modules/posix_spawn (configure.ac): ... to here.
19206         * modules/posix_spawnp (configure.ac): ... and here.
19207
19208 2011-05-21  Bruno Haible  <bruno@clisp.org>
19209
19210         popen: Move AC_LIBOBJ invocations to module description.
19211         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19212         invocations from here...
19213         * modules/popen (configure.ac): ... to here.
19214
19215 2011-05-21  Bruno Haible  <bruno@clisp.org>
19216
19217         poll: Move AC_LIBOBJ invocations to module description.
19218         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19219         invocations from here...
19220         * modules/poll (configure.ac): ... to here.
19221
19222 2011-05-21  Bruno Haible  <bruno@clisp.org>
19223
19224         pipe-posix: Move AC_LIBOBJ invocations to module description.
19225         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19226         * modules/pipe-posix (configure.ac): ... to here.
19227
19228 2011-05-21  Bruno Haible  <bruno@clisp.org>
19229
19230         openat: Respect rules for use of AC_LIBOBJ.
19231         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19232         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19233         * modules/openat (configure.ac): ... to here.
19234
19235 2011-05-21  Bruno Haible  <bruno@clisp.org>
19236
19237         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19238         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19239         invocation from here...
19240         * modules/obstack-printf (configure.ac): ... to here.
19241         * modules/obstack-printf-posix (configure.ac): ... and here.
19242
19243 2011-05-21  Bruno Haible  <bruno@clisp.org>
19244
19245         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19246         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19247         from here...
19248         * modules/nl_langinfo (configure.ac): ... to here.
19249
19250 2011-05-21  Bruno Haible  <bruno@clisp.org>
19251
19252         nanosleep: Move AC_LIBOBJ invocations to module description.
19253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19254         gl_PREREQ_NANOSLEEP invocations from here...
19255         * modules/nanosleep (configure.ac): ... to here.
19256
19257 2011-05-21  Bruno Haible  <bruno@clisp.org>
19258
19259         mountlist: Move AC_LIBOBJ invocations to module description.
19260         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19261         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19262         * modules/mountlist (configure.ac): ... to here.
19263
19264 2011-05-21  Bruno Haible  <bruno@clisp.org>
19265
19266         mktime: Respect rules for use of AC_LIBOBJ.
19267         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19268         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19269         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19270         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19271         * modules/mktime (configure.ac): ... to here.
19272         * modules/mktime-internal (configure.ac): ... and here.
19273         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19274
19275 2011-05-21  Bruno Haible  <bruno@clisp.org>
19276
19277         mkstemps: Move AC_LIBOBJ invocations to module description.
19278         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19279         here...
19280         * modules/mkstemps (configure.ac): ... to here.
19281
19282 2011-05-21  Bruno Haible  <bruno@clisp.org>
19283
19284         mkstemp: Move AC_LIBOBJ invocations to module description.
19285         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19286         gl_PREREQ_MKSTEMP invocations from here...
19287         * modules/mkstemp (configure.ac): ... to here.
19288
19289 2011-05-21  Bruno Haible  <bruno@clisp.org>
19290
19291         mkostemps: Move AC_LIBOBJ invocations to module description.
19292         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19293         here...
19294         * modules/mkostemps (configure.ac): ... to here.
19295
19296 2011-05-21  Bruno Haible  <bruno@clisp.org>
19297
19298         mkostemp: Move AC_LIBOBJ invocations to module description.
19299         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19300         gl_PREREQ_MKOSTEMP invocations from here...
19301         * modules/mkostemp (configure.ac): ... to here.
19302
19303 2011-05-21  Bruno Haible  <bruno@clisp.org>
19304
19305         mknod: Move AC_LIBOBJ invocations to module description.
19306         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19307         * modules/mknod (configure.ac): ... to here.
19308
19309 2011-05-21  Bruno Haible  <bruno@clisp.org>
19310
19311         mkfifoat: Move AC_LIBOBJ invocations to module description.
19312         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19313         here...
19314         * modules/mkfifoat (configure.ac): ... to here.
19315
19316 2011-05-21  Bruno Haible  <bruno@clisp.org>
19317
19318         mkfifo: Respect rules for use of AC_LIBOBJ.
19319         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19320         here...
19321         * modules/mkfifo (configure.ac): ... to here.
19322
19323 2011-05-21  Bruno Haible  <bruno@clisp.org>
19324
19325         mkdtemp: Move AC_LIBOBJ invocations to module description.
19326         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19327         invocations from here...
19328         * modules/mkdtemp (configure.ac): ... to here.
19329
19330 2011-05-21  Bruno Haible  <bruno@clisp.org>
19331
19332         mkdir: Move AC_LIBOBJ invocations to module description.
19333         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19334         * modules/mkdir (configure.ac): ... to here.
19335
19336 2011-05-21  Bruno Haible  <bruno@clisp.org>
19337
19338         memset: Move AC_LIBOBJ invocations to module description.
19339         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19340         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19341         here...
19342         * modules/memset (configure.ac): ... to here.
19343
19344 2011-05-21  Bruno Haible  <bruno@clisp.org>
19345
19346         memrchr: Move AC_LIBOBJ invocations to module description.
19347         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19349         here...
19350         * modules/memrchr (configure.ac): ... to here.
19351
19352 2011-05-21  Bruno Haible  <bruno@clisp.org>
19353
19354         mempcpy: Move AC_LIBOBJ invocations to module description.
19355         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19356         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19357         here...
19358         * modules/mempcpy (configure.ac): ... to here.
19359
19360 2011-05-21  Bruno Haible  <bruno@clisp.org>
19361
19362         memmove: Move AC_LIBOBJ invocations to module description.
19363         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19364         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19365         here...
19366         * modules/memmove (configure.ac): ... to here.
19367
19368 2011-05-21  Bruno Haible  <bruno@clisp.org>
19369
19370         memmem*: Move AC_LIBOBJ invocations to module description.
19371         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19372         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19373         here...
19374         (gl_FUNC_MEMMEM): ... and here...
19375         * modules/memmem-simple (configure.ac): ... to here.
19376         * modules/memmem (configure.ac): ... and here.
19377
19378 2011-05-21  Bruno Haible  <bruno@clisp.org>
19379
19380         memcpy: Move AC_LIBOBJ invocations to module description.
19381         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19382         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19383         here...
19384         * modules/memcpy (configure.ac): ... to here.
19385
19386 2011-05-21  Bruno Haible  <bruno@clisp.org>
19387
19388         memcmp: Simplify autoconf macro.
19389         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19390         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19391         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19392
19393 2011-05-21  Bruno Haible  <bruno@clisp.org>
19394
19395         memcmp: Move AC_LIBOBJ invocations to module description.
19396         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19397         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19398         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19399         * modules/memcmp (configure.ac): ... to here.
19400         (Depends-on): Update conditions.
19401
19402 2011-05-21  Bruno Haible  <bruno@clisp.org>
19403
19404         memchr: Respect rules for use of AC_LIBOBJ.
19405         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19406         invocations from here...
19407         * modules/memchr (configure.ac): ... to here.
19408
19409 2011-05-21  Bruno Haible  <bruno@clisp.org>
19410
19411         mbtowc: Move AC_LIBOBJ invocations to module description.
19412         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19413         invocations from here...
19414         * modules/mbtowc (configure.ac): ... to here.
19415
19416 2011-05-21  Bruno Haible  <bruno@clisp.org>
19417
19418         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19419         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19420         gl_PREREQ_MBSRTOWCS invocations from here...
19421         * modules/mbsrtowcs (configure.ac): ... to here.
19422
19423 2011-05-21  Bruno Haible  <bruno@clisp.org>
19424
19425         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19426         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19427         gl_PREREQ_MBSNRTOWCS invocations from here...
19428         * modules/mbsnrtowcs (configure.ac): ... to here.
19429
19430 2011-05-21  Bruno Haible  <bruno@clisp.org>
19431
19432         mbsinit: Move AC_LIBOBJ invocations to module description.
19433         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19434         invocations from here...
19435         * modules/mbsinit (configure.ac): ... to here.
19436
19437 2011-05-21  Bruno Haible  <bruno@clisp.org>
19438
19439         mbrlen: Move AC_LIBOBJ invocations to module description.
19440         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19441         invocations from here...
19442         * modules/mbrlen (configure.ac): ... to here.
19443
19444 2011-05-21  Bruno Haible  <bruno@clisp.org>
19445
19446         mbrtowc: Respect rules for use of AC_LIBOBJ.
19447         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19448         invocations from here...
19449         * modules/mbrtowc (configure.ac): ... to here.
19450
19451 2011-05-21  Bruno Haible  <bruno@clisp.org>
19452
19453         malloc-*: Move AC_LIBOBJ invocations to module description.
19454         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19455         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19456         AC_LIBOBJ invocations from here...
19457         * modules/malloc-gnu (configure.ac): ... to here.
19458         * modules/malloc-posix (configure.ac): ... and here.
19459
19460 2011-05-21  Bruno Haible  <bruno@clisp.org>
19461
19462         lstat, openat: Respect rules for use of AC_LIBOBJ.
19463         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19464         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19465         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19466         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19467         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19468         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19469         here.
19470         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19471
19472 2011-05-21  Bruno Haible  <bruno@clisp.org>
19473
19474         lseek: Move AC_LIBOBJ invocations to module description.
19475         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19476         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19477         * modules/lseek (configure.ac): ... to here.
19478
19479 2011-05-21  Bruno Haible  <bruno@clisp.org>
19480
19481         linkat: Move AC_LIBOBJ invocations to module description.
19482         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19483         here...
19484         * modules/linkat (configure.ac): ... to here.
19485
19486 2011-05-21  Bruno Haible  <bruno@clisp.org>
19487
19488         link: Respect rules for use of AC_LIBOBJ.
19489         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19490         * modules/link (configure.ac): ... to here.
19491
19492 2011-05-21  Bruno Haible  <bruno@clisp.org>
19493
19494         lchown: Move AC_LIBOBJ invocations to module description.
19495         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19496         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19497         * modules/lchown (configure.ac): ... to here.
19498
19499 2011-05-21  Bruno Haible  <bruno@clisp.org>
19500
19501         iswctype: Move AC_LIBOBJ invocations to module description.
19502         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19503         here...
19504         * modules/iswctype (configure.ac): ... to here.
19505
19506 2011-05-21  Bruno Haible  <bruno@clisp.org>
19507
19508         iswblank: Move AC_LIBOBJ invocations to module description.
19509         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19510         here...
19511         * modules/iswblank (configure.ac): ... to here.
19512
19513 2011-05-21  Bruno Haible  <bruno@clisp.org>
19514
19515         atanl: Move AC_LIBOBJ invocations to module description.
19516         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19517         * modules/atanl (configure.ac): ... to here.
19518
19519 2011-05-21  Bruno Haible  <bruno@clisp.org>
19520
19521         acosl: Move AC_LIBOBJ invocations to module description.
19522         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19523         * modules/acosl (configure.ac): ... to here.
19524
19525 2011-05-21  Bruno Haible  <bruno@clisp.org>
19526
19527         asinl: Respect rules for use of AC_LIBOBJ.
19528         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19529         * modules/asinl (configure.ac): ... to here.
19530
19531 2011-05-21  Bruno Haible  <bruno@clisp.org>
19532
19533         tanl: Move AC_LIBOBJ invocations to module description.
19534         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19535         * modules/tanl (configure.ac): ... to here.
19536
19537 2011-05-21  Bruno Haible  <bruno@clisp.org>
19538
19539         cosl: Move AC_LIBOBJ invocations to module description.
19540         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19541         * modules/cosl (configure.ac): ... to here.
19542
19543 2011-05-21  Bruno Haible  <bruno@clisp.org>
19544
19545         sinl: Move AC_LIBOBJ invocations to module description.
19546         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19547         * modules/sinl (configure.ac): ... to here.
19548
19549 2011-05-21  Bruno Haible  <bruno@clisp.org>
19550
19551         logl: Move AC_LIBOBJ invocations to module description.
19552         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19553         * modules/logl (configure.ac): ... to here.
19554
19555 2011-05-21  Bruno Haible  <bruno@clisp.org>
19556
19557         expl: Move AC_LIBOBJ invocations to module description.
19558         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19559         * modules/expl (configure.ac): ... to here.
19560
19561 2011-05-21  Bruno Haible  <bruno@clisp.org>
19562
19563         roundl: Move AC_LIBOBJ invocations to module description.
19564         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19565         * modules/roundl (configure.ac): ... to here.
19566
19567 2011-05-21  Bruno Haible  <bruno@clisp.org>
19568
19569         round: Move AC_LIBOBJ invocations to module description.
19570         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19571         * modules/round (configure.ac): ... to here.
19572
19573 2011-05-21  Bruno Haible  <bruno@clisp.org>
19574
19575         roundf: Move AC_LIBOBJ invocations to module description.
19576         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19577         * modules/roundf (configure.ac): ... to here.
19578
19579 2011-05-21  Bruno Haible  <bruno@clisp.org>
19580
19581         truncl: Move AC_LIBOBJ invocations to module description.
19582         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19583         * modules/truncl (configure.ac): ... to here.
19584
19585 2011-05-21  Bruno Haible  <bruno@clisp.org>
19586
19587         trunc: Move AC_LIBOBJ invocations to module description.
19588         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19589         * modules/trunc (configure.ac): ... to here.
19590
19591 2011-05-21  Bruno Haible  <bruno@clisp.org>
19592
19593         truncf: Move AC_LIBOBJ invocations to module description.
19594         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19595         * modules/truncf (configure.ac): ... to here.
19596
19597 2011-05-21  Bruno Haible  <bruno@clisp.org>
19598
19599         ceill: Move AC_LIBOBJ invocations to module description.
19600         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19601         * modules/ceill (configure.ac): ... to here.
19602
19603 2011-05-21  Bruno Haible  <bruno@clisp.org>
19604
19605         ceil: Move AC_LIBOBJ invocations to module description.
19606         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19607         * modules/ceil (configure.ac): ... to here.
19608
19609 2011-05-21  Bruno Haible  <bruno@clisp.org>
19610
19611         ceilf: Move AC_LIBOBJ invocations to module description.
19612         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19613         * modules/ceilf (configure.ac): ... to here.
19614
19615 2011-05-21  Bruno Haible  <bruno@clisp.org>
19616
19617         floorl: Respect rules for use of AC_LIBOBJ.
19618         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19619         * modules/floorl (configure.ac): ... to here.
19620
19621 2011-05-21  Bruno Haible  <bruno@clisp.org>
19622
19623         floor: Respect rules for use of AC_LIBOBJ.
19624         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19625         * modules/floor (configure.ac): ... to here.
19626
19627 2011-05-21  Bruno Haible  <bruno@clisp.org>
19628
19629         floorf: Move AC_LIBOBJ invocations to module description.
19630         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19631         * modules/floorf (configure.ac): ... to here.
19632
19633 2011-05-20  Bruno Haible  <bruno@clisp.org>
19634
19635         sqrtl: Respect rules for use of AC_LIBOBJ.
19636         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19637         * modules/sqrtl (configure.ac): ... to here.
19638
19639 2011-05-20  Bruno Haible  <bruno@clisp.org>
19640
19641         ldexpl: Respect rules for use of AC_LIBOBJ.
19642         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19643         * modules/ldexpl (configure.ac): ... to here.
19644
19645 2011-05-20  Bruno Haible  <bruno@clisp.org>
19646
19647         frexpl*: Respect rules for use of AC_LIBOBJ.
19648         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19649         invocation from here...
19650         * modules/frexpl (configure.ac): ... to here.
19651         * modules/frexpl-nolibm (configure.ac): ... and here.
19652
19653 2011-05-20  Bruno Haible  <bruno@clisp.org>
19654
19655         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19656         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19657         invocation from here...
19658         * modules/frexp (configure.ac): ... to here.
19659         * modules/frexp-nolibm (configure.ac): ... and here.
19660
19661 2011-05-20  Bruno Haible  <bruno@clisp.org>
19662
19663         isnan: Respect rules for use of AC_LIBOBJ.
19664         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19665         invocations here.
19666         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19667         REPLACE_ISNAN.
19668         * modules/isnand (configure.ac): Likewise.
19669         * modules/isnanl (configure.ac): Likewise.
19670
19671 2011-05-20  Bruno Haible  <bruno@clisp.org>
19672
19673         isnanl*: Respect rules for use of AC_LIBOBJ.
19674         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19675         invocation from here...
19676         * modules/isnanl (configure.ac): ... to here.
19677         * modules/isnanl-nolibm (configure.ac): ... and here.
19678
19679 2011-05-20  Bruno Haible  <bruno@clisp.org>
19680
19681         isnand*: Move AC_LIBOBJ invocations to module description.
19682         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19683         invocation from here...
19684         * modules/isnand (configure.ac): ... to here.
19685         * modules/isnand-nolibm (configure.ac): ... and here.
19686
19687 2011-05-20  Bruno Haible  <bruno@clisp.org>
19688
19689         isnanf*: Move AC_LIBOBJ invocations to module description.
19690         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19691         invocation from here...
19692         * modules/isnanf (configure.ac): ... to here.
19693         * modules/isnanf-nolibm (configure.ac): ... and here.
19694
19695 2011-05-20  Bruno Haible  <bruno@clisp.org>
19696
19697         isnan*: Separate the AC_LIBOBJ invocations.
19698         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19699         AC_LIBOBJ invocation.
19700         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19701         here.
19702         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19703         AC_LIBOBJ invocation.
19704         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19705         here.
19706         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19707         AC_LIBOBJ invocation.
19708         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19709         here.
19710         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19711
19712 2011-05-08  Bruno Haible  <bruno@clisp.org>
19713
19714         isinf: Move AC_LIBOBJ invocations to module description.
19715         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19716         * modules/isinf (configure.ac): ... to here.
19717
19718 2011-05-08  Bruno Haible  <bruno@clisp.org>
19719
19720         isfinite: Move AC_LIBOBJ invocations to module description.
19721         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19722         * modules/isfinite (configure.ac): ... to here.
19723
19724 2011-05-08  Bruno Haible  <bruno@clisp.org>
19725
19726         isblank: Move AC_LIBOBJ invocations to module description.
19727         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19728         here...
19729         * modules/isblank (configure.ac): ... to here.
19730
19731 2011-05-08  Bruno Haible  <bruno@clisp.org>
19732
19733         isapipe: Move AC_LIBOBJ invocations to module description.
19734         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19735         gl_PREREQ_ISAPIPE invocations from here...
19736         * modules/isapipe (configure.ac): ... to here.
19737         (Depends-on): Update condition.
19738
19739 2011-05-08  Bruno Haible  <bruno@clisp.org>
19740
19741         ioctl: Move AC_LIBOBJ invocations to module description.
19742         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19743         invocations from here...
19744         * modules/ioctl (configure.ac): ... to here.
19745         (Depends-on): Update condition.
19746
19747 2011-05-08  Bruno Haible  <bruno@clisp.org>
19748
19749         imaxdiv: Move AC_LIBOBJ invocations to module description.
19750         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19751         invocations from here...
19752         * modules/imaxdiv (configure.ac): ... to here.
19753
19754 2011-05-08  Bruno Haible  <bruno@clisp.org>
19755
19756         imaxabs: Move AC_LIBOBJ invocations to module description.
19757         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19758         invocations from here...
19759         * modules/imaxabs (configure.ac): ... to here.
19760
19761 2011-05-08  Bruno Haible  <bruno@clisp.org>
19762
19763         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19765         AC_LIBOBJ invocations from here...
19766         * modules/getaddrinfo (configure.ac): ... to here.
19767         (Depends-on): Add conditions.
19768
19769 2011-05-08  Bruno Haible  <bruno@clisp.org>
19770
19771         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19772         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19773         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19774         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19775         (gl_PREREQ_INET_PTON): ... from here.
19776         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19777         gl_PREREQ_INET_PTON here.
19778         (Depends-on): Update condition.
19779
19780 2011-05-08  Bruno Haible  <bruno@clisp.org>
19781
19782         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19783         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19784         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19785         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19786         (gl_PREREQ_INET_NTOP): ... from here.
19787         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19788         gl_PREREQ_INET_NTOP here.
19789         (Depends-on): Update condition.
19790
19791 2011-05-08  Bruno Haible  <bruno@clisp.org>
19792
19793         iconv_open: Move AC_LIBOBJ invocations to module description.
19794         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19795         AC_LIBOBJ invocations from here...
19796         * modules/iconv_open (configure.ac): ... to here.
19797
19798 2011-05-08  Bruno Haible  <bruno@clisp.org>
19799
19800         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19801         If module 'iconv_open' is among the main modules and module
19802         'iconv_open-utf' is among the tests dependencies, then
19803         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19804         return the special iconv_t values. Therefore iconv() and iconv_close()
19805         must support these special iconv_t values, already in lib, not only in
19806         tests.
19807         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19808         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19809         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19810         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19811         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19812         (Depends-on): Add the dependencies of iconv_open-utf.
19813         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19814         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19815         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19816
19817 2011-05-08  Bruno Haible  <bruno@clisp.org>
19818
19819         group-member: Move AC_LIBOBJ invocations to module description.
19820         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19821         gl_PREREQ_GROUP_MEMBER invocations from here...
19822         * modules/group-member (configure.ac): ... to here.
19823
19824 2011-05-08  Bruno Haible  <bruno@clisp.org>
19825
19826         grantpt: Move AC_LIBOBJ invocations to module description.
19827         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19828         invocations from here...
19829         * modules/grantpt (configure.ac): ... to here.
19830
19831 2011-05-08  Bruno Haible  <bruno@clisp.org>
19832
19833         glob: Move AC_LIBOBJ invocations to module description.
19834         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19835         from here...
19836         * modules/glob (configure.ac): ... to here.
19837
19838 2011-05-08  Bruno Haible  <bruno@clisp.org>
19839
19840         getusershell: Move AC_LIBOBJ invocations to module description.
19841         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19842         Move AC_LIBOBJ invocation from here...
19843         * modules/getusershell (configure.ac): ... to here.
19844         (Depends-on): Update condition.
19845
19846 2011-05-08  Bruno Haible  <bruno@clisp.org>
19847
19848         gettimeofday: Move AC_LIBOBJ invocations to module description.
19849         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19850         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19851         gl_PREREQ_GETTIMEOFDAY invocations from here...
19852         * modules/gettimeofday (configure.ac): ... to here.
19853
19854 2011-05-08  Bruno Haible  <bruno@clisp.org>
19855
19856         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19857         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19858         just gl_FUNC_TZSET.
19859         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19860         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19861         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19862         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19863
19864 2011-05-08  Bruno Haible  <bruno@clisp.org>
19865
19866         getsubopt: Move AC_LIBOBJ invocations to module description.
19867         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19868         gl_PREREQ_GETSUBOPT invocations from here...
19869         * modules/getsubopt (configure.ac): ... to here.
19870
19871 2011-05-08  Bruno Haible  <bruno@clisp.org>
19872
19873         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19874         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19875         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19876         * modules/getpass-gnu (configure.ac): ... to here.
19877
19878 2011-05-08  Bruno Haible  <bruno@clisp.org>
19879
19880         getpass: Move AC_LIBOBJ invocations to module description.
19881         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19882         gl_PREREQ_GETPASS invocations from here...
19883         * modules/getpass (configure.ac): ... to here.
19884
19885 2011-05-08  Bruno Haible  <bruno@clisp.org>
19886
19887         getpagesize: Move AC_LIBOBJ invocations to module description.
19888         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19889         from here...
19890         * modules/getpagesize (configure.ac): ... to here.
19891
19892 2011-05-08  Bruno Haible  <bruno@clisp.org>
19893
19894         getopt: Move AC_LIBOBJ invocations to module description.
19895         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19896         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19897         invocations from here...
19898         * modules/getopt-gnu (configure.ac): ... to here.
19899         * modules/getopt-posix (configure.ac): ... and here.
19900         (Depends-on): Update condition.
19901
19902 2011-05-08  Bruno Haible  <bruno@clisp.org>
19903
19904         getopt, argp: Respect rules for use of AC_LIBOBJ.
19905         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19906         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19907         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19908         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19909
19910 2011-05-08  Bruno Haible  <bruno@clisp.org>
19911
19912         getlogin_r: Move AC_LIBOBJ invocations to module description.
19913         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19914         gl_PREREQ_GETLOGIN_R invocations from here...
19915         * modules/getlogin_r (configure.ac): ... to here.
19916
19917 2011-05-08  Bruno Haible  <bruno@clisp.org>
19918
19919         getlogin: Move AC_LIBOBJ invocations to module description.
19920         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19921         here...
19922         * modules/getlogin (configure.ac): ... to here.
19923
19924 2011-05-08  Bruno Haible  <bruno@clisp.org>
19925
19926         getloadavg: Move AC_LIBOBJ invocations to module description.
19927         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19928         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19929         * modules/getloadavg (configure.ac): ... to here.
19930
19931 2011-05-08  Bruno Haible  <bruno@clisp.org>
19932
19933         gethrxtime: Move AC_LIBOBJ invocations to module description.
19934         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19935         LIB_GETHRXTIME from here...
19936         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19937         invocations from here...
19938         * modules/gethrxtime (configure.ac): ... to here.
19939
19940 2011-05-08  Bruno Haible  <bruno@clisp.org>
19941
19942         gethostname: Move AC_LIBOBJ invocations to module description.
19943         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19944         gl_PREREQ_GETHOSTNAME invocations from here...
19945         * modules/gethostname (configure.ac): ... to here.
19946
19947 2011-05-08  Bruno Haible  <bruno@clisp.org>
19948
19949         getgroups: Move AC_LIBOBJ invocations to module description.
19950         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19951         here...
19952         * modules/getgroups (configure.ac): ... to here.
19953
19954 2011-05-08  Bruno Haible  <bruno@clisp.org>
19955
19956         getdtablesize: Move AC_LIBOBJ invocations to module description.
19957         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19958         invocation from here...
19959         * modules/getdtablesize (configure.ac): ... to here.
19960
19961 2011-05-08  Bruno Haible  <bruno@clisp.org>
19962
19963         getdomainname: Move AC_LIBOBJ invocations to module description.
19964         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19965         gl_PREREQ_GETDOMAINNAME invocations from here...
19966         * modules/getdomainname (configure.ac): ... to here.
19967
19968 2011-05-08  Bruno Haible  <bruno@clisp.org>
19969
19970         getline: Move AC_LIBOBJ invocations to module description.
19971         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19972         invocations from here...
19973         * modules/getline (configure.ac): ... to here.
19974
19975 2011-05-08  Bruno Haible  <bruno@clisp.org>
19976
19977         getline: Simplify.
19978         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19979         It's already handled through the module dependency.
19980
19981 2011-05-08  Bruno Haible  <bruno@clisp.org>
19982
19983         getdelim: Move AC_LIBOBJ invocations to module description.
19984         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19985         and gl_PREREQ_GETDELIM invocations from here...
19986         * modules/getdelim (configure.ac): ... to here.
19987         (Depends-on): Fix condition.
19988
19989 2011-05-08  Bruno Haible  <bruno@clisp.org>
19990
19991         getcwd: Move AC_LIBOBJ invocations to module description.
19992         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19993         invocations from here...
19994         * modules/getcwd (configure.ac): ... to here.
19995
19996 2011-05-08  Bruno Haible  <bruno@clisp.org>
19997
19998         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19999         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20000         here...
20001         * modules/getcwd-lgpl (configure.ac): ... to here.
20002
20003 2011-05-07  Bruno Haible  <bruno@clisp.org>
20004
20005         crypto/gc: Move AC_LIBOBJ invocations to module description.
20006         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20007         * modules/crypto/gc (configure.ac): ... to here.
20008
20009 2011-05-07  Bruno Haible  <bruno@clisp.org>
20010
20011         fwriting: Move AC_LIBOBJ invocations to module description.
20012         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20013         here...
20014         * modules/fwriting (configure.ac): ... to here.
20015
20016 2011-05-07  Bruno Haible  <bruno@clisp.org>
20017
20018         fwritable: Move AC_LIBOBJ invocations to module description.
20019         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20020         here...
20021         * modules/fwritable (configure.ac): ... to here.
20022
20023 2011-05-07  Bruno Haible  <bruno@clisp.org>
20024
20025         futimens: Move AC_LIBOBJ invocations to module description.
20026         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20027         here...
20028         * modules/futimens (configure.ac): ... to here.
20029
20030 2011-05-07  Bruno Haible  <bruno@clisp.org>
20031
20032         ftruncate: Move AC_LIBOBJ invocations to module description.
20033         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20034         gl_PREREQ_FTRUNCATE invocations from here...
20035         * modules/ftruncate (configure.ac): ... to here.
20036
20037 2011-05-07  Bruno Haible  <bruno@clisp.org>
20038
20039         fsync: Move AC_LIBOBJ invocations to module description.
20040         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20041         invocations from here...
20042         * modules/fsync (configure.ac): ... to here.
20043
20044 2011-05-07  Bruno Haible  <bruno@clisp.org>
20045
20046         fsusage: Move AC_LIBOBJ invocations to module description.
20047         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20048         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20049         * modules/fsusage (configure.ac): ... to here.
20050
20051 2011-05-07  Bruno Haible  <bruno@clisp.org>
20052
20053         freopen: Move AC_LIBOBJ invocations to module description.
20054         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20055         invocations from here...
20056         * modules/freopen (configure.ac): ... to here.
20057
20058 2011-05-07  Bruno Haible  <bruno@clisp.org>
20059
20060         free: Move AC_LIBOBJ invocations to module description.
20061         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20062         invocations from here...
20063         * modules/free (configure.ac): ... to here.
20064
20065 2011-05-07  Bruno Haible  <bruno@clisp.org>
20066
20067         freadable: Move AC_LIBOBJ invocations to module description.
20068         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20069         here...
20070         * modules/freadable (configure.ac): ... to here.
20071
20072 2011-05-07  Bruno Haible  <bruno@clisp.org>
20073
20074         fpurge: Move AC_LIBOBJ invocations to module description.
20075         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20076         invocations from here...
20077         * modules/fpurge (configure.ac): ... to here.
20078
20079 2011-05-07  Bruno Haible  <bruno@clisp.org>
20080
20081         fpending: Move AC_LIBOBJ invocations to module description.
20082         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20083         gl_FUNC_FPENDING.
20084         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20085         invocations from here...
20086         * modules/fpending (configure.ac): ... to here.
20087
20088 2011-05-07  Bruno Haible  <bruno@clisp.org>
20089
20090         fopen: Move AC_LIBOBJ invocations to module description.
20091         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20092         invocations from here...
20093         * modules/fopen (configure.ac): ... to here.
20094
20095 2011-05-07  Bruno Haible  <bruno@clisp.org>
20096
20097         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20098         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20099         gl_FUNC_FNMATCH_POSIX.
20100         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20101         invocations from here...
20102         * modules/fnmatch (configure.ac): ... to here.
20103         * modules/fnmatch-gnu (configure.ac): ... and here.
20104
20105 2011-05-07  Bruno Haible  <bruno@clisp.org>
20106
20107         flock: Move AC_LIBOBJ invocations to module description.
20108         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20109         invocations from here...
20110         * modules/flock (configure.ac): ... to here.
20111
20112 2011-05-07  Bruno Haible  <bruno@clisp.org>
20113
20114         fileblocks: Move AC_LIBOBJ invocations to module description.
20115         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20116         gl_PREREQ_FILEBLOCKS invocations from here...
20117         * modules/fileblocks (configure.ac): ... to here.
20118
20119 2011-05-06  Bruno Haible  <bruno@clisp.org>
20120
20121         fflush: Move AC_LIBOBJ invocations to module description.
20122         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20123         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20124         invocations from here...
20125         * modules/fflush (configure.ac): ... to here.
20126
20127 2011-05-06  Bruno Haible  <bruno@clisp.org>
20128
20129         fdopendir: Move AC_LIBOBJ invocations to module description.
20130         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20131         here...
20132         * modules/fdopendir (configure.ac): ... to here.
20133         (Depends-on): Improve conditions.
20134
20135 2011-05-06  Bruno Haible  <bruno@clisp.org>
20136
20137         _Exit: Move AC_LIBOBJ invocations to module description.
20138         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20139         invocations from here...
20140         * modules/_Exit (configure.ac): ... to here.
20141
20142 2011-05-21  Bruno Haible  <bruno@clisp.org>
20143
20144         euidaccess: Respect rules for use of AC_LIBOBJ.
20145         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20147         from here...
20148         * modules/euidaccess (configure.ac): ... to here.
20149
20150 2011-05-06  Bruno Haible  <bruno@clisp.org>
20151
20152         error: Move AC_LIBOBJ invocations to module description.
20153         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20154         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20155         invocations from here...
20156         * modules/error (configure.ac): ... to here.
20157
20158 2011-05-06  Bruno Haible  <bruno@clisp.org>
20159
20160         duplocale: Move AC_LIBOBJ invocations to module description.
20161         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20162         gl_PREREQ_DUPLOCALE invocations from here...
20163         * modules/duplocale (configure.ac): ... to here.
20164
20165 2011-05-05  Bruno Haible  <bruno@clisp.org>
20166
20167         dirfd: Move AC_LIBOBJ invocations to module description.
20168         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20169         gl_FUNC_DIRFD.
20170         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20171         here...
20172         * modules/dirfd (configure.ac): ... to here.
20173         (Depends-on): Fix condition.
20174
20175 2011-05-05  Bruno Haible  <bruno@clisp.org>
20176
20177         chown: Respect rules for use of AC_LIBOBJ.
20178         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20179         * modules/chown (configure.ac): ... to here.
20180
20181 2011-05-05  Bruno Haible  <bruno@clisp.org>
20182
20183         chdir-long: Move AC_LIBOBJ invocations to module description.
20184         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20185         gl_PREREQ_CHDIR_LONG invocations from here...
20186         * modules/chdir-long (configure.ac): ... to here.
20187
20188 2011-05-05  Bruno Haible  <bruno@clisp.org>
20189
20190         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20191         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20192         from here...
20193         * modules/canonicalize-lgpl (configure.ac): ... to here.
20194
20195 2011-05-05  Bruno Haible  <bruno@clisp.org>
20196
20197         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20198         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20199         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20200         REPLACE_CALLOC.
20201         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20202         * modules/calloc-gnu (configure.ac): Likewise.
20203
20204 2011-05-05  Bruno Haible  <bruno@clisp.org>
20205
20206         btowc: Move AC_LIBOBJ invocations to module description.
20207         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20208         invocations from here...
20209         * modules/btowc (configure.ac): ... to here.
20210
20211 2011-05-21  Bruno Haible  <bruno@clisp.org>
20212
20213         atexit: Move AC_LIBOBJ invocations to module description.
20214         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20216         here...
20217         * modules/atexit (configure.ac): ... to here.
20218
20219 2011-05-05  Bruno Haible  <bruno@clisp.org>
20220
20221         atoll: Move AC_LIBOBJ invocations to module description.
20222         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20223         invocations from here...
20224         * modules/atoll (configure.ac): ... to here.
20225
20226 2011-05-05  Bruno Haible  <bruno@clisp.org>
20227
20228         argz: Move AC_LIBOBJ invocations to module description.
20229         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20230         * modules/argz (configure.ac): ... to here.
20231
20232 2011-05-05  Bruno Haible  <bruno@clisp.org>
20233
20234         alphasort: Move AC_LIBOBJ invocations to module description.
20235         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20236         gl_PREREQ_ALPHASORT invocations from here...
20237         * modules/alphasort (configure.ac): ... to here.
20238
20239 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20240
20241         verify: new macro verify_expr; verify_true deprecated
20242         * NEWS: Mention this.
20243         * doc/verify.texi (Compile-time Assertions): Document this.
20244         * lib/verify.h (verify_true): Deprecate.
20245         (verify_expr): New macro.
20246         * tests/test-verify.c (function): Test verify_expr.
20247
20248 2011-06-14  Jim Meyering  <meyering@redhat.com>
20249
20250         init.sh: give more portable redirection-related advice in a comment
20251         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20252         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20253         for lots of discussion.  Stefano Lattarini suggested the solution
20254         of putting "9>&2" after the command.  Reported by Bruno Haible.
20255
20256 2011-06-13  Bruno Haible  <bruno@clisp.org>
20257
20258         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20260         'none'.
20261
20262 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20263
20264         ftoastr: use strtof only if HAVE_STRTOF
20265         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20267         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20268         * modules/ftoastr (configure.ac): Check for strtof.
20269
20270 2011-06-13  Bruno Haible  <bruno@clisp.org>
20271
20272         gnulib-tool: Addendum to 2011-06-08 commit.
20273         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20274         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20275
20276 2011-06-13  Bruno Haible  <bruno@clisp.org>
20277
20278         fseeko: Provide a non-inline replacement of fseek().
20279         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20280         * modules/fseeko (Depends-on): Add fseek.
20281         * modules/fseek (License): Change to LGPLv2+.
20282
20283 2011-06-13  Bruno Haible  <bruno@clisp.org>
20284
20285         ftello: Provide a non-inline replacement of ftell().
20286         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20287         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20288         not have ftello() (such as on mingw).
20289         * modules/ftello (Depends-on): Add ftell.
20290         * modules/ftell (License): Change to LGPLv2+.
20291
20292 2011-05-07  Bruno Haible  <bruno@clisp.org>
20293
20294         ftell: Move AC_LIBOBJ invocations to module description.
20295         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20296         * modules/ftell (configure.ac): ... to here.
20297
20298 2011-05-07  Bruno Haible  <bruno@clisp.org>
20299
20300         ftello: Respect rules for use of AC_LIBOBJ.
20301         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20302         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20303         here...
20304         * modules/ftello (configure.ac): ... to here.
20305
20306 2011-05-07  Bruno Haible  <bruno@clisp.org>
20307
20308         fseeko: Simplify.
20309         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20310         (gl_FUNC_FSEEKO): Inline it here.
20311
20312 2011-05-07  Bruno Haible  <bruno@clisp.org>
20313
20314         fseek: Move AC_LIBOBJ invocations to module description.
20315         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20316         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20317         * modules/fseek (configure.ac): ... to here.
20318
20319 2011-05-07  Bruno Haible  <bruno@clisp.org>
20320
20321         fseek: Respect rules for use of AC_LIBOBJ.
20322         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20323         here...
20324         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20325
20326 2011-05-07  Bruno Haible  <bruno@clisp.org>
20327
20328         fseeko: Respect rules for use of AC_LIBOBJ.
20329         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20330         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20331         here...
20332         * modules/fseeko (configure.ac): ... to here.
20333
20334 2011-06-13  Bruno Haible  <bruno@clisp.org>
20335
20336         gnulib-tool: Allow comments in the 'Depends-on' section.
20337         * doc/gnulib.texi (Module description): Mention comment syntax in the
20338         Depends-on section.
20339         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20340
20341 2011-06-13  Bruno Haible  <bruno@clisp.org>
20342
20343         file-set.h: guard __attibute__ use, now that it's not always defined
20344         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20345         versions that support it.  This fixes a coreutils build failure with
20346         the vendor cc on HP-UX 11.31.
20347
20348 2011-06-12  Bruno Haible  <bruno@clisp.org>
20349
20350         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20351         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20352         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20353         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20354         (acl, aclsort): New declarations.
20355         (aclv_nontrivial): New declaration.
20356         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20357         (file_has_acl): Read also the second kind of HP-UX ACLs.
20358         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20359         kind of HP-UX ACLs if the first kind fails.
20360         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20361         second kind of HP-UX ACLs.
20362         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20363         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20364         agree.
20365         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20366         hpuxjfs.
20367         Handle hpuxjfs.
20368         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20369         hpuxjfs.
20370         Handle hpuxjfs.
20371         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20372         (func_test_same_acls): Use both lsacl and getacl.
20373         Handle hpuxjfs.
20374         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20375         (func_test_same_acls): Use both lsacl and getacl.
20376         Handle hpuxjfs.
20377
20378 2011-06-12  Bruno Haible  <bruno@clisp.org>
20379
20380         acl: Complete the 2010-08-10 fix.
20381         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20382         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20383         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20384         explicitly.
20385         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20386         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20387
20388 2011-06-12  Bruno Haible  <bruno@clisp.org>
20389
20390         spawn-pipe tests: Comments.
20391         * tests/test-spawn-pipe-child.c (main): Update comment.
20392         Reported by James Youngman <jay@gnu.org>.
20393
20394 2011-06-11  James Youngman  <jay@gnu.org>
20395
20396         New module 'stat-size'.
20397         * modules/stat-size: New module.  Provides macros for accessing
20398         file size information in instances of struct stat.  Depends on the
20399         fileblocks module because it calls st_blocks.
20400         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20401         * doc/gnulib.texi: Include stat-size.texi.
20402         * doc/stat-size.texi: Documentation for this module.
20403         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20404         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20405         AC_STRUCT_ST_BLOCKS.
20406
20407 2011-06-09  Bruno Haible  <bruno@clisp.org>
20408
20409         thread: Support pthreads-win32.
20410         * lib/glthread/thread.h (gl_thread_self): Define differently on
20411         pthreads-win32.
20412         (gl_null_thread): New declaration.
20413         (gl_thread_self_pointer): New macro.
20414         * lib/glthread/thread.c (gl_null_thread): New constant.
20415         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20416         gl_thread_self.
20417         * tests/test-tls.c: Likewise.
20418         Suggested by Paul Eggert. Reported by Eric Blake.
20419
20420 2011-06-09  Bruno Haible  <bruno@clisp.org>
20421
20422         thread: Fix confusion between NULL and 0.
20423         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20424         Reported by Paul Eggert.
20425
20426 2011-06-09  Bruno Haible  <bruno@clisp.org>
20427
20428         spawn-pipe tests: Avoid test failure on HP-UX 11.
20429         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20430         is closed.
20431
20432 2011-06-09  Bruno Haible  <bruno@clisp.org>
20433
20434         acl tests: Fix compilation error on HP-UX 11.
20435         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20436
20437 2011-06-09  Bruno Haible  <bruno@clisp.org>
20438
20439         rmdir: Avoid test failure on HP-UX 10.20.
20440         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20441         EEXIST.
20442
20443 2011-06-08  Eric Blake  <eblake@redhat.com>
20444
20445         perror: fix test on mingw
20446         * modules/perror-tests (Depends-on): Add dup2.
20447
20448         strerror_r-posix: fix on MacOS
20449         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20450         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20451         logic bug.
20452         * lib/strerror_r.c (strerror_r): Fix the bug.
20453         * lib/strerror.c (strerror): Likewise.
20454         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20455         problem.
20456         * doc/posix-functions/strerror.texi (strerror): Likewise.
20457         * doc/posix-functions/perror.texi (perror): Likewise.
20458         * tests/test-strerror.c (main): Enhance test.
20459         * tests/test-strerror_r.c (main): Likewise.
20460
20461 2011-06-08  Bruno Haible  <bruno@clisp.org>
20462
20463         gnulib-tool: Better isolation between different gnulib-tool invocations.
20464         * gnulib-tool: New option --witness-c-macro.
20465         (witness_c_macro): New variable.
20466         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20467         AM_CPPFLAGS define it as a C macro.
20468         (func_emit_tests_Makefile_am): Likewise.
20469         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20470         read it from there.
20471         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20472         m4_define, not AC_DEFUN.
20473         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20474         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20475         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20476         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20477         s|...|...|, to substitute the values of the GNULIB_* module indicator
20478         variables.
20479         * modules/dirent (Makefile.am): Likewise.
20480         * modules/fcntl-h (Makefile.am): Likewise.
20481         * modules/iconv-h (Makefile.am): Likewise.
20482         * modules/langinfo (Makefile.am): Likewise.
20483         * modules/locale (Makefile.am): Likewise.
20484         * modules/math (Makefile.am): Likewise.
20485         * modules/netdb (Makefile.am): Likewise.
20486         * modules/poll-h (Makefile.am): Likewise.
20487         * modules/pty (Makefile.am): Likewise.
20488         * modules/search (Makefile.am): Likewise.
20489         * modules/signal (Makefile.am): Likewise.
20490         * modules/spawn (Makefile.am): Likewise.
20491         * modules/stdio (Makefile.am): Likewise.
20492         * modules/stdlib (Makefile.am): Likewise.
20493         * modules/string (Makefile.am): Likewise.
20494         * modules/sys_ioctl (Makefile.am): Likewise.
20495         * modules/sys_select (Makefile.am): Likewise.
20496         * modules/sys_socket (Makefile.am): Likewise.
20497         * modules/sys_stat (Makefile.am): Likewise.
20498         * modules/sys_times (Makefile.am): Likewise.
20499         * modules/sys_utsname (Makefile.am): Likewise.
20500         * modules/sys_wait (Makefile.am): Likewise.
20501         * modules/termios (Makefile.am): Likewise.
20502         * modules/time (Makefile.am): Likewise.
20503         * modules/unistd (Makefile.am): Likewise.
20504         * modules/wchar (Makefile.am): Likewise.
20505
20506 2011-06-08  Eric Blake  <eblake@redhat.com>
20507
20508         strerror: simplify replacement
20509         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20510         * modules/strerror (configure.ac): No prereqs needed here...
20511         * modules/strerror-override (configure.ac): ...but this needs it.
20512         (Files): Add file for needed prereq macro.
20513
20514 2011-06-08  Bruno Haible  <bruno@clisp.org>
20515
20516         strerror_r-posix: Tweaks.
20517         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20518         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20519         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20520         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20521         (gl_FUNC_STRERROR_R): ... to here.
20522         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20523
20524 2011-06-07  Eric Blake  <eblake@redhat.com>
20525
20526         perror: document fixed bugs
20527         * doc/posix-functions/perror.texi (perror): Document recent
20528         patches.
20529
20530 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20531
20532         stat-time: get_stat_birthtime failure is better-defined
20533         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20534         return a timestamp whose tv_sec and tv_nsec values are both -1.
20535         Previously, the spec said only that the tv_nsec value was negative.
20536         This upward-compatible change simplifies GNU tar a bit.
20537
20538 2011-06-07  Eric Blake  <eblake@redhat.com>
20539
20540         strerror_r-posix: work around cygwin 1.7.9
20541         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20542         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20543         bug without replacing strerror_r.
20544         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20545         strerror_r is buggy, but without requiring strerror_r compilation.
20546         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20547
20548         test-perror: relax test to ignore cygwin bug
20549         * tests/test-perror2.c (main): Relax test on requiring detection
20550         of stream errors, and use unbuffered stream.
20551         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20552         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20553         * doc/posix-functions/fputc.texi (fputc): Likewise.
20554         * doc/posix-functions/fputs.texi (fputs): Likewise.
20555         * doc/posix-functions/fputws.texi (fputws): Likewise.
20556         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20557         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20558         * doc/posix-functions/getopt.texi (getopt): Likewise.
20559         * doc/posix-functions/perror.texi (perror): Likewise.
20560         * doc/posix-functions/printf.texi (printf): Likewise.
20561         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20562         * doc/posix-functions/psignal.texi (psignal): Likewise.
20563         * doc/posix-functions/putc.texi (putc): Likewise.
20564         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20565         Likewise.
20566         * doc/posix-functions/putchar.texi (putchar): Likewise.
20567         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20568         Likewise.
20569         * doc/posix-functions/puts.texi (puts): Likewise.
20570         * doc/posix-functions/putwc.texi (putwc): Likewise.
20571         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20572         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20573         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20574         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20575         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20576         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20577         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20578         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20579
20580 2011-05-22  Bruno Haible  <bruno@clisp.org>
20581
20582         strerror: Move AC_LIBOBJ invocations to module description.
20583         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20584         gl_PREREQ_STRERROR invocations from here...
20585         * modules/strerror (configure.ac): ... to here.
20586
20587 2011-05-21  Bruno Haible  <bruno@clisp.org>
20588
20589         perror: Use common idiom.
20590         * modules/perror (configure.ac): Reorder statements.
20591
20592 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20593
20594         tests: fix usage message in 'mktempd_'
20595         * tests/init.sh (mktempd_): In the usage message, use literal
20596         'mktempd_', not '$ME' (which is even undefined), as the name of
20597         the subroutine.
20598
20599 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20600
20601         tests init: new function 'fatal_', for hard errors
20602         Before this patch, the only way offered by tests/init.sh to
20603         properly signal a hard error was the `framework_failure_'
20604         function.  But the error message issued by that function,
20605         as its name would suggest, refers to a set-up failure in the
20606         testsuite, while hard errors can obviously also be due to
20607         other reasons.  The best way to fix this inconsistency is to
20608         introduce a new function with a more general error message.
20609         * tests/init.sh (fatal_): New function.
20610
20611 2011-06-06  Eric Blake  <eblake@redhat.com>
20612
20613         canonicalize-lgpl: use common idiom
20614         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20615         over newer POSIX -Rf.
20616         Reported by Bruno Haible.
20617
20618         canonicalize-lgpl: work around AIX realpath bug
20619         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20620         * doc/posix-functions/realpath.texi (realpath): Document it.
20621         Reported by Bruno Haible.
20622
20623         strerror: work around FreeBSD bug
20624         * lib/strerror.c (strerror): Special case 0.
20625         Reported by Bruno Haible.
20626
20627         strerror-override: avoid bloating errno module
20628         * modules/errno (Files, configure.ac): Move replacement strings...
20629         * modules/strerror-override: ...to new module.
20630         * modules/strerror (Depends-on): Add strerror-override.
20631         * modules/strerror_r-posix (Depends-on): Likewise.
20632         * MODULES.html.sh: Document new module.
20633         Reported by Bruno Haible.
20634
20635 2011-06-06  Bruno Haible  <bruno@clisp.org>
20636
20637         spawn-pipe tests: Rename program.
20638         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20639         * tests/test-spawn-pipe-child.c: Update comment.
20640         * tests/test-spawn-pipe.sh: Update.
20641         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20642
20643         spawn-pipe tests: Link the child program only against libc.
20644         * tests/test-spawn-pipe-child.c: New file, extracted from
20645         tests/test-spawn-pipe.c.
20646         (main): Expect only one argument.
20647         (is_open): New function, copied from tests/test-pipe.c.
20648         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20649         (child_main): Remove function.
20650         (test_pipe): Pass only one argument to the child program.
20651         (main): Remove child process code. Expect the child program's name as
20652         first argument.
20653         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20654         argument.
20655         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20656         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20657         test-spawn-pipe-child against no libraries.
20658
20659 2011-06-06  Bruno Haible  <bruno@clisp.org>
20660
20661         careadlinkat: Avoid mismatch between ssize_t and int.
20662         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20663         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20664
20665 2011-06-06  Jim Meyering  <meyering@redhat.com>
20666
20667         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20668         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20669         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20670
20671 2011-06-05  Bruno Haible  <bruno@clisp.org>
20672
20673         ansi-c++-opt: Interoperability with libtool.
20674         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20675         set the variable to "no", not to ":".
20676         * NEWS: Mention the change.
20677
20678 2011-06-05  Bruno Haible  <bruno@clisp.org>
20679
20680         acl: Fix test failure on AIX 7.
20681         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20682         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20683
20684 2011-06-05  Bruno Haible  <bruno@clisp.org>
20685
20686         pipe-filter-ii: Fix test failure on AIX and IRIX.
20687         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20688         with EAGAIN, retry with a smaller buffer size.
20689
20690 2011-06-05  Bruno Haible  <bruno@clisp.org>
20691
20692         localename: Fix link dependencies.
20693         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20694         * modules/localename-tests (Makefile.am): Link test-localename with
20695         $(LIBTHREAD).
20696
20697 2011-06-05  Bruno Haible  <bruno@clisp.org>
20698
20699         error: Avoid gcc warning.
20700         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20701
20702 2011-06-05  Bruno Haible  <bruno@clisp.org>
20703
20704         unsetenv: Avoid gcc warning.
20705         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20706
20707 2011-06-05  Bruno Haible  <bruno@clisp.org>
20708
20709         setenv: Avoid gcc warning.
20710         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20711
20712 2011-06-05  Bruno Haible  <bruno@clisp.org>
20713
20714         sys_select: Ensure memset is declared also on AIX 7.
20715         * lib/sys_select.in.h: Include <string.h> also on AIX.
20716         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20717         self-contained also on AIX 7.1.
20718
20719 2011-06-04  Jim Meyering  <meyering@redhat.com>
20720
20721         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20722         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20723         function name, "error".
20724         (_gl_translatable_diag_func_re): New configurable variable.
20725
20726 2011-06-04  Bruno Haible  <bruno@clisp.org>
20727
20728         getopt: Avoid gcc warning.
20729         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20730
20731 2011-06-04  Bruno Haible  <bruno@clisp.org>
20732
20733         strerror_r: Fix comments.
20734         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20735         commit.
20736
20737 2011-06-04  Bruno Haible  <bruno@clisp.org>
20738
20739         perror: Fix compilation error.
20740         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20741         Undefine fprintf, not sprintf.
20742         * modules/perror (Depends-on): Remove intprops, verify.
20743
20744 2011-06-04  Bruno Haible  <bruno@clisp.org>
20745
20746         setlocale: Enable replacement on Cygwin 1.5.
20747         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20748         Cygwin 1.5.x.
20749         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20750         LC_CTYPE category also exists on Cygwin 1.5.x.
20751
20752 2011-06-04  Bruno Haible  <bruno@clisp.org>
20753
20754         strerror-override: Don't disable symbol renamings.
20755         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20756         * lib/strerror-override.c: Include config.h.
20757         (strerror_override): Don't undefine.
20758
20759 2011-06-03  Bruno Haible  <bruno@clisp.org>
20760
20761         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20762         * lib/localename.h: Update copyright header.
20763         * lib/localename.c: Likewise.
20764         * lib/relocatable.h: Likewise.
20765         * lib/relocatable.c: Likewise.
20766
20767 2011-06-02  Bruno Haible  <bruno@clisp.org>
20768
20769         doc: Fix a module name.
20770         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20771
20772 2011-06-02  Bruno Haible  <bruno@clisp.org>
20773
20774         pipe2: Remove dependency on 'nonblocking' module.
20775         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20776         O_NONBLOCK is defined by gnulib.
20777         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20778         is zero.
20779         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20780         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20781         defined by gnulib.
20782         (get_nonblocking_flag): New function.
20783         (main): Test O_NONBLOCK flag only if it is nonzero.
20784         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20785
20786 2011-06-03  Jim Meyering  <meyering@redhat.com>
20787
20788         maint: three new prohibit-header-without-use rules
20789         Prohibit use of cloexec.h, posixver.h, same.h without use.
20790         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20791         (sc_prohibit_posixver_without_use): Likewise.
20792         (sc_prohibit_same_without_use): Likewise.
20793
20794 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20795
20796         allocator: 'die' routine is now given requested size
20797         * lib/allocator.h (struct allocator.die): New size arg.
20798         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20799         If the actual problem is an ssize_t limitation, not a size_t or
20800         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20801
20802 2011-06-01  Eric Blake  <eblake@redhat.com>
20803
20804         strerror: drop strerror_r dependency
20805         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20806         * lib/strerror-override.c (strerror_override): ...to new file.
20807         * lib/strerror-override.h: Add prototype.
20808         * lib/strerror-impl.h: Delete.
20809         * lib/strerror.c (strerror): New implementation.
20810         * modules/errno (Files): Add new files.
20811         (configure.ac): Compile new file as appropriate.
20812         * modules/strerror (Files): Drop unused file.
20813         (Depends-on): Drop strerror_r-posix.
20814         * MODULES.html.sh: Document strerror_r-posix.
20815         Requested by Sam Steingold.
20816
20817         perror: call strerror_r directly
20818         * modules/perror (Files): Drop strerror-impl.h.
20819         * lib/perror.c (perror): Use our own stack buffer, rather than
20820         calling a wrapper that uses static storage.
20821         * doc/posix-functions/perror.texi (perror): Document a limitation
20822         of our replacement.
20823
20824         strerror_r: fix includes for FreeBSD
20825         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20826         since we use abort on some platforms.
20827         Reported by Matthias Bolte.
20828
20829 2011-05-31  Bruno Haible  <bruno@clisp.org>
20830
20831         Fix link errors in tests: openat-die uses gettext-h.
20832         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20833         against $(LIBINTL).
20834         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20835         against $(LIBINTL).
20836         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20837         $(LIBINTL).
20838         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20839         against $(LIBINTL).
20840         * modules/linkat-tests (Makefile.am): Link test-linkat against
20841         $(LIBINTL).
20842         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20843         $(LIBINTL).
20844         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20845         against $(LIBINTL).
20846         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20847         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20848         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20849         $(LIBINTL).
20850         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20851         $(LIBINTL).
20852         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20853         $(LIBINTL).
20854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20855
20856 2011-05-31  Bruno Haible  <bruno@clisp.org>
20857
20858         Fix link errors in tests: wait-process uses gettext-h.
20859         * modules/nonblocking-pipe-tests (Makefile.am): Set
20860         test_nonblocking_pipe_main_LDADD.
20861         * modules/nonblocking-socket-tests (Makefile.am): Link
20862         test-nonblocking-socket-main against $(LIBINTL).
20863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20864
20865 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20866
20867         assert-h: work around 'verify' incompatibility
20868         * lib/verify.h: Use @...@ directives, not ifdef.
20869         * modules/assert-h (assert.h): Implement the directives.
20870         (assert.h): Substitute the symbol-prefix more consistently.
20871
20872 2011-05-29  Jim Meyering  <meyering@redhat.com>
20873
20874         trim: remove three superfluous assignments
20875         * lib/trim.c (trim2): Remove three superfluous assignments
20876         and correct brace positioning.
20877
20878 2011-05-29  Bruno Haible  <bruno@clisp.org>
20879
20880         wctype-h: Avoid namespace pollution on Solaris 2.6.
20881         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20882         identifiers.
20883         * doc/posix-headers/wctype.texi: Mention the problem.
20884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20885
20886 2011-05-28  Jim Meyering  <meyering@redhat.com>
20887
20888         parse-datetime.y: accommodate -Wstrict-overflow
20889         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20890         placate -Wstrict-overflow.
20891
20892         trim: avoid a warning from -O2 -Wstrict-overflow
20893         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20894
20895 2011-05-29  Bruno Haible  <bruno@clisp.org>
20896
20897         gnulib-tool: Fix bug in yesterday's commit.
20898         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20899         twice.
20900
20901 2011-05-29  Bruno Haible  <bruno@clisp.org>
20902
20903         Allow multiple gnulib generated include files to be combined.
20904         * gnulib-tool (func_compute_include_guard_prefix): New function.
20905         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20906         ${gl_include_guard_prefix} references.
20907         (func_import, func_create_testdir): Invoke
20908         func_compute_include_guard_prefix.
20909         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20910         * lib/ctype.in.h: Likewise.
20911         * lib/dirent.in.h: Likewise.
20912         * lib/errno.in.h: Likewise.
20913         * lib/fcntl.in.h: Likewise.
20914         * lib/float.in.h: Likewise.
20915         * lib/getopt.in.h: Likewise.
20916         * lib/iconv.in.h: Likewise.
20917         * lib/langinfo.in.h: Likewise.
20918         * lib/locale.in.h: Likewise.
20919         * lib/math.in.h: Likewise.
20920         * lib/netdb.in.h: Likewise.
20921         * lib/netinet_in.in.h: Likewise.
20922         * lib/poll.in.h: Likewise.
20923         * lib/pthread.in.h: Likewise.
20924         * lib/pty.in.h: Likewise.
20925         * lib/sched.in.h: Likewise.
20926         * lib/se-selinux.in.h: Likewise.
20927         * lib/search.in.h: Likewise.
20928         * lib/signal.in.h: Likewise.
20929         * lib/spawn.in.h: Likewise.
20930         * lib/stdarg.in.h: Likewise.
20931         * lib/stddef.in.h: Likewise.
20932         * lib/stdint.in.h: Likewise.
20933         * lib/stdio.in.h: Likewise.
20934         * lib/stdlib.in.h: Likewise.
20935         * lib/string.in.h: Likewise.
20936         * lib/strings.in.h: Likewise.
20937         * lib/sys_file.in.h: Likewise.
20938         * lib/sys_ioctl.in.h: Likewise.
20939         * lib/sys_select.in.h: Likewise.
20940         * lib/sys_socket.in.h: Likewise.
20941         * lib/sys_stat.in.h: Likewise.
20942         * lib/sys_time.in.h: Likewise.
20943         * lib/sys_times.in.h: Likewise.
20944         * lib/sys_uio.in.h: Likewise.
20945         * lib/sys_utsname.in.h: Likewise.
20946         * lib/sys_wait.in.h: Likewise.
20947         * lib/sysexits.in.h: Likewise.
20948         * lib/termios.in.h: Likewise.
20949         * lib/time.in.h: Likewise.
20950         * lib/unistd.in.h: Likewise.
20951         * lib/wchar.in.h: Likewise.
20952         * lib/wctype.in.h: Likewise.
20953         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20954         * modules/ctype (Makefile.am): Likewise.
20955         * modules/dirent (Makefile.am): Likewise.
20956         * modules/errno (Makefile.am): Likewise.
20957         * modules/fcntl-h (Makefile.am): Likewise.
20958         * modules/float (Makefile.am): Likewise.
20959         * modules/getopt-posix (Makefile.am): Likewise.
20960         * modules/iconv-h (Makefile.am): Likewise.
20961         * modules/langinfo (Makefile.am): Likewise.
20962         * modules/locale (Makefile.am): Likewise.
20963         * modules/math (Makefile.am): Likewise.
20964         * modules/netdb (Makefile.am): Likewise.
20965         * modules/netinet_in (Makefile.am): Likewise.
20966         * modules/poll-h (Makefile.am): Likewise.
20967         * modules/pthread (Makefile.am): Likewise.
20968         * modules/pty (Makefile.am): Likewise.
20969         * modules/sched (Makefile.am): Likewise.
20970         * modules/search (Makefile.am): Likewise.
20971         * modules/selinux-h (Makefile.am): Likewise.
20972         * modules/signal (Makefile.am): Likewise.
20973         * modules/spawn (Makefile.am): Likewise.
20974         * modules/stdarg (Makefile.am): Likewise.
20975         * modules/stddef (Makefile.am): Likewise.
20976         * modules/stdint (Makefile.am): Likewise.
20977         * modules/stdio (Makefile.am): Likewise.
20978         * modules/stdlib (Makefile.am): Likewise.
20979         * modules/string (Makefile.am): Likewise.
20980         * modules/strings (Makefile.am): Likewise.
20981         * modules/sys_file (Makefile.am): Likewise.
20982         * modules/sys_ioctl (Makefile.am): Likewise.
20983         * modules/sys_select (Makefile.am): Likewise.
20984         * modules/sys_socket (Makefile.am): Likewise.
20985         * modules/sys_stat (Makefile.am): Likewise.
20986         * modules/sys_time (Makefile.am): Likewise.
20987         * modules/sys_times (Makefile.am): Likewise.
20988         * modules/sys_uio (Makefile.am): Likewise.
20989         * modules/sys_utsname (Makefile.am): Likewise.
20990         * modules/sys_wait (Makefile.am): Likewise.
20991         * modules/sysexits (Makefile.am): Likewise.
20992         * modules/termios (Makefile.am): Likewise.
20993         * modules/time (Makefile.am): Likewise.
20994         * modules/unistd (Makefile.am): Likewise.
20995         * modules/wchar (Makefile.am): Likewise.
20996         * modules/wctype-h (Makefile.am): Likewise.
20997         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20998
20999 2011-05-29  Bruno Haible  <bruno@clisp.org>
21000
21001         assert-h: Allow multiple gnulib generated replacements to coexist.
21002         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21003
21004 2011-05-29  Bruno Haible  <bruno@clisp.org>
21005
21006         argp: Allow coexistence with strerror_r-posix module.
21007         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21008         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21009         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21010         not the glibc signature.
21011
21012 2011-05-28  Bruno Haible  <bruno@clisp.org>
21013
21014         gnulib-tool: Alternative structure of testdirs, similar to --import.
21015         * gnulib-tool: New option --single-configure.
21016         (func_usage): Document it.
21017         (single_configure): New variable.
21018         (func_modules_transitive_closure_separately,
21019         func_modules_transitive_closure_separately,
21020         func_determine_use_libtests, func_modules_add_dummy_separately,
21021         func_modules_to_filelist_separately): New functions, extracted from
21022         func_import.
21023         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21024         (func_import): Use the new functions.
21025         (func_create_testdir): Set final_modules. Handle $single_configure =
21026         true case.
21027
21028 2011-05-28  Bruno Haible  <bruno@clisp.org>
21029
21030         getloadavg: Remove an unreliable safety check.
21031         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21032         getloadavg.c is in place.
21033         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21034         Reported by Sam Steingold <sds@gnu.org>.
21035
21036 2011-05-28  Bruno Haible  <bruno@clisp.org>
21037
21038         doc: Cleanup yet another file produced by texinfo.tex.
21039         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21040
21041 2011-05-28  Bruno Haible  <bruno@clisp.org>
21042
21043         Finish the conditional dependencies mechanism.
21044         * gnulib-tool: New option --no-conditional-dependencies.
21045         (func_usage): Document it. Don't mark --conditional-dependencies as
21046         experimental.
21047         (cond_dependencies): The possible values can now be true, false, empty.
21048         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21049         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21050         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21051
21052 2011-05-28  Bruno Haible  <bruno@clisp.org>
21053
21054         doc: Use a recent texinfo.tex.
21055         * doc/Makefile (tex_opts): New variable.
21056         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21057
21058 2011-05-28  Jim Meyering  <meyering@redhat.com>
21059
21060         intprops.h: adjust comment to match code change
21061         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21062         only once, it *may* have side effects.  Also fix an unrelated typo.
21063         (_GL_INT_SIGNED): Likewise.
21064
21065 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21066
21067         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21068
21069 2011-05-26  Bruno Haible  <bruno@clisp.org>
21070
21071         mbsrchr: Avoid collision with system function on Interix.
21072         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21073         Reported by Markus Duft <mduft@gentoo.org>.
21074
21075 2011-05-15  James Youngman  <jay@gnu.org>
21076
21077         getopt: for ambiguous options, enumerate the possibilities.
21078         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21079         the ambiguous options when an ambiguous prefix is given. This was
21080         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21081         glibc change was
21082         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21083
21084 2011-05-25  Eric Blake  <eblake@redhat.com>
21085
21086         getcwd: work around mingw bug
21087         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21088         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21089         Reported by Matthias Bolte.
21090
21091 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21092
21093         test-intprops: disable -Wtype-limits diagnostics
21094         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21095         diagnostics.  Otherwise, the integer overflow macros generate many
21096         diagnostics.  Reported by Jim Meyering in
21097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21098
21099         intprops: shorten, to pacify gcc -Woverlength-strings
21100         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21101         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21102         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21103         likely to run afoul of C compiler limits for string constant lengths.
21104         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21105
21106 2011-05-24  Eric Blake  <eblake@redhat.com>
21107
21108         docs: document recently fixed glibc printf bug
21109         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21110         * doc/posix-functions/printf.texi (printf): Likewise.
21111         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21112         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21113
21114         closein-tests: convert to init.sh
21115         * modules/closein-tests (Files): Add init.sh
21116         * tests/test-closein.sh Use it.
21117
21118         yesno-tests: convert to init.sh
21119         * modules/yesno-tests (Files): Add init.sh.
21120         * tests/test-yesno.sh: Use it.
21121
21122         atexit-tests: ensure reliable exit status
21123         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21124         Reported by Bruno Haible.
21125
21126 2011-05-24  Bruno Haible  <bruno@clisp.org>
21127
21128         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21129         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21130         gl_PREREQ_STRERROR_R invocations from here...
21131         * modules/strerror_r-posix (configure.ac): ... to here.
21132
21133 2011-05-24  Eric Blake  <eblake@redhat.com>
21134
21135         strerror_r: fix missing header
21136         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21137
21138         strerror_r: fix AIX test failures
21139         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21140         ERANGE failure.
21141
21142         strerror_r: fix Solaris test failures
21143         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21144         failures.
21145         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21146
21147         strerror_r: enforce POSIX recommendations
21148         * lib/strerror_r.c (safe_copy): New helper method.
21149         (strerror_r): Guarantee a non-empty string.
21150         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21151         recent POSIX rulings and to match our strerror guarantees.
21152         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21153
21154 2011-05-24  Jim Meyering  <meyering@redhat.com>
21155
21156         test-perror2.c: avoid warning about unused variable
21157         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21158
21159 2011-05-24  Eric Blake  <eblake@redhat.com>
21160
21161         perror: avoid spurious test failure on HP-UX
21162         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21163
21164         tests: fix logic bug in init.sh
21165         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21166         shell.
21167
21168 2011-05-24  Jim Meyering  <meyering@redhat.com>
21169
21170         utimensat: do not reference an out-of-scope buffer
21171         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21172         declared in an inner scope, yet "times" would be dereferenced outside
21173         the scope in which "ts" was valid.
21174         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21175         of ts[2] "out/up", so that the use of aliased "times" (via
21176         "times = ts;") does not end up referencing an out-of-scope "ts"
21177
21178         opendir-safer.c: don't clobber errno; don't close negative FD
21179         * lib/opendir-safer.c (opendir_safer):
21180         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21181         file descriptor, and more importantly, don't clobber the
21182         offending errno value with EINVAL.  Before, upon failure
21183         of dup_safer, we would pass the negative file descriptor to
21184         fdopendir, which would clobber errno.
21185
21186 2011-05-23  Bruno Haible  <bruno@clisp.org>
21187
21188         idcache: Fix module description.
21189         * modules/idcache (Include): Set to "idcache.h".
21190
21191 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21192
21193         gnulib-tool: fix portability problem with MacOS sed
21194         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21195         before the "}".  Problem reported by Leo in
21196         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21197         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21198         sed_extract_condition1, sed_extract_condition2.
21199
21200 2011-05-23  Bruno Haible  <bruno@clisp.org>
21201
21202         hash: Simplify autoconf macro.
21203         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21204
21205 2011-05-23  Bruno Haible  <bruno@clisp.org>
21206
21207         getugroups: Fix module description.
21208         * modules/getugroups (Include): Set to "getugroups.h".
21209
21210 2011-05-23  Bruno Haible  <bruno@clisp.org>
21211
21212         linkat: Simplify autoconf macro.
21213         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21214
21215 2011-05-23  Bruno Haible  <bruno@clisp.org>
21216             Eric Blake  <eblake@redhat.com>
21217
21218         linkat, renameat: Update dependencies.
21219         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21220         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21221         symlinkat.
21222
21223 2011-05-23  Jim Meyering  <meyering@redhat.com>
21224
21225         maint.mk: more tight_scope improvements
21226         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21227         (_gl_TS_headers): Define only in if-0'd block.
21228         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21229         sometimes we must *not* use it.  Adjust uses accordingly.
21230         (sc_tight_scope): Use much simpler grep-based test to determine
21231         whether we skip this rule.
21232
21233         maint.mk: generalize/improve the tight-scope rule
21234         * top/maint.mk: Emit a warning when the test is skipped.
21235         (_gl_TS_dir): Add $(srcdir)/ prefix.
21236         (_gl_TS_function_match): Simplify, rather than trying
21237         to enumerate common types.  Otherwise, it would fail to match an
21238         "extern unsigned char const *" declaration in idutils.
21239         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21240         a way to support use of that type of macro.
21241         (_gl_TS_var_match): Simplify regexp.
21242         (_gl_TS_obj_files): New configurable variable.
21243         (_gl_TS_headers): Likewise.
21244
21245 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21246
21247         verify: fix bug when gnulib <assert.h> is also included
21248         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21249         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21250         Perhaps there's a better way, but this fixes the immediate problem.
21251         Problem reported by Bruno Haible in
21252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21253
21254 2011-05-22  Bruno Haible  <bruno@clisp.org>
21255
21256         xgetcwd: Simplify autoconf macro.
21257         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21258
21259 2011-05-22  Bruno Haible  <bruno@clisp.org>
21260
21261         New module 'mktime-internal'.
21262         * modules/mktime-internal: New file.
21263         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21264         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21265         mktime_internal as a C macro if libc has __mktime_internal.
21266         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21267         conditions.
21268         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21269
21270 2011-05-22  Bruno Haible  <bruno@clisp.org>
21271
21272         timegm: Correct mktime replacement statements.
21273         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21274         defining mktime as a C macro. This completes a 2009-07-28 commit.
21275
21276 2011-05-22  Bruno Haible  <bruno@clisp.org>
21277
21278         timegm: Simplify autoconf macro.
21279         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21280
21281 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21282
21283         clock-time: change to LGPLv2+.
21284         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21285         BSD-like but we have no mark for that; this is good enough for now.
21286
21287 2011-05-21  Bruno Haible  <bruno@clisp.org>
21288
21289         strerror_r: Fix comments.
21290         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21291
21292 2011-05-21  Bruno Haible  <bruno@clisp.org>
21293
21294         relocatable-prog-wrapper: Fix possible link error.
21295         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21296         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21297         (gl_FUNC_SETENV): ... to here.
21298         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21299         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21300
21301 2011-05-21  Bruno Haible  <bruno@clisp.org>
21302
21303         relocatable-prog-wrapper: Assume strerror() exists.
21304         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21305         m4/strerror.m4.
21306         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21307         * lib/relocwrapper.c: Remove mention of strerror module.
21308         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21309         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21310         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21311         C macro.
21312
21313 2011-05-21  Bruno Haible  <bruno@clisp.org>
21314
21315         select: Simplify replacement idiom.
21316         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21317         Win32 platforms.
21318         * lib/sys_select.in.h (select): Simplify accordingly.
21319         * modules/select (Depends-on): Likewise.
21320
21321 2011-05-21  Bruno Haible  <bruno@clisp.org>
21322
21323         mkdir-p: Simplify autoconf macro.
21324         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21325         gl_FUNC_LCHOWN.
21326
21327 2011-05-21  Eric Blake  <eblake@redhat.com>
21328
21329         strerror_r: avoid clobbering strerror on cygwin
21330         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21331         fall back instead to sys_errlist.
21332         * modules/strerror (configure.ac): Add witness.
21333         * tests/test-strerror_r.c (main): Enhance test.
21334         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21335         * tests/test-perror2.c (main): Free memory before exit.
21336
21337 2011-05-21  Bruno Haible  <bruno@clisp.org>
21338
21339         mkdtemp: Use gnulib naming conventions.
21340         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21341         * modules/mkdtemp (configure.ac): Update.
21342
21343 2011-05-20  Eric Blake  <eblake@redhat.com>
21344
21345         strerror_r: avoid corrupting errno on Solaris
21346         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21347         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21348
21349         strerror_r: avoid compiler warning
21350         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21351
21352         strerror_r: simplify AIX code
21353         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21354
21355         test-perror: avoid spurious failure on FreeBSD
21356         * modules/perror-tests (Depends-on): Add strerror, now that
21357         strerror_r no longer pulls it in.
21358
21359 2011-05-20  Bruno Haible  <bruno@clisp.org>
21360
21361         strerror_r-posix: Remove unused dependencies.
21362         * modules/strerror_r-posix (Depends-on): Remove strerror.
21363         Reported by Eric Blake.
21364
21365 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21366
21367         intprops: remove assumption about A|B representation
21368         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21369         is a valid integer if both A and B are.  Although this is true for
21370         all known practical hosts, the C standard doesn't guarantee it,
21371         and the code need not assume it.  Also, this change may work around
21372         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21374
21375 2011-05-20  Eric Blake  <eblake@redhat.com>
21376
21377         perror: work around FreeBSD bug
21378         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21379         is broken.  Move AC_LIBOBJ...
21380         * modules/perror (configure.ac): Here.
21381         * doc/posix-functions/perror.texi (perror): Document this.
21382         * tests/test-perror2.c (main): Enhance test.
21383
21384         test-perror: check for strerror interactions
21385         * tests/macros.h (STREQ): Add macro.
21386         * modules/perror-tests (Files): Add second test.
21387         * tests/test-perror2.c (main): New file.
21388         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21389
21390         test-perror: rewrite to use init script
21391         * modules/perror-tests (Files): Add init.sh.
21392         * tests/test-perror.sh: Use temporary directory.
21393
21394 2011-05-20  Jim Meyering  <meyering@redhat.com>
21395
21396         maint: replace misused "a" with "an"
21397         * doc/intprops.texi: "a integer"
21398         * doc/regex.texi: "a explanation"
21399         * lib/alignof.h: "a object"
21400         * lib/argmatch.h: "a explanation"
21401         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21402         * lib/stdint.in.h: "a integer"
21403         * lib/userspec.c: "a owner"
21404         * doc/gnulib.texi: Fix "a idea", and reword.
21405
21406 2011-05-19  Jim Meyering  <meyering@redhat.com>
21407
21408         maint: correct misuse of "a" and "an"
21409         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21410         * lib/argp-help.c: "an docum...": s/an/a/
21411         * lib/argp-parse.c: "An vector": s/An/A/
21412         * lib/execute.c: "an native": s/an/a/
21413         * lib/spawn-pipe.c: Likewise.
21414         * lib/gc.h: "an Gc_rc": s/an/a/
21415         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21416         * lib/fts.c: "an stat.st_dev": s/an/a/
21417
21418 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21419
21420         intprops-tests: work around HP-UX 11.23 cc bug with constants
21421         * tests/test-intprops.c (VERIFY): New macro.
21422         (main): Use it, instead of verify, to work around the compiler bug; see
21423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21424
21425         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21426         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21427         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21428         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21429         (_GL_REMAINDER_OVERFLOW): Use it.
21430
21431         intprops-tests: revert unsigned part of previous change
21432         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21433         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21434         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21436
21437 2011-05-19  Bruno Haible  <bruno@clisp.org>
21438
21439         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21440         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21441         strerror_r() returned without filling the buffer.
21442         Reported by Eric Blake.
21443
21444 2011-05-19  Eric Blake  <eblake@redhat.com>
21445
21446         strerror_r: guarantee unchanged errno
21447         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21448         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21449         failure.
21450         * tests/test-strerror_r.c (main): Enhance test.
21451
21452 2011-05-19  Bruno Haible  <bruno@clisp.org>
21453
21454         strerror_r: Reorder #if blocks.
21455         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21456         for consistency with the previous commit.
21457
21458 2011-05-19  Bruno Haible  <bruno@clisp.org>
21459
21460         perror: Avoid clobbering the strerror buffer when possible.
21461         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21462         * lib/strerror.c: Include it.
21463         * modules/strerror (Files): Add lib/strerror-impl.h.
21464         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21465         (my_strerror): New function, defined through lib/strerror-impl.h.
21466         (perror): Use it instead of strerror.
21467         * modules/perror (Files): Add lib/strerror-impl.h.
21468         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21469
21470 2011-05-19  Eric Blake  <eblake@redhat.com>
21471
21472         strerror_r: fix on newer cygwin
21473         * lib/strerror_r.c (strerror_r): Cygwin now has
21474         __xpg_strerror_r, use it.
21475
21476 2011-05-19  Bruno Haible  <bruno@clisp.org>
21477
21478         strerror_r: Avoid clobbering the strerror buffer when possible.
21479         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21480         (sys_nerr, sys_errlist): New declarations.
21481         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21482         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21483         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21484
21485 2011-05-19  Bruno Haible  <bruno@clisp.org>
21486
21487         strerror_r: Fix test failure on mingw.
21488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21489         EXTEND_STRERROR_R.
21490         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21491         macros from errno.in.h instead.
21492
21493 2011-05-19  Eric Blake  <eblake@redhat.com>
21494
21495         strerror: relax test for Solaris
21496         * tests/test-strerror.c (main): Permit Solaris behavior.
21497         * tests/test-strerror_r.c (main): Likewise.
21498
21499         strerror: enforce POSIX ruling on strerror(0)
21500         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21501         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21502         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21503         * doc/posix-functions/strerror.texi (strerror): Document it.
21504         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21505         * tests/test-strerror.c (main): Strengthen test.
21506         * tests/test-strerror_r.c (main): Likewise.
21507
21508 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21509
21510         intprop-tests: port to older and more-pedantic compilers
21511         * modules/intprops-tests (Files): Add tests/macros.h.
21512         * tests/test-intprops.c: Include macros.h.
21513         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21514         it's no longer documented to expand to an integer constant expression.
21515         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21516         argument is floating point, as it's no longer documented to expand
21517         to an integer constant expression in that case.
21518         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21519         compiler bugs reported by Bruno Haible.  See
21520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21521         (U0, U1): New constants, to work around the same bugs.  Also,
21522         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21523
21524         intprops: work around C compiler bugs
21525         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21526         bug in Sun C 5.11 2010/08/13 and other compilers; see
21527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21528
21529         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21530         * doc/intprops.texi (Integer Type Determination): Fix
21531         documentation for TYPE_IS_INTEGER: it returns an constant
21532         expression, not an integer constant expression.  Fix doc for
21533         TYPE_SIGNED: it returns an integer constant expression only if its
21534         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21535         hardly worth documented that way....)
21536
21537 2011-05-18  Bruno Haible  <bruno@clisp.org>
21538
21539         strerror_r: Avoid clobbering the strerror buffer when possible.
21540         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21541         Handle gnulib defined errno values here. When strerror() returns NULL
21542         or an empty string, return EINVAL.
21543         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21544         gnulib defined errno values here.
21545         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21546
21547 2011-05-18  Eric Blake  <eblake@redhat.com>
21548
21549         fnmatch: avoid compiler warning
21550         * lib/fnmatch_loop.c (FCT): Use correct type.
21551         Reported by Matthias Bolte.
21552
21553 2011-05-13  Jim Meyering  <meyering@redhat.com>
21554
21555         maint.mk: three new prohibit_<HDR>_without_use rules
21556         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21557         (sc_prohibit_stdio-safer_without_use): Likewise.
21558         (sc_prohibit_xfreopen_without_use): Likewise.
21559
21560 2011-05-17  Jim Meyering  <meyering@redhat.com>
21561
21562         announce-gen: fail if the NEWS delta is empty
21563         If there's nothing noteworthy in NEWS, then either you forgot
21564         or you shouldn't be releasing.
21565         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21566
21567 2011-05-17  Pádraig Brady <P@draigBrady.com>
21568
21569         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21570         reserved symbols starting with double underscore from the check.
21571
21572 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21573
21574         intprops: add doc
21575         * doc/intprops.texi: New file, documenting intprops.
21576         * doc/gnulib.texi (Particular Modules): Include it.
21577
21578         verify: add doc to gnulib manual and fix example
21579         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21580         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21581         (Compile-time Assertions): Fix example so it can't overflow.
21582
21583 2011-05-17  Jim Meyering  <meyering@redhat.com>
21584
21585         warnings.m4: don't usurp save_CPPFLAGS variable name
21586         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21587
21588         doc: fix typo
21589         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21590
21591 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21592             Bruno Haible  <bruno@clisp.org>
21593
21594         doc: Tweak recent change.
21595         * README (Portability guidelines): Tweak new text.
21596         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21597         Interix 6.1.
21598
21599 2011-05-16  Eric Blake  <eblake@redhat.com>
21600
21601         inttypes: avoid autoconf warning
21602         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21604
21605 2011-05-16  Sam Steingold <sds@gnu.org>
21606         and Eric Blake  <eblake@redhat.com>
21607
21608         vc-list-files: accept multiple directory operands
21609         * build-aux/vc-list-files: Iterate over all remaining operands.
21610
21611 2011-05-16  Bruno Haible  <bruno@clisp.org>
21612
21613         Fix confusion regarding deprecated modules.
21614         * modules/calloc (Status, Notice): Mark module as deprecated, not
21615         obsolete.
21616         * modules/fnmatch-posix (Status, Notice): Likewise.
21617         * modules/getdate (Status, Notice): Likewise.
21618         * modules/getopt (Status, Notice): Likewise.
21619         * modules/malloc (Status, Notice): Likewise.
21620         * modules/pipe (Status, Notice): Likewise.
21621         * modules/realloc (Status, Notice): Likewise.
21622         * modules/rename-dest-slash (Status, Notice): Likewise.
21623         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21624         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21625         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21626         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21627         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21628
21629 2011-05-16  Bruno Haible  <bruno@clisp.org>
21630
21631         doc: List the target platforms.
21632         * doc/gnulib-intro.texi (Target Platforms): New section.
21633         * doc/gnulib.texi (Introduction): Update menu.
21634         * README (Portability guidelines): Refer to the new section. Update
21635         statement about oldest supported environment. Remove rationale why
21636         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21637         unportable C89 function.
21638         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21639         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21640
21641 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21642
21643         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21644
21645 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21646
21647         intprops-tests: new module
21648         * modules/intprops-tests, tests/test-intprops.c: New files.
21649
21650         intprops: add safe, portable integer overflow checking
21651         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21652         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21653         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21654         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21655         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21656         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21657         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21658         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21659         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21660         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21661         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21662
21663 2011-05-12  James Youngman  <jay@gnu.org>
21664
21665         Add a test for glibc's Bugzilla bug #12378.
21666         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21667         doesn't allow the literal matching of a lone "[" (which is
21668         required by POSIX).
21669         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21670
21671 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21672
21673         Sync glibc change fixing Bugzilla bug #12378.
21674         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21675         beginning and fall back to matching as normal character if the
21676         string ends before the matching ']' is found.  This is what POSIX
21677         requires.
21678
21679 2011-05-13  Eric Blake  <eblake@redhat.com>
21680
21681         getcwd-lgpl: relax test for FreeBSD
21682         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21683         issue.
21684         * tests/test-getcwd-lgpl.c (main): Relax test.
21685         Reported by Matthias Bolte.
21686
21687 2011-05-11  Eric Blake  <eblake@redhat.com>
21688
21689         test-fflush: silence compiler warning
21690         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21691
21692 2011-05-11  Bruno Haible  <bruno@clisp.org>
21693
21694         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21695         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21696         * modules/canonicalize (Depends-on): Add 'nocrash'.
21697         * modules/canonicalize-lgpl (Depends-on): Likewise.
21698         * doc/posix-functions/realpath.texi: Update platforms list.
21699         Reported by Ryan Schmidt <ryandesign@macports.org>.
21700
21701 2011-05-11  Bruno Haible  <bruno@clisp.org>
21702
21703         group-member: Declare function in <unistd.h>.
21704         * lib/unistd.in.h (group_member): New declaration.
21705         * lib/group-member.h: Remove file.
21706         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21707         * tests/test-unistd-c++.cc: Check signature of group_member.
21708         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21709         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21710         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21711         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21712         HAVE_GROUP_MEMBER.
21713         * modules/group-member (Files): Remove lib/group-member.h.
21714         (Depends-on): Add unistd. Specify conditions.
21715         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21716         (Include): Change to <unistd.h>.
21717         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21718         HAVE_GROUP_MEMBER.
21719         * NEWS: Mention the change.
21720         * lib/euidaccess.c: Don't include group-member.h.
21721
21722 2011-05-11  Bruno Haible  <bruno@clisp.org>
21723
21724         group-member: Document module.
21725         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21726         module.
21727
21728 2011-05-11  Bruno Haible  <bruno@clisp.org>
21729
21730         fclose: Fix mistake earlier today.
21731         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21732
21733 2011-05-11  Eric Blake  <eblake@redhat.com>
21734
21735         fclose: preserve fflush errors
21736         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21737         Reported by Jim Meyering.
21738
21739         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21740         * build-aux/bootstrap (check_versions): When no specific version
21741         is required, merely check that the app produces an exit status
21742         that indicates its existence.
21743
21744         maint.mk: drop redundant check
21745         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21746         the same but better.
21747
21748 2011-05-11  Bruno Haible  <bruno@clisp.org>
21749
21750         fclose: Fix possible link error.
21751         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21752         unregister_shadow_fd. Improve comments.
21753         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21754         Eric Blake.
21755
21756 2011-05-11  Jim Meyering  <meyering@redhat.com>
21757
21758         maint.mk: improve "can not" detection and generalize rule name
21759         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21760         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21761         Use the same technique as in sc_prohibit_doubled_word, so that
21762         we recognize "can not" also when the words are separated by a newline.
21763         Suggested by Eric Blake.
21764         (perl_filename_lineno_text_): Define.  Factored out of...
21765         (prohibit_doubled_word_): ...here.  Use the new definition.
21766         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21767         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21768         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21769
21770 2011-05-10  Eric Blake  <eblake@redhat.com>
21771
21772         fclose: avoid double close race when possible
21773         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21774         all but WINDOWS_SOCKETS.
21775
21776 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21777
21778         openat: correct new comment
21779         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21780
21781 2011-05-10  Jim Meyering  <meyering@redhat.com>
21782
21783         openat: add comments
21784         * lib/openat-proc.c (openat_proc_name): Add comments,
21785         mostly from Eric Blake.
21786
21787 2011-05-09  Eric Blake  <eblake@redhat.com>
21788
21789         openat: reduce syscalls in first probe of /proc
21790         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21791         be a directory.  Simplify the probe for .. bugs.
21792         * modules/openat (Depends-on): Drop same-inode.
21793         Reported by Bastien ROUCARIES.
21794
21795 2011-05-09  Jim Meyering  <meyering@redhat.com>
21796
21797         maint.mk: change semantics/name of tight_scope variables
21798         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21799         Rename variables to align with semantics that make them more useful.
21800
21801         maint.mk: tweak new rule's name not to impinge
21802         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21803         (sc_tight_scope): Use new rule name rather than $@-0.
21804
21805         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21806         * top/maint.mk (sc_tight_scope): New rule.
21807         (sc_tight_scope-0): New rule, ifdef'd out.
21808         (_gl_TS_dir): Default.
21809         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21810         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21811
21812 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21813
21814         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21815         Haible <bruno@clisp.org>.
21816
21817 2011-05-08  Bruno Haible  <bruno@clisp.org>
21818
21819         Comments.
21820         * m4/isnanf.m4: Add comment.
21821         * m4/isnanl.m4: Likewise.
21822
21823 2011-05-08  Bruno Haible  <bruno@clisp.org>
21824
21825         glob: Remove obsolete macro.
21826         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21827
21828 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21829
21830         intprops: Sun C 5.11 supports __typeof__
21831         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21832         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21833         which is new.
21834         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21835
21836         intprops: switch to usual gnulib indenting and naming
21837         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21838         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21839
21840         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21841
21842 2011-05-08  Jim Meyering  <meyering@redhat.com>
21843
21844         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21845         * top/maint.mk (release-prep): Use make's --no-print-directory
21846         option when generating the announcement.  This eliminates the
21847         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21848         generated announcement template.
21849
21850 2011-05-08  Bruno Haible  <bruno@clisp.org>
21851
21852         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21853         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21854         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21855
21856 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21857
21858         ignore-value, verify: Omit include files from lib_SOURCES.
21859         * modules/ignore-value, modules/verify (Makefile.am):
21860         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21861         that leads Automake to duplicate use of am__objects_... variables
21862         in Makefile.in.  See
21863         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21864
21865 2011-05-07  Bruno Haible  <bruno@clisp.org>
21866
21867         fclose: Simplify autoconf macro.
21868         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21869         defined.
21870
21871 2011-05-07  Bruno Haible  <bruno@clisp.org>
21872
21873         canonicalize-lgpl: Fix autoconf macro ordering bug.
21874         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21875         gl_STDLIB_H_DEFAULTS.
21876
21877 2011-05-06  Eric Blake  <eblake@redhat.com>
21878
21879         maintainer-makefile: make sc_po_check easier to tune
21880         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21881         to probe for strings, such as an alternate location for gnulib.
21882
21883         fclose: guarantee behavior on seekable stdin
21884         * modules/fclose (Depends-on): Add fflush.
21885         * doc/posix-functions/fclose.texi (fclose): Document this.
21886         * tests/test-fclose.c (main): Make test for this unconditional.
21887
21888 2011-05-06  Bruno Haible  <bruno@clisp.org>
21889
21890         fflush, fpurge: Relicense under LGPLv2+.
21891         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21892         * modules/fpurge (License): Likewise.
21893         With permission from Eric Blake and Jim Meyering.
21894         Suggested by Eric Blake.
21895
21896 2011-05-06  Karl Berry  <karl@gnu.org>
21897
21898         * MODULES.html.sh (func_all_modules): remove exit.
21899
21900 2011-05-06  Jim Meyering  <meyering@redhat.com>
21901
21902         maint.mk: use info-gnu@ as the default only for a stable release
21903         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21904         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21905         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21907
21908 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21909
21910         assert-h: new module, which supports C1X-style static_assert
21911         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21912         * lib/verify.h: Revamp so that this can be copied into assert.h,
21913         while retaining the ability to use it standalone as before.
21914         Rename private identifiers so as not to encroach on the
21915         standard C namespace, since this is now used by assert.h.
21916         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21917         the old verify_true.
21918         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21919         the old verify_true.  Use _GL_VERIFY_TYPE.
21920         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21921         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21922         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21923         defined when this file is copied into the replacement assert.h.
21924         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21925         and _Static_assert is not built in.
21926         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21927         defined, and use the new macros mentioned above.
21928         * doc/posix-headers/assert.texi: Document this.
21929
21930 2011-05-05  Bruno Haible  <bruno@clisp.org>
21931
21932         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21933         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21934         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21935         gl_REPLACE_FCLOSE here.
21936         * modules/fflush (Depends-on): Remove fclose.
21937         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21938         combination with module 'fclose'.
21939
21940 2011-05-05  Bruno Haible  <bruno@clisp.org>
21941
21942         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21943         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21944         gl_FUNC_FFLUSH.
21945         (gl_FUNC_FFLUSH): Use it.
21946         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21947         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21948         gl_REPLACE_FSEEKO here.
21949
21950 2011-05-05  Bruno Haible  <bruno@clisp.org>
21951
21952         tzset: Relicense under LGPL.
21953         * modules/tzset (License): Change to LGPL.
21954         No agreement needed; it's a no-op.
21955
21956         strtoimax, strtoumax: Relicense under LGPL.
21957         * modules/strtoimax (License): Change to LGPL.
21958         * modules/strtoumax (License): Likewise.
21959         With permission from Jim Meyering, Paul Eggert:
21960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21962
21963         getgroups: Relicense under LGPL.
21964         * modules/getgroups (License): Change to LGPL.
21965         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21969
21970         nanosleep: Relicense under LGPL.
21971         * modules/nanosleep (License): Change to LGPL.
21972         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21973         Haible:
21974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21978
21979         futimens: Relicense under LGPL.
21980         * modules/futimens (License): Change to LGPL.
21981         With permission from Eric Blake:
21982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21983
21984         fflush: Relicense under LGPL.
21985         * modules/fflush (License): Change to LGPL.
21986         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21990
21991         tmpfile: Relicense under LGPL.
21992         * modules/tmpfile (License): Change to LGPL.
21993         With permission from Ben Pfaff:
21994         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21995
21996         isfinite: Relicense under LGPL.
21997         * modules/isfinite (License): Change to LGPL.
21998         With permission from Ben Pfaff, Bruno Haible:
21999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22001
22002         acosl..tanl: Relicense under LGPL.
22003         * modules/acosl (License): Change to LGPL.
22004         * modules/asinl (License): Likewise.
22005         * modules/atanl (License): Likewise.
22006         * modules/cosl (License): Likewise.
22007         * modules/expl (License): Likewise.
22008         * modules/logl (License): Likewise.
22009         * modules/sinl (License): Likewise.
22010         * modules/sqrtl (License): Likewise.
22011         * modules/tanl (License): Likewise.
22012         Source code originally from glibc and Paolo Bonzini. Agreements:
22013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22015
22016 2011-05-05  Bruno Haible  <bruno@clisp.org>
22017
22018         signal: Define sighandler_t.
22019         * lib/signal.in.h (sighandler_t): New type.
22020         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22021         whether sighandler_t is defined.
22022         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22023         * modules/signal (Depends-on): Add extensions.
22024         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22025         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22026         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22027
22028 2011-05-05  Eric Blake  <eblake@redhat.com>
22029
22030         maint: remove useless REPLACE_*_H macros
22031         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22032         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22033         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22034         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22035         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22036         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22037         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22038         * m4/btowc.m4: Update callers.
22039         * m4/dirfd.m4: Likewise.
22040         * m4/duplocale.m4: Likewise.
22041         * m4/fchdir.m4: Likewise.
22042         * m4/fdopendir.m4: Likewise.
22043         * m4/inet_ntop.m4: Likewise.
22044         * m4/inet_pton.m4: Likewise.
22045         * m4/ioctl.m4: Likewise.
22046         * m4/mbrlen.m4: Likewise.
22047         * m4/mbrtowc.m4: Likewise.
22048         * m4/mbsinit.m4: Likewise.
22049         * m4/mbsnrtowcs.m4: Likewise.
22050         * m4/mbsrtowcs.m4: Likewise.
22051         * m4/poll.m4: Likewise.
22052         * m4/setlocale.m4: Likewise.
22053         * m4/wcrtomb.m4: Likewise.
22054         * m4/wcsnrtombs.m4: Likewise.
22055         * m4/wcsrtombs.m4: Likewise.
22056         * m4/wctob.m4: Likewise.
22057         * m4/wcwidth.m4: Likewise.
22058         * modules/posix_spawn: Likewise.
22059         * modules/posix_spawn_file_actions_addclose: Likewise.
22060         * modules/posix_spawn_file_actions_adddup2: Likewise.
22061         * modules/posix_spawn_file_actions_addopen: Likewise.
22062         * modules/posix_spawn_file_actions_destroy: Likewise.
22063         * modules/posix_spawn_file_actions_init: Likewise.
22064         * modules/posix_spawnattr_destroy: Likewise.
22065         * modules/posix_spawnattr_getflags: Likewise.
22066         * modules/posix_spawnattr_getpgroup: Likewise.
22067         * modules/posix_spawnattr_getschedparam: Likewise.
22068         * modules/posix_spawnattr_getschedpolicy: Likewise.
22069         * modules/posix_spawnattr_getsigdefault: Likewise.
22070         * modules/posix_spawnattr_getsigmask: Likewise.
22071         * modules/posix_spawnattr_init: Likewise.
22072         * modules/posix_spawnattr_setflags: Likewise.
22073         * modules/posix_spawnattr_setpgroup: Likewise.
22074         * modules/posix_spawnattr_setschedparam: Likewise.
22075         * modules/posix_spawnattr_setschedpolicy: Likewise.
22076         * modules/posix_spawnattr_setsigdefault: Likewise.
22077         * modules/posix_spawnattr_setsigmask: Likewise.
22078         * modules/posix_spawnp: Likewise.
22079
22080 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22081
22082         Add option to do-release-commit-and-tag to specify branch.
22083         * build-aux/do-release-commit-and-tag: Add --branch.
22084
22085 2011-05-03  Bruno Haible  <bruno@clisp.org>
22086
22087         Avoid unnecessary compilation units, through conditional dependencies.
22088         * modules/accept (Depends-on): Add conditions to the dependencies.
22089         * modules/acosl (Depends-on): Likewise.
22090         * modules/argz (Depends-on): Likewise.
22091         * modules/asinl (Depends-on): Likewise.
22092         * modules/atanl (Depends-on): Likewise.
22093         * modules/atoll (Depends-on): Likewise.
22094         * modules/bind (Depends-on): Likewise.
22095         * modules/btowc (Depends-on): Likewise.
22096         * modules/canonicalize-lgpl (Depends-on): Likewise.
22097         * modules/ceil (Depends-on): Likewise.
22098         * modules/ceilf (Depends-on): Likewise.
22099         * modules/ceill (Depends-on): Likewise.
22100         * modules/chdir-long (Depends-on): Likewise.
22101         * modules/chown (Depends-on): Likewise.
22102         * modules/close (Depends-on): Likewise.
22103         * modules/connect (Depends-on): Likewise.
22104         * modules/cosl (Depends-on): Likewise.
22105         * modules/dirfd (Depends-on): Likewise.
22106         * modules/dprintf (Depends-on): Likewise.
22107         * modules/dprintf-posix (Depends-on): Likewise.
22108         * modules/error (Depends-on): Likewise.
22109         * modules/euidaccess (Depends-on): Likewise.
22110         * modules/expl (Depends-on): Likewise.
22111         * modules/faccessat (Depends-on): Likewise.
22112         * modules/fchdir (Depends-on): Likewise.
22113         * modules/fclose (Depends-on): Likewise.
22114         * modules/fcntl (Depends-on): Likewise.
22115         * modules/fdopendir (Depends-on): Likewise.
22116         * modules/fflush (Depends-on): Likewise.
22117         * modules/floor (Depends-on): Likewise.
22118         * modules/floorf (Depends-on): Likewise.
22119         * modules/floorl (Depends-on): Likewise.
22120         * modules/fnmatch (Depends-on): Likewise.
22121         * modules/fopen (Depends-on): Likewise.
22122         * modules/fprintf-posix (Depends-on): Likewise.
22123         * modules/frexp (Depends-on): Likewise.
22124         * modules/frexp-nolibm (Depends-on): Likewise.
22125         * modules/frexpl (Depends-on): Likewise.
22126         * modules/frexpl-nolibm (Depends-on): Likewise.
22127         * modules/fseek (Depends-on): Likewise.
22128         * modules/fsusage (Depends-on): Likewise.
22129         * modules/ftell (Depends-on): Likewise.
22130         * modules/ftello (Depends-on): Likewise.
22131         * modules/futimens (Depends-on): Likewise.
22132         * modules/getcwd (Depends-on): Likewise.
22133         * modules/getcwd-lgpl (Depends-on): Likewise.
22134         * modules/getdelim (Depends-on): Likewise.
22135         * modules/getdomainname (Depends-on): Likewise.
22136         * modules/getgroups (Depends-on): Likewise.
22137         * modules/gethostname (Depends-on): Likewise.
22138         * modules/getline (Depends-on): Likewise.
22139         * modules/getlogin_r (Depends-on): Likewise.
22140         * modules/getopt-posix (Depends-on): Likewise.
22141         * modules/getpeername (Depends-on): Likewise.
22142         * modules/getsockname (Depends-on): Likewise.
22143         * modules/getsockopt (Depends-on): Likewise.
22144         * modules/getsubopt (Depends-on): Likewise.
22145         * modules/getusershell (Depends-on): Likewise.
22146         * modules/glob (Depends-on): Likewise.
22147         * modules/grantpt (Depends-on): Likewise.
22148         * modules/iconv_open (Depends-on): Likewise.
22149         * modules/iconv_open-utf (Depends-on): Likewise.
22150         * modules/inet_ntop (Depends-on): Likewise.
22151         * modules/inet_pton (Depends-on): Likewise.
22152         * modules/ioctl (Depends-on): Likewise.
22153         * modules/isapipe (Depends-on): Likewise.
22154         * modules/isfinite (Depends-on): Likewise.
22155         * modules/isinf (Depends-on): Likewise.
22156         * modules/lchown (Depends-on): Likewise.
22157         * modules/ldexpl (Depends-on): Likewise.
22158         * modules/link (Depends-on): Likewise.
22159         * modules/linkat (Depends-on): Likewise.
22160         * modules/listen (Depends-on): Likewise.
22161         * modules/logl (Depends-on): Likewise.
22162         * modules/lstat (Depends-on): Likewise.
22163         * modules/mbrlen (Depends-on): Likewise.
22164         * modules/mbrtowc (Depends-on): Likewise.
22165         * modules/mbsinit (Depends-on): Likewise.
22166         * modules/mbsnrtowcs (Depends-on): Likewise.
22167         * modules/mbsrtowcs (Depends-on): Likewise.
22168         * modules/mbtowc (Depends-on): Likewise.
22169         * modules/memcmp (Depends-on): Likewise.
22170         * modules/mkdir (Depends-on): Likewise.
22171         * modules/mkdtemp (Depends-on): Likewise.
22172         * modules/mkfifo (Depends-on): Likewise.
22173         * modules/mkfifoat (Depends-on): Likewise.
22174         * modules/mknod (Depends-on): Likewise.
22175         * modules/mkostemp (Depends-on): Likewise.
22176         * modules/mkostemps (Depends-on): Likewise.
22177         * modules/mkstemp (Depends-on): Likewise.
22178         * modules/mkstemps (Depends-on): Likewise.
22179         * modules/mktime (Depends-on): Likewise.
22180         * modules/nanosleep (Depends-on): Likewise.
22181         * modules/open (Depends-on): Likewise.
22182         * modules/openat (Depends-on): Likewise.
22183         * modules/perror (Depends-on): Likewise.
22184         * modules/poll (Depends-on): Likewise.
22185         * modules/popen (Depends-on): Likewise.
22186         * modules/posix_spawn (Depends-on): Likewise.
22187         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22188         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22189         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22190         * modules/posix_spawnp (Depends-on): Likewise.
22191         * modules/pread (Depends-on): Likewise.
22192         * modules/printf-posix (Depends-on): Likewise.
22193         * modules/ptsname (Depends-on): Likewise.
22194         * modules/putenv (Depends-on): Likewise.
22195         * modules/pwrite (Depends-on): Likewise.
22196         * modules/readline (Depends-on): Likewise.
22197         * modules/readlink (Depends-on): Likewise.
22198         * modules/readlinkat (Depends-on): Likewise.
22199         * modules/recv (Depends-on): Likewise.
22200         * modules/recvfrom (Depends-on): Likewise.
22201         * modules/regex (Depends-on): Likewise.
22202         * modules/remove (Depends-on): Likewise.
22203         * modules/rename (Depends-on): Likewise.
22204         * modules/renameat (Depends-on): Likewise.
22205         * modules/rmdir (Depends-on): Likewise.
22206         * modules/round (Depends-on): Likewise.
22207         * modules/roundf (Depends-on): Likewise.
22208         * modules/roundl (Depends-on): Likewise.
22209         * modules/rpmatch (Depends-on): Likewise.
22210         * modules/select (Depends-on): Likewise.
22211         * modules/send (Depends-on): Likewise.
22212         * modules/sendto (Depends-on): Likewise.
22213         * modules/setenv (Depends-on): Likewise.
22214         * modules/setlocale (Depends-on): Likewise.
22215         * modules/setsockopt (Depends-on): Likewise.
22216         * modules/shutdown (Depends-on): Likewise.
22217         * modules/sigaction (Depends-on): Likewise.
22218         * modules/signbit (Depends-on): Likewise.
22219         * modules/sigprocmask (Depends-on): Likewise.
22220         * modules/sinl (Depends-on): Likewise.
22221         * modules/sleep (Depends-on): Likewise.
22222         * modules/snprintf (Depends-on): Likewise.
22223         * modules/snprintf-posix (Depends-on): Likewise.
22224         * modules/socket (Depends-on): Likewise.
22225         * modules/sprintf-posix (Depends-on): Likewise.
22226         * modules/sqrtl (Depends-on): Likewise.
22227         * modules/stat (Depends-on): Likewise.
22228         * modules/strchrnul (Depends-on): Likewise.
22229         * modules/strdup-posix (Depends-on): Likewise.
22230         * modules/strerror (Depends-on): Likewise.
22231         * modules/strerror_r-posix (Depends-on): Likewise.
22232         * modules/strndup (Depends-on): Likewise.
22233         * modules/strnlen (Depends-on): Likewise.
22234         * modules/strptime (Depends-on): Likewise.
22235         * modules/strsep (Depends-on): Likewise.
22236         * modules/strsignal (Depends-on): Likewise.
22237         * modules/strstr-simple (Depends-on): Likewise.
22238         * modules/strtod (Depends-on): Likewise.
22239         * modules/strtoimax (Depends-on): Likewise.
22240         * modules/strtok_r (Depends-on): Likewise.
22241         * modules/strtoumax (Depends-on): Likewise.
22242         * modules/symlink (Depends-on): Likewise.
22243         * modules/symlinkat (Depends-on): Likewise.
22244         * modules/tanl (Depends-on): Likewise.
22245         * modules/tcgetsid (Depends-on): Likewise.
22246         * modules/tmpfile (Depends-on): Likewise.
22247         * modules/trunc (Depends-on): Likewise.
22248         * modules/truncf (Depends-on): Likewise.
22249         * modules/truncl (Depends-on): Likewise.
22250         * modules/uname (Depends-on): Likewise.
22251         * modules/unlink (Depends-on): Likewise.
22252         * modules/unlockpt (Depends-on): Likewise.
22253         * modules/unsetenv (Depends-on): Likewise.
22254         * modules/usleep (Depends-on): Likewise.
22255         * modules/utimensat (Depends-on): Likewise.
22256         * modules/vasprintf (Depends-on): Likewise.
22257         * modules/vdprintf (Depends-on): Likewise.
22258         * modules/vdprintf-posix (Depends-on): Likewise.
22259         * modules/vfprintf-posix (Depends-on): Likewise.
22260         * modules/vprintf-posix (Depends-on): Likewise.
22261         * modules/vsnprintf (Depends-on): Likewise.
22262         * modules/vsnprintf-posix (Depends-on): Likewise.
22263         * modules/vsprintf-posix (Depends-on): Likewise.
22264         * modules/wcrtomb (Depends-on): Likewise.
22265         * modules/wcscasecmp (Depends-on): Likewise.
22266         * modules/wcscspn (Depends-on): Likewise.
22267         * modules/wcsdup (Depends-on): Likewise.
22268         * modules/wcsncasecmp (Depends-on): Likewise.
22269         * modules/wcsnrtombs (Depends-on): Likewise.
22270         * modules/wcspbrk (Depends-on): Likewise.
22271         * modules/wcsrtombs (Depends-on): Likewise.
22272         * modules/wcsspn (Depends-on): Likewise.
22273         * modules/wcsstr (Depends-on): Likewise.
22274         * modules/wcstok (Depends-on): Likewise.
22275         * modules/wcswidth (Depends-on): Likewise.
22276         * modules/wctob (Depends-on): Likewise.
22277         * modules/wctomb (Depends-on): Likewise.
22278         * modules/wctype (Depends-on): Likewise.
22279         * modules/wcwidth (Depends-on): Likewise.
22280         * modules/write (Depends-on): Likewise.
22281
22282 2011-05-03  Bruno Haible  <bruno@clisp.org>
22283
22284         Support for conditional dependencies.
22285         * doc/gnulib.texi (Module description): Document the syntax of
22286         conditional dependencies.
22287         * gnulib-tool: New option --conditional-dependencies.
22288         (func_usage): Document it.
22289         (cond_dependencies): New variable.
22290         (func_get_automake_snippet_conditional,
22291         func_get_automake_snippet_unconditional): New functions, extracted from
22292         func_get_automake_snippet.
22293         (func_get_automake_snippet): Use them.
22294         (sed_first_32_chars): New variable.
22295         (func_module_shellfunc_name): New function.
22296         (func_module_shellvar_name): New function.
22297         (func_module_conditional_name): New function.
22298         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22299         func_cond_module_condition): New functions.
22300         (func_modules_transitive_closure): Add support for conditional
22301         dependencies.
22302         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22303         conditional automake snippet in an automake conditional.
22304         (func_emit_autoconf_snippets): Emit shell functions that contain the
22305         code for conditional modules.
22306         (func_import, func_create_testdir): Update specification.
22307
22308 2011-05-03  Eric Blake  <eblake@redhat.com>
22309
22310         test-getaddrinfo: report error information
22311         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22312
22313 2011-05-03  Jim Meyering  <meyering@redhat.com>
22314
22315         bootstrap: avoid build failure when $GZIP is set
22316         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22317         program name.  If defined at all, it is supposed to list gzip options.
22318         Reported by Alan Curry in http://debbugs.gnu.org/8609
22319
22320 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22321
22322         readme-release: new module with release instructions
22323         * modules/readme-release: New module.
22324         * top/README-release: New file, from coreutils, grep, diffutils.
22325         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22326
22327 2011-05-02  Eric Blake  <eblake@redhat.com>
22328
22329         fflush: also replace fclose when fixing fflush
22330         * modules/fflush (Depends-on): Add fclose.
22331         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22332         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22333         memstreams with no backing fd.
22334         * doc/posix-functions/fclose.texi (fclose): Document the use of
22335         fflush module to fix the bug.
22336         * tests/test-fclose.c (main): Relax test when fclose is used in
22337         isolation.
22338
22339         fclose: add some tests
22340         * modules/fclose-tests: New test module.
22341         * tests/test-fclose.c: New file.
22342         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22343
22344         fclose: reduced dependencies
22345         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22346         simpler lseek.
22347         * lib/fclose.c (rpl_fclose): Likewise.
22348         Reported by Simon Josefsson.
22349
22350         exit: drop remaining clients
22351         * modules/argmatch (Depends-on): Replace exit with stdlib.
22352         * modules/copy-file (Depends-on): Likewise.
22353         * modules/execute (Depends-on): Likewise.
22354         * modules/exitfail (Depends-on): Likewise.
22355         * modules/obstack (Depends-on): Likewise.
22356         * modules/pagealign_alloc (Depends-on): Likewise.
22357         * modules/pipe-filter-gi (Depends-on): Likewise.
22358         * modules/pipe-filter-ii (Depends-on): Likewise.
22359         * modules/savewd (Depends-on): Likewise.
22360         * modules/spawn-pipe (Depends-on): Likewise.
22361         * modules/wait-process (Depends-on): Likewise.
22362         * modules/xsetenv (Depends-on): Likewise.
22363         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22364         * modules/git-merge-changelog (Depends-on): Likewise.
22365         * modules/long-options (Depends-on): Likewise.
22366         * modules/pt_chown (Depends-on): Likewise.
22367         * modules/sysexits (Depends-on): Likewise.
22368
22369         freading: relax license from LGPLv3+ to LGPLv2+
22370         * modules/freading (License): Relax LGPL version.
22371
22372 2011-05-02  Bruno Haible  <bruno@clisp.org>
22373
22374         fchdir: Remove unused dependencies.
22375         * modules/fchdir (Depends-on): Remove include_next.
22376
22377 2011-05-02  Bruno Haible  <bruno@clisp.org>
22378
22379         gnulib-tool: Refactor.
22380         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22381         from func_emit_autoconf_snippets.
22382         (func_emit_autoconf_snippets): Use it.
22383
22384 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22385
22386         * NEWS: Document removal of 'exit'.
22387         * modules/exit: Remove file.
22388
22389 2011-05-01  Bruno Haible  <bruno@clisp.org>
22390
22391         Update DEPENDENCIES.
22392         * DEPENDENCIES (gettext): Recommend the newest release.
22393         Reported by Simon Josefsson.
22394
22395 2011-05-01  Bruno Haible  <bruno@clisp.org>
22396
22397         gnulib-tool: Reduce code duplication.
22398         * gnulib-tool (func_emit_autoconf_snippets): New function.
22399         (func_import, func_create_testdir): Use it.
22400
22401 2011-04-30  Eric Blake  <eblake@redhat.com>
22402
22403         fclose: don't fail on non-seekable input stream
22404         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22405         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22406         since fflush is allowed to fail in that case.
22407
22408 2011-04-30  Bruno Haible  <bruno@clisp.org>
22409
22410         dup3: cleanup
22411         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22412
22413 2011-04-30  Bruno Haible  <bruno@clisp.org>
22414
22415         netdb: Make it work in C++ mode.
22416         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22417         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22418         module.
22419         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22420         gl_MODULE_INDICATOR_FOR_TESTS.
22421         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22422         * modules/netdb-c++-tests: New file.
22423         * tests/test-netdb-c++.cc: New file.
22424
22425 2011-04-30  Bruno Haible  <bruno@clisp.org>
22426
22427         New modules 'vfscanf', 'vscanf'.
22428         * modules/vfscanf: New file.
22429         * modules/vscanf: New file.
22430         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22431         here.
22432         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22433         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22434
22435 2011-04-30  Bruno Haible  <bruno@clisp.org>
22436
22437         passfd: Add comments.
22438         * lib/passfd.c: Add comments about platforms.
22439
22440 2011-04-30  Bruno Haible  <bruno@clisp.org>
22441
22442         sys_uio: Make <sys/uio.h> self-contained.
22443         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22444         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22445
22446 2011-04-30  Bruno Haible  <bruno@clisp.org>
22447
22448         sys_socket: Ensure 'struct iovec' definition.
22449         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22450         <sys/socket.h>.
22451         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22452
22453 2011-04-30  Bruno Haible  <bruno@clisp.org>
22454
22455         sys_uio: Protect definition of 'struct iovec'.
22456         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22457         it as a C struct.
22458
22459 2011-04-30  Bruno Haible  <bruno@clisp.org>
22460
22461         manywarnings: fix indentation
22462         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22463
22464 2011-04-30  Pádraig Brady <P@draigBrady.com>
22465
22466         manywarnings: add -Wno-missing-field-initializers if needed.
22467         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22468         option if it's needed to allow initialization with { 0, }
22469
22470 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22471
22472         announce-gen: cosmetic improvement
22473         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22474
22475 2011-04-29  Jim Meyering  <meyering@redhat.com>
22476
22477         vc-list-files: indent with spaces, not TABs
22478         * build-aux/vc-list-files: Convert leading TABs to spaces,
22479         to match the style of most other files in gnulib.
22480
22481         announce-gen: indent with spaces, not TABs
22482         * build-aux/announce-gen: Convert all TABs to spaces, to match
22483         the style of most other files in gnulib.
22484
22485 2011-04-29  Eric Blake  <eblake@redhat.com>
22486
22487         quotearg: avoid uninitialized variable use
22488         * lib/quotearg.c (quoting_options_from_style): Initialize
22489         remaining fields, and ensure that custom styles are only used via
22490         quoting_options rather than quoting_style.
22491
22492 2011-04-29  Jim Meyering  <meyering@redhat.com>
22493
22494         maint.mk: remove unused VC-tag variable
22495         * top/maint.mk (VC-tag): Remove unused variable.
22496
22497 2011-04-29  Bruno Haible  <bruno@clisp.org>
22498
22499         netdb: fix gai_strerror replacements
22500         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22501         * modules/netdb: Substitute it.
22502
22503 2011-04-29  Jim Meyering  <meyering@redhat.com>
22504
22505         test-getcwd.c: avoid new set-but-not-used warning
22506         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22507         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22508         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22509         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22510
22511         test-hash.c: avoid a new shadowing warning
22512         * tests/test-hash.c (main): Don't shadow "dup".
22513
22514 2011-04-28  Eric Blake  <eblake@redhat.com>
22515
22516         getaddrinfo: fix gai_strerror signature
22517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22518         and work around mingw with UNICODE defined.
22519         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22520         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22521         * modules/netdb (Makefile.am): Substitute it.
22522         * lib/netdb.in.h (gai_strerror): Declare replacement.
22523         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22524         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22525         the fix.
22526
22527         getsockopt: avoid compiler warning
22528         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22529         Reported by Matthias Bolte.
22530
22531         tests: drop unused link dependency
22532         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22533         * modules/dirent-safer-tests (Makefile.am): Likewise.
22534         * modules/fdopendir-tests (Makefile.am): Likewise.
22535         * modules/mkfifoat-tests (Makefile.am): Likewise.
22536         * modules/openat-safer-tests (Makefile.am): Likewise.
22537         * modules/openat-tests (Makefile.am): Likewise.
22538         * modules/readlinkat-tests (Makefile.am): Likewise.
22539         * modules/symlinkat-tests (Makefile.am): Likewise.
22540         * modules/linkat-tests (Makefile.am): Likewise.
22541         (Depends-on): Switch to filenamecat-lgpl.
22542         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22543         LIBINTL.
22544         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22545         * tests/test-linkat.c (main): Don't require xalloc.
22546
22547         hash, mgetgroups: drop xalloc dependency
22548         * lib/hash.c (includes): Adjust includes.
22549         * lib/mgetgroups.c (includes): Likewise.
22550         (xgetgroups): Move...
22551         * lib/xgetgroups.c: ...to new file.
22552         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22553         * modules/xgetgroups: New file, split from...
22554         * modules/mgetgroups: ...here.
22555         (Depends-on): Add xalloc-oversized.
22556         * modules/hash (Depends-on): Likewise.
22557         * modules/hash-tests (Depends-on): Drop xalloc.
22558         (test_hash_LDADD): Drop unused library.
22559         * tests/test-hash.c (main): Break xalloc dependency.
22560         (includes): Drop unused include.
22561
22562         xalloc-oversized: new module
22563         * modules/xalloc-oversized: New module.
22564         * modules/xalloc (Depends-on): Add it.
22565         * lib/xalloc.h (xalloc_oversized): Move...
22566         * lib/xalloc-oversized.h: ...into new file.
22567
22568         utimecmp: drop dependency on xmalloc
22569         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22570         due to memory pressure.
22571         * modules/utimecmp (Depends-on): Drop xalloc.
22572
22573 2011-04-27  Eric Blake  <eblake@redhat.com>
22574
22575         getcwd: fix mingw bugs
22576         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22577         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22578         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22579
22580 2011-04-27  Bruno Haible  <bruno@clisp.org>
22581
22582         mkstemps: Ensure declaration on MacOS X 10.5.
22583         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22584         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22585         MacOS X.
22586
22587 2011-04-27  Bruno Haible  <bruno@clisp.org>
22588
22589         mkstemp: More documentation.
22590         * doc/posix-functions/mkstemp.texi: Document header file problem on
22591         MacOS X.
22592
22593 2011-04-27  Bruno Haible  <bruno@clisp.org>
22594
22595         mkstemp: Tweak configure message when cross-compiling.
22596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22597         result as a guess.
22598
22599 2011-04-27  Bruno Haible  <bruno@clisp.org>
22600
22601         clean-temp: Clarify what it does.
22602         * lib/clean-temp.h: Add more comments.
22603         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22604         module.
22605         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22606         * doc/glibc-functions/mkstemps.texi: Likewise.
22607         * doc/glibc-functions/mkostemps.texi: Likewise.
22608
22609 2011-04-27  Eric Blake  <eblake@redhat.com>
22610
22611         fchdir: avoid extra chdir and fix test
22612         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22613         getcwd-lgpl.
22614         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22615         have to be canonical.
22616         (canonicalize_file_name): Drop unused macro.
22617         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22618
22619         filenamecat-lgpl: fix licence
22620         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22621         when it was first created.
22622
22623         linkat, renameat: add missing dependency
22624         * modules/linkat (Depends-on): Require getcwd-lgpl.
22625         * modules/renameat (Depends-on): Likewise.
22626
22627         tests: reduce dependencies
22628         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22629         * tests/test-renameat.c (main): Likewise.
22630         * modules/linkat-tests (Depends-on): Relax dependency.
22631         * modules/renameat-tests (Depends-on): Likewise.
22632         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22633         dependency explicit.
22634
22635         save-cwd: reduce default dependency
22636         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22637         * lib/save-cwd.c: Update comments.
22638         * NEWS: Document the semantic change.
22639
22640         getcwd: enhance tests
22641         * tests/test-getcwd-lgpl.c: New file, taken from...
22642         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22643         repeat long path stress tests from m4 probe.
22644         * modules/getcwd-lgpl-tests: New module.
22645         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22646         * m4/getcwd-abort-bug.m4: Update comment.
22647         * m4/getcwd-path-max.m4: Likewise.
22648
22649         getcwd-lgpl: new module
22650         * modules/getcwd-lgpl: New module.
22651         * lib/getcwd-lgpl.c: New file.
22652         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22653         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22654         * modules/getcwd (configure.ac): Set C witness.
22655         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22656
22657         getcwd: tweak comments
22658         * m4/getcwd-abort-bug.m4: Fix comments.
22659         * m4/getcwd-path-max.m4: Likewise.
22660         * m4/getcwd.m4: Likewise.
22661
22662 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22663         and Eric Blake  <eblake@redhat.com>
22664
22665         mkstemp: replace if system version uses wrong permissions
22666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22667         read/write mode bits set in file created by mkstemp.
22668         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22669
22670 2011-04-27  Eric Blake  <eblake@redhat.com>
22671
22672         passfd: avoid compiler warning
22673         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22674         Reported by Laine Stump.
22675
22676 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22677
22678         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22679         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22680
22681 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22682         and Eric Blake  <eblake@redhat.com>
22683
22684         mkstemp: mention clean-temp module
22685         * lib/mkstemp.c: Add comment.
22686         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22687
22688 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22689
22690         inttypes: also provide default values for 32-bit tests
22691         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22692         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22693
22694 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22695
22696         strtoumax: remove dependency on strtoimax
22697         This is like the strtoull change of yesterday.
22698         * modules/strtoumax (Files): Add lib/strtoimax.c.
22699         (Depends-on): Remove strtoimax and add verify.
22700
22701         inttypes-incomplete: new module
22702         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22703         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22704         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22705         of gl_INTTYPES_H.
22706         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22707         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22708         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22709         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22710         * modules/strtoumax, modules/xstrtol (Depends-on):
22711         Depend on inttypes-incomplete, not inttypes.
22712         * modules/inttypes-incomplete: New module, containing the contents
22713         of the old modules/inttypes module, except that the Files: section
22714         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22715         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22716         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22717         (Depends-on): Depend only on inttypes-incomplete.
22718         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22719
22720         inttypes: omit now-redundant strtoimax and strtoumax work
22721         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22722         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22723
22724         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22725         This supports apps that need pointers to strtoimax and strtoumax,
22726         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22727         nonexistent functions.  See
22728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22729         et seq.
22730         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22731         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22732         a macro.
22733         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22734
22735 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22736
22737         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22738
22739 2011-04-25  Bruno Haible  <bruno@clisp.org>
22740
22741         strtol, strtoul: Mark modules as obsolete.
22742         * modules/strtol (Status, Notice): New sections.
22743         * modules/strtoul (Status, Notice): New sections.
22744
22745 2011-04-25  Bruno Haible  <bruno@clisp.org>
22746
22747         strtod: Remove check for strtod, unless supporting old platforms.
22748         * modules/strtod-obsolete: New file.
22749         * m4/strtod-obsolete.m4: New file.
22750         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22751         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22752         * modules/strtod (Depends-on): Add strtod-obsolete.
22753         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22754
22755 2011-04-25  Bruno Haible  <bruno@clisp.org>
22756
22757         strcase: Make module obsolete.
22758         * modules/strcase (Status, Notice): New sections.
22759
22760 2011-04-25  Bruno Haible  <bruno@clisp.org>
22761
22762         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22763         * modules/dup2-obsolete: New file.
22764         * m4/dup2-obsolete.m4: New file.
22765         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22766         gl_FUNC_DUP2_OBSOLETE is not also defined.
22767         * modules/dup2 (Depends-on): Add dup2-obsolete.
22768         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22769
22770 2011-04-25  Bruno Haible  <bruno@clisp.org>
22771
22772         strnlen: Avoid memchr related link error on old obsolete platforms.
22773         * modules/memchr-obsolete: New file.
22774         * m4/memchr-obsolete.m4: New file.
22775         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22776         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22777         * modules/memchr (Depends-on): Add memchr-obsolete.
22778         * modules/strnlen (Depends-on): Likewise.
22779         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22780
22781 2011-04-25  Jim Meyering  <meyering@redhat.com>
22782
22783         maint.mk: makefile_at_at_check extend and clean up
22784         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22785         in addition to */Makefile.am.
22786         Exempt legitimate uses of @VAR@ notation, e.g.,
22787         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22788         Remove obsolete coreutils-specific comment.
22789         Prompted by discussion here:
22790         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22791
22792 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22793
22794         strtoul: remove dependency on strtol
22795         This is so that 'configure' need not check for strtol merely because
22796         the application needs strtoul.
22797         * modules/strtoul (Files): Add lib/strtol.c.
22798         (Depends-on): Remove strtol.
22799
22800         strtoull: remove dependency on strtoul
22801         This is like the strtoll change.
22802         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22803         (Depends-on): Remove strtoul.
22804
22805         strtoll: remove dependency on strtol
22806         This is so that 'configure' need not check for strtol merely because
22807         the application needs strtoll.
22808         * modules/strtoll (Files): Add lib/strtol.c.
22809         (Depends-on): Remove strtol.
22810
22811 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22812
22813         inttypes: Move some configure check to module 'imaxdiv'.
22814         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22815         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22816         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22817
22818 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22819
22820         inttypes: Move some configure check to module 'imaxabs'.
22821         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22822         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22823         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22824
22825 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22826
22827         inttypes: Remove configure tests that are not needed since 2009-12-31.
22828         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22829         gl_cv_header_working_inttypes_h.
22830
22831 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22832
22833         * modules/strnlen (Depends-on): Remove memchr.
22834         The strnlen implementation doesn't need the memchr module's fixes; see
22835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22836
22837         strtol: remove dependency on wchar
22838         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22839         * modules/strtol (Depends-on): Remove wchar.
22840
22841 2011-04-21  Eric Blake  <eblake@redhat.com>
22842
22843         passfd: fix test regression on Linux
22844         * modules/passfd-tests (configure.ac): Correct socketpair check.
22845
22846         passfd: speed up configure and drop unused code
22847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22848         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22849         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22850         Instead of probing at configure for unix_scm_rights_bsd44_way,
22851         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22852         check to a struct member probe.
22853         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22854         (sendfd, recvfd): Update preprocessor checks.
22855         * modules/passfd (Files): Reflect rename, and drop unused file.
22856         (Depends-on): Drop unused dependency.
22857
22858         passfd: allow compilation on mingw
22859         * modules/sys_socket (Depends-on): Add sys_uio.
22860         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22861         iovec and a minimal struct msghdr.
22862         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22863         * tests/test-sys_socket.c (main): Enhance test.
22864         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22865         guaranteed to provide what we need.
22866         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22867         * modules/passfd-tests (Depends-on): Add sys_wait.
22868         * tests/test-passfd.c (main): Skip test on mingw, for now.
22869         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22870         partial 'struct msghdr' implementation.
22871
22872         sys_uio: new module
22873         * modules/sys_uio: New module.
22874         * modules/sys_uio-tests: Likewise.
22875         * lib/sys_uio.in.h: New file.
22876         * m4/sys_uio_h.m4: Likewise.
22877         * tests/test-sys_uio.c: Likewise.
22878         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22879         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22880
22881 2011-04-20  Jim Meyering  <meyering@redhat.com>
22882
22883         useless-if-before-free: avoid false-positive
22884         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22885         disjunct so that it too requires a terminating ";".  Without that,
22886         this script would identify as useless one statement from gcc that
22887         was not:
22888           if (aligned_ptr)
22889             free (((void **) aligned_ptr) [-1]);
22890
22891 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22892
22893         doc: update users.txt.
22894         * users.txt: Add barcode.
22895
22896 2011-04-19  Bruno Haible  <bruno@clisp.org>
22897
22898         ioctl: Remove link dependency on native Windows.
22899         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22900         (gl_close_fn, gl_ioctl_fn): New types.
22901         (struct fd_hook): Renamed from struct close_hook. Change type of
22902         private_close_fn field. Add private_ioctl_fn field.
22903         (close_hook_fn): Add parameter for primary close method.
22904         (execute_close_hooks, execute_all_close_hooks): Likewise.
22905         (ioctl_hook_fn): New type.
22906         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22907         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22908         argument.
22909         (unregister_fd_hook): Renamed from unregister_close_hook.
22910         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22911         Don't include <unistd.h>.
22912         (close): Remove undef.
22913         (anchor): Update.
22914         (execute_close_hooks): Add argument for primary close method.
22915         (execute_all_close_hooks): Likewise.
22916         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22917         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22918         argument. Allow each argument to be NULL.
22919         (unregister_fd_hook): Renamed from unregister_close_hook.
22920         * lib/close.c (rpl_close): Pass 'close' function pointer to
22921         execute_all_close_hooks.
22922         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22923         (primary_ioctl): New function.
22924         (ioctl): Don't call ioctlsocket here. Instead, call
22925         execute_all_ioctl_hooks.
22926         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22927         close method.
22928         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22929         (fd_sockets_hook): Renamed from close_sockets_hook.
22930         (gl_sockets_startup, gl_sockets_cleanup): Update.
22931         * modules/fd-hook: Renamed from modules/close-hook. Update.
22932         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22933         * modules/sockets (Depends-on): Likewise.
22934         * modules/ioctl (Depends-on): Add fd-hook.
22935         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22936         GNULIB_SOCKET.
22937
22938 2011-04-19  Bruno Haible  <bruno@clisp.org>
22939
22940         Move the support of O_NONBLOCK in open() to the 'open' module.
22941         * modules/nonblocking (Depends-on): Remove 'open'.
22942         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22943         gl_cv_have_open_O_NONBLOCK.
22944         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22945         O_NONBLOCK support.
22946         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22947
22948 2011-04-17  Bruno Haible  <bruno@clisp.org>
22949
22950         pipe2: Simplify code.
22951         * lib/pipe2.c (pipe2): Reduce code duplication.
22952
22953 2011-04-17  Bruno Haible  <bruno@clisp.org>
22954
22955         nonblocking: Add comment.
22956         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22957
22958 2011-04-17  Bruno Haible  <bruno@clisp.org>
22959
22960         nonblocking: Add tests for sockets.
22961         * tests/test-nonblocking-socket.sh: New file.
22962         * tests/test-nonblocking-socket-main.c: New file.
22963         * tests/test-nonblocking-socket-child.c: New file.
22964         * tests/test-nonblocking-socket.h: New file.
22965         * tests/socket-server.h: New file.
22966         * tests/socket-client.h: New file.
22967         * modules/nonblocking-socket-tests: New file.
22968         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22969
22970 2011-04-17  Bruno Haible  <bruno@clisp.org>
22971
22972         nonblocking: Add tests for pipes.
22973         * tests/test-nonblocking-pipe.sh: New file.
22974         * tests/test-nonblocking-pipe-main.c: New file.
22975         * tests/test-nonblocking-pipe-child.c: New file.
22976         * tests/test-nonblocking-pipe.h: New file.
22977         * tests/test-nonblocking-writer.h: New file.
22978         * tests/test-nonblocking-reader.h: New file.
22979         * tests/test-nonblocking-misc.h: New file.
22980         * modules/nonblocking-pipe-tests: New file.
22981         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22982
22983 2011-04-16  Bruno Haible  <bruno@clisp.org>
22984
22985         gettext: Clarify the needed programmer actions.
22986         * modules/gettext (Notice): New field.
22987         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22988
22989 2011-04-16  Bruno Haible  <bruno@clisp.org>
22990
22991         strchrnul: Tweak last commit.
22992         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22993         bug.
22994         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22995         as in _GL_FUNCDECL_SYS.
22996         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22997         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22998
22999 2011-04-15  Eric Blake  <eblake@redhat.com>
23000
23001         strchrnul: work around cygwin bug
23002         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23003         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23005         * modules/string (Makefile.am): Substitute it.
23006         * lib/string.in.h (strchrnul): Use it.
23007
23008 2011-04-15  Bruno Haible  <bruno@clisp.org>
23009
23010         Don't require lib/stdio-write.c when only module 'stdio' is used.
23011         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23012         invocation.
23013         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23014
23015 2011-04-14  Bruno Haible  <bruno@clisp.org>
23016
23017         Support non-blocking pipe I/O in read() on native Windows.
23018         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23019         (read): New declaration.
23020         * lib/read.c: New file.
23021         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23022         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23023         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23024         vscanf): New declarations.
23025         * lib/stdio-read.c: New file.
23026         * m4/read.m4: New file.
23027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23028         REPLACE_READ.
23029         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23030         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23031         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23032         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23033         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23034         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23035         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23036         * modules/read: New file.
23037         * modules/nonblocking (Files): Add lib/stdio-read.c.
23038         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23039         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23040         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23041         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23042         * modules/pread (Depends-on): Add read.
23043         * modules/safe-read (Depends-on): Likewise.
23044         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23045         gets, scanf, vfscanf, vscanf): Verify signatures.
23046         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23047         problem with non-blocking pipes.
23048         * doc/posix-functions/fgetc.texi: Likewise.
23049         * doc/posix-functions/fgets.texi: Likewise.
23050         * doc/posix-functions/fread.texi: Likewise.
23051         * doc/posix-functions/fscanf.texi: Likewise.
23052         * doc/posix-functions/getc.texi: Likewise.
23053         * doc/posix-functions/getchar.texi: Likewise.
23054         * doc/posix-functions/gets.texi: Likewise.
23055         * doc/posix-functions/scanf.texi: Likewise.
23056         * doc/posix-functions/vfscanf.texi: Likewise.
23057         * doc/posix-functions/vscanf.texi: Likewise.
23058
23059 2011-04-14  Bruno Haible  <bruno@clisp.org>
23060
23061         Support non-blocking pipe I/O in write() on native Windows.
23062         * lib/write.c (rpl_write): Split a write request that failed merely
23063         because the byte count was larger than the pipe buffer's size.
23064         * doc/posix-functions/write.texi: Mention the problem with large byte
23065         counts.
23066
23067 2011-04-14  Bruno Haible  <bruno@clisp.org>
23068
23069         wchar: Ensure that wchar_t gets defined on uClibc.
23070         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23071         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23072
23073 2011-04-13  Bruno Haible  <bruno@clisp.org>
23074
23075         safe-write, full-read: Avoid unnecessary compilation units.
23076         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23077         (Depends-on): Remove safe-read. Add ssize_t.
23078         * modules/full-read (Files): Add lib/full-write.c.
23079         (Depends-on): Add full-write.
23080
23081 2011-04-13  Bruno Haible  <bruno@clisp.org>
23082
23083         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23084         * modules/pwrite (Depends-on): Add 'write'.
23085
23086 2011-04-13  Bruno Haible  <bruno@clisp.org>
23087
23088         Support non-blocking pipe I/O in write() on native Windows.
23089         * lib/unistd.in.h (write): Enable replacement also if
23090         GNULIB_UNISTD_H_NONBLOCKING is 1.
23091         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23092         (rpl_write): When failing to write on a non-blocking pipe, change
23093         errno from ENOSPC to EAGAIN.
23094         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23095         putchar, puts, vfprintf, vprintf): Enable replacement also if
23096         GNULIB_STDIO_H_NONBLOCKING is 1.
23097         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23098         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23099         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23100         CALL_WITH_SIGPIPE_EMULATION.
23101         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23102         * m4/nonblocking.m4: New file.
23103         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23104         for non-blocking I/O support.
23105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23106         GNULIB_UNISTD_H_NONBLOCKING.
23107         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23108         required for non-blocking I/O support.
23109         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23110         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23111         lib/stdio-write.c, m4/asm-underscore.m4.
23112         (Depends-on): Add stdio, unistd.
23113         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23114         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23115         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23116         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23117         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23118         problem with non-blocking pipes.
23119         * doc/posix-functions/fputc.texi: Likewise.
23120         * doc/posix-functions/fputs.texi: Likewise.
23121         * doc/posix-functions/fwrite.texi: Likewise.
23122         * doc/posix-functions/printf.texi: Likewise.
23123         * doc/posix-functions/putc.texi: Likewise.
23124         * doc/posix-functions/putchar.texi: Likewise.
23125         * doc/posix-functions/puts.texi: Likewise.
23126         * doc/posix-functions/vfprintf.texi: Likewise.
23127         * doc/posix-functions/vprintf.texi: Likewise.
23128         * doc/posix-functions/write.texi: Likewise.
23129
23130 2011-04-10  Jim Meyering  <meyering@redhat.com>
23131
23132         maint.mk: prohibit doubled words
23133         Detect them also when they're separated by a newline.
23134         There are 3 ways to customize it:
23135           - disable the test on a per file basis, as usual with rules using
23136             $(VC_LIST_EXCEPT)
23137           - replace the default doubled-word-selecting regexp (affects all files)
23138           - ignore a particular file-vs-doubled-word match
23139         I nearly used that last one to ignore the "is is" match in
23140         coreutils' NEWS file, since the text was "ls -is is ..."
23141         To do that, I would have added this line to cfg.mk:
23142           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23143         but it would have ignored any "is is" match in NEWS.
23144         Low probability, but still...
23145         Instead, I changed the text, slightly:
23146           -  ls -is is now consistent with ls -lis in ignoring values returned
23147           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23148         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23149         (prohibit_doubled_word_): Define.
23150         (sc_prohibit_doubled_word): New rule.
23151         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23152
23153 2011-04-10  Jim Meyering  <meyering@redhat.com>
23154
23155         maint: fix doubled-word typo in comment
23156         * m4/gethostname.m4: s/is is/it is/
23157         * m4/getdomainname.m4: Likewise.
23158
23159 2011-04-10  Jim Meyering  <meyering@redhat.com>
23160
23161         maint: remove doubled word: s/it it/it/
23162         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23163
23164 2011-04-10  Jim Meyering  <meyering@redhat.com>
23165
23166         maint.mk: remove useless semicolon and backslash
23167         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23168         semicolon and backslash.
23169
23170 2011-04-10  Bruno Haible  <bruno@clisp.org>
23171
23172         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23173         * modules/stdint-tests (Depends-on): Add wchar.
23174
23175 2011-04-10  Jim Meyering  <meyering@redhat.com>
23176
23177         maint: remove doubled words in comments, e.g., s/a a/a/
23178         * lib/strptime.c (day_of_the_week): s/the the/the/
23179         * tests/test-chown.h (test_chown): s/a a/a/
23180
23181         test-chown.h: correct a cast
23182         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23183         when the destination is a stat.st_gid.
23184
23185 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23186
23187         getaddrinfo: Fix test for sa_len member.
23188         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23189         include <sys/types.h> before <sys/socket.h>.
23190
23191 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23192
23193         maint: change "can not" to "cannot"
23194         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23195         boundaries.
23196
23197 2011-04-09  Jim Meyering  <meyering@redhat.com>
23198
23199         maint: change "a a" to "a"
23200         * tests/test-lchown.h (test_lchown): s/a a/a/
23201
23202         maint.mk: prohibit \<the the\>
23203         * top/maint.mk (sc_prohibit_the_the): New rule.
23204
23205         maint: fix "the the" in comment
23206         * lib/count-one-bits.h: s/the the/the/
23207
23208         maint: change "can not" to "cannot"
23209         But do not change the occurrences in maintain.texi or in
23210         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23211         * doc/gnulib-tool.texi: s/can not/cannot/
23212         * doc/posix-functions/accept.texi (accept): Likewise.
23213         * doc/posix-functions/socket.texi (socket): Likewise.
23214         * lib/mbrtowc.c: Likewise.
23215
23216         maint.mk: prohibit use of "can not"
23217         * top/maint.mk (sc_prohibit_can_not): New rule.
23218         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23219
23220 2011-04-09  Bruno Haible  <bruno@clisp.org>
23221
23222         careadlinkat: Guard against misuse of careadlinkatcwd.
23223         * lib/careadlinkat.c: Include <stdlib.h>.
23224         (careadlinkatcwd): Check that the fd argument is as expected.
23225
23226 2011-04-09  Bruno Haible  <bruno@clisp.org>
23227
23228         careadlinkat: Use common coding style.
23229         * lib/careadlinkat.c: Move gnulib includes after system includes.
23230
23231 2011-04-09  Bruno Haible  <bruno@clisp.org>
23232
23233         careadlinkat: Clarify specification.
23234         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23235         (careadlinkatcwd): Add comment.
23236         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23237
23238 2011-04-09  Bruno Haible  <bruno@clisp.org>
23239
23240         areadlinkat: Avoid link error on many platforms.
23241         * modules/areadlinkat (Depends-on): Add areadlink.
23242
23243 2011-04-09  Bruno Haible  <bruno@clisp.org>
23244
23245         allocator, careadlinkat: Fix double-inclusion guard.
23246         * lib/allocator.h: Fix double-inclusion guard.
23247         * lib/careadlinkat.h: Likewise.
23248
23249 2011-04-09  Bruno Haible  <bruno@clisp.org>
23250
23251         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23252         * lib/relocwrapper.c: Update dependencies hierarchy.
23253         * build-aux/install-reloc: Update list of files to be compiled.
23254         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23255         lib/allocator.[hc].
23256
23257 2011-04-08  Eric Blake  <eblake@redhat.com>
23258
23259         strftime: silence gnulib-tool warning
23260         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23261
23262 2011-04-08  Bruno Haible  <bruno@clisp.org>
23263
23264         verify: Fix syntax error with GCC 4.6 in C++ mode.
23265         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23266         (HAVE_STATIC_ASSERT): New macro.
23267         (verify_true, verify): Use 'static_assert' if it is supported and
23268         '_Static_assert' is not supported.
23269
23270 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23271
23272         allocator: New module.
23273         * modules/allocator, lib/allocator.c: New files.
23274         * lib/allocator.h (stdlib_allocator): New decl.
23275         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23276         Remove.  Do not include <stdlib.h>.
23277         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23278         * modules/careadlinkat (Files): Remove lib/allocator.h.
23279         (Depends-on): Add allocator.
23280
23281         stdlib: let modules use system malloc, realloc
23282         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23283         if !_GL_USE_STDLIB_ALLOC.
23284         (malloc, realloc): Limit this change to a smaller scope.
23285
23286         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23287         (malloc, realloc): Don't #undef; no longer needed.
23288         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23289         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23290         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23291         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23292         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23293         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23294         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23295         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23296
23297         careadlinkat: rename members to avoid problem
23298         * lib/allocator.h (struct allocator): Rename members from
23299         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23300         and realloc are #define'd.  Reported by Eric Blake in
23301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23302         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23303
23304 2011-04-08  Eric Blake  <eblake@redhat.com>
23305
23306         nonblocking: reduce dependency
23307         * tests/test-nonblocking.c: Only test sockets when in use.
23308         * modules/nonblocking-tests (Depends-on): Drop socket.
23309         (Makefile.am): Link even if sockets are not present.
23310         * modules/pipe2-tests (Makefile.am): Likewise.
23311         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23312
23313         pipe2: fix O_NONBLOCK support on mingw
23314         * modules/pipe2 (Depends-on): Add nonblocking.
23315         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23316         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23317         * tests/test-nonblocking.c (main): Likewise.
23318         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23319
23320         fcntl-h: fix O_ACCMODE on cygwin
23321         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23322         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23323
23324         pipe-filter: drop O_NONBLOCK workarounds
23325         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23326         * modules/pipe-filter-ii (Depends-on): Likewise.
23327         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23328
23329         nonblocking: provide O_NONBLOCK for mingw
23330         * modules/nonblocking (Depends-on): Add open.
23331         (configure.ac): Set new witness macro.
23332         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23333         * modules/fcntl-h (Makefile.am): Substitute it.
23334         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23335         nonblocking module is in use.
23336         * lib/nonblocking.c: Adjust portability test.
23337         * lib/open.c (open): Don't let native open see gnulib flag.
23338         * tests/test-fcntl-h.c (main): Enhance test.
23339         * tests/test-open.h (test_open): Likewise.
23340         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23341
23342         careadlinkat: fix compilation error on mingw
23343         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23344         within struct allocator.
23345
23346 2011-04-06  Eric Blake  <eblake@redhat.com>
23347
23348         binary-io: relicense under LGPLv2+
23349         * modules/binary-io (License): Relax to LGPLv2+.
23350         Requested for libvirt, and required by pipe2.
23351
23352 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23353
23354         verify: use _Static_assert if available
23355         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23356         (verify_true, verify): Use it if available.  This generates better
23357         diagnostics with GCC 4.6.0 and later.
23358
23359 2011-04-05  Bruno Haible  <bruno@clisp.org>
23360
23361         Remove leftover generated .h files after config.status changed.
23362
23363         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23364         GL_GENERATE_ALLOCA_H.
23365         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23366         GL_GENERATE_ALLOCA_H evaluates to false.
23367
23368         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23369         GL_GENERATE_ARGZ_H.
23370         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23371         evaluates to false.
23372
23373         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23374         GL_GENERATE_BYTESWAP_H.
23375         * modules/byteswap (Makefile.am): Remove byteswap.h if
23376         GL_GENERATE_BYTESWAP_H evaluates to false.
23377
23378         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23379         GL_GENERATE_ERRNO_H.
23380         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23381         evaluates to false.
23382
23383         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23384         GL_GENERATE_FLOAT_H.
23385         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23386         evaluates to false.
23387
23388         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23389         GL_GENERATE_FNMATCH_H.
23390         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23391         GL_GENERATE_FNMATCH_H evaluates to false.
23392
23393         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23394         GL_GENERATE_GLOB_H.
23395         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23396         evaluates to false.
23397
23398         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23399         automake conditional GL_GENERATE_ICONV_H.
23400         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23401         evaluates to false.
23402
23403         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23404         GL_GENERATE_NETINET_IN_H.
23405         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23406         GL_GENERATE_NETINET_IN_H evaluates to false.
23407
23408         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23409         conditional GL_GENERATE_PTHREAD_H.
23410         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23411         * modules/pthread (Makefile.am): Remove pthread.h if
23412         GL_GENERATE_PTHREAD_H evaluates to false.
23413
23414         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23415         GL_GENERATE_SCHED_H.
23416         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23417         evaluates to false.
23418
23419         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23420         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23421         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23422         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23423
23424         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23425         GL_GENERATE_STDARG_H.
23426         * modules/stdarg (Makefile.am): Remove stdarg.h if
23427         GL_GENERATE_STDARG_H evaluates to false.
23428
23429         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23430         GL_GENERATE_STDBOOL_H.
23431         * modules/stdbool (Makefile.am): Remove stdbool.h if
23432         GL_GENERATE_STDBOOL_H evaluates to false.
23433
23434         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23435         conditional GL_GENERATE_STDDEF_H.
23436         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23437         * modules/stddef (Makefile.am): Remove stddef.h if
23438         GL_GENERATE_STDDEF_H evaluates to false.
23439
23440         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23441         GL_GENERATE_STDINT_H.
23442         * modules/stdint (Makefile.am): Remove stdint.h if
23443         GL_GENERATE_STDINT_H evaluates to false.
23444
23445         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23446         GL_GENERATE_SYSEXITS_H.
23447         * modules/sysexits (Makefile.am): Remove sysexits.h if
23448         GL_GENERATE_SYSEXITS_H evaluates to false.
23449
23450         Reported by Karl Berry and Ralf Wildenhues.
23451
23452 2011-04-05  Bruno Haible  <bruno@clisp.org>
23453
23454         Ensure to rebuild generated .h files when config.status has changed.
23455         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23456         config.status.
23457         * modules/ctype (Makefile.am): Likewise.
23458         * modules/dirent (Makefile.am): Likewise.
23459         * modules/errno (Makefile.am): Likewise.
23460         * modules/fcntl-h (Makefile.am): Likewise.
23461         * modules/float (Makefile.am): Likewise.
23462         * modules/getopt-posix (Makefile.am): Likewise.
23463         * modules/glob (Makefile.am): Likewise.
23464         * modules/iconv-h (Makefile.am): Likewise.
23465         * modules/inttypes (Makefile.am): Likewise.
23466         * modules/langinfo (Makefile.am): Likewise.
23467         * modules/locale (Makefile.am): Likewise.
23468         * modules/math (Makefile.am): Likewise.
23469         * modules/netdb (Makefile.am): Likewise.
23470         * modules/netinet_in (Makefile.am): Likewise.
23471         * modules/poll-h (Makefile.am): Likewise.
23472         * modules/pthread (Makefile.am): Likewise.
23473         * modules/pty (Makefile.am): Likewise.
23474         * modules/sched (Makefile.am): Likewise.
23475         * modules/search (Makefile.am): Likewise.
23476         * modules/selinux-h (Makefile.am): Likewise.
23477         * modules/signal (Makefile.am): Likewise.
23478         * modules/spawn (Makefile.am): Likewise.
23479         * modules/stdarg (Makefile.am): Likewise.
23480         * modules/stdbool (Makefile.am): Likewise.
23481         * modules/stddef (Makefile.am): Likewise.
23482         * modules/stdint (Makefile.am): Likewise.
23483         * modules/stdio (Makefile.am): Likewise.
23484         * modules/stdlib (Makefile.am): Likewise.
23485         * modules/string (Makefile.am): Likewise.
23486         * modules/strings (Makefile.am): Likewise.
23487         * modules/sys_file (Makefile.am): Likewise.
23488         * modules/sys_ioctl (Makefile.am): Likewise.
23489         * modules/sys_select (Makefile.am): Likewise.
23490         * modules/sys_socket (Makefile.am): Likewise.
23491         * modules/sys_stat (Makefile.am): Likewise.
23492         * modules/sys_time (Makefile.am): Likewise.
23493         * modules/sys_times (Makefile.am): Likewise.
23494         * modules/sys_utsname (Makefile.am): Likewise.
23495         * modules/sys_wait (Makefile.am): Likewise.
23496         * modules/sysexits (Makefile.am): Likewise.
23497         * modules/termios (Makefile.am): Likewise.
23498         * modules/time (Makefile.am): Likewise.
23499         * modules/unistd (Makefile.am): Likewise.
23500         * modules/wchar (Makefile.am): Likewise.
23501         * modules/wctype-h (Makefile.am): Likewise.
23502         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23503
23504 2011-04-05  Bruno Haible  <bruno@clisp.org>
23505
23506         pipe2: Relicense under LGPLv2+.
23507         * modules/pipe2 (License): Change to LGPLv2+.
23508         Requested by Eric Blake, for libvirt.
23509
23510 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23511
23512         bootstrap: compute gnulib_extra_files after updating build_aux
23513         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23514         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23515
23516 2011-04-05  Eric Blake  <eblake@redhat.com>
23517
23518         bootstrap: preserve git whitelist item sorting
23519         * build-aux/bootstrap (sort_patterns): New function.
23520         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23521
23522 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23523
23524         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23525         sc_space_tab check.
23526
23527 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23528
23529         areadlink, areadlinkat: rewrite in terms of careadlinkat
23530         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23531         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23532         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23533         (malloc, realloc): Remove #undefs.
23534         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23535         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23536         readlink, ssize_t, stdint, unistd.
23537         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23538         areadlink, stdint.
23539
23540         careadlinkat: new module
23541         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23542         * modules/careadlinkat: New files, written by me with
23543         a review and feedback from Ben Pfaff in
23544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23545
23546 2011-04-01  Bruno Haible  <bruno@clisp.org>
23547
23548         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23549         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23550         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23551         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23552         Reported by Bruce Korb <bruce.korb@gmail.com>.
23553
23554 2011-04-01  Bruno Haible  <bruno@clisp.org>
23555
23556         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23557         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23558         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23559         * modules/wcpcpy (Depends-on): Add extensions.
23560         * modules/wcpncpy (Depends-on): Likewise.
23561         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23562         systems.
23563         * doc/posix-functions/wcpncpy.texi: Likewise.
23564         * doc/posix-functions/wcwidth.texi: Likewise.
23565
23566 2011-03-31  Eric Blake  <eblake@redhat.com>
23567
23568         nonblocking: fix mingw test failures
23569         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23570         non-blocking flag on regular file.
23571         (get_nonblocking_flag): Set errno on invalid fd.
23572         * tests/test-nonblocking.c (main): Avoid test failure on
23573         directories if fchdir is not active.
23574         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23575
23576 2011-03-31  Bruno Haible  <bruno@clisp.org>
23577
23578         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23579         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23580         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23581         Reported by Simon Josefsson <simon@josefsson.org>.
23582
23583 2011-03-31  Bruno Haible  <bruno@clisp.org>
23584         and Eric Blake  <eblake@redhat.com>
23585
23586         nonblocking: new module
23587         * modules/nonblocking: New module.
23588         * modules/nonblocking-tests: Likewise.
23589         * lib/nonblocking.h: New file.
23590         * lib/nonblocking.c: Likewise.
23591         * tests/test-nonblocking.c: New test.
23592         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23593
23594 2011-03-30  Bruno Haible  <bruno@clisp.org>
23595
23596         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23597         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23598         instead of 'printf' format for GCC >= 4.4.
23599         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23600         (fprintf, printf, vfprintf, vprintf): Declare with
23601         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23602         the system's vfprintf() function.
23603         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23604
23605 2011-03-30  Eric Blake  <eblake@redhat.com>
23606
23607         passfd: fix scoping bug
23608         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23609         before sendmsg/recvmsg.
23610
23611         passfd: standardize coding conventions
23612         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23613         can be learned at compile time.
23614         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23615         ifdefs.
23616         (sendfd, recvfd): Follow gnulib code conventions.
23617
23618         passfd: fix incorrect sendmsg arguments
23619         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23620         incorrect msg_controllen value.
23621         * modules/passfd-tests (Depends-on): Check for alarm.
23622         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23623         Reported by Bastien ROUCARIES.
23624
23625 2011-03-30  Bruno Haible  <bruno@clisp.org>
23626
23627         c-strcasestr: Relicense under LGPLv2+.
23628         * modules/c-strcasestr (License): Change to LGPLv2+.
23629         Requested by Eric Blake, for libvirt.
23630
23631 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23632
23633         * users.txt: Add libidn2.  Fix libtasn1 link.
23634
23635 2011-03-30  Jim Meyering  <meyering@redhat.com>
23636
23637         tests: readlink* ("",... fails with EINVAL on newer kernels
23638         readlink and readlinkat have typically failed with ENOENT for
23639         the invalid, empty file name,  "".  However, with the advent
23640         of linux-2.6.39, they fail with EINVAL.
23641         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23642         when operating on the empty file name.
23643         * tests/test-readlink.h (test_readlink): Likewise.
23644
23645 2011-03-29  Bruno Haible  <bruno@clisp.org>
23646
23647         Relicense some modules under LGPLv2+, for libidn2.
23648         * modules/array-mergesort (License): Change to LGPLv2+.
23649         * modules/c-strcaseeq (License): Likewise.
23650         * modules/striconveh (License): Likewise.
23651         * modules/striconveha (License): Likewise.
23652         * modules/uniconv/base (License): Likewise.
23653         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23654         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23655         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23656         * modules/unictype/base (License): Likewise.
23657         * modules/unictype/bidiclass-of (License): Likewise.
23658         * modules/unictype/category-M (License): Likewise.
23659         * modules/unictype/category-none (License): Likewise.
23660         * modules/unictype/category-of (License): Likewise.
23661         * modules/unictype/category-test (License): Likewise.
23662         * modules/unictype/category-test-withtable (License): Likewise.
23663         * modules/unictype/combining-class (License): Likewise.
23664         * modules/unictype/joiningtype-of (License): Likewise.
23665         * modules/unictype/scripts (License): Likewise.
23666         * modules/uninorm/base (License): Likewise.
23667         * modules/uninorm/canonical-decomposition (License): Likewise.
23668         * modules/uninorm/composition (License): Likewise.
23669         * modules/uninorm/decompose-internal (License): Likewise.
23670         * modules/uninorm/decomposition-table (License): Likewise.
23671         * modules/uninorm/nfc (License): Likewise.
23672         * modules/uninorm/nfd (License): Likewise.
23673         * modules/uninorm/u32-normalize (License): Likewise.
23674         * modules/unistr/base (License): Likewise.
23675         * modules/unistr/u32-cpy (License): Likewise.
23676         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23677         * modules/unistr/u32-to-u8 (License): Likewise.
23678         * modules/unistr/u32-uctomb (License): Likewise.
23679         * modules/unistr/u8-check (License): Likewise.
23680         * modules/unistr/u8-mblen (License): Likewise.
23681         * modules/unistr/u8-mbtouc (License): Likewise.
23682         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23683         * modules/unistr/u8-mbtoucr (License): Likewise.
23684         * modules/unistr/u8-prev (License): Likewise.
23685         * modules/unistr/u8-strlen (License): Likewise.
23686         * modules/unistr/u8-to-u32 (License): Likewise.
23687         * modules/unistr/u8-uctomb (License): Likewise.
23688         * modules/unitypes (License): Likewise.
23689         Requested by Simon Josefsson.
23690
23691 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23692
23693         lib-symbol-visibility: Add a notice.
23694         * modules/lib-symbol-visibility (Notice): New field.
23695
23696 2011-03-29  Bruno Haible  <bruno@clisp.org>
23697
23698         getaddrinfo: Doc fix.
23699         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23700         section "fixed in Gnulib".
23701
23702 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23703
23704         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23705         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23706
23707 2011-03-26  Bruno Haible  <bruno@clisp.org>
23708
23709         unictype/property-byname: Reduce the number of load-time relocations.
23710         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23711         (UC_PROPERTY_INDEX_*): New enumeration values.
23712         (uc_property_byname): Convert an index from the lookup table to an
23713         uc_property_t.
23714         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23715         values.
23716
23717 2011-03-26  Bruno Haible  <bruno@clisp.org>
23718
23719         unictype/property-byname: Allow omitted word separators and aliases.
23720         * lib/unictype/pr_byname.gperf: Add property names without word
23721         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23722         for 'space'.
23723
23724 2011-03-26  Bruno Haible  <bruno@clisp.org>
23725
23726         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23727         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23728         also hyphens to space.
23729         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23730         without spaces.
23731         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23732
23733 2011-03-26  Bruno Haible  <bruno@clisp.org>
23734
23735         unictype/joiningtype-byname: Recognize long names as well.
23736         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23737         a long name.
23738         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23739         unictype/joiningtype_byname.h.
23740         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23741         * lib/unictype/joiningtype_byname.gperf: New file.
23742         * modules/unictype/joiningtype-byname (Files): Add
23743         lib/unictype/joiningtype_byname.gperf.
23744         (Depends-on): Add gperf.
23745         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23746         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23747         long names.
23748
23749         Tests for module 'unictype/joiningtype-longname'.
23750         * modules/unictype/joiningtype-longname-tests: New file.
23751         * tests/unictype/test-joiningtype_longname.c: New file.
23752
23753         New module 'unictype/joiningtype-longname'.
23754         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23755         * lib/unictype/joiningtype_longname.c: New file.
23756         * modules/unictype/joiningtype-longname: New file.
23757         * modules/unictype/joiningtype-all (Depends-on): Add
23758         unictype/joiningtype-longname.
23759
23760 2011-03-26  Bruno Haible  <bruno@clisp.org>
23761
23762         unictype/bidiclass-byname: Recognize long names as well.
23763         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23764         name.
23765         * lib/unictype/bidi_byname.c: Include <string.h>,
23766         unictype/bidi_byname.h.
23767         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23768         * lib/unictype/bidi_byname.gperf: New file.
23769         * modules/unictype/bidiclass-byname (Files): Add
23770         lib/unictype/bidi_byname.gperf.
23771         (Depends-on): Add gperf.
23772         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23773         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23774         long names.
23775
23776         Tests for module 'unictype/bidiclass-longname'.
23777         * modules/unictype/bidiclass-longname-tests: New file.
23778         * tests/unictype/test-bidi_longname.c: New file.
23779
23780         New module 'unictype/bidiclass-longname'.
23781         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23782         * lib/unictype/bidi_longname.c: New file.
23783         * modules/unictype/bidiclass-longname: New file.
23784         * modules/unictype/bidiclass-all (Depends-on): Add
23785         unictype/bidiclass-longname.
23786
23787 2011-03-26  Bruno Haible  <bruno@clisp.org>
23788
23789         unictype/bidi*: Rename modules.
23790         * modules/unictype/bidiclass-all: Renamed from
23791         modules/unictype/bidicategory-all.
23792         * modules/unictype/bidiclass-name: Renamed from
23793         modules/unictype/bidiclass-name.
23794         (Description): Update.
23795         * modules/unictype/bidiclass-name-tests: Renamed from
23796         modules/unictype/bidicategory-name-tests.
23797         * modules/unictype/bidiclass-byname: Renamed from
23798         modules/unictype/bidicategory-byname.
23799         (Description): Update.
23800         * modules/unictype/bidiclass-byname-tests: Renamed from
23801         modules/unictype/bidicategory-byname-tests.
23802         * modules/unictype/bidiclass-of: Renamed from
23803         modules/unictype/bidicategory-of.
23804         (Description): Update.
23805         * modules/unictype/bidiclass-of-tests: Renamed from
23806         modules/unictype/bidicategory-of-tests.
23807         * modules/unictype/bidiclass-test: Renamed from
23808         modules/unictype/bidicategory-test.
23809         (Description): Update.
23810         * modules/unictype/bidiclass-test-tests: Renamed from
23811         modules/unictype/bidicategory-test-tests.
23812         * modules/unictype/bidicategory-all: New file, a simple redirection.
23813         * modules/unictype/bidicategory-name: Likewise.
23814         * modules/unictype/bidicategory-byname: Likewise.
23815         * modules/unictype/bidicategory-of: Likewise.
23816         * modules/unictype/bidicategory-test: Likewise.
23817         * modules/unictype/property-bidi-* (Dependencies): Update.
23818         * lib/unictype/bidi_*.c: Update comment.
23819
23820 2011-03-26  Bruno Haible  <bruno@clisp.org>
23821
23822         unictype/bidi*: Rename functions, part 2.
23823         * modules/unictype/bidicategory-name (configure.ac): Update required
23824         libunistring version.
23825         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23826
23827 2011-03-25  Bruno Haible  <bruno@clisp.org>
23828
23829         New module 'unictype/combining-class-all'.
23830         * modules/unictype/combining-class-all: New file.
23831
23832         Tests for module 'unictype/combining-class-byname'.
23833         * modules/unictype/combining-class-byname-tests: New file.
23834         * tests/unictype/test-combiningclass_byname.c: New file.
23835
23836         New module 'unictype/combining-class-byname'.
23837         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23838         * lib/unictype/combiningclass_byname.c: New file.
23839         * lib/unictype/combiningclass_byname.gperf: New file.
23840         * modules/unictype/combining-class-byname: New file.
23841
23842         Tests for module 'unictype/combining-class-longname'.
23843         * modules/unictype/combining-class-longname-tests: New file.
23844         * tests/unictype/test-combiningclass_longname.c: New file.
23845
23846         New module 'unictype/combining-class-longname'.
23847         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23848         * lib/unictype/combiningclass_longname.c: New file.
23849         * modules/unictype/combining-class-longname: New file.
23850
23851         Tests for module 'unictype/combining-class-name'.
23852         * modules/unictype/combining-class-name-tests: New file.
23853         * tests/unictype/test-combiningclass_name.c: New file.
23854
23855         New module 'unictype/combining-class-name'.
23856         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23857         * lib/unictype/combiningclass_name.c: New file.
23858         * modules/unictype/combining-class-name: New file.
23859
23860 2011-03-25  Bruno Haible  <bruno@clisp.org>
23861
23862         unictype/combining-class: Rename source files.
23863         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23864         of unictype/combining.h.
23865         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23866         Update.
23867         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23868         * modules/unictype/combining-class (Description): Fix.
23869         (Files, Makefile.am): Update.
23870         * tests/unictype/test-combiningclass.c: Renamed from
23871         tests/unictype/test-combining.c.
23872         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23873
23874 2011-03-25  Bruno Haible  <bruno@clisp.org>
23875
23876         unictype: Update list of canonical combining classes.
23877         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23878
23879 2011-03-25  Bruno Haible  <bruno@clisp.org>
23880
23881         unictype/category-byname: Recognize long names as well.
23882         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23883         a long name.
23884         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23885         unictype/categ_byname.h.
23886         (UC_CATEGORY_INDEX_*): New enumeration values.
23887         (uc_general_category_byname): Use uc_general_category_lookup and
23888         convert from index to value.
23889         * lib/unictype/categ_byname.gperf: New file.
23890         * modules/unictype/category-byname (Files): Add
23891         lib/unictype/categ_byname.gperf.
23892         (Depends-on): Add gperf.
23893         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23894         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23895         long names.
23896
23897         Tests for module 'unictype/category-longname'.
23898         * modules/unictype/category-longname-tests: New file.
23899         * tests/unictype/test-categ_longname.c: New file.
23900
23901         New module 'unictype/category-longname'.
23902         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23903         * lib/unictype/categ_longname.c: New file.
23904         * modules/unictype/category-longname: New file.
23905         * modules/unictype/category-all (Depends-on): Add it.
23906
23907 2011-03-25  Bruno Haible  <bruno@clisp.org>
23908
23909         Tests for module 'unictype/category-LC'.
23910         * modules/unictype/category-LC-tests: New file.
23911         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23912
23913         New module 'unictype/category-LC'.
23914         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23915         (UC_CATEGORY_LC): New declaration.
23916         (UC_CASED_LETTER): New macro.
23917         * lib/gen-uni-tables.c (is_category_LC): New function.
23918         (output_categories): Also handle category LC.
23919         (UC_CATEGORY_MASK_LC): New enumeration value.
23920         (general_category_byname): Also handle category LC.
23921         * lib/unictype/categ_LC.c: New file.
23922         * lib/unictype/categ_LC.h: New file, automatically generated.
23923         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23924         category LC.
23925         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23926         * modules/unictype/category-LC: New file.
23927         * modules/unictype/category-byname (Depends-on): Add
23928         unictype/category-LC.
23929         * modules/unictype/category-all (Depends-on): Likewise.
23930
23931 2011-03-25  Eric Blake  <eblake@redhat.com>
23932
23933         xmalloc: revert yesterday's regression
23934         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23935         realloc's underlying behavior (allowing allocation of zero-size
23936         objects, especially if malloc-gnu is also in use).
23937
23938 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23939
23940         maint.mk: add missing version to VC-tag
23941         * top/maint.mk: git tag was missing actual tag name; add it.
23942
23943         valgrind: do leak checking, and exit with code 1 on error (not 0)
23944         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23945         to VALGRIND.
23946
23947 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23948
23949         posix-modules: say what it does.
23950         * posix-modules: Add a line to the --help output saying what it does.
23951
23952 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23953
23954         xmalloc: Do not leak if underlying realloc is C99 compatible.
23955         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23956         This avoids a leak on C99-based systems.  See
23957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23958
23959 2011-03-24  Eric Blake  <eblake@redhat.com>
23960
23961         realloc: document portability problem
23962         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23963         passing 0 size to realloc.
23964
23965 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23966
23967         doc: update users.txt
23968         * users.txt: Add cvsps, tmpwatch
23969
23970 2011-03-23  Matt Rice  <ratmice@gmail.com>
23971
23972         doc: update users.txt
23973         * users.txt: Add gdb.
23974
23975 2011-03-23  Jim Meyering  <meyering@redhat.com>
23976
23977         doc: update users.txt
23978         Looking through matches up to the following URL (there are still
23979         several more pages), I found several projects that use gnulib:
23980         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23981         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23982         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23983
23984 2011-03-22  Bruno Haible  <bruno@clisp.org>
23985
23986         unictype/bidi*: Rename functions.
23987         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23988         uc_bidi_class, uc_is_bidi_class): New declarations.
23989         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23990         uc_bidi_category_byname.
23991         (uc_bidi_category_byname): New function.
23992         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23993         u_bidi_category_name.
23994         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23995         (uc_bidi_category_name): New function.
23996         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23997         uc_bidi_category.
23998         (uc_bidi_category): New function.
23999         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24000         uc_is_bidi_category. Invoke uc_bidi_class.
24001         (uc_is_bidi_category): New function.
24002         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24003         instead of uc_bidi_category_byname.
24004         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24005         instead of uc_bidi_category_name.
24006         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24007         uc_bidi_category.
24008         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24009         instead of uc_is_bidi_category.
24010
24011 2011-03-21  Bruno Haible  <bruno@clisp.org>
24012
24013         New module 'unictype/joininggroup-all'.
24014         * modules/unictype/joininggroup-all: New file.
24015
24016         Tests for module 'unictype/joininggroup-of'.
24017         * modules/unictype/joininggroup-of-tests: New file.
24018         * tests/unictype/test-joininggroup_of.c: New file.
24019         * tests/unictype/test-joininggroup_of.h: New file, automatically
24020         generated by gen-uni-tables.
24021
24022         New module 'unictype/joininggroup-of'.
24023         * modules/unictype/joininggroup-of: New file.
24024         * lib/unictype/joininggroup_of.c: New file.
24025         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24026         gen-uni-tables.
24027
24028         Tests for module 'unictype/joininggroup-byname'.
24029         * modules/unictype/joininggroup-byname-tests: New file.
24030         * tests/unictype/test-joininggroup_byname.c: New file.
24031
24032         New module 'unictype/joininggroup-byname'.
24033         * modules/unictype/joininggroup-byname: New file.
24034         * lib/unictype/joininggroup_byname.c: New file.
24035         * lib/unictype/joininggroup_byname.gperf: New file.
24036
24037         Tests for module 'unictype/joininggroup-name'.
24038         * modules/unictype/joininggroup-name-tests: New file.
24039         * tests/unictype/test-joininggroup_name.c: New file.
24040
24041         New module 'unictype/joininggroup-name'.
24042         * modules/unictype/joininggroup-name: New file.
24043         * lib/unictype/joininggroup_name.c: New file.
24044         * lib/unictype/joininggroup_name.h: New file.
24045
24046         New module 'unictype/joiningtype-all'.
24047         * modules/unictype/joiningtype-all: New file.
24048
24049         Tests for module 'unictype/joiningtype-of'.
24050         * modules/unictype/joiningtype-of-tests: New file.
24051         * tests/unictype/test-joiningtype_of.c: New file.
24052         * tests/unictype/test-joiningtype_of.h: New file, automatically
24053         generated by gen-uni-tables.
24054
24055         New module 'unictype/joiningtype-of'.
24056         * modules/unictype/joiningtype-of: New file.
24057         * lib/unictype/joiningtype_of.c: New file.
24058         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24059         gen-uni-tables.
24060
24061         Tests for module 'unictype/joiningtype-byname'.
24062         * modules/unictype/joiningtype-byname-tests: New file.
24063         * tests/unictype/test-joiningtype_byname.c: New file.
24064
24065         New module 'unictype/joiningtype-byname'.
24066         * modules/unictype/joiningtype-byname: New file.
24067         * lib/unictype/joiningtype_byname.c: New file.
24068
24069         Tests for module 'unictype/joiningtype-name'.
24070         * modules/unictype/joiningtype-name-tests: New file.
24071         * tests/unictype/test-joiningtype_name.c: New file.
24072
24073         New module 'unictype/joiningtype-name'.
24074         * modules/unictype/joiningtype-name: New file.
24075         * lib/unictype/joiningtype_name.c: New file.
24076
24077         unictype: Add support for Arabic shaping properties.
24078         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24079         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24080         declarations.
24081         (UC_JOINING_GROUP_*): New enumeration values.
24082         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24083         declarations.
24084         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24085         (unicode_joining_type): New variable.
24086         (UC_JOINING_GROUP_*): New enumeration values.
24087         (unicode_joining_group): New variable.
24088         (fill_arabicshaping, joining_type_as_c_identifier,
24089         output_joining_type_test, output_joining_type,
24090         joining_group_as_c_identifier, output_joining_group_test,
24091         output_joining_group): New functions.
24092         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24093         fill_arabicshaping and output_joining_type_test, output_joining_type,
24094         output_joining_group_test, output_joining_group.
24095         Reported by Simon Josefsson.
24096
24097 2011-03-21  Jim Meyering  <meyering@redhat.com>
24098
24099         strftime: fix a bug in yesterday's change
24100         * lib/strftime.c (add): Accommodate width's initial value of -1.
24101         Otherwise, nstrftime would copy uninitialized data into
24102         the result buffer.
24103
24104 2011-03-21  Jim Meyering  <meyering@redhat.com>
24105
24106         tests: add strftime-tests module
24107         * tests/test-strftime.c: New file.
24108         * modules/strftime-tests: New module.
24109
24110 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24111
24112         strftime: don't assume a byte count fits in 'int'
24113         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24114         found this problem by static analysis, using gcc -Wstrict-overflow
24115         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24116         on an integer overflow having undefined behavior, but it turns out
24117         that the argument is a size, which might not fit in 'int' anyway,
24118
24119 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24120
24121         stdio: don't require ignore_value around fwrite
24122
24123         This patch works around libc bug 11959
24124         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24125         Without this patch, applications must often write
24126         ignore_value (fwrite (...)) even though the ignore_value is
24127         not helpful here.  It's common to write many objects, using
24128         fwrite/printf/etc., and then use ferror to detect output error.
24129
24130         I considered making this patch optional, but decided against it,
24131         because libc is obviously being inconsistent here: there is no
24132         reason libc should insist that user code must inspect fwrite
24133         return's value without also insisting that it inspect printf's,
24134         putchar's, etc.  If user code wants to have a strict style where
24135         all these functions' values are checked (so that ferror need not
24136         be checked), we could add support for that style in a new gnulib
24137         module, but in the meantime it's better to be consistent and to
24138         support common usage.
24139
24140         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24141         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24142         that we are compiling in checking mode, and if not C++, and
24143         if not already wrapping fwrite for some other reason.
24144         (fwrite): #define to rpl_fwrite if the latter is defined.
24145
24146 2011-03-20  Bruno Haible  <bruno@clisp.org>
24147
24148         verror: Fix compilation error introduced on 2011-02-13.
24149         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24150         instead of __attribute__.
24151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24152
24153 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24154             Bruno Haible  <bruno@clisp.org>
24155
24156         socklen: do not depend on sys_socket
24157         While trying to modify Emacs to use gnulib's socklen module,
24158         I discovered a circular dependency: socklen depends on sys_socket
24159         and vice versa.  Emacs can use socklen, but it does not need
24160         sys_socket because it has its own substitute for sys/socket.h.
24161         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24162         gl_TYPE_SOCKLEN_T.
24163         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24164         gl_PREREQ_SYS_H_SOCKET.
24165         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24166         gl_PREREQ_SYS_H_SOCKET.
24167         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24168         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24169         * modules/socklen (Depends-on): Do not depend on sys_socket.
24170         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24171
24172 2011-03-20  Jim Meyering  <meyering@redhat.com>
24173
24174         maint.mk: sort file names *after* new transformation
24175         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24176         prefix would have led to an unwarranted failure in GNU parted.
24177         Sort after that transformation.
24178
24179 2011-03-19  Jim Meyering  <meyering@redhat.com>
24180
24181         maint.mk: fix po-file syntax-check rule
24182         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24183         Patch by Bruno Haible.
24184
24185 2011-03-19  Bruno Haible  <bruno@clisp.org>
24186
24187         socklen: Update comment.
24188         * m4/socklen.m4: Update comment about platforms.
24189
24190 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24191             Bruno Haible  <bruno@clisp.org>
24192
24193         inet_ntop, inet_pton: Simplify.
24194         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24195         documented to provide socklen_t and we already depend on sys_socket.
24196         * modules/inet_pton (Depends-on): Likewise.
24197         * lib/arpa_inet.in.h: Adjust comment.
24198
24199 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24200             Bruno Haible  <bruno@clisp.org>
24201
24202         netdb: Simplify.
24203         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24204         documented to provide socklen_t and we already depend on sys_socket.
24205         * lib/netdb.in.h: Adjust comment.
24206
24207 2011-03-19  Bruno Haible  <bruno@clisp.org>
24208
24209         sys_socket, netdb: Document problem with socklen_t.
24210         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24211         platforms.
24212         * doc/posix-headers/netdb.texi: Likewise.
24213
24214 2011-03-18  Eric Blake  <eblake@redhat.com>
24215
24216         maint.mk: let po check work in VPATH build
24217         * top/maint.mk (po_file): Allow cfg.mk override.
24218         (sc_po_check): Allow VPATH use.
24219         Reported by Jiri Denemark.
24220
24221 2011-03-16  Jim Meyering  <meyering@redhat.com>
24222
24223         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24224         Before, you would have had to create one .x-sc_ file per rule in order
24225         to exempt offending files.  Now, you may instead use a Make variable --
24226         usually defined in cfg.mk -- whose name identifies the affected rule.
24227         * top/maint.mk (_sc_excl): Define.
24228         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24229         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24230
24231 2011-03-13  Bruno Haible  <bruno@clisp.org>
24232
24233         ignore-value tests: Avoid warnings.
24234         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24235         empty for gcc < 3.4.
24236
24237 2011-03-13  Bruno Haible  <bruno@clisp.org>
24238
24239         passfd: Fix link error on Solaris.
24240         * modules/passfd (Description): Correct.
24241         (Depends-on): Add socketlib.
24242         (Link): New section.
24243         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24244
24245 2011-03-13  Bruno Haible  <bruno@clisp.org>
24246
24247         passfd: Fix link error on AIX 5.2.
24248         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24249
24250 2011-03-13  Bruno Haible  <bruno@clisp.org>
24251
24252         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24253         * lib/sys_socket.in.h: Include <stddef.h>.
24254         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24255         CMSG_FIRSTHDR. Remove unused variable.
24256
24257 2011-03-13  Bruno Haible  <bruno@clisp.org>
24258
24259         passfd: Fix compilation error on OpenBSD.
24260         * lib/passfd.c: Include <sys/uio.h>.
24261
24262 2011-03-13  Bruno Haible  <bruno@clisp.org>
24263
24264         passfd test: Fix warnings.
24265         * tests/test-passfd.c: Include <sys/wait.h>.
24266         (main): Fix typo.
24267
24268 2011-03-13  Bruno Haible  <bruno@clisp.org>
24269
24270         passfd module, part 4, tweaks.
24271         * tests/test-passfd.c: Reorder includes.
24272         (main): Fix perror and printf calls.
24273
24274 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24275
24276         passfd module, part 4.
24277         * modules/passfd-tests: New file.
24278         * tests/test-passfd.c: New file.
24279
24280 2011-03-13  Jim Meyering  <meyering@redhat.com>
24281
24282         Makefile: rely on GNU make; derive syntax-check rule names
24283         Rather than requiring that each sc_ rule be listed as a dependent
24284         of "check", use features of GNU make to derive the list.
24285         * Makefile (syntax-check-rules): Define.
24286         (check): Depend on the new variable, not the hard-coded list.
24287
24288 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24289             Bruno Haible  <bruno@clisp.org>
24290
24291         passfd module, part 3.
24292         * lib/passfd.h (recvfd): Add a flags argument.
24293         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24294         (recvfd): Add a flags argument.
24295         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24296         exists.
24297         * modules/passfd (Depends-on): Add cloexec.
24298         Suggested by Eric Blake.
24299
24300 2011-03-13  Bruno Haible  <bruno@clisp.org>
24301
24302         passfd module, part 2, tweaks.
24303         * modules/passfd (Files): Reorder.
24304         (Depends-on): Remove errno.
24305         (Include): Remove <sys/socket.h>, <sys/un.h>.
24306         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24307         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24308         specification header. Include <sys/socket.h> always. Don't include
24309         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24310         (sendfd): Clarify that it sets errno when it fails.
24311         (recvfd): Fix specification.
24312
24313 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24314
24315         passfd module, part 2.
24316         * modules/passfd: New file.
24317         * lib/passfd.h: New file.
24318         * lib/passfd.c: New file.
24319
24320 2011-03-12  Bruno Haible  <bruno@clisp.org>
24321
24322         wcswidth, mbswidth: Avoid integer overflow.
24323         * lib/wcswidth.c: Include <limits.h>.
24324         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24325         * lib/mbswidth.c: Include <limits.h>.
24326         (mbsnwidth): Avoid 'int' overflow.
24327         Reported by Jim Meyering.
24328
24329 2011-03-12  Bruno Haible  <bruno@clisp.org>
24330
24331         futimens, utimensat: Avoid endless recursion on Solaris 10.
24332         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24333         Solaris.
24334         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24335         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24336
24337 2011-03-11  Jim Meyering  <meyering@redhat.com>
24338
24339         maint.mk: relax a regexp to accommodate other formatting styles
24340         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24341         between "ngettext" and the following "(".
24342
24343 2011-03-11  Pádraig Brady <P@draigBrady.com>
24344
24345         maint.mk: suppress a false positive warning
24346         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24347         diagnostics are marked with ngettext.
24348
24349 2011-03-10  Eric Blake  <eblake@redhat.com>
24350
24351         wchar: add explicit dependencies, for Tru64
24352         * modules/mbmemcasecoll (Depends-on): Add wchar.
24353         * modules/mbtowc (Depends-on): Likewise.
24354         * modules/vasnprintf (Depends-on): Likewise.
24355         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24356         * modules/wctomb (Depends-on): Likewise.
24357         Reported by Peter O'Gorman.
24358
24359 2011-03-08  Bruno Haible  <bruno@clisp.org>
24360
24361         passfd module, part 1, tweaks.
24362         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24363         Improve indentation. Improve AC_MSG_CHECKING messages.
24364         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24365         gl_SOCKET_FAMILIES.
24366
24367 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24368
24369         passfd module, part 1.
24370         * m4/afunix.m4: New file.
24371         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24372         sockets.
24373
24374 2011-03-08  Bruno Haible  <bruno@clisp.org>
24375
24376         regex-quote: New API.
24377         * lib/regex-quote.h: Include <stdbool.h>.
24378         (struct regex_quote_spec): New type.
24379         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24380         New declarations.
24381         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24382         'const struct regex_quote_spec *' argument.
24383         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24384         (pcre_special): New constant.
24385         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24386         New functions.
24387         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24388         'const struct regex_quote_spec *' argument.
24389         * modules/regex-quote (Depends-on): Add stdbool.
24390         * tests/test-regex-quote.c (check): Update for new API. Add test for
24391         anchored results.
24392         * NEWS: Mention the API change.
24393         Reported by Reuben Thomas and Eric Blake.
24394
24395 2011-03-06  Bruno Haible  <bruno@clisp.org>
24396
24397         regex-quote: Fix creation of POSIX extended regular expressions.
24398         * lib/regex-quote.c (ere_special): Add grouping and alternation
24399         operators.
24400
24401 2011-03-05  Bruno Haible  <bruno@clisp.org>
24402
24403         doc: Improve doc regarding autopoint vs. gnulib.
24404         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24405         disable autopoint while running autoreconf.
24406         Suggested by Ralf Wildenhues.
24407
24408 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24409
24410         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24411         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24412
24413 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24414
24415         parse-duration: remove xalloc.h dependency
24416         * lib/parse-duration.c (parse_period): handle NULL return from
24417         strdup instead of calling xstrdup().
24418         * modules/parse-duration: remove "xalloc" dependency
24419
24420 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24421
24422         bootstrap: honor m4_base when running aclocal
24423         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24424
24425 2011-03-02  Jim Meyering  <meyering@redhat.com>
24426
24427         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24428         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24429         on request from Matt Booth.
24430
24431 2011-03-01  Eric Blake  <eblake@redhat.com>
24432
24433         test-link: work on Hurd
24434         * tests/test-link.h (test_link): Hurd rejects linking directories
24435         with EISDIR instead of the POSIX-mandated EPERM.
24436
24437 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24438
24439         stdio: simplify by moving files to printf-posix, sigpipe
24440         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24441         since this symbol is needed only if printf is replaced.
24442         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24443         Require gl_ASM_SYMBOL_PREFIX.
24444         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24445         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24446         (Depends-on): Add 'raise'.
24447         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24448         * modules/stdio (Files): Remove lib/stdio-write.c,
24449         m4/asm-underscore.m4.
24450         (Depends-on): Remove 'raise'.
24451
24452         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24453         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24454         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24455         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24456
24457 2011-02-28  Bruno Haible  <bruno@clisp.org>
24458
24459         localcharset: Assume ANSI C behaviour of free().
24460         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24461         calling free().
24462         Suggested by Simon Josefsson <simon@josefsson.org>.
24463
24464 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24465             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24466             Bruno Haible  <bruno@clisp.org>  (tiny change)
24467
24468         On Cygwin, use /proc file system instead of win32 API.
24469         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24470         Win32 file names.
24471         (DllMain): Simplify by removing Cygwin specific code.
24472         (find_shared_library_fullname): Use Linux specific implementation also
24473         for Cygwin.
24474         (get_shared_library_fullname): Update accordingly.
24475         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24476         Win32 file names.
24477         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24478         Cygwin specific code.
24479
24480 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24481             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24482
24483         Fix OpenMP flag detection for various Fortran compilers.
24484         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24485         OpenMP-conditional compilation construct, to force compile
24486         failure with missing OpenMP flag.
24487         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24488
24489 2011-02-25  Eric Blake  <eblake@redhat.com>
24490
24491         strstr: expand test coverage
24492         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24493         compilation.
24494         * tests/test-memmem.c (main): Duplicate tests.
24495         * tests/test-strcasestr.c (main): Likewise.
24496         * tests/test-c-strcasestr.c (main): Likewise.
24497
24498 2011-02-25  Jim Meyering  <meyering@redhat.com>
24499
24500         maint.mk: detect missing-NL-at-EOF, too
24501         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24502         it also detects when a file lacks a newline at EOF.
24503         (require_exactly_one_NL_at_EOF_): Renamed from
24504         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24505         since people may well have .x-sc_... file names tied to the
24506         existing name.  Suggested by Eric Blake.
24507
24508 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24509
24510         dirname: move m4/dos.m4 functionality into lib/dosname.h
24511
24512         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24513         extracts symbols from it, puts them into config.h; but it's much
24514         easier to use the symbols directly.  filename.h already does this,
24515         but it disagrees with dos.m4 in some respects.  This patch
24516         introduces a different include file dosname.h that packages up
24517         dos.m4, and then later we can work on merging filename.h and
24518         dosname.h.  Applications that need only the easy-to-configure
24519         symbols should consider including dosname.h rather than dirname.h.
24520         * NEWS: Mention incompatible changes.
24521         * m4/dos.m4: Remove.
24522         * lib/dosname.h, modules/dosname: New files.
24523         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24524         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24525         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24526         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24527         Include dosname.h, not dirname.h.
24528         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24529         Include dosname.h, for definitions of symbols like ISSLASH
24530         that used to be in config.h.
24531         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24532         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24533         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24534         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24535         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24536         * modules/rmdir (Files): Likewise.
24537         * modules/stat (Files): Likewise.
24538         * modules/unlink (Files): Likewise.
24539         * modules/dirname-lgpl (Depends-on): Add dosname.
24540         * modules/lstat (Depends-on): Likewise.
24541         * modules/openat (Depends-on): Likewise.
24542         * modules/rmdir (Depends-on): Likewise.
24543         * modules/savewd (Depends-on): Likewise.
24544         * modules/stat (Depends-on): Likewise.
24545         * modules/unlink (Depends-on): Likewise.
24546         * modules/openat (Depends-on): Remove dirname-lgpl.
24547         * modules/savewd (Depends-on): Likewise.
24548         * tests/test-dirname.c: Do not use removed symbols like
24549         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24550         the remaining symbols, e.g., ISSLASH ('\\').
24551
24552 2011-02-25  Eric Blake  <eblake@redhat.com>
24553
24554         strstr: revert patches that introduced bug and pessimization
24555         * lib/str-two-way.h: Add another reference.
24556         (two_way_short_needle, two_way_long_needle): Revert changes from
24557         2011-02-24; they pessimize search speed.
24558         (critical_factorization): Partially revert changes from
24559         2010-06-22; they violate the requirement that the left half of the
24560         needle be smaller than the period of the needle.
24561
24562 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24563
24564         filenamecat: remove unnecessary dependency on dirname-lgpl
24565         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24566         is no direct dependency, just an indirect one via filenamecat-lgpl.
24567
24568         remove: remove unnecessary use of m4/dos.m4
24569         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24570         * modules/remove (FILES): Remove m4/dos.m4.
24571
24572         * lib/openat-proc.c: Don't include dirname.h; not needed.
24573
24574         backupfile: remove unnecessary use of m4/dos.m4
24575         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24576         of its symbols are used by the backupfile code.  backupfile.c does
24577         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24578         for the rare case of programs that want all their backup file
24579         names to live within 8+3 limits, and dos.m4 doesn't address that.
24580         * modules/backupfile (Files): Remove m4/dos.m4.
24581
24582 2011-02-24  Jim Meyering  <meyering@redhat.com>
24583
24584         strstr: fix a bug whereby strstr would mistakenly return NULL
24585         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24586         in period calculation.
24587         (two_way_long_needle): Likewise.
24588         The original problem was reported by Mike Stump in
24589         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24590         Ralf Wildenhues provided the short needle and haystack.
24591         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24592         Add a more involved test to trigger the bug in two_way_long_needle.
24593
24594 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24595
24596         gnulib-tool: remove use of bold display in help screen
24597         * gnulib-tool (func_usage): Do not use bold display anymore in the
24598         help screen.  That was just meant to be a temporary emphasis for a
24599         backward-incompatible change.
24600
24601 2011-02-23  Bruno Haible  <bruno@clisp.org>
24602
24603         Fix misindentation of preprocessor directives.
24604         * lib/argp-namefrob.h: Reindent preprocessor directives.
24605         * lib/getopt_int.h (struct _getopt_data): Likewise.
24606         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24607         * lib/vasnprintf.c (decode_long_double): Likewise.
24608         * tests/test-argmatch.c: Insert blank lines, for clarity.
24609         * tests/test-exclude.c: Likewise.
24610
24611 2011-02-22  Bruno Haible  <bruno@clisp.org>
24612
24613         ioctl: Fix for MacOS X in 64-bit mode.
24614         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24615         value.
24616         Suggested by Eric Blake.
24617         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24618
24619 2011-02-22  Jim Meyering  <meyering@redhat.com>
24620
24621         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24622         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24623         in lib/.
24624
24625 2011-02-22  Eric Blake  <eblake@redhat.com>
24626
24627         maint: avoid any CDPATH issue
24628         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24629
24630         maint: adjust cpp indentation for my modules, as well
24631         * Makefile (sc_cpp_indent_check): Add my name.
24632         * lib/fbufmode.c: Filter through cppi.
24633         * lib/fpurge.c: Likewise.
24634         * lib/freadable.c: Likewise.
24635         * lib/freading.c: Likewise.
24636         * lib/fwritable.c: Likewise.
24637         * lib/fwriting.c: Likewise.
24638         * lib/sigaction.c: Likewise.
24639
24640 2011-02-22  Jim Meyering  <meyering@redhat.com>
24641
24642         maint: adjust cpp indentation to reflect nesting depth
24643         I.e., in a block of code that begins with an unnested "#if",
24644         put one space between the "#" in column 1 and following token.
24645         For example,
24646         -#include <sys/vfs.h>
24647         +# include <sys/vfs.h>
24648         Do this only in .c files that are part of a module I maintain.
24649         * lib/linkat.c: Filter through cppi.
24650         * lib/nanosleep.c: Likewise.
24651         * lib/openat.c: Likewise.
24652         * lib/openat-die.c: Likewise.
24653         * lib/dup3.c: Likewise.
24654         * lib/fchownat.c: Likewise.
24655         * lib/flock.c: Likewise.
24656         * lib/fsync.c: Likewise.
24657         * lib/fts.c: Likewise.
24658         * lib/getpass.c: Likewise.
24659         * lib/gettimeofday.c: Likewise.
24660         * lib/userspec.c: Likewise.
24661         * Makefile (sc_cpp_indent_check): New rule, to check this.
24662
24663 2011-02-22  Bruno Haible  <bruno@clisp.org>
24664
24665         New module 'wctomb'.
24666         * lib/stdlib.in.h (wctomb): New declaration.
24667         * lib/wctomb.c: New file.
24668         * lib/wctomb-impl.h: New file.
24669         * m4/wctomb.m4: New file.
24670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24671         REPLACE_WCTOMB.
24672         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24673         REPLACE_WCTOMB.
24674         * modules/wctomb: New file.
24675         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24676         * doc/posix-functions/wctomb.texi: Mention the new module.
24677         * modules/wctob (Depends-on): Add wctomb.
24678
24679 2011-02-22  Bruno Haible  <bruno@clisp.org>
24680
24681         New module 'mbtowc'.
24682         * lib/stdlib.in.h (mbtowc): New declaration.
24683         * lib/mbtowc.c: New file.
24684         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24685         * m4/mbtowc.m4: New file.
24686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24687         REPLACE_MBTOWC.
24688         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24689         REPLACE_MBTOWC.
24690         * modules/mbtowc: New file.
24691         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24692         * doc/posix-functions/mbtowc.texi: Mention the new module.
24693         * modules/btowc (Depends-on): Add mbtowc.
24694
24695 2011-02-22  Bruno Haible  <bruno@clisp.org>
24696
24697         wcrtomb: Add more tests for native Windows platforms.
24698         * tests/test-wcrtomb-w32-1.sh: New file.
24699         * tests/test-wcrtomb-w32-2.sh: New file.
24700         * tests/test-wcrtomb-w32-3.sh: New file.
24701         * tests/test-wcrtomb-w32-4.sh: New file.
24702         * tests/test-wcrtomb-w32-5.sh: New file.
24703         * tests/test-wcrtomb-w32.c: New file.
24704         * modules/wcrtomb-tests (Files): Add them.
24705         (Makefile.am): Arrange to run these tests.
24706         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24707         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24708
24709 2011-02-20  Bruno Haible  <bruno@clisp.org>
24710
24711         wcrtomb: Enhance test.
24712         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24713
24714 2011-02-20  Bruno Haible  <bruno@clisp.org>
24715
24716         mbrtowc: Tiny optimization.
24717         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24718
24719 2011-02-20  Jim Meyering  <meyering@redhat.com>
24720
24721         test-exclude.c: remove unmatched #endif
24722         * tests/test-exclude.c: Remove stray #endif, left over from
24723         the change of a week ago.
24724
24725 2011-02-19  Jim Meyering  <meyering@redhat.com>
24726
24727         git-version-gen: skip "-dirty" check when appropriate
24728         * build-aux/git-version-gen: Don't run any git commands when the
24729         version string comes from .tarball-version.  Prior to this, we
24730         would run git update-index --refresh even from a just-unpacked
24731         tarball directory, and that could affect a .git/ directory in a
24732         parent of the build directory.  Reported by Mike Frysinger.
24733
24734 2011-02-19  Bruno Haible  <bruno@clisp.org>
24735
24736         unictype/property-byname: Reduce the size of the 'data' segment.
24737         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24738
24739 2011-02-19  Bruno Haible  <bruno@clisp.org>
24740
24741         unictype/scripts: Reduce the size of the 'data' segment.
24742         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24743         '%pic'.
24744         * lib/unictype/scripts_byname.gperf: Regenerated.
24745
24746 2011-02-19  Bruno Haible  <bruno@clisp.org>
24747
24748         stdint: Update documentation.
24749         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24750
24751 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24752
24753         stdint: omit redundant check for wchar.h
24754         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24755         always tests whether wchar.h exists, so remove the now-redundant test.
24756
24757 2011-02-18  Bruno Haible  <bruno@clisp.org>
24758
24759         stdint: Cut dependency to module 'wchar'.
24760         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24761         include the necessary prerequisites.
24762         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24763         * modules/stdint (Depends-on): Remove wchar.
24764         (Makefile.am): Substitute HAVE_WCHAR_H.
24765         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24766
24767 2011-02-18  Eric Blake  <eblake@redhat.com>
24768
24769         longlong: skip, rather than fail, on cross-compilation
24770         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24771         when cross-compiling; regression from 2011-02-16.
24772
24773 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24774
24775         * NEWS: Mention 2011-02-08 change to stdlib.
24776
24777 2011-02-17  Bruno Haible  <bruno@clisp.org>
24778
24779         getloadavg: Add comments about platforms.
24780         * m4/getloadavg.m4: Add comment.
24781         * lib/getloadavg.c: Likewise.
24782
24783 2011-02-17  Bruno Haible  <bruno@clisp.org>
24784
24785         getloadavg: Fix link error on Solaris 2.6.
24786         * modules/getloadavg (Link): New section.
24787         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24788         linking test-getloadavg.
24789         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24790         getloadavg.
24791
24792 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24793
24794         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24795         It was 'int', but this doesn't match the IRIX 6.5 manual.
24796         Suggested by Bruno Haible in
24797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24798
24799 2011-02-17  Bruno Haible  <bruno@clisp.org>
24800
24801         havelib: Fix comments.
24802         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24803         change.
24804
24805 2011-02-17  Bruno Haible  <bruno@clisp.org>
24806
24807         havelib: Update config.rpath.
24808         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24809
24810 2011-02-17  Bruno Haible  <bruno@clisp.org>
24811
24812         getloadavg test: Add some plausibility checks.
24813         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24814         is improbable.
24815
24816 2011-02-16  Eric Blake  <eblake@redhat.com>
24817
24818         maintainer-makefile: make syntax-check a no-op from tarballs
24819         * top/maint.mk (no-vc-detected): New rule.
24820         (local-checks-available): Use it to avoid hanging if someone tries
24821         'make syntax-check' from a tarball.  Also append to any non-syntax
24822         checks already defined in cfg.mk.
24823
24824 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24825
24826         longlong: tune, particularly for common case of c99
24827
24828         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24829         or running anything if c99, or if unsigned long long int does not
24830         work.  In either case, we know the answer without further tests.
24831         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24832         it at most once, and use its results for both long long int and
24833         unsigned long long int.  This is more likely to be efficient in
24834         the common case where the program wants to check for both long
24835         long int and unsigned long long int.
24836         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24837         since the answer is already known.
24838
24839 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24840
24841         getloadavg: set errno
24842         * lib/getloadavg.c: Set errno when returning -1.  If no other
24843         error number looks appropriate, set it to ENOSYS if the getloadavg
24844         looks like it can't possibly ever work, ENOTSUP otherwise.
24845         Suggested by Bruno Haible in
24846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24847
24848         getloadavg: trim unused parts and speed up 'configure'
24849         * NEWS: Document this.
24850         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24851         always compiled if getloadavg is absent.
24852         Move test code to ...
24853         * tests/test-getloadavg.c: New file, containing previous
24854         contents of test from lib/getloadavg.c.  It also contains
24855         suggestions by Bruno Haible in
24856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24857         * modules/getloadavg-tests: New file.
24858         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24859         Do tests in the same order as they're needed for getloadavg.c.
24860         Omit setgid-related tests that generate symbols KMEM_GROUP,
24861         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24862         Do only the tests that are needed to see whether the system has
24863         getloadavg, moving the other tests into ...
24864         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24865         NLIST_NAME_UNION; nobody should be using it.  Do not define
24866         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24867         relevant, as the user of this module shouldn't care how getloadavg
24868         is implemented.
24869
24870         getloadavg: omit unused var
24871         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24872
24873 2011-02-15  Jim Meyering  <meyering@redhat.com>
24874
24875         doc: update users.txt
24876         * users.txt: Update iwhd's URL.
24877
24878 2011-02-13  Bruno Haible  <bruno@clisp.org>
24879
24880         Consistent macro naming for macros that use GCC __attribute__.
24881         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24882         _ATTRIBUTE_NONNULL_.
24883         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24884         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24885         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24886         ATTRIBUTE_DEPRECATED.
24887         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24888         ATTRIBUTE_NORETURN.
24889         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24890         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24891         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24892         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24893         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24894         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24895         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24896         ATTRIBUTE_SENTINEL.
24897         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24898         ATTRIBUTE_RETURN_CHECK.
24899         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24900         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24901         ATTRIBUTE_NORETURN.
24902         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24903         Reported by Paul Eggert.
24904
24905 2011-02-13  Bruno Haible  <bruno@clisp.org>
24906
24907         Don't interfere with a program's definition of __attribute__.
24908         * lib/argp.h (__attribute__): Remove definition.
24909         (_GL_ATTRIBUTE_FORMAT): New macro.
24910         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24911         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24912         (_GL_ATTRIBUTE_FORMAT): New macro.
24913         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24914         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24915         GCC 3 or newer.
24916         * lib/error.h (__attribute__): Remove definition.
24917         (_GL_ATTRIBUTE_FORMAT): New macro.
24918         (error, error_at_line): Use it.
24919         * lib/hash.h (__attribute__): Remove definition.
24920         (ATTRIBUTE_WUR): Update definition. Define always.
24921         * lib/openat.h (__attribute__): Remove definition.
24922         (ATTRIBUTE_NORETURN): Update definition. Define always.
24923         * lib/sigpipe-die.h (__attribute__): Remove definition.
24924         (ATTRIBUTE_NORETURN): Update definition. Define always.
24925         * lib/vasnprintf.h (__attribute__): Remove definition.
24926         (_GL_ATTRIBUTE_FORMAT): New macro.
24927         (asnprintf, vasnprintf): Use it.
24928         * lib/xalloc.h (__attribute__): Remove definition.
24929         (ATTRIBUTE_NORETURN): Update definition. Define always.
24930         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24931         * lib/xmemdup0.h (__attribute__): Remove definition.
24932         (ATTRIBUTE_NORETURN): Update definition. Define always.
24933         * lib/xprintf.h (__attribute__): Remove definition.
24934         (_GL_ATTRIBUTE_FORMAT): New macro.
24935         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24936         * lib/xstrtol.h (__attribute__): Remove definition.
24937         (ATTRIBUTE_NORETURN): Update definition. Define always.
24938         * lib/xvasprintf.h (__attribute__): Remove definition.
24939         (_GL_ATTRIBUTE_FORMAT): New macro.
24940         (xasprintf, xvasprintf): Use it.
24941         * tests/test-argmatch.c (__attribute__): Remove definition.
24942         (ATTRIBUTE_NORETURN): Update definition. Define always.
24943         * tests/test-exclude.c (__attribute__): Remove definition.
24944         (ATTRIBUTE_NORETURN): Update definition. Define always.
24945         Reported by Paul Eggert.
24946
24947 2011-02-13  Bruno Haible  <bruno@clisp.org>
24948
24949         mbrtowc: Add more tests for native Windows platforms.
24950         * tests/test-mbrtowc-w32-1.sh: New file.
24951         * tests/test-mbrtowc-w32-2.sh: New file.
24952         * tests/test-mbrtowc-w32-3.sh: New file.
24953         * tests/test-mbrtowc-w32-4.sh: New file.
24954         * tests/test-mbrtowc-w32-5.sh: New file.
24955         * tests/test-mbrtowc-w32.c: New file.
24956         * modules/mbrtowc-tests (Files): Add them.
24957         (Makefile.am): Arrange to run these tests.
24958         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24959         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24960
24961 2011-02-13  Bruno Haible  <bruno@clisp.org>
24962
24963         mbrtowc: Work around native Windows bug.
24964         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24965         guess when no suitable locale for testing was found.
24966         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24967
24968 2011-02-13  Bruno Haible  <bruno@clisp.org>
24969
24970         mbsinit: Work around mingw bug.
24971         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24972         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24973         Windows.
24974         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24975
24976 2011-02-13  Bruno Haible  <bruno@clisp.org>
24977
24978         mbsinit: Don't crash for a NULL argument.
24979         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24980         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24981
24982 2011-02-13  Bruno Haible  <bruno@clisp.org>
24983
24984         Don't interfere with a program's definition of __attribute__.
24985         * lib/stdio.in.h (__attribute__): Remove definition.
24986         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24987         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24988         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24989         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24990         * lib/string.in.h (__attribute__): Remove definition.
24991         Reported by Paul Eggert.
24992
24993 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24994
24995         stdlib: don't get in the way of non-GCC __attribute__
24996         See thread starting at
24997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24998         Revert previous stdlib change, installing the following instead:
24999         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25000         to get in the way of a non-GCC compiler that supports __attribute__.
25001         (_GL_ATTRIBUTE_RETURN): New macro.
25002         (_Exit): Use it instead of __attribute__.
25003
25004 2011-02-12  Bruno Haible  <bruno@clisp.org>
25005
25006         quotearg test: Avoid test failure on mingw.
25007         * tests/test-quotearg.sh: Convert the locale identifier from native
25008         Windows syntax to Unix syntax.
25009
25010 2011-02-12  Bruno Haible  <bruno@clisp.org>
25011
25012         setlocale: Prefer gnulib's override over libintl's override.
25013         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25014         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25015         GNULIB_defined_setlocale is set.
25016
25017 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25018
25019         stdlib: support non-GCC __attribute__
25020
25021         Fix a serious and tricky problem encountered when attempting to
25022         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25023         5.5, but it crashed due to memory corruption on Solaris 10 with
25024         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25025         bits that are otherwise zero.  This tagging is optional inside
25026         Emacs but is preferred and is used when __attribute__ ((__aligned
25027         (8))) works, as it does with both recent-enough GCC and with Sun C
25028         5.11.  However, Sun C 5.11 is not GCC and does not #define
25029         __GNUC__ and __GNUC_MINOR__.
25030
25031         When I added the getloadavg module to Emacs, it brought in
25032         stdlib.in.h, which contained this fragment:
25033
25034            #ifndef __attribute__
25035            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25036            #  define __attribute__(Spec)   /* empty */
25037            # endif
25038            #endif
25039
25040         When files that include <stdlib.h> were compiled with Sun C 5.11,
25041         the above code disabled __attribute__ ((__aligned (8))), which
25042         caused variables to not be properly aligned, which eventually led
25043         to the pointer corruption mentioned above.  (This was a bit hard
25044         to diagnose, unfortunately.)
25045
25046         Several "#define __attribute__(X) /* empty */" code snippets need
25047         to be eradicated from Gnulib to work with non-GCC compilers that
25048         support __attribute__.  The Autoconf way to do this is to test for
25049         each kind of attribute that we want support for, and selectively
25050         enable that in source code.
25051
25052         Fix this problem just for stdlib.h, by adding a test for the
25053         __noreturn__ attribute, and change stdlib.in.h to use that test
25054         when needed.  This technique can be easily generalized to the
25055         other *.in.h files and attributes, and a similar technique can be
25056         used for *.h and *.c files.  This patch is enough to solve the
25057         problem for Emacs + getloadavg, and I thought I'd publish it for
25058         feedback before undertaking further, similar fixes in other
25059         modules.
25060
25061         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25062         because it's not needed for stdlib.h.  It merely substitutes the
25063         value directly into stdlib.h.  We may well need to #define it, or
25064         similar symbols, for other modules, but it's nice to also have an
25065         option to not #define it for applications like Emacs that do not
25066         need it.
25067
25068         * lib/stdlib.in.h (__attribute__): Do not #define.
25069         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25070         be defined only if the _Exit module is also used.
25071         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25073         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25074         platforms.
25075         * modules/_Exit (Files): Add m4/attribute.m4.
25076         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25077         * m4/attribute.m4: New file.
25078
25079 2011-02-12  Bruno Haible  <bruno@clisp.org>
25080
25081         wcsrtombs: Work around bug on native Windows.
25082         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25083         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25084         instead of len.
25085         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25086
25087 2011-02-12  Bruno Haible  <bruno@clisp.org>
25088
25089         mbsrtowcs: Work around bug on native Windows.
25090         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25091         against mingw bug.
25092         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25093
25094 2011-02-12  Bruno Haible  <bruno@clisp.org>
25095
25096         Avoid setlocale bugs in tests.
25097         * modules/btowc (Dependencies): Add setlocale.
25098         * modules/c-strcase (Dependencies): Likewise.
25099         * modules/mbmemcasecmp (Dependencies): Likewise.
25100         * modules/mbmemcasecoll (Dependencies): Likewise.
25101         * modules/mbrtowc (Dependencies): Likewise.
25102         * modules/mbscasecmp (Dependencies): Likewise.
25103         * modules/mbscasestr (Dependencies): Likewise.
25104         * modules/mbschr (Dependencies): Likewise.
25105         * modules/mbscspn (Dependencies): Likewise.
25106         * modules/mbsinit (Dependencies): Likewise.
25107         * modules/mbsncasecmp (Dependencies): Likewise.
25108         * modules/mbsnrtowcs (Dependencies): Likewise.
25109         * modules/mbspbrk (Dependencies): Likewise.
25110         * modules/mbspcasecmp (Dependencies): Likewise.
25111         * modules/mbsrchr (Dependencies): Likewise.
25112         * modules/mbsrtowcs (Dependencies): Likewise.
25113         * modules/mbsspn (Dependencies): Likewise.
25114         * modules/mbsstr (Dependencies): Likewise.
25115         * modules/nl_langinfo (Dependencies): Likewise.
25116         * modules/quotearg (Dependencies): Likewise.
25117         * modules/unicase/locale-language (Dependencies): Likewise.
25118         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25119         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25120         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25121         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25122         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25123         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25124         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25125         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25126         * modules/vasnprintf-posix (Dependencies): Likewise.
25127         * modules/wcrtomb (Dependencies): Likewise.
25128         * modules/wcsnrtombs (Dependencies): Likewise.
25129         * modules/wcsrtombs (Dependencies): Likewise.
25130
25131 2011-02-12  Bruno Haible  <bruno@clisp.org>
25132
25133         setlocale: Workaround native Windows bug.
25134         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25135         succeeds but sets LC_CTYPE to "C", report a failure.
25136         * tests/test-setlocale2.sh: New file.
25137         * tests/test-setlocale2.c: New file.
25138         * modules/setlocale-tests (Files): Add the new files.
25139         (Makefile.am): Enable test-setlocale2.sh test.
25140         * doc/posix-functions/setlocale.texi: Mention workaround.
25141
25142 2011-02-11  Bruno Haible  <bruno@clisp.org>
25143
25144         Tests for module 'setlocale'.
25145         * modules/setlocale-tests: New file.
25146         * tests/test-setlocale1.sh: New file.
25147         * tests/test-setlocale1.c: New file.
25148
25149         New module 'setlocale'.
25150         * lib/locale.in.h (setlocale): New declaration.
25151         * lib/setlocale.c: New file, based on
25152         gettext/gettext-runtime/intl/setlocale.c.
25153         * m4/setlocale.m4: New file.
25154         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25155         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25156         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25157         REPLACE_SETLOCALE.
25158         * modules/setlocale: New file.
25159         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25160         * doc/posix-functions/setlocale.texi: Mention the new module.
25161
25162 2011-02-11  Bruno Haible  <bruno@clisp.org>
25163
25164         Prepare for locale dependent tests on mingw.
25165         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25166         because it has the wrong locale encoding.
25167         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25168         French_France.1252 instead of "fr".
25169         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25170         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25171         because it has the wrong locale encoding.
25172         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25173         native Windows, try Turkish_Turkey.65001.
25174         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25175         Chinese_China.54936.
25176
25177         Prepare for locale dependent tests on mingw.
25178         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25179         differently.
25180         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25181         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25182         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25183         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25184
25185 2011-02-11  Eric Blake  <eblake@redhat.com>
25186
25187         strptime: avoid compiler warnings
25188         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25189         compiler warnings about dead code.
25190         Reported by Daniel P. Berrange.
25191
25192 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25193
25194         doc: update users.txt
25195         * users.txt: Add rcs.
25196
25197 2011-02-10  John W. Eaton  <jwe@gnu.org>
25198
25199         doc: update users.txt
25200         * users.txt: Add octave.
25201
25202 2011-02-10  Jim Meyering  <meyering@redhat.com>
25203
25204         doc: update users.txt
25205         * users.txt: Add iwhd.
25206
25207 2011-02-09  Bruno Haible  <bruno@clisp.org>
25208
25209         gnulib-tool: Make copyright notice adjustment more robust.
25210         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25211         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25212         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25213         License".
25214         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25215
25216 2011-02-06  Bruno Haible  <bruno@clisp.org>
25217
25218         New module 'towctrans'.
25219         * modules/towctrans: New file.
25220         * lib/wctype.in.h (towctrans): New declaration.
25221         * lib/towctrans.c: New file.
25222         * lib/towctrans-impl.h: New file.
25223         * m4/towctrans.m4: New file.
25224         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25225         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25226         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25227         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25228         * doc/posix-functions/towctrans.texi: Mention the new module.
25229
25230 2011-02-06  Bruno Haible  <bruno@clisp.org>
25231
25232         New module 'wctrans'.
25233         * modules/wctrans: New file.
25234         * lib/wctype.in.h (wctrans): New declaration.
25235         * lib/wctrans.c: New file.
25236         * lib/wctrans-impl.h: New file.
25237         * m4/wctrans.m4: New file.
25238         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25239         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25240         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25241         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25242         * doc/posix-functions/wctrans.texi: Mention the new module.
25243
25244 2011-02-06  Bruno Haible  <bruno@clisp.org>
25245
25246         New module 'iswctype'.
25247         * modules/iswctype: New file.
25248         * lib/wctype.in.h (iswctype): New declaration.
25249         * lib/iswctype.c: New file.
25250         * lib/iswctype-impl.h: New file.
25251         * m4/iswctype.m4: New file.
25252         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25253         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25254         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25255         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25256         * doc/posix-functions/iswctype.texi: Mention the new module and the
25257         HP-UX 11.00 problem.
25258
25259 2011-02-06  Bruno Haible  <bruno@clisp.org>
25260
25261         New module 'wctype'.
25262         * modules/wctype: Change to represent the wctype() substitute.
25263         * lib/wctype.in.h (wctype): New declaration.
25264         * lib/wctype.c: New file.
25265         * lib/wctype-impl.h: New file.
25266         * m4/wctype.m4: New file.
25267         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25268         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25269         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25270         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25271         * doc/posix-functions/wctype.texi: Mention the new module and the
25272         HP-UX 11.00 problem.
25273
25274 2011-02-06  Bruno Haible  <bruno@clisp.org>
25275
25276         wctype-h: Ensure wctype_t and wctrans_t are defined.
25277         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25278         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25279         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25280         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25281         HAVE_WCTRANS_T.
25282         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25283
25284 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25285
25286         flock: fix license typo
25287
25288         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25289         omitted.
25290
25291 2011-02-08  Bruno Haible  <bruno@clisp.org>
25292
25293         Split large sed scripts, for HP-UX sed.
25294         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25295         to avoid HP-UX limit of 99 commands, in the near future.
25296         * modules/stdlib (Makefile.am): Likewise.
25297         * modules/unistd (Makefile.am): Likewise.
25298         * modules/wchar (Makefile.am): Likewise.
25299         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25300         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25302
25303 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25304             Bruno Haible  <bruno@clisp.org>
25305
25306         stdlib: improve random_r modularization
25307         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25308         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25309         you also need the random_r module to get this material right.
25310         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25311         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25312         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25313
25314 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25315
25316         stdlib: don't depend on stdint
25317         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25318         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25319         be independent of whether stdint.h is needed.
25320         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25321         here, instead of ...
25322         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25323         struct random_data should be using the random_r module, not just
25324         the stdlib module (which wouldn't make sense: what package needs
25325         just struct random_data without also needing random_r?).
25326         * modules/stdlib (Depends-on): Remove stdint.
25327
25328         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25329         See the thread rooted at
25330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25331         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25332         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25333         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25334         __VMS)); previously it was always included (via fcntl--.h).
25335         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25336         hand; this is good enough for load averages.  Also, do not use
25337         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25338         flags directly if available and don't bother otherwise.  (Packages
25339         that need the extra reliability should use the modules that define
25340         these flags on older platforms that lack them.)
25341         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25342         fcntl-safer.
25343
25344 2011-02-08  Jim Meyering  <meyering@redhat.com>
25345
25346         di-set.h, ino-map.h: add multiple-inclusion guard
25347         Technically, the guard is required only for ino-map.h, due to its
25348         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25349         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25350         * lib/ino-map.h: Likewise.
25351
25352 2011-02-06  Bruno Haible  <bruno@clisp.org>
25353
25354         iswblank: Ensure declaration on glibc systems.
25355         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25356         * modules/iswblank (Dependencies): Add 'extensions'.
25357         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25358
25359 2011-02-06  Bruno Haible  <bruno@clisp.org>
25360
25361         New module 'iswblank'.
25362         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25363         * modules/iswblank: New file.
25364         * modules/wctype-h (Files): Remove lib/iswblank.c.
25365         (Makefile.am): Substitute GNULIB_ISWBLANK.
25366         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25367         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25368         (gl_WCTYPE_H_DEFAULTS): New macro.
25369         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25370         * modules/iswblank-tests: New file.
25371         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25372         * tests/test-wctype-h.c (main): Remove iswblank tests.
25373         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25374         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25375         of 'wctype-h'.
25376         * NEWS: Mention the change.
25377         * modules/mbchar (Depends-on): Add iswblank.
25378
25379 2011-02-08  Bruno Haible  <bruno@clisp.org>
25380
25381         di-set tests: Refactor.
25382         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25383         unnecessary includes.
25384         (ASSERT): Remove macro.
25385         (main): Make C90 compliant by avoiding variable declaration after
25386         statement.
25387         * modules/di-set-tests (Files): Add tests/macros.h.
25388
25389 2011-02-08  Bruno Haible  <bruno@clisp.org>
25390
25391         ino-map tests: Refactor.
25392         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25393         unnecessary includes.
25394         (ASSERT): Remove macro.
25395         (main): Make C90 compliant by avoiding variable declaration after
25396         statement.
25397         * modules/ino-map-tests (Files): Add tests/macros.h.
25398
25399 2011-02-08  Jim Meyering  <meyering@redhat.com>
25400
25401         di-set: add "const" to a cast
25402         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25403         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25404
25405 2011-02-06  Bruno Haible  <bruno@clisp.org>
25406
25407         Rename module 'wctype' to 'wctype-h'.
25408         * modules/wctype-h: Renamed from modules/wctype.
25409         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25410         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25411         (Files, Depends-on, Makefile.am): Update.
25412         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25413         (Files, Makefile.am): Update.
25414         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25415         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25416         * doc/posix-headers/wctype.texi: Update.
25417         * doc/posix-functions/iswalnum.texi: Update.
25418         * doc/posix-functions/iswalpha.texi: Update.
25419         * doc/posix-functions/iswblank.texi: Update.
25420         * doc/posix-functions/iswcntrl.texi: Update.
25421         * doc/posix-functions/iswdigit.texi: Update.
25422         * doc/posix-functions/iswgraph.texi: Update.
25423         * doc/posix-functions/iswlower.texi: Update.
25424         * doc/posix-functions/iswprint.texi: Update.
25425         * doc/posix-functions/iswpunct.texi: Update.
25426         * doc/posix-functions/iswspace.texi: Update.
25427         * doc/posix-functions/iswupper.texi: Update.
25428         * doc/posix-functions/iswxdigit.texi: Update.
25429         * doc/posix-functions/towlower.texi: Update.
25430         * doc/posix-functions/towupper.texi: Update.
25431         * NEWS: Mention the change.
25432         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25433         * modules/mbchar (Dependencies): Likewise.
25434         * modules/mbswidth (Dependencies): Likewise.
25435         * modules/quotearg (Dependencies): Likewise.
25436         * modules/regex (Dependencies): Likewise.
25437         * modules/wcscasecmp (Dependencies): Likewise.
25438         * modules/wcsncasecmp (Dependencies): Likewise.
25439         * modules/wcwidth (Dependencies): Likewise.
25440
25441 2011-02-06  Bruno Haible  <bruno@clisp.org>
25442
25443         New module 'wcswidth'.
25444         * modules/wcswidth: New file.
25445         * lib/wchar.in.h (wcswidth): New declaration.
25446         * lib/wcswidth.c: New file.
25447         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25448         * m4/wcswidth.m4: New file.
25449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25451         REPLACE_WCSWIDTH.
25452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25453         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25454         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25455         * doc/posix-functions/wcswidth.texi: Mention the new module.
25456
25457 2011-02-06  Bruno Haible  <bruno@clisp.org>
25458
25459         New module 'wcstok'.
25460         * modules/wcstok: New file.
25461         * lib/wchar.in.h (wcstok): New declaration.
25462         * lib/wcstok.c: New file.
25463         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25464         * m4/wcstok.m4: New file.
25465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25468         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25469         * doc/posix-functions/wcstok.texi: Mention the new module.
25470
25471 2011-02-06  Bruno Haible  <bruno@clisp.org>
25472
25473         New module 'wcsstr'.
25474         * modules/wcsstr: New file.
25475         * lib/wchar.in.h (wcsstr): New declaration.
25476         * lib/wcsstr.c: New file.
25477         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25478         * m4/wcsstr.m4: New file.
25479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25482         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25483         * doc/posix-functions/wcsstr.texi: Mention the new module.
25484
25485 2011-02-06  Bruno Haible  <bruno@clisp.org>
25486
25487         New module 'wcspbrk'.
25488         * modules/wcspbrk: New file.
25489         * lib/wchar.in.h (wcspbrk): New declaration.
25490         * lib/wcspbrk.c: New file.
25491         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25492         * m4/wcspbrk.m4: New file.
25493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25496         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25497         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25498
25499 2011-02-06  Bruno Haible  <bruno@clisp.org>
25500
25501         New module 'wcsspn'.
25502         * modules/wcsspn: New file.
25503         * lib/wchar.in.h (wcsspn): New declaration.
25504         * lib/wcsspn.c: New file.
25505         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25506         * m4/wcsspn.m4: New file.
25507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25510         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25511         * doc/posix-functions/wcsspn.texi: Mention the new module.
25512
25513 2011-02-06  Bruno Haible  <bruno@clisp.org>
25514
25515         New module 'wcscspn'.
25516         * modules/wcscspn: New file.
25517         * lib/wchar.in.h (wcscspn): New declaration.
25518         * lib/wcscspn.c: New file.
25519         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25520         * m4/wcscspn.m4: New file.
25521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25524         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25525         * doc/posix-functions/wcscspn.texi: Mention the new module.
25526
25527 2011-02-06  Bruno Haible  <bruno@clisp.org>
25528
25529         New module 'wcsrchr'.
25530         * modules/wcsrchr: New file.
25531         * lib/wchar.in.h (wcsrchr): New declaration.
25532         * lib/wcsrchr.c: New file.
25533         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25534         * m4/wcsrchr.m4: New file.
25535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25538         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25539         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25540
25541 2011-02-06  Bruno Haible  <bruno@clisp.org>
25542
25543         New module 'wcschr'.
25544         * modules/wcschr: New file.
25545         * lib/wchar.in.h (wcschr): New declaration.
25546         * lib/wcschr.c: New file.
25547         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25548         * m4/wcschr.m4: New file.
25549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25552         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25553         * doc/posix-functions/wcschr.texi: Mention the new module.
25554
25555 2011-02-06  Bruno Haible  <bruno@clisp.org>
25556
25557         New module 'wcsdup'.
25558         * modules/wcsdup: New file.
25559         * lib/wchar.in.h (wcsdup): New declaration.
25560         * lib/wcsdup.c: New file.
25561         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25562         * m4/wcsdup.m4: New file.
25563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25566         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25567         * doc/posix-functions/wcsdup.texi: Mention the new module.
25568
25569 2011-02-06  Bruno Haible  <bruno@clisp.org>
25570
25571         New module 'wcsxfrm'.
25572         * modules/wcsxfrm: New file.
25573         * lib/wchar.in.h (wcsxfrm): New declaration.
25574         * lib/wcsxfrm.c: New file.
25575         * lib/wcsxfrm-impl.h: New file.
25576         * m4/wcsxfrm.m4: New file.
25577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25580         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25581         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25582
25583 2011-02-06  Bruno Haible  <bruno@clisp.org>
25584
25585         New module 'wcscoll'.
25586         * modules/wcscoll: New file.
25587         * lib/wchar.in.h (wcscoll): New declaration.
25588         * lib/wcscoll.c: New file.
25589         * lib/wcscoll-impl.h: New file.
25590         * m4/wcscoll.m4: New file.
25591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25594         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25595         * doc/posix-functions/wcscoll.texi: Mention the new module.
25596
25597 2011-02-06  Bruno Haible  <bruno@clisp.org>
25598
25599         New module 'wcsncasecmp'.
25600         * modules/wcsncasecmp: New file.
25601         * lib/wchar.in.h (wcsncasecmp): New declaration.
25602         * lib/wcsncasecmp.c: New file.
25603         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25604         * m4/wcsncasecmp.m4: New file.
25605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25608         HAVE_WCSNCASECMP.
25609         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25610         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25611
25612 2011-02-06  Bruno Haible  <bruno@clisp.org>
25613
25614         New module 'wcscasecmp'.
25615         * modules/wcscasecmp: New file.
25616         * lib/wchar.in.h (wcscasecmp): New declaration.
25617         * lib/wcscasecmp.c: New file.
25618         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25619         * m4/wcscasecmp.m4: New file.
25620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25623         HAVE_WCSCASECMP.
25624         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25625         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25626
25627 2011-02-05  Bruno Haible  <bruno@clisp.org>
25628
25629         New module 'wcsncmp'.
25630         * modules/wcsncmp: New file.
25631         * lib/wchar.in.h (wcsncmp): New declaration.
25632         * lib/wcsncmp.c: New file.
25633         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25634         * m4/wcsncmp.m4: New file.
25635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25638         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25639         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25640
25641 2011-02-05  Bruno Haible  <bruno@clisp.org>
25642
25643         New module 'wcscmp'.
25644         * modules/wcscmp: New file.
25645         * lib/wchar.in.h (wcscmp): New declaration.
25646         * lib/wcscmp.c: New file.
25647         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25648         * m4/wcscmp.m4: New file.
25649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25652         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25653         * doc/posix-functions/wcscmp.texi: Mention the new module.
25654
25655 2011-02-05  Bruno Haible  <bruno@clisp.org>
25656
25657         New module 'wcsncat'.
25658         * modules/wcsncat: New file.
25659         * lib/wchar.in.h (wcsncat): New declaration.
25660         * lib/wcsncat.c: New file.
25661         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25662         * m4/wcsncat.m4: New file.
25663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25666         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25667         * doc/posix-functions/wcsncat.texi: Mention the new module.
25668
25669 2011-02-05  Bruno Haible  <bruno@clisp.org>
25670
25671         New module 'wcscat'.
25672         * modules/wcscat: New file.
25673         * lib/wchar.in.h (wcscat): New declaration.
25674         * lib/wcscat.c: New file.
25675         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25676         * m4/wcscat.m4: New file.
25677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25680         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25681         * doc/posix-functions/wcscat.texi: Mention the new module.
25682
25683 2011-02-05  Bruno Haible  <bruno@clisp.org>
25684
25685         New module 'wcpncpy'.
25686         * modules/wcpncpy: New file.
25687         * lib/wchar.in.h (wcpncpy): New declaration.
25688         * lib/wcpncpy.c: New file.
25689         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25690         * m4/wcpncpy.m4: New file.
25691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25693         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25694         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25695         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25696
25697 2011-02-05  Bruno Haible  <bruno@clisp.org>
25698
25699         New module 'wcsncpy'.
25700         * modules/wcsncpy: New file.
25701         * lib/wchar.in.h (wcsncpy): New declaration.
25702         * lib/wcsncpy.c: New file.
25703         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25704         * m4/wcsncpy.m4: New file.
25705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25708         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25709         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25710
25711 2011-02-05  Bruno Haible  <bruno@clisp.org>
25712
25713         New module 'wcpcpy'.
25714         * modules/wcpcpy: New file.
25715         * lib/wchar.in.h (wcpcpy): New declaration.
25716         * lib/wcpcpy.c: New file.
25717         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25718         * m4/wcpcpy.m4: New file.
25719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25721         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25722         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25723         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25724
25725 2011-02-05  Bruno Haible  <bruno@clisp.org>
25726
25727         New module 'wcscpy'.
25728         * modules/wcscpy: New file.
25729         * lib/wchar.in.h (wcscpy): New declaration.
25730         * lib/wcscpy.c: New file.
25731         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25732         * m4/wcscpy.m4: New file.
25733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25736         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25737         * doc/posix-functions/wcscpy.texi: Mention the new module.
25738
25739 2011-02-05  Bruno Haible  <bruno@clisp.org>
25740
25741         New module 'wcsnlen'.
25742         * modules/wcsnlen: New file.
25743         * lib/wchar.in.h (wcsnlen): New declaration.
25744         * lib/wcsnlen.c: New file.
25745         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25746         * m4/wcsnlen.m4: New file.
25747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25750         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25751         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25752
25753 2011-02-05  Bruno Haible  <bruno@clisp.org>
25754
25755         New module 'wcslen'.
25756         * modules/wcslen: New file.
25757         * lib/wchar.in.h (wcslen): New declaration.
25758         * lib/wcslen.c: New file.
25759         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25760         * m4/wcslen.m4: New file.
25761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25764         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25765         * doc/posix-functions/wcslen.texi: Mention the new module.
25766
25767 2011-02-05  Bruno Haible  <bruno@clisp.org>
25768
25769         New module 'wmemset'.
25770         * modules/wmemset: New file.
25771         * lib/wchar.in.h (wmemset): New declaration.
25772         * lib/wmemset.c: New file.
25773         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25774         * m4/wmemset.m4: New file.
25775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25777         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25778         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25779         * doc/posix-functions/wmemset.texi: Mention the new module.
25780
25781 2011-02-05  Bruno Haible  <bruno@clisp.org>
25782
25783         New module 'wmemmove'.
25784         * modules/wmemmove: New file.
25785         * lib/wchar.in.h (wmemmove): New declaration.
25786         * lib/wmemmove.c: New file.
25787         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25788         * m4/wmemmove.m4: New file.
25789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25791         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25792         HAVE_WMEMMOVE.
25793         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25794         * doc/posix-functions/wmemmove.texi: Mention the new module.
25795
25796 2011-02-05  Bruno Haible  <bruno@clisp.org>
25797
25798         New module 'wmemcpy'.
25799         * modules/wmemcpy: New file.
25800         * lib/wchar.in.h (wmemcpy): New declaration.
25801         * lib/wmemcpy.c: New file.
25802         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25803         * m4/wmemcpy.m4: New file.
25804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25806         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25807         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25808         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25809
25810 2011-02-05  Bruno Haible  <bruno@clisp.org>
25811
25812         New module 'wmemcmp'.
25813         * modules/wmemcmp: New file.
25814         * lib/wchar.in.h (wmemcmp): New declaration.
25815         * lib/wmemcmp.c: New file.
25816         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25817         * m4/wmemcmp.m4: New file.
25818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25820         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25821         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25822         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25823
25824 2011-02-07  Jim Meyering  <meyering@redhat.com>
25825
25826         di-set, ino-map: new modules, from coreutils
25827         * lib/di-set.c: New file.
25828         * lib/di-set.h: Likewise.
25829         * lib/ino-map.c: Likewise.
25830         * lib/ino-map.h: Likewise.
25831         * modules/di-set: Likewise.
25832         * modules/di-set-tests: Likewise.
25833         * modules/ino-map: Likewise.
25834         * modules/ino-map-tests: Likewise.
25835         * tests/test-di-set.c: Likewise.
25836         * tests/test-ino-map.c: Likewise.
25837
25838 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25839
25840         getloadavg: merge minor changes from Emacs
25841
25842         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25843         (getloadavg): Use memset, not bzero.
25844
25845         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25846         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25847         clash (bug#86).
25848
25849 2010-11-14  Bruno Haible  <bruno@clisp.org>
25850
25851         Allow multiple gnulib generated replacements to coexist.
25852         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25853         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25854         * lib/langinfo.in.h (nl_item): Likewise.
25855         * lib/math.in.h (_NaN, NAN): Likewise.
25856         * lib/netdb.in.h (struct addrinfo): Likewise.
25857         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25858         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25859         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25860         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25861         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25862         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25863         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25864         pthread_mutexattr_init, pthread_mutexattr_settype,
25865         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25866         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25867         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25868         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25869         * lib/sched.in.h (struct sched_param): Likewise.
25870         * lib/se-selinux.in.h (security_class_t, security_context_t,
25871         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25872         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25873         lsetfilecon, fsetfilecon, security_check_context,
25874         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25875         Likewise.
25876         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25877         Likewise.
25878         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25879         _gl_function_taking_int_returning_void_t, union sigval,
25880         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25881         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25882         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25883         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25884         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25885         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25886         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25887         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25888         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25889         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25890         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25891         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25892         socklen_t, rpl_fd_isset): Likewise.
25893         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25894         * lib/sys_time.in.h (struct timeval): Likewise.
25895         * lib/sys_times.in.h (struct tms): Likewise.
25896         * lib/sys_utsname.in.h (struct utsname):
25897         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25898         * lib/unistd.in.h (getpagesize): Likewise.
25899         * lib/wchar.in.h (mbstate_t): Likewise.
25900         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25901         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25902         towlower, towupper): Likewise.
25903         Reported by Sam Steingold <sds@gnu.org>.
25904
25905 2011-02-05  Eric Blake  <eblake@redhat.com>
25906
25907         unsetenv: work around Haiku issues
25908         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25909         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25910
25911 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25912
25913         libposix: avoid calling error() within libposix
25914         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25915         is defined.
25916
25917 2011-02-05  Eric Blake  <eblake@redhat.com>
25918
25919         strerror_r-posix: port to cygwin
25920         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25921         implementation.
25922         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25923         * tests/test-strerror_r.c (main): Fix test.
25924         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25925         issue.
25926
25927 2011-02-05  Bruno Haible  <bruno@clisp.org>
25928
25929         New module 'wmemchr'.
25930         * modules/wmemchr: New file.
25931         * lib/wchar.in.h (wmemchr): New declaration.
25932         * lib/wmemchr.c: New file.
25933         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25934         * m4/wmemchr.m4: New file.
25935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25937         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25938         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25939         * doc/posix-functions/wmemchr.texi: Mention the new module.
25940
25941 2011-02-04  Eric Blake  <eblake@redhat.com>
25942
25943         fdopendir: detect FreeBSD bug
25944         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25945         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25946
25947 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25948
25949         stdbool: do not define HAVE_STDBOOL_H
25950         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25951         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25952         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25953         imported from the latest Autoconf git.  It was motivated by Emacs,
25954         which uses gnulib but does not need HAVE_STDBOOL_H.
25955
25956 2011-02-04  Bruno Haible  <bruno@clisp.org>
25957
25958         wcsnrtombs: Prepare for new module wwcsnrtombs.
25959         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25960         * lib/wcsnrtombs.c: Include it.
25961         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25962
25963         wcsrtombs: Prepare for new module wwcsrtombs.
25964         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25965         * lib/wcsrtombs.c: Include it.
25966         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25967
25968         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25969         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25970         * lib/mbsnrtowcs.c: Include it.
25971         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25972
25973         mbsrtowcs: Prepare for new module mbsrtowwcs.
25974         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25975         * lib/mbsrtowcs.c: Include it.
25976         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25977
25978 2011-02-04  Bruno Haible  <bruno@clisp.org>
25979
25980         vasnprintf: Reduce use of malloc for small format strings.
25981         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25982         (arguments): Add room for the first 7 arguments.
25983         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25984         (char_directives, u8_directives, u16_directives, u32_directives): Add
25985         room for the first 7 directives.
25986         * lib/printf-parse.c: Include <string.h>.
25987         (PRINTF_PARSE): Change memory handling code so that it uses the first
25988         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25989         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25990         Reported by Pádraig Brady <P@draigbrady.com>.
25991
25992 2011-01-31  Eric Blake  <eblake@redhat.com>
25993
25994         dup2: work around Haiku bug
25995         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25996         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25997         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25998         * tests/test-dup2.c (main): Enhance test.
25999
26000 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26001
26002         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26003         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26004         declared by eglibc 2.11.2.
26005         * lib/stdio.in.h: Likewise.
26006
26007 2011-01-31  Eric Blake  <eblake@redhat.com>
26008
26009         ignore-value: add missing test dependency
26010         * tests/test-ignore-value.c: Revert previous change; stdio.h
26011         provides off_t.
26012         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26013
26014 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26015
26016         mktime: clarify long_int width checking
26017         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26018         the top level, to make it clearer that the assumption about
26019         long_int width is being checked.  See
26020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26021
26022 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26023
26024         ignore-value: Fix self-test.
26025         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26026
26027 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26028
26029         TYPE_MAXIMUM: avoid theoretically undefined behavior
26030         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26031         negative number, which the C Standard says has undefined behavior.
26032         In practice this is not a problem, but might as well do it by the book.
26033         Reported by Rich Felker and Eric Blake; see
26034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26035         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26036         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26038         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26039         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26040         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26041
26042         mktime: #undef mktime before #defining it
26043         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26044
26045         mktime: systematically normalize tm_isdst comparisons
26046         * lib/mktime.c (isdst_differ): New function.
26047         (__mktime_internal): Use it systematically for all isdst comparisons.
26048         This completes the fix for libc BZ #6723, and removes the need for
26049         normalizing tm_isdst.  See
26050         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26051         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26052
26053         mktime: fix some integer overflow issues and sidestep the rest
26054
26055         This was prompted by a bug report by Benjamin Lindner for MinGW
26056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26057         His bug is due to signed integer overflow (0 - INT_MIN), and I
26058         I scanned through mktime.c looking for other integer overflow
26059         problems, fixing all the bugs I found.
26060
26061         Although the C Standard says the resulting code is still not safe
26062         in the presence of integer overflow, in practice it should be good
26063         enough for all real-world two's-complement implementations, except
26064         for debugging environments that deliberately trap on integer
26065         overflow (e.g., gcc -ftrapv).
26066
26067         * lib/mktime.c (WRAPV): New macro.
26068         (SHR): Also check that long_int and time_t shift right in the
26069         usual way, before using the fast-but-unportable method.
26070         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26071         used.  The code already assumed two's complement, so there's
26072         no need to test for alternatives.  All uses removed.
26073         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26074         the C standard.  Problem reported by Rich Felker in
26075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26076         (twos_complement_arithmetic): Also check long_int and time_t.
26077         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26078         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26079         (__mktime_internal): Avoid integer overflow with unary subtraction
26080         in two instances where -1 - X is an adequate replacement for -X,
26081         since the calculations are approximate.
26082
26083 2011-01-29  Eric Blake  <eblake@redhat.com>
26084
26085         mktime: avoid infinite loop
26086         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26087         type; behavior is still undefined but portable to all known targets.
26088         Reported by Rich Felker.
26089
26090 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26091
26092         rename, unlink, same-inode: Relicense.
26093         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26094         * modules/unlink (License): Likewise.
26095         * modules/same-inode (License): Likewise.
26096
26097 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26098
26099         mktime: avoid problems on NetBSD 5 / i386
26100         * lib/mktime.c (long_int): New type.  This works around a problem
26101         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26102         but time_t is 64 bits, and where I expect the existing code is
26103         wrong in some cases.
26104         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26105         (ydhms_diff): Bring back the compile-time check for wide-enough
26106         year and yday.
26107
26108         mktime: fix misspelling in comment
26109         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26110         This merges all recent glibc changes of importance.
26111
26112 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26113
26114         move-if-change: cope with concurrent mv of identical file.
26115         * build-aux/move-if-change (CMPPROG): Accept environment
26116         variable as an override for `cmp'.
26117         (usage): Document CMPPROG.
26118         Adjust comparison to drop stdout.  Cope with failure of mv if
26119         the target file exists and is identical to the source, for
26120         parallel builds.
26121         Report from H.J. Lu against binutils in PR binutils/12283.
26122
26123 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26124
26125         * users.txt: Mention sharutils.
26126
26127 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26128
26129         * users.txt: Mention OATH Toolkit.
26130
26131 2011-01-27  Bruno Haible  <bruno@clisp.org>
26132
26133         Prepare for supporting FreeBSD 10.
26134         * build-aux/config.libpath: Remove handling of freebsd1*.
26135
26136 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26137
26138         Prepare for supporting FreeBSD 10.
26139         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26140         match FreeBSD 10.0.
26141
26142 2011-01-27  Bruno Haible  <bruno@clisp.org>
26143
26144         vma-iter, get-rusage-as: Add OpenBSD support.
26145         * modules/vma-iter (configure.ac): Test for mquery.
26146         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26147         * lib/vma-iter.c: Include <sys/mman.h>.
26148         (vma_iterate): Add an implementation based on mquery().
26149         * lib/resource-ext.h (get_rusage_as): Update comments.
26150         * lib/get-rusage-as.c: Likewise.
26151         * lib/get-rusage-data.c: Likewise.
26152
26153 2011-01-26  Karl Berry  <karl@gnu.org>
26154
26155         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26156         variables to make it easier to override the makeinfo program used.
26157
26158 2011-01-26  Eric Blake  <eblake@redhat.com>
26159
26160         fcntl: work around Haiku F_DUPFD bugs
26161         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26162         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26163         cloexec bit on duplication.
26164         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26165
26166 2011-01-26  Bruno Haible  <bruno@clisp.org>
26167
26168         Enable memory leak tests on AIX.
26169         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26170         * tests/test-fprintf-posix3.c (main): Likewise.
26171
26172 2011-01-26  Bruno Haible  <bruno@clisp.org>
26173
26174         Tests for module 'get-rusage-data'.
26175         * modules/get-rusage-data-tests: New file.
26176         * tests/test-get-rusage-data.c: New file.
26177
26178         New module 'get-rusage-data'.
26179         * lib/resource-ext.h (get_rusage_data): New declaration.
26180         * lib/get-rusage-data.c: New file.
26181         * modules/get-rusage-data: New file.
26182
26183 2011-01-25  Bruno Haible  <bruno@clisp.org>
26184
26185         get-rusage-as: Allow for easier testing.
26186         * lib/resource-ext.h (get_rusage_as): Add comment.
26187         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26188         (main): New function for interactive testing.
26189
26190 2011-01-25  Bruno Haible  <bruno@clisp.org>
26191
26192         vma-iter: Treat Haiku like BeOS.
26193         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26194         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26195
26196 2011-01-25  Eric Blake  <eblake@redhat.com>
26197
26198         c-stack: fix regression on cygwin when libsigsegv is present
26199         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26200
26201 2011-01-24  Bruno Haible  <bruno@clisp.org>
26202
26203         vma-iter: Avoid empty intervals.
26204         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26205         on an empty interval.
26206
26207 2011-01-24  Jim Meyering  <meyering@redhat.com>
26208
26209         u64: remove unnecessary #include
26210         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26211
26212 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26213
26214         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26215         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26216
26217 2011-01-23  Bruno Haible  <bruno@clisp.org>
26218
26219         New module 'vma-iter'.
26220         * lib/vma-iter.h: New file.
26221         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26222         * modules/vma-iter: New file.
26223         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26224         for get_rusage_as_via_iterator.
26225         (vma_iterate_callback): New function.
26226         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26227         * modules/get-rusage-as (Depends-on): Add vma-iter.
26228
26229 2011-01-23  Bruno Haible  <bruno@clisp.org>
26230
26231         uninorm: Tweak includes.
26232         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26233         Reported by Jim Meyering.
26234
26235 2011-01-23  Bruno Haible  <bruno@clisp.org>
26236
26237         get-rusage-as: Improve on NetBSD.
26238         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26239         /proc, like on FreeBSD.
26240
26241 2011-01-23  Jim Meyering  <meyering@redhat.com>
26242
26243         xreadlink.h: remove unnecessary #include
26244         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26245
26246         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26247         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26248
26249 2011-01-23  Bruno Haible  <bruno@clisp.org>
26250
26251         get-rusage-as: Fix bug.
26252         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26253         original limit when aborting the first loop.
26254
26255 2011-01-23  Bruno Haible  <bruno@clisp.org>
26256
26257         wctype: Ensure valid C syntax.
26258         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26259         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26260
26261 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26262
26263         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26265         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26266         as they are needed only for configure's test case.
26267         This removes two unnecessary symbols from config.h.
26268
26269         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26270         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26272         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26273         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26274         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26275         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26276         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26277         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26278         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26279         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26281         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26282         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26283         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26284         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26285         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26286         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26287
26288 2011-01-21  Eric Blake  <eblake@redhat.com>
26289
26290         maintainer-makefile: work with older git for submodule check
26291         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26292         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26293         Reported by Matthias Bolte.
26294
26295         bootstrap: minor portability fixes
26296         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26297         (usage): Omit leading capital and trailing . on help phrases, per
26298         GNU Coding Standards.
26299         (check_versions, top level): Prefix messages with script name.
26300
26301 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26302
26303         bootstrap: support --no-git option
26304         * build-aux/bootstrap: Add --no-git option, to be used when
26305         --gnulib-srcdir points to the exact desired checkout.
26306
26307 2011-01-21  Eric Blake  <eblake@redhat.com>
26308
26309         strerror_r-posix: work with glibc 2.13
26310         * lib/strerror_r.c (strerror_r): Fix return type.
26311
26312 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26313             Bruno Haible  <bruno@clisp.org>
26314
26315         uN_strstr: New unit tests.
26316         * modules/unistr/u8-strstr-tests: New file.
26317         * modules/unistr/u16-strstr-tests: New file.
26318         * modules/unistr/u32-strstr-tests: New file.
26319         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26320         * tests/unistr/test-u8-strstr.c: New file.
26321         * tests/unistr/test-u16-strstr.c: New file.
26322         * tests/unistr/test-u32-strstr.c: New file.
26323
26324 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26325             Bruno Haible  <bruno@clisp.org>
26326
26327         Make uN_strstr functions O(n) worst-case.
26328         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26329         16-bit and 32-bit unit cases, use the unibyte algorithm from
26330         lib/mbsstr.c.
26331         * lib/unistr/u8-strstr.c: Include <string.h>.
26332         (UNIT_IS_UINT8_T): New macro.
26333         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26334         (U_STRLEN, U_STRNLEN): New macros.
26335         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26336         (U_STRLEN, U_STRNLEN): New macros.
26337         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26338         (configure.ac): Update required libunistring version.
26339         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26340         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26341         malloca.
26342         (configure.ac): Update required libunistring version.
26343         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26344         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26345         malloca.
26346         (configure.ac): Update required libunistring version.
26347
26348 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26349             Bruno Haible  <bruno@clisp.org>
26350
26351         Prepare for faster uN_strstr functions.
26352         * lib/str-kmp.h: Support definable UNITs.
26353         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26354         needle_len argument.
26355         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26356         * lib/mbscasestr.c (mbscasestr): Likewise.
26357
26358 2011-01-21  Pádraig Brady <P@draigBrady.com>
26359
26360         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26361         * tests/test-malloca.c (main): Unset the environment variable
26362         to greatly speed up the test.
26363         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26364         * modules/malloca-tests: Depend on unsetenv.
26365
26366 2011-01-21  Pádraig Brady <P@draigBrady.com>
26367
26368         ignore-value: remove stdint dependency
26369         * lib/ignore-value.h: Remove <stdint.h>
26370         * modules/ignore-value: Remove stdint dependency.
26371
26372 2011-01-21  Jim Meyering  <meyering@redhat.com>
26373
26374         maint.mk: adjust variable name to be consistent with other gl_ vars
26375         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26376         to be lower case.
26377
26378 2011-01-20  Jim Meyering  <meyering@redhat.com>
26379
26380         maint.mk: make "check" depend on public-submodule-commit by default
26381         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26382
26383 2011-01-20  Bruno Haible  <bruno@clisp.org>
26384
26385         mbfile, mbiter: Complete change from 2008-12-21.
26386         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26387         * m4/mbiter.m4 (gl_MBITER): Likewise.
26388
26389 2011-01-20  Jim Meyering  <meyering@redhat.com>
26390
26391         init.sh: insert space between each function name and "()"
26392         * tests/init.sh: Make it a little easier to see that a function's
26393         name is "warn_", and not "warn" when looking at the first part of
26394         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26395
26396 2011-01-20  Jim Meyering  <meyering@redhat.com>
26397
26398         mountlist: clean up code formatting
26399         * lib/mountlist.c (read_file_system_list): Split a long line,
26400         correct bracing style, use NULL in place of "(struct statfs *)0",
26401         don't parenthesize return value, add spaces around "=" and after
26402         ";-in-for-stmt".
26403
26404 2011-01-14  Markus Duft <mduft@gentoo.org>
26405
26406         mountlist: add support for Interix
26407         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26408         Apply statvfs to all entries of /dev/fs.
26409         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26410         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26411
26412 2011-01-20  Jim Meyering  <meyering@redhat.com>
26413
26414         maint.mk: improve the public-submodule-commit rule
26415         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26416         to suppress printing of its commands... unless V=1.
26417         Add git submodule's --quiet option to suppress printing of e.g.,
26418         "Entering gnulib" output.
26419         "cd" into $(srcdir) before running git submodule.
26420
26421 2011-01-20  Bruno Haible  <bruno@clisp.org>
26422
26423         include_next: Fix bug introduced on 2011-01-18.
26424         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26425         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26426         ac_cv_header_... variable if the second argument is not 'check'.
26427         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26428         gl_NEXT_HEADERS_INTERNAL.
26429
26430 2011-01-20  Bruno Haible  <bruno@clisp.org>
26431
26432         Allow the user to avoid the GNULIB_TEST_* macros.
26433         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26434         Suggested by Paul Eggert.
26435
26436 2011-01-14  Jim Meyering  <meyering@redhat.com>
26437
26438         bootstrap: avoid failure when there is no .gitmodules file
26439         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26440         has been assigned to, even when its value is the empty string.
26441         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26442         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26443         Reported by John W. Eaton <jwe@gnu.org>.
26444
26445 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26446
26447         assume <ctype.h>, ..., <time.h> exist
26448         For years gnulib has been assuming the existence of the headers
26449         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26450         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26451         them, since they don't appear to be needed.
26452         * README (Portability guidelines): Document this.
26453         * lib/flock.c: Assume <fcntl.h> exists.
26454         * lib/regex_internal.h: Assume <locale.h> exists.
26455         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26456         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26457         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26458         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26459         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26460         * m4/regex.m4 (gl_REGEX): Likewise.
26461         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26462         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26463         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26464         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26465         * tests/test-argp.c: Likewise.
26466         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26467
26468         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26469         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26470         AA_APPLE_UNIVERSAL_BUILD.  See
26471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26472         * NEWS: Document this.
26473
26474 2011-01-19  Eric Blake  <eblake@redhat.com>
26475
26476         c-stack: assume stack overflow if SA_SIGINFO unsupported
26477         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26478         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26479         sigaction will work.
26480         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26481         behavior match Linux.
26482         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26483
26484         stdbool-tests: accommodate Haiku
26485         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26486
26487         binary-io: fix O_TEXT on Haiku
26488         * modules/binary-io (Depends-on): Add fcntl-h.
26489         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26490         than blindly undefining O_TEXT.
26491         Reported by Scott McCreary.
26492
26493 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26494
26495         include_next: do not check for standard headers like stddef.h
26496
26497         I found this problem when modifying Emacs to use gnulib.
26498         I noticed that it added HAVE_STDDEF_H to config.h, even though
26499         gnulib always assumes <stddef.h> exists as per README and this
26500         symbol is unnecessary.
26501         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26502         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26503         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26504         faster for headers like stddef.h that are known to exist.
26505         (gl_CHECK_NEXT_HEADERS): Use it.
26506         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26507         rather than gl_CHECK_NEXT_HEADERS.
26508         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26509         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26510
26511 2011-01-18  Eric Blake  <eblake@redhat.com>
26512
26513         ansi-c++-opt: skip C++ dependency style if C++ is unused
26514         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26515         tests when we know C++ compilation is not desired.
26516         Reported by Scott McCreary.
26517
26518 2011-01-18  Bruno Haible  <bruno@clisp.org>
26519
26520         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26521         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26522         (main): Perform test also when getrlimit and setrlimit don't exist or
26523         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26524         limiting the address space size using setrlimit, compare the address
26525         space size before and after the the test.
26526         * tests/test-dprintf-posix2.c: Likewise.
26527         * tests/test-fprintf-posix3.sh: Update skip messages.
26528         * tests/test-dprintf-posix2.sh: Likewise.
26529         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26530         * modules/dprintf-posix-tests (Depends-on): Likewise.
26531         Reported by Bruce Korb <bkorb@gnu.org> and
26532         Gary V. Vaughan <gary@gnu.org>.
26533
26534 2011-01-18  Bruno Haible  <bruno@clisp.org>
26535
26536         get-rusage-as: Improvement for Cygwin.
26537         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26538         areas that are merely reserved.
26539
26540 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26541
26542         strftime: remove dependencies on multibyte modules
26543
26544         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26545         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26546         only if __osf__ is defined, and I suspect OSF doesn't need these
26547         other modules.  If my guess is wrong, we'll need to come up with a
26548         variant of strftime that doesn't need the multibyte modules.
26549
26550         I discovered this problem when attempting modify Emacs to use the
26551         strftime module.  With the previous gnulib, this caused Emacs to
26552         need 31 new files, ranging from lib/config.charset to
26553         m4/wint_t.m4.  This was overkill and I expect would be offputting
26554         to the Emacs maintainers.  After this change, only 6 new files are
26555         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26556         stdbool.m4, and tm_gmtoff.m4.
26557
26558         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26559         Suggested by Bruno Haible in
26560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26561         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26562         and do not check for wchar.h.
26563         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26564         (Depends-on): Remove mbrlen, mbsinit, wchar.
26565
26566 2011-01-18  Bruno Haible  <bruno@clisp.org>
26567
26568         Tests for module 'get-rusage-as'.
26569         * modules/get-rusage-as-tests: New file.
26570         * tests/test-get-rusage-as.c: New file.
26571
26572         New module 'get-rusage-as'.
26573         * modules/get-rusage-as: New file.
26574         * lib/resource-ext.h: New file.
26575         * lib/get-rusage-as.c: New file.
26576
26577 2011-01-17  Eric Blake  <eblake@redhat.com>
26578
26579         sigaction: relax license from LGPLv3+ to LGPLv2+
26580         * modules/sigaction (License): Relax to LGPLv2+.
26581
26582 2011-01-14  Bruno Haible  <bruno@clisp.org>
26583
26584         filemode: Make function declarations usable in C++ mode.
26585         * lib/filemode.h: Enclose function declarations in extern "C" block.
26586         Reported by John W. Eaton <jwe@gnu.org>.
26587
26588 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26589
26590         save-cwd: no longer include "xgetcwd.h"
26591         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26592         This avoids a compilation failure in projects that use save-cwd
26593         without also using the xgetcwd module.
26594
26595 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26596
26597         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26598         This is so that a program like Emacs, which needs only dtoastr,
26599         does not have to bother with distributing and compiling ftoastr
26600         and ldtoastr.
26601         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26602         * modules/dtoastr, modules/ldtoastr: New files.
26603         * modules/ftoastr: Now works just for 'float'.
26604         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26605         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26606         dtoastr.c, ldtoastr.c.
26607
26608 2011-01-11  Jim Meyering  <meyering@redhat.com>
26609
26610         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26611         There is no need to work around the lack of the fchdir function,
26612         since gnulib can now provide a replacement when required.
26613         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26614         * modules/save-cwd (Depends-on): Add fchdir.
26615
26616 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26617
26618         openat, save-cwd: avoid xmalloc
26619
26620         This removes a direct (but undocumented) dependency of openat on
26621         xalloc, along with an indirect dependency via save-cwd.  It also
26622         removes a dependency of save-cwd on xgetcwd, and thereby
26623         indirectly on xalloc.  This change causes the openat substitute
26624         to fall back on save_cwd when memory is tight, and for save_cwd to
26625         fail instead of dying when memory is tight, but that's good enough.
26626         Problem and initial idea for fix reported by Bastien Roucaries in
26627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26628
26629         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26630         xalloc.h (for xmalloc).
26631         (openat_proc_name): Use malloc, not xmalloc.
26632         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26633         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26634
26635         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26636         This avoids heap allocation for file names whose lengths are in
26637         the range 512..1023, with the upper bound increasing to at most
26638         4031 depending on the platform's PATH_MAX.  (We do not want
26639         pathmax.h here as it might supply a non-constant PATH_MAX.)
26640         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26641         Perhaps they should be moved to malloca.h?
26642         (OPENAT_BUFFER_SIZE): Use them.
26643
26644 2011-01-10  Bruno Haible  <bruno@clisp.org>
26645
26646         doc: Update users.txt.
26647         * users.txt: Add recutils.
26648
26649 2011-01-09  Karl Berry  <karl@gnu.org>
26650
26651         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26652
26653         * doc/configmake.texi: New file.
26654         * doc/gnulib.texi: Include it.
26655         * modules/configmake: Move documentation from here.
26656
26657 2011-01-09  Bruno Haible  <bruno@clisp.org>
26658
26659         Update to Unicode 6.0.0.
26660         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26661         (get_lbp): Update for Unicode 6.0.0.
26662         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26663         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26664         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26665         U+11001, U+11038..U+11046. Remove U+06DE.
26666         (uc_width): Fix bounds of planes.
26667         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26668         lib/uniwidth/width.c.
26669         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26670         trailing whitespace removed.
26671         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26672         without comments, but with the original copyright notice.
26673         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26674         * lib/unicase/ignorable.h: Likewise.
26675         * lib/unicase/tocasefold.h: Likewise.
26676         * lib/unicase/tolower.h: Likewise.
26677         * lib/unicase/totitle.h: Likewise.
26678         * lib/unicase/toupper.h: Likewise.
26679         * lib/unictype/bidi_of.h: Likewise.
26680         * lib/unictype/blocks.h: Likewise.
26681         * lib/unictype/categ_C.h: Likewise.
26682         * lib/unictype/categ_Cn.h: Likewise.
26683         * lib/unictype/categ_L.h: Likewise.
26684         * lib/unictype/categ_Ll.h: Likewise.
26685         * lib/unictype/categ_Lm.h: Likewise.
26686         * lib/unictype/categ_Lo.h: Likewise.
26687         * lib/unictype/categ_Lu.h: Likewise.
26688         * lib/unictype/categ_M.h: Likewise.
26689         * lib/unictype/categ_Mc.h: Likewise.
26690         * lib/unictype/categ_Me.h: Likewise.
26691         * lib/unictype/categ_Mn.h: Likewise.
26692         * lib/unictype/categ_N.h: Likewise.
26693         * lib/unictype/categ_Nd.h: Likewise.
26694         * lib/unictype/categ_No.h: Likewise.
26695         * lib/unictype/categ_P.h: Likewise.
26696         * lib/unictype/categ_Po.h: Likewise.
26697         * lib/unictype/categ_S.h: Likewise.
26698         * lib/unictype/categ_Sc.h: Likewise.
26699         * lib/unictype/categ_Sk.h: Likewise.
26700         * lib/unictype/categ_Sm.h: Likewise.
26701         * lib/unictype/categ_So.h: Likewise.
26702         * lib/unictype/categ_of.h: Likewise.
26703         * lib/unictype/combining.h: Likewise.
26704         * lib/unictype/ctype_alnum.h: Likewise.
26705         * lib/unictype/ctype_alpha.h: Likewise.
26706         * lib/unictype/ctype_graph.h: Likewise.
26707         * lib/unictype/ctype_lower.h: Likewise.
26708         * lib/unictype/ctype_print.h: Likewise.
26709         * lib/unictype/ctype_punct.h: Likewise.
26710         * lib/unictype/ctype_upper.h: Likewise.
26711         * lib/unictype/decdigit.h: Likewise.
26712         * lib/unictype/digit.h: Likewise.
26713         * lib/unictype/numeric.h: Likewise.
26714         * lib/unictype/pr_alphabetic.h: Likewise.
26715         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26716         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26717         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26718         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26719         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26720         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26721         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26722         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26723         * lib/unictype/pr_case_ignorable.h: Likewise.
26724         * lib/unictype/pr_cased.h: Likewise.
26725         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26726         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26727         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26728         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26729         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26730         * lib/unictype/pr_combining.h: Likewise.
26731         * lib/unictype/pr_composite.h: Likewise.
26732         * lib/unictype/pr_currency_symbol.h: Likewise.
26733         * lib/unictype/pr_decimal_digit.h: Likewise.
26734         * lib/unictype/pr_deprecated.h: Likewise.
26735         * lib/unictype/pr_format_control.h: Likewise.
26736         * lib/unictype/pr_grapheme_base.h: Likewise.
26737         * lib/unictype/pr_grapheme_extend.h: Likewise.
26738         * lib/unictype/pr_grapheme_link.h: Likewise.
26739         * lib/unictype/pr_id_continue.h: Likewise.
26740         * lib/unictype/pr_id_start.h: Likewise.
26741         * lib/unictype/pr_ideographic.h: Likewise.
26742         * lib/unictype/pr_lowercase.h: Likewise.
26743         * lib/unictype/pr_math.h: Likewise.
26744         * lib/unictype/pr_numeric.h: Likewise.
26745         * lib/unictype/pr_other_alphabetic.h: Likewise.
26746         * lib/unictype/pr_other_id_continue.h: Likewise.
26747         * lib/unictype/pr_other_math.h: Likewise.
26748         * lib/unictype/pr_punctuation.h: Likewise.
26749         * lib/unictype/pr_sentence_terminal.h: Likewise.
26750         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26751         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26752         * lib/unictype/pr_unified_ideograph.h: Likewise.
26753         * lib/unictype/pr_uppercase.h: Likewise.
26754         * lib/unictype/pr_xid_continue.h: Likewise.
26755         * lib/unictype/pr_xid_start.h: Likewise.
26756         * lib/unictype/scripts.h: Likewise.
26757         * lib/unictype/scripts_byname.gperf: Likewise.
26758         * lib/unictype/sy_java_ident.h: Likewise.
26759         * lib/unigbrk/gbrkprop.h: Likewise.
26760         * lib/unilbrk/lbrkprop1.h: Likewise.
26761         * lib/unilbrk/lbrkprop2.h: Likewise.
26762         * lib/uninorm/decomposition-table2.h: Likewise.
26763         * lib/uniwbrk/wbrkprop.h: Likewise.
26764         * tests/unicase/test-cased.c: Likewise.
26765         * tests/unicase/test-ignorable.c: Likewise.
26766         * tests/unicase/test-uc_tolower.c: Likewise.
26767         * tests/unicase/test-uc_totitle.c: Likewise.
26768         * tests/unicase/test-uc_toupper.c: Likewise.
26769         * tests/unictype/test-categ_C.c: Likewise.
26770         * tests/unictype/test-categ_Cn.c: Likewise.
26771         * tests/unictype/test-categ_L.c: Likewise.
26772         * tests/unictype/test-categ_Ll.c: Likewise.
26773         * tests/unictype/test-categ_Lm.c: Likewise.
26774         * tests/unictype/test-categ_Lo.c: Likewise.
26775         * tests/unictype/test-categ_Lu.c: Likewise.
26776         * tests/unictype/test-categ_M.c: Likewise.
26777         * tests/unictype/test-categ_Mc.c: Likewise.
26778         * tests/unictype/test-categ_Me.c: Likewise.
26779         * tests/unictype/test-categ_Mn.c: Likewise.
26780         * tests/unictype/test-categ_N.c: Likewise.
26781         * tests/unictype/test-categ_Nd.c: Likewise.
26782         * tests/unictype/test-categ_No.c: Likewise.
26783         * tests/unictype/test-categ_P.c: Likewise.
26784         * tests/unictype/test-categ_Po.c: Likewise.
26785         * tests/unictype/test-categ_S.c: Likewise.
26786         * tests/unictype/test-categ_Sc.c: Likewise.
26787         * tests/unictype/test-categ_Sk.c: Likewise.
26788         * tests/unictype/test-categ_Sm.c: Likewise.
26789         * tests/unictype/test-categ_So.c: Likewise.
26790         * tests/unictype/test-ctype_alnum.c: Likewise.
26791         * tests/unictype/test-ctype_alpha.c: Likewise.
26792         * tests/unictype/test-ctype_graph.c: Likewise.
26793         * tests/unictype/test-ctype_lower.c: Likewise.
26794         * tests/unictype/test-ctype_print.c: Likewise.
26795         * tests/unictype/test-ctype_punct.c: Likewise.
26796         * tests/unictype/test-ctype_upper.c: Likewise.
26797         * tests/unictype/test-decdigit.h: Likewise.
26798         * tests/unictype/test-digit.h: Likewise.
26799         * tests/unictype/test-numeric.h: Likewise.
26800         * tests/unictype/test-pr_alphabetic.c: Likewise.
26801         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26802         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26803         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26804         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26805         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26806         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26807         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26808         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26809         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26810         * tests/unictype/test-pr_cased.c: Likewise.
26811         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26812         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26813         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26814         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26815         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26816         * tests/unictype/test-pr_combining.c: Likewise.
26817         * tests/unictype/test-pr_composite.c: Likewise.
26818         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26819         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26820         * tests/unictype/test-pr_deprecated.c: Likewise.
26821         * tests/unictype/test-pr_format_control.c: Likewise.
26822         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26823         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26824         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26825         * tests/unictype/test-pr_id_continue.c: Likewise.
26826         * tests/unictype/test-pr_id_start.c: Likewise.
26827         * tests/unictype/test-pr_ideographic.c: Likewise.
26828         * tests/unictype/test-pr_lowercase.c: Likewise.
26829         * tests/unictype/test-pr_math.c: Likewise.
26830         * tests/unictype/test-pr_numeric.c: Likewise.
26831         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26832         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26833         * tests/unictype/test-pr_other_math.c: Likewise.
26834         * tests/unictype/test-pr_punctuation.c: Likewise.
26835         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26836         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26837         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26838         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26839         * tests/unictype/test-pr_uppercase.c: Likewise.
26840         * tests/unictype/test-pr_xid_continue.c: Likewise.
26841         * tests/unictype/test-pr_xid_start.c: Likewise.
26842         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26843         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26844         changes.
26845         * lib/unictype/categ_Cc.h: Likewise.
26846         * lib/unictype/categ_Cf.h: Likewise.
26847         * lib/unictype/categ_Co.h: Likewise.
26848         * lib/unictype/categ_Cs.h: Likewise.
26849         * lib/unictype/categ_Lt.h: Likewise.
26850         * lib/unictype/categ_Nl.h: Likewise.
26851         * lib/unictype/categ_Pc.h: Likewise.
26852         * lib/unictype/categ_Pd.h: Likewise.
26853         * lib/unictype/categ_Pe.h: Likewise.
26854         * lib/unictype/categ_Pf.h: Likewise.
26855         * lib/unictype/categ_Pi.h: Likewise.
26856         * lib/unictype/categ_Ps.h: Likewise.
26857         * lib/unictype/categ_Z.h: Likewise.
26858         * lib/unictype/categ_Zl.h: Likewise.
26859         * lib/unictype/categ_Zp.h: Likewise.
26860         * lib/unictype/categ_Zs.h: Likewise.
26861         * lib/unictype/ctype_blank.h: Likewise.
26862         * lib/unictype/ctype_cntrl.h: Likewise.
26863         * lib/unictype/ctype_digit.h: Likewise.
26864         * lib/unictype/ctype_space.h: Likewise.
26865         * lib/unictype/ctype_xdigit.h: Likewise.
26866         * lib/unictype/mirror.h: Likewise.
26867         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26868         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26869         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26870         * lib/unictype/pr_bidi_control.h: Likewise.
26871         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26872         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26873         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26874         * lib/unictype/pr_bidi_pdf.h: Likewise.
26875         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26876         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26877         * lib/unictype/pr_dash.h: Likewise.
26878         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26879         * lib/unictype/pr_diacritic.h: Likewise.
26880         * lib/unictype/pr_extender.h: Likewise.
26881         * lib/unictype/pr_hex_digit.h: Likewise.
26882         * lib/unictype/pr_hyphen.h: Likewise.
26883         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26884         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26885         * lib/unictype/pr_ignorable_control.h: Likewise.
26886         * lib/unictype/pr_iso_control.h: Likewise.
26887         * lib/unictype/pr_join_control.h: Likewise.
26888         * lib/unictype/pr_left_of_pair.h: Likewise.
26889         * lib/unictype/pr_line_separator.h: Likewise.
26890         * lib/unictype/pr_logical_order_exception.h: Likewise.
26891         * lib/unictype/pr_non_break.h: Likewise.
26892         * lib/unictype/pr_not_a_character.h: Likewise.
26893         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26894         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26895         * lib/unictype/pr_other_id_start.h: Likewise.
26896         * lib/unictype/pr_other_lowercase.h: Likewise.
26897         * lib/unictype/pr_other_uppercase.h: Likewise.
26898         * lib/unictype/pr_paired_punctuation.h: Likewise.
26899         * lib/unictype/pr_paragraph_separator.h: Likewise.
26900         * lib/unictype/pr_pattern_syntax.h: Likewise.
26901         * lib/unictype/pr_pattern_white_space.h: Likewise.
26902         * lib/unictype/pr_private_use.h: Likewise.
26903         * lib/unictype/pr_quotation_mark.h: Likewise.
26904         * lib/unictype/pr_radical.h: Likewise.
26905         * lib/unictype/pr_soft_dotted.h: Likewise.
26906         * lib/unictype/pr_space.h: Likewise.
26907         * lib/unictype/pr_titlecase.h: Likewise.
26908         * lib/unictype/pr_variation_selector.h: Likewise.
26909         * lib/unictype/pr_white_space.h: Likewise.
26910         * lib/unictype/pr_zero_width.h: Likewise.
26911         * lib/unictype/sy_c_ident.h: Likewise.
26912         * lib/unictype/sy_c_whitespace.h: Likewise.
26913         * lib/unictype/sy_java_whitespace.h: Likewise.
26914         * lib/uninorm/composition-table.gperf: Likewise.
26915         * lib/uninorm/decomposition-table1.h: Likewise.
26916         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26917         LB8.
26918         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26919         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26920         * modules/unictype/*: Bump version number of expected libunistring
26921         version.
26922
26923 2011-01-09  Bruno Haible  <bruno@clisp.org>
26924
26925         Update to Unicode 5.2.0.
26926         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26927         trailing whitespace removed.
26928
26929 2011-01-09  Bruno Haible  <bruno@clisp.org>
26930
26931         New Unicode character properties, from Unicode 5.2.0.
26932         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26933         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26934         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26935         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26936         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26937         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26938         uc_is_property_cased, uc_is_property_case_ignorable,
26939         uc_is_property_changes_when_lowercased,
26940         uc_is_property_changes_when_uppercased,
26941         uc_is_property_changes_when_titlecased,
26942         uc_is_property_changes_when_casefolded,
26943         uc_is_property_changes_when_casemapped): New declarations.
26944         * lib/unictype/pr_byname.gperf: Add the new properties.
26945         * modules/unictype/property-byname (Depends-on): Depend on the new
26946         properties modules.
26947         * modules/unictype/property-all (Depends-on): Likewise.
26948         * MODULES.html.sh (Unicode string functions): Add
26949         unictype/property-case-ignorable, unictype/property-cased,
26950         unictype/property-changes-when-casefolded,
26951         unictype/property-changes-when-casemapped,
26952         unictype/property-changes-when-lowercased,
26953         unictype/property-changes-when-titlecased,
26954         unictype/property-changes-when-uppercased.
26955
26956         New module 'unictype/property-changes-when-casemapped'.
26957         * modules/unictype/property-changes-when-casemapped: New file.
26958         * lib/unictype/pr_changes_when_casemapped.c: New file.
26959         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26960         generated by gen-uni-tables.
26961         * modules/unictype/property-changes-when-casemapped-tests: New file.
26962         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26963         automatically generated by gen-uni-tables.
26964
26965         New module 'unictype/property-changes-when-casefolded'.
26966         * modules/unictype/property-changes-when-casefolded: New file.
26967         * lib/unictype/pr_changes_when_casefolded.c: New file.
26968         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26969         generated by gen-uni-tables.
26970         * modules/unictype/property-changes-when-casefolded-tests: New file.
26971         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26972         automatically generated by gen-uni-tables.
26973
26974         New module 'unictype/property-changes-when-titlecased'.
26975         * modules/unictype/property-changes-when-titlecased: New file.
26976         * lib/unictype/pr_changes_when_titlecased.c: New file.
26977         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26978         generated by gen-uni-tables.
26979         * modules/unictype/property-changes-when-titlecased-tests: New file.
26980         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26981         automatically generated by gen-uni-tables.
26982
26983         New module 'unictype/property-changes-when-uppercased'.
26984         * modules/unictype/property-changes-when-uppercased: New file.
26985         * lib/unictype/pr_changes_when_uppercased.c: New file.
26986         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26987         generated by gen-uni-tables.
26988         * modules/unictype/property-changes-when-uppercased-tests: New file.
26989         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26990         automatically generated by gen-uni-tables.
26991
26992         New module 'unictype/property-changes-when-lowercased'.
26993         * modules/unictype/property-changes-when-lowercased: New file.
26994         * lib/unictype/pr_changes_when_lowercased.c: New file.
26995         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26996         generated by gen-uni-tables.
26997         * modules/unictype/property-changes-when-lowercased-tests: New file.
26998         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26999         automatically generated by gen-uni-tables.
27000
27001         New module 'unictype/property-case-ignorable'.
27002         * modules/unictype/property-case-ignorable: New file.
27003         * lib/unictype/pr_case_ignorable.c: New file.
27004         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27005         by gen-uni-tables.
27006         * modules/unictype/property-case-ignorable-tests: New file.
27007         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27008         generated by gen-uni-tables.
27009
27010         New module 'unictype/property-cased'.
27011         * modules/unictype/property-cased: New file.
27012         * lib/unictype/pr_cased.c: New file.
27013         * lib/unictype/pr_cased.h: New file, automatically generated by
27014         gen-uni-tables.
27015         * modules/unictype/property-cased-tests: New file.
27016         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27017         gen-uni-tables.
27018
27019 2011-01-09  Bruno Haible  <bruno@clisp.org>
27020
27021         Update to Unicode 5.2.0.
27022         * lib/gen-uni-tables.c (output_predicate, output_category,
27023         output_combclass, output_bidi_category, output_decimal_digit_test,
27024         output_decimal_digit, output_digit_test, output_digit,
27025         output_numeric_test, output_numeric, output_mirror, output_scripts,
27026         output_scripts_byname, output_blocks, output_ident_category): Fix
27027         comment header.
27028         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27029         get_wbp.
27030         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27031         items.
27032         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27033         Changes_When_Lowercased, Changes_When_Uppercased,
27034         Changes_When_Titlecased, Changes_When_Casefolded,
27035         Changes_When_Casemapped.
27036         (is_property_alphabetic, is_property_default_ignorable_code_point):
27037         Update for Unicode 5.2.0.
27038         (is_property_cased, is_property_case_ignorable,
27039         is_property_changes_when_lowercased,
27040         is_property_changes_when_uppercased,
27041         is_property_changes_when_titlecased,
27042         is_property_changes_when_casefolded,
27043         is_property_changes_when_casemapped): New functions.
27044         (output_properties): Output also the properties cased, case_ignorable,
27045         changes_when_lowercased, changes_when_uppercased,
27046         changes_when_titlecased, changes_when_casefolded,
27047         changes_when_casemapped.
27048         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27049         Unicode TR#11 revision 17 -> 19.
27050         (LBP_CP): New enumeration value.
27051         (LBP_*): Adjust values accordingly.
27052         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27053         TR#14 revision 22 -> 24.
27054         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27055         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27056         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27057         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27058         is_WBP_MIDLETTER.
27059         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27060         the code1 and code2 of each composition rule.
27061         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27062         * lib/unicase/ignorable.h: Likewise.
27063         * lib/unicase/tocasefold.h: Likewise.
27064         * lib/unicase/tolower.h: Likewise.
27065         * lib/unicase/totitle.h: Likewise.
27066         * lib/unicase/toupper.h: Likewise.
27067         * lib/unictype/bidi_of.h: Likewise.
27068         * lib/unictype/blocks.h: Likewise.
27069         * lib/unictype/categ_C.h: Likewise.
27070         * lib/unictype/categ_Cf.h: Likewise.
27071         * lib/unictype/categ_Cn.h: Likewise.
27072         * lib/unictype/categ_L.h: Likewise.
27073         * lib/unictype/categ_Ll.h: Likewise.
27074         * lib/unictype/categ_Lm.h: Likewise.
27075         * lib/unictype/categ_Lo.h: Likewise.
27076         * lib/unictype/categ_Lu.h: Likewise.
27077         * lib/unictype/categ_M.h: Likewise.
27078         * lib/unictype/categ_Mc.h: Likewise.
27079         * lib/unictype/categ_Mn.h: Likewise.
27080         * lib/unictype/categ_N.h: Likewise.
27081         * lib/unictype/categ_Nd.h: Likewise.
27082         * lib/unictype/categ_Nl.h: Likewise.
27083         * lib/unictype/categ_No.h: Likewise.
27084         * lib/unictype/categ_P.h: Likewise.
27085         * lib/unictype/categ_Pd.h: Likewise.
27086         * lib/unictype/categ_Po.h: Likewise.
27087         * lib/unictype/categ_S.h: Likewise.
27088         * lib/unictype/categ_Sc.h: Likewise.
27089         * lib/unictype/categ_So.h: Likewise.
27090         * lib/unictype/categ_of.h: Likewise.
27091         * lib/unictype/combining.h: Likewise.
27092         * lib/unictype/ctype_alnum.h: Likewise.
27093         * lib/unictype/ctype_alpha.h: Likewise.
27094         * lib/unictype/ctype_graph.h: Likewise.
27095         * lib/unictype/ctype_lower.h: Likewise.
27096         * lib/unictype/ctype_print.h: Likewise.
27097         * lib/unictype/ctype_punct.h: Likewise.
27098         * lib/unictype/ctype_upper.h: Likewise.
27099         * lib/unictype/decdigit.h: Likewise.
27100         * lib/unictype/digit.h: Likewise.
27101         * lib/unictype/numeric.h: Likewise.
27102         * lib/unictype/pr_alphabetic.h: Likewise.
27103         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27104         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27105         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27106         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27107         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27108         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27109         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27110         * lib/unictype/pr_combining.h: Likewise.
27111         * lib/unictype/pr_composite.h: Likewise.
27112         * lib/unictype/pr_currency_symbol.h: Likewise.
27113         * lib/unictype/pr_dash.h: Likewise.
27114         * lib/unictype/pr_decimal_digit.h: Likewise.
27115         * lib/unictype/pr_deprecated.h: Likewise.
27116         * lib/unictype/pr_diacritic.h: Likewise.
27117         * lib/unictype/pr_extender.h: Likewise.
27118         * lib/unictype/pr_grapheme_base.h: Likewise.
27119         * lib/unictype/pr_grapheme_extend.h: Likewise.
27120         * lib/unictype/pr_grapheme_link.h: Likewise.
27121         * lib/unictype/pr_id_continue.h: Likewise.
27122         * lib/unictype/pr_id_start.h: Likewise.
27123         * lib/unictype/pr_ideographic.h: Likewise.
27124         * lib/unictype/pr_ignorable_control.h: Likewise.
27125         * lib/unictype/pr_logical_order_exception.h: Likewise.
27126         * lib/unictype/pr_lowercase.h: Likewise.
27127         * lib/unictype/pr_numeric.h: Likewise.
27128         * lib/unictype/pr_other_alphabetic.h: Likewise.
27129         * lib/unictype/pr_punctuation.h: Likewise.
27130         * lib/unictype/pr_sentence_terminal.h: Likewise.
27131         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27132         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27133         * lib/unictype/pr_unified_ideograph.h: Likewise.
27134         * lib/unictype/pr_uppercase.h: Likewise.
27135         * lib/unictype/pr_xid_continue.h: Likewise.
27136         * lib/unictype/pr_xid_start.h: Likewise.
27137         * lib/unictype/pr_zero_width.h: Likewise.
27138         * lib/unictype/scripts.h: Likewise.
27139         * lib/unictype/scripts_byname.gperf: Likewise.
27140         * lib/unictype/sy_java_ident.h: Likewise.
27141         * lib/unigbrk/gbrkprop.h: Likewise.
27142         * lib/unilbrk/lbrkprop1.h: Likewise.
27143         * lib/unilbrk/lbrkprop2.h: Likewise.
27144         * lib/unilbrk/lbrktables.h: Likewise.
27145         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27146         LBP_CP. Implement rule LB30.
27147         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27148         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27149         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27150         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27151         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27152         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27153         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27154         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27155         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27156         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27157         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27158         bits instead of 16 bits in the code1 and code2 of each composition
27159         rule.
27160         (uc_composition): Update for Unicode 5.2.0.
27161         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27162         * lib/uninorm/decomposition-table2.h: Likewise.
27163         * lib/uniwbrk/wbrkprop.h: Likewise.
27164         * tests/unicase/test-cased.c: Likewise.
27165         * tests/unicase/test-ignorable.c: Likewise.
27166         * tests/unicase/test-uc_tolower.c: Likewise.
27167         * tests/unicase/test-uc_totitle.c: Likewise.
27168         * tests/unicase/test-uc_toupper.c: Likewise.
27169         * tests/unictype/test-categ_C.c: Likewise.
27170         * tests/unictype/test-categ_Cf.c: Likewise.
27171         * tests/unictype/test-categ_Cn.c: Likewise.
27172         * tests/unictype/test-categ_L.c: Likewise.
27173         * tests/unictype/test-categ_Ll.c: Likewise.
27174         * tests/unictype/test-categ_Lm.c: Likewise.
27175         * tests/unictype/test-categ_Lo.c: Likewise.
27176         * tests/unictype/test-categ_Lu.c: Likewise.
27177         * tests/unictype/test-categ_M.c: Likewise.
27178         * tests/unictype/test-categ_Mc.c: Likewise.
27179         * tests/unictype/test-categ_Mn.c: Likewise.
27180         * tests/unictype/test-categ_N.c: Likewise.
27181         * tests/unictype/test-categ_Nd.c: Likewise.
27182         * tests/unictype/test-categ_Nl.c: Likewise.
27183         * tests/unictype/test-categ_No.c: Likewise.
27184         * tests/unictype/test-categ_P.c: Likewise.
27185         * tests/unictype/test-categ_Pd.c: Likewise.
27186         * tests/unictype/test-categ_Po.c: Likewise.
27187         * tests/unictype/test-categ_S.c: Likewise.
27188         * tests/unictype/test-categ_Sc.c: Likewise.
27189         * tests/unictype/test-categ_So.c: Likewise.
27190         * tests/unictype/test-ctype_alnum.c: Likewise.
27191         * tests/unictype/test-ctype_alpha.c: Likewise.
27192         * tests/unictype/test-ctype_graph.c: Likewise.
27193         * tests/unictype/test-ctype_lower.c: Likewise.
27194         * tests/unictype/test-ctype_print.c: Likewise.
27195         * tests/unictype/test-ctype_punct.c: Likewise.
27196         * tests/unictype/test-ctype_upper.c: Likewise.
27197         * tests/unictype/test-decdigit.h: Likewise.
27198         * tests/unictype/test-digit.h: Likewise.
27199         * tests/unictype/test-numeric.h: Likewise.
27200         * tests/unictype/test-pr_alphabetic.c: Likewise.
27201         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27202         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27203         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27204         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27205         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27206         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27207         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27208         * tests/unictype/test-pr_combining.c: Likewise.
27209         * tests/unictype/test-pr_composite.c: Likewise.
27210         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27211         * tests/unictype/test-pr_dash.c: Likewise.
27212         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27213         * tests/unictype/test-pr_deprecated.c: Likewise.
27214         * tests/unictype/test-pr_diacritic.c: Likewise.
27215         * tests/unictype/test-pr_extender.c: Likewise.
27216         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27217         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27218         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27219         * tests/unictype/test-pr_id_continue.c: Likewise.
27220         * tests/unictype/test-pr_id_start.c: Likewise.
27221         * tests/unictype/test-pr_ideographic.c: Likewise.
27222         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27223         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27224         * tests/unictype/test-pr_lowercase.c: Likewise.
27225         * tests/unictype/test-pr_numeric.c: Likewise.
27226         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27227         * tests/unictype/test-pr_punctuation.c: Likewise.
27228         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27229         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27230         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27231         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27232         * tests/unictype/test-pr_uppercase.c: Likewise.
27233         * tests/unictype/test-pr_xid_continue.c: Likewise.
27234         * tests/unictype/test-pr_xid_start.c: Likewise.
27235         * tests/unictype/test-pr_zero_width.c: Likewise.
27236         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27237         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27238         changed behaviour: line breaking is now disallowed between a letter
27239         or '=' and '('.
27240         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27241         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27242         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27243         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27244         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27245         lib/uniwidth/width.c.
27246         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27247         without comments, but with the original copyright notice.
27248         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27249         changes.
27250         * lib/unictype/categ_Cc.h: Likewise.
27251         * lib/unictype/categ_Co.h: Likewise.
27252         * lib/unictype/categ_Cs.h: Likewise.
27253         * lib/unictype/categ_Lt.h: Likewise.
27254         * lib/unictype/categ_Me.h: Likewise.
27255         * lib/unictype/categ_Pc.h: Likewise.
27256         * lib/unictype/categ_Pe.h: Likewise.
27257         * lib/unictype/categ_Pf.h: Likewise.
27258         * lib/unictype/categ_Pi.h: Likewise.
27259         * lib/unictype/categ_Ps.h: Likewise.
27260         * lib/unictype/categ_Sk.h: Likewise.
27261         * lib/unictype/categ_Sm.h: Likewise.
27262         * lib/unictype/categ_Z.h: Likewise.
27263         * lib/unictype/categ_Zl.h: Likewise.
27264         * lib/unictype/categ_Zp.h: Likewise.
27265         * lib/unictype/categ_Zs.h: Likewise.
27266         * lib/unictype/ctype_blank.h: Likewise.
27267         * lib/unictype/ctype_cntrl.h: Likewise.
27268         * lib/unictype/ctype_digit.h: Likewise.
27269         * lib/unictype/ctype_space.h: Likewise.
27270         * lib/unictype/ctype_xdigit.h: Likewise.
27271         * lib/unictype/mirror.h: Likewise.
27272         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27273         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27274         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27275         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27276         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27277         * lib/unictype/pr_bidi_control.h: Likewise.
27278         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27279         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27280         * lib/unictype/pr_bidi_pdf.h: Likewise.
27281         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27282         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27283         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27284         * lib/unictype/pr_format_control.h: Likewise.
27285         * lib/unictype/pr_hex_digit.h: Likewise.
27286         * lib/unictype/pr_hyphen.h: Likewise.
27287         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27288         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27289         * lib/unictype/pr_iso_control.h: Likewise.
27290         * lib/unictype/pr_join_control.h: Likewise.
27291         * lib/unictype/pr_left_of_pair.h: Likewise.
27292         * lib/unictype/pr_line_separator.h: Likewise.
27293         * lib/unictype/pr_math.h: Likewise.
27294         * lib/unictype/pr_non_break.h: Likewise.
27295         * lib/unictype/pr_not_a_character.h: Likewise.
27296         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27297         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27298         * lib/unictype/pr_other_id_continue.h: Likewise.
27299         * lib/unictype/pr_other_id_start.h: Likewise.
27300         * lib/unictype/pr_other_lowercase.h: Likewise.
27301         * lib/unictype/pr_other_math.h: Likewise.
27302         * lib/unictype/pr_other_uppercase.h: Likewise.
27303         * lib/unictype/pr_paired_punctuation.h: Likewise.
27304         * lib/unictype/pr_paragraph_separator.h: Likewise.
27305         * lib/unictype/pr_pattern_syntax.h: Likewise.
27306         * lib/unictype/pr_pattern_white_space.h: Likewise.
27307         * lib/unictype/pr_private_use.h: Likewise.
27308         * lib/unictype/pr_quotation_mark.h: Likewise.
27309         * lib/unictype/pr_radical.h: Likewise.
27310         * lib/unictype/pr_soft_dotted.h: Likewise.
27311         * lib/unictype/pr_space.h: Likewise.
27312         * lib/unictype/pr_titlecase.h: Likewise.
27313         * lib/unictype/pr_variation_selector.h: Likewise.
27314         * lib/unictype/pr_white_space.h: Likewise.
27315         * lib/unictype/sy_c_ident.h: Likewise.
27316         * lib/unictype/sy_c_whitespace.h: Likewise.
27317         * lib/unictype/sy_java_whitespace.h: Likewise.
27318         * modules/uni*/*: Bump version number of expected libunistring version.
27319         Reported by Simon Josefsson.
27320
27321 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27322
27323         useless-if-before-free: fix typo in --help and make the internal,
27324         automatic version date update process work once again.
27325         --help output contained a NUL character instead of the
27326         backslash-zero that was intended.  Also, the "must lie within
27327         the first 8 lines" line is on line 9, and hence not getting
27328         automatically updated.
27329         * build-aux/useless-if-before-free: Fix the former by adding a
27330         backslash, and the latter by condensing the three lines of what-it-does
27331         to a single line, leaving one line of slack for the future.
27332
27333 2011-01-09  Bruno Haible  <bruno@clisp.org>
27334
27335         uniwidth/width: Fix width of U+1D173..U+1D17A.
27336         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27337         symbolic_width, output_width_property_test): New functions.
27338         (main): Invoke output_nonspacing_property, output_width_property_test.
27339         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27340         U+1D173..U+1D17A.
27341         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27342         1.
27343         * modules/uniwidth/*: Bump version number of expected libunistring
27344         version.
27345         * modules/unilbrk/*: Likewise.
27346
27347 2011-01-08  Bruno Haible  <bruno@clisp.org>
27348
27349         uninorm tests: Preserve copyright of Unicode data file.
27350         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27351         Mention modifications.
27352
27353 2011-01-08  Bruno Haible  <bruno@clisp.org>
27354
27355         gen-uni-tables: Prepare for Unicode 5.2.0.
27356         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27357         (debug_output_lbp, output_lbp): Update.
27358
27359 2011-01-08  Bruno Haible  <bruno@clisp.org>
27360
27361         unilbrk: Clarify gen-uni-tables.c code.
27362         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27363         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27364         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27365
27366 2011-01-07  Bruno Haible  <bruno@clisp.org>
27367
27368         strtod: Restore errno when successfully parsing Infinity or NaN.
27369         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27370         restore the original errno.
27371
27372 2011-01-07  Bruno Haible  <bruno@clisp.org>
27373
27374         remove test: Avoid failure on HP-UX 11.
27375         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27376
27377 2011-01-07  Bruno Haible  <bruno@clisp.org>
27378
27379         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27380         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27381         error code.
27382
27383 2011-01-07  Pádraig Brady <P@draigBrady.com>
27384
27385         ignore-value: fixup comments, and add Eric Blake
27386         as an author since he rewrote the macros.
27387         * lib/ignore-value.h (ignore_value):  State that
27388         we now support aggregates.  Also specify exactly
27389         when the GCC warn_unused_result feature was added.
27390
27391 2011-01-06  Eric Blake  <eblake@redhat.com>
27392
27393         ignore-value: support aggregate types
27394         * lib/ignore-value.h (ignore_value): Provide separate gcc
27395         definition.
27396         * modules/ignore-value-tests: New test module.
27397         * tests/test-ignore-value.c: New test.
27398
27399         maint.mk: improve sc_prohibit_strcmp regex
27400         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27401         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27402         definition of STRNEQ.
27403
27404         signal: work around Haiku issue with SIGBUS
27405         * lib/siglist.h: Add comment.
27406         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27407         strsignal's favoring of SIGSEGV.
27408         * tests/test-signal.c (main): Avoid test failure.
27409         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27410         Reported by Scott McCreary.
27411
27412         maint.mk: add pre-release check to ensure submodule commits are public
27413         * top/maint.mk (public-submodule-commit): New rule.
27414         (submodule-checks): New variable.
27415         (alpha beta stable): Depend on the variable.
27416
27417 2011-01-05  Pádraig Brady <P@draigBrady.com>
27418         and Jim Meyering  <meyering@redhat.com>
27419
27420         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27421         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27422         (ATTRIBUTE_DEPRECATED): Define.
27423         (_ignore_case): New function.
27424         (ignore_value): New macro, to replace the old function.
27425         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27426         * modules/ignore-value (Depends-on): Add stdint.
27427
27428 2011-01-04  Eric Blake  <eblake@redhat.com>
27429
27430         doc: regenerate INSTALL
27431         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27432         @firstparagraphindent support, now that autoconf dropped it.
27433         (INSTALL_PRELUDE): Reinstate old macro.
27434         * doc/install.texi: Resync from autoconf.
27435         * doc/INSTALL: Reflect recent autoconf update.
27436         * doc/INSTALL.ISO: Likewise.
27437         * doc/INSTALL.UTF-8: Likewise.
27438         Reported by Karl Berry.
27439
27440 2011-01-04  Bruce Korb  <address@hidden>
27441
27442         git-version-gen: avoid a sub-shell
27443         * build-aux/git-version-gen: Redirect stderr in `...` via
27444         "exec 2>...", rather than via an added sub-shell.
27445
27446 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27447
27448         git-version-gen: use (...) rather than sh -c '...'
27449         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27450         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27451
27452 2011-01-03  Jim Meyering  <meyering@redhat.com>
27453
27454         git-version-gen: convert leading TABs to spaces
27455         * build-aux/git-version-gen: Expand leading TABs.
27456
27457         git-version-gen: handle failed "git rev-list"
27458         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27459         from git and proceeding as if it had succeeded but printed no SHA1
27460         checksums, suppress the diagnostic and handle the failure.
27461         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27462
27463         git-version-gen: include command name in one more diagnostic
27464         * build-aux/git-version-gen: When the required .tarball-version file
27465         was missing or unreadable, you might see the diagnostic from "cat",
27466         but no trace of the name of the invoking script.  Now, you still see
27467         the diagnostic from cat, but also get one from "git-version-gen: ".
27468         Inspired by a patch from Bruce Korb.
27469
27470         update-copyright: adjust test to match changed code
27471         * tests/test-update-copyright.sh: Change test's expected output
27472         to match new actual output.
27473
27474 2011-01-02  Bruno Haible  <bruno@clisp.org>
27475
27476         getlogin_r: Avoid test failure on HP-UX 11.
27477         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27478         ERANGE when the second argument is zero.
27479         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27480         portability problem.
27481
27482 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27483
27484         * build-aux/update-copyright: doc Simon's changes
27485
27486 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27487
27488         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27489         environment variable.
27490
27491 2011-01-02  Bruno Haible  <bruno@clisp.org>
27492
27493         unigbrk: Avoid gcc warnings.
27494         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27495         unused variable.
27496         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27497         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27498         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27499         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27500         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27501         Change type of first argument to 'const char *'.
27502         (main): Remove unused variable.
27503         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27504         type of first argument to 'const char *'.
27505         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27506         Likewise.
27507         (main): Change type of variable 's'.
27508         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27509         to 'int'.
27510
27511 2011-01-02  Bruno Haible  <bruno@clisp.org>
27512
27513         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27514         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27515         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27516         bug.
27517         * lib/pwrite.c: Undo 2010-12-31 patch.
27518         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27519
27520 2011-01-02  Bruno Haible  <bruno@clisp.org>
27521
27522         pread: Fix test whether it works.
27523         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27524
27525 2011-01-02  Bruno Haible  <bruno@clisp.org>
27526
27527         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27528         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27529         ends in "6". Don't require a specific month name. Try also the locale
27530         names found on HP-UX 11 and Solaris 7.
27531
27532 2011-01-02  Bruno Haible  <bruno@clisp.org>
27533
27534         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27535         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27536         C linkage.
27537         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27538
27539 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27540
27541         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27542         for consistency, since the "cluster" term is not used elsewhere.
27543         * lib/unigbrk.in.h: Update name.
27544         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27545         * lib/unigbrk/u16-grapheme-next.c: Update name.
27546         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27547         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27548         * lib/unigbrk/u32-grapheme-next.c: Update name.
27549         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27550         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27551         * lib/unigbrk/u8-grapheme-next.c: Update name.
27552         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27553         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27554         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27555         Suggested by Bruno Haible.
27556
27557 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27558
27559         Remove module 'u8-grapheme-len' as too redundant with
27560         'u8-grapheme-next'.
27561         * modules/unigbrk/u8-grapheme-len: Delete file.
27562         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27563         * lib/unigbrk.in.h: Remove prototype for deleted function.
27564         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27565         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27566
27567         Remove module 'u16-grapheme-len' as too redundant with
27568         'u16-grapheme-next'.
27569         * modules/unigbrk/u16-grapheme-len: Delete file.
27570         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27571         * lib/unigbrk.in.h: Remove prototype for deleted function.
27572         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27573         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27574
27575         Remove module 'u32-grapheme-len' as too redundant with
27576         'u32-grapheme-next'.
27577         * modules/unigbrk/u32-grapheme-len: Delete file.
27578         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27579         * lib/unigbrk.in.h: Remove prototype for deleted function.
27580         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27581         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27582
27583         Suggested by Bruno Haible.
27584
27585 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27586
27587         * unigbrk.in.h: Fix typo: "ben" => "been".
27588         Reported by Bruno Haible.
27589
27590 2011-01-01  Jim Meyering  <meyering@redhat.com>
27591
27592         maint: update almost all copyright ranges to include 2011
27593         Run the new "make update-copyright" rule.
27594
27595 2011-01-01  Jim Meyering  <meyering@redhat.com>
27596
27597         maint: update-copyright: exempt doc/INSTALL*
27598         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27599         since they are generated.  Suggested by Bruno Haible.
27600
27601 2011-01-01  Jim Meyering  <meyering@redhat.com>
27602
27603         maint: refine the update-copyright rule
27604         * Makefile (update-copyright): Also exclude any file that includes
27605         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27606         code that merely generates the comment.
27607
27608 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27609
27610         New module 'u8-grapheme-len'.
27611         * modules/unigbrk/u8-grapheme-len: New file.
27612         * modules/unigbrk/u8-grapheme-len-tests: New file.
27613         * lib/unigbrk.in.h: Add prototype for new function.
27614         * lib/unigbrk/u8-grapheme-len.c: New file.
27615         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27616
27617         New module 'u16-grapheme-len'.
27618         * modules/unigbrk/u16-grapheme-len: New file.
27619         * modules/unigbrk/u16-grapheme-len-tests: New file.
27620         * lib/unigbrk.in.h: Add prototype for new function.
27621         * lib/unigbrk/u16-grapheme-len.c: New file.
27622         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27623
27624         New module 'u32-grapheme-len'.
27625         * modules/unigbrk/u32-grapheme-len: New file.
27626         * modules/unigbrk/u32-grapheme-len-tests: New file.
27627         * lib/unigbrk.in.h: Add prototype for new function.
27628         * lib/unigbrk/u32-grapheme-len.c: New file.
27629         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27630
27631         New module 'u8-grapheme-next'.
27632         * modules/unigbrk/u8-grapheme-next: New file.
27633         * modules/unigbrk/u8-grapheme-next-tests: New file.
27634         * lib/unigbrk.in.h: Add prototype for new function.
27635         * lib/unigbrk/u8-grapheme-next.c: New file.
27636         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27637
27638         New module 'u16-grapheme-next'.
27639         * modules/unigbrk/u16-grapheme-next: New file.
27640         * modules/unigbrk/u16-grapheme-next-tests: New file.
27641         * lib/unigbrk.in.h: Add prototype for new function.
27642         * lib/unigbrk/u16-grapheme-next.c: New file.
27643         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27644
27645         New module 'u32-grapheme-next'.
27646         * modules/unigbrk/u32-grapheme-next: New file.
27647         * modules/unigbrk/u32-grapheme-next-tests: New file.
27648         * lib/unigbrk.in.h: Add prototype for new function.
27649         * lib/unigbrk/u32-grapheme-next.c: New file.
27650         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27651
27652         New module 'u8-grapheme-prev'.
27653         * modules/unigbrk/u8-grapheme-prev: New file.
27654         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27655         * lib/unigbrk.in.h: Add prototype for new function.
27656         * lib/unigbrk/u8-grapheme-prev.c: New file.
27657         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27658
27659         New module 'u16-grapheme-prev'.
27660         * modules/unigbrk/u16-grapheme-prev: New file.
27661         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27662         * lib/unigbrk.in.h: Add prototype for new function.
27663         * lib/unigbrk/u16-grapheme-prev.c: New file.
27664         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27665
27666         New module 'u32-grapheme-prev'.
27667         * modules/unigbrk/u32-grapheme-prev: New file.
27668         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27669         * lib/unigbrk.in.h: Add prototype for new function.
27670         * lib/unigbrk/u32-grapheme-prev.c: New file.
27671         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27672
27673         New module 'u8-grapheme-breaks'.
27674         * modules/unigbrk/u8-grapheme-breaks: New file.
27675         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27676         * lib/unigbrk.in.h: Add prototype for new function.
27677         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27678         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27679
27680         New module 'u16-grapheme-breaks'.
27681         * modules/unigbrk/u16-grapheme-breaks: New file.
27682         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27683         * lib/unigbrk.in.h: Add prototype for new function.
27684         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27685         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27686
27687         New module 'u32-grapheme-breaks'.
27688         * modules/unigbrk/u32-grapheme-breaks: New file.
27689         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27690         * lib/unigbrk.in.h: Add prototype for new function.
27691         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27692         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27693
27694         New module 'ulc-grapheme-breaks'.
27695         * modules/unigbrk/ulc-grapheme-breaks: New file.
27696         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27697         * m4/locale-ar.m4: New file.
27698         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27699         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27700         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27701
27702 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27703
27704         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27705         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27706         modified how this file was generated before I initially submitted
27707         the module, but failed to regenerate it.  This meant that several
27708         of the level2 entries were wrong.
27709         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27710         Remove the division-by-2 that is folded into the table now that
27711         gbrkprop.h has been regenerated properly.  Now -1 entries are
27712         handled correctly.
27713
27714         New module 'unigbrk/uc-gbrk-prop-tests'.
27715         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27716         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27717         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27718         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27719
27720 2011-01-01  Bruno Haible  <bruno@clisp.org>
27721
27722         Avoid use of hexadecimal escapes.
27723         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27724         instead of hexadecimal escapes.
27725
27726 2011-01-01  Jim Meyering  <meyering@redhat.com>
27727
27728         maint: new rule to update copyright year ranges
27729         * Makefile (update-copyright): New rule.
27730
27731         maint: indent with TABs in Makefile
27732         * Makefile: Expand leading sequences of spaces to TABs
27733
27734         version-etc: update the copyright year it reports
27735         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27736
27737 2010-12-31  Bruno Haible  <bruno@clisp.org>
27738
27739         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27740         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27741         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27742         zero.
27743
27744 2010-12-31  Bruno Haible  <bruno@clisp.org>
27745
27746         pwrite: Work around HP-UX 11.11 bug.
27747         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27748         works and set REPLACE_PWRITE if not.
27749         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27750         function.
27751         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27752
27753 2010-12-31  Bruno Haible  <bruno@clisp.org>
27754
27755         pread: Work around HP-UX 11 bugs.
27756         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27757         and set REPLACE_PREAD if not.
27758         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27759
27760 2010-12-31  Eric Blake  <eblake@redhat.com>
27761
27762         nl_langinfo: fix YESEXPR on Irix 6.5
27763         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27764         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27765         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27766         it.
27767
27768 2010-12-31  Bruno Haible  <bruno@clisp.org>
27769
27770         iconv: Document HP-UX 11 bug.
27771         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27772
27773 2010-12-31  Bruno Haible  <bruno@clisp.org>
27774
27775         ldexpl: Fix link error on HP-UX 11.
27776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27777         LDEXPL_LIBM, using $ISNANL_LIBM.
27778
27779 2010-12-31  Eric Blake  <eblake@redhat.com>
27780
27781         ftello: avoid compilation failure with SunStudio c89
27782         * lib/ftello.c (ftello): Use lseek, not llseek.
27783
27784         tests: avoid failing coreutils tests on cygwin
27785         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27786         (create_exe_shims_): Return 0 when skipping.
27787
27788 2010-12-31  Bruno Haible  <bruno@clisp.org>
27789
27790         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27791         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27792
27793 2010-12-31  Bruno Haible  <bruno@clisp.org>
27794
27795         waitpid: Fix link error in C++ mode.
27796         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27797
27798 2010-12-31  Bruno Haible  <bruno@clisp.org>
27799
27800         isnan: Use GCC built-ins when possible.
27801         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27802         __builtin_isnan.
27803         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27804         (isnan): Define using GCC built-ins for GCC >= 4.0.
27805
27806 2010-12-31  Bruno Haible  <bruno@clisp.org>
27807
27808         isnand: Fix mistake.
27809         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27810         __builtin_isnand.
27811
27812 2010-12-31  Bruno Haible  <bruno@clisp.org>
27813
27814         open: Avoid C++ error on HP-UX 11.
27815         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27816
27817 2010-12-31  Bruno Haible  <bruno@clisp.org>
27818
27819         time_r: Add missing declarations on HP-UX 11.
27820         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27821         instead of HAVE_LOCALTIME_R.
27822         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27823         HAVE_LOCALTIME_R always.
27824         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27825         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27826         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27827         HAVE_LOCALTIME_R.
27828         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27829         * doc/posix-functions/localtime_r.texi: Likewise.
27830
27831 2010-12-29  Eric Blake  <eblake@redhat.com>
27832
27833         mountlist: tweak previous commit
27834         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27835         Reported by Paul Eggert.
27836
27837         mountlist: fix local drive detection on cygwin
27838         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27839         that works for cygwin.
27840
27841 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27842
27843         ftoastr, snprintf: ftoastr + snprintf module
27844         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27845         since the snprintf module now should be good enough here.
27846         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27847         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27848         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27849         GNULIB_SNPRINTF only for the test directory, and the latter
27850         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27851         seems to suffice by itself.
27852
27853 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27854
27855         alloca: one step towards thread-safety
27856         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27857         need for a static variable.  All callers changed.  This does not
27858         make the alloca replacement thread-safe, but it's one step.
27859
27860         tests: minor indenting change
27861         * tests/init.sh: Sync from coreutils housekeeping patch
27862         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27863         to keep lines within 80 columns.
27864
27865 2010-12-28  Jim Meyering  <meyering@redhat.com>
27866
27867         regex: don't infloop on persistent failing calloc
27868         * lib/regexec.c (build_trtable): Return failure indication upon
27869         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27870         In glibc, this was fixed for version 2.13:
27871         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27872
27873 2010-12-28  Bruno Haible  <bruno@clisp.org>
27874             Paul Eggert <eggert@cs.ucla.edu>
27875
27876         linkat: Make implementation robust against system behaviour variations.
27877         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27878         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27879         way, and to -2 if it needs a generic runtime test.
27880         * lib/linkat.c (solaris_optimized_link_immediate,
27881         solaris_optimized_link_follow): New functions.
27882         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27883         (check_same_link): Use it.
27884
27885 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27886
27887         New module 'unigbrk/base'.
27888         * modules/unigbrk/base: New file.
27889         * lib/unigbrk.in.h: New file.
27890
27891         New module 'unigbrk/uc-gbrk-prop'.
27892         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27893         * modules/unigbrk/uc-gbrk-prop: New file.
27894         * lib/unigbrk/gbrkprop.h: New file.
27895         * lib/unigbrk/uc-gbrk-prop.c: New file.
27896
27897         New module 'unigbrk/uc-is-grapheme-break'.
27898         * modules/unigbrk/uc-is-grapheme-break: New file.
27899         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27900         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27901         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27902         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27903         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27904
27905         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27906
27907 2010-12-27  Bruno Haible  <bruno@clisp.org>
27908
27909         linkat test: Avoid failure on Solaris 11 2010-11.
27910         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27911
27912 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27913
27914         utimens: work around glibc rounding bug on more platforms
27915         * lib/utimens.c (fdutimens): Work around rounding bug even if
27916         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27917         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27918
27919 2010-12-27  Bruno Haible  <bruno@clisp.org>
27920
27921         select tests: Improve comments.
27922         * tests/test-select.c (do_select): Add comments.
27923
27924 2010-12-27  Bruno Haible  <bruno@clisp.org>
27925
27926         select tests: Safer way of handling timeout.
27927         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27928         at every invocation.
27929
27930 2010-12-27  Bruno Haible  <bruno@clisp.org>
27931
27932         select tests: Use 'bool' where appropriate.
27933         * tests/test-select.c (connect_to_socket): Change argument type to
27934         'bool'.
27935
27936 2010-12-27  Bruno Haible  <bruno@clisp.org>
27937
27938         select tests: Use existing modules.
27939         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27940         (configure.ac): Don't test for unistd.h.
27941         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27942         declared in <unistd.h>.
27943
27944 2010-12-27  Bruno Haible  <bruno@clisp.org>
27945
27946         mbrtowc: Work around a Solaris 7 bug.
27947         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27948         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27949         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27950         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27951         MBRTOWC_NULL_ARG1_BUG.
27952         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27953         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27954         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27955         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27956
27957 2010-12-27  Jim Meyering  <meyering@redhat.com>
27958
27959         read-file.c: tweak syntax
27960         * lib/read-file.c (fread_file): Remove space after "*" in function
27961         definitions.
27962
27963 2010-12-27  Bruno Haible  <bruno@clisp.org>
27964
27965         times test: Avoid gcc warnings on OSF/1.
27966         * tests/test-times.c (main): Cast printf arguments from clock_t to
27967         'long int'.
27968
27969 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27970
27971         utimens: work around glibc rounding bug on older Linux kernels
27972         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27973         on Linux with a glibc whose utimes might not work, then work
27974         around a longstanding glibc bug involving rounding rather than
27975         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27976         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27977
27978 2010-12-26  Bruno Haible  <bruno@clisp.org>
27979
27980         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27981         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27982         _GL_CXXALIAS_SYS.
27983         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27984
27985 2010-12-26  Bruno Haible  <bruno@clisp.org>
27986
27987         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27988         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27989         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27990         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27991         looking for the declaration.
27992         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27993         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27994         problem.
27995         * doc/posix-functions/inet_pton.texi: Likewise.
27996
27997 2010-12-26  Bruno Haible  <bruno@clisp.org>
27998
27999         arpa_inet: Use the common idioms with C++ support.
28000         * lib/arpa_inet.in.h: Include c++defs.h.
28001         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28002         support.
28003         * modules/arpa_inet (Depends-on): Add c++defs.
28004         (Makefile.am): Substitute the contents of c++defs.h.
28005         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28006         * modules/arpa_inet-c++-tests: New file.
28007         * tests/test-arpa_inet-c++.cc: New file.
28008
28009 2010-12-25  Bruno Haible  <bruno@clisp.org>
28010
28011         Fix more C++ link errors on Solaris 8.
28012         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28013         $(LIB_EACCESS).
28014         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28015         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28016         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28017         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28018         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28019
28020 2010-12-25  Bruno Haible  <bruno@clisp.org>
28021
28022         printf-posix: Fix link error when a non-GCC compiler is used.
28023         * lib/stdio.in.h (printf): When not using GCC, override printf
28024         correctly.
28025         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28026
28027 2010-12-25  Bruno Haible  <bruno@clisp.org>
28028
28029         strerror_r-posix: Update doc.
28030         * doc/posix-functions/strerror_r.texi: Update doc about the return
28031         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28032
28033 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28034
28035         utimens: simplify the logic of the previous change
28036         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28037         This should not affect whether the test succeeds or fails.
28038
28039         utimens: configure better on hosts with NFS clock skew
28040         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28041         uses the clock of the local host.  It might use the clock of the
28042         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28043         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28044
28045 2010-12-25  Bruno Haible  <bruno@clisp.org>
28046
28047         ptsname test: Avoid failure on Solaris.
28048         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28049         open a pseudo-terminal; don't use BSD-style ptys.
28050         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28051
28052 2010-12-25  Bruno Haible  <bruno@clisp.org>
28053
28054         ptsname: Avoid ERANGE failure on some systems.
28055         * lib/ptsname.c (buffer): Increase size.
28056
28057 2010-12-25  Bruno Haible  <bruno@clisp.org>
28058
28059         rename, renameat: Avoid test failures at NFS mounted locations.
28060         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28061         so that subsequent mkdir calls succeed.
28062
28063 2010-12-25  Bruno Haible  <bruno@clisp.org>
28064
28065         iswblank: Fix C++ link error on Solaris 8.
28066         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28067         _GL_FUNCDECL_SYS.
28068
28069 2010-12-25  Bruno Haible  <bruno@clisp.org>
28070
28071         unistd: Fix C++ link error on Solaris 8.
28072         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28073
28074 2010-12-25  Bruno Haible  <bruno@clisp.org>
28075
28076         readlink doc: Mention an old glibc bug.
28077         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28078
28079 2010-12-25  Bruno Haible  <bruno@clisp.org>
28080
28081         fcntl-h: Fix for use of C++ on glibc systems.
28082         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28083         also on glibc systems in C++ mode.
28084         Reported by Gary V. Vaughan <gary@gnu.org>.
28085
28086 2010-12-25  Bruno Haible  <bruno@clisp.org>
28087
28088         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28089         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28090
28091 2010-12-25  Bruno Haible  <bruno@clisp.org>
28092
28093         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28094         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28095         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28096         test whether truncl works according to ISO C 99 with IEC 60559.
28097         * m4/truncl-ieee.m4: New file.
28098         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28099         m4/signbit.m4.
28100         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28101
28102 2010-12-25  Bruno Haible  <bruno@clisp.org>
28103
28104         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28105         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28106         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28107         test whether ceill works according to ISO C 99 with IEC 60559.
28108         * m4/ceill-ieee.m4: New file.
28109         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28110         m4/signbit.m4.
28111         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28112
28113 2010-12-25  Bruno Haible  <bruno@clisp.org>
28114
28115         Ensure all prerequisites of <wchar.h> are included.
28116         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28117         before <wchar.h>.
28118         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28119         gl_MBRLEN_NUL_RETVAL): Likewise.
28120         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28121         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28122         AC_FUNC_MBRTOWC): Likewise.
28123         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28124         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28125         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28126         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28127         Likewise.
28128         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28129         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28130         (gl_WCHAR_H): Improve comments.
28131         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28132
28133 2010-12-25  Bruno Haible  <bruno@clisp.org>
28134
28135         strtok_r: Fix C syntax error in autoconf macro.
28136         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28137         characters in test program.
28138
28139 2010-12-24  Bruno Haible  <bruno@clisp.org>
28140
28141         ceil, trunc, round: Fix gcc warnings.
28142         * lib/ceil.c (MIN): Undefine before redefining.
28143         * lib/trunc.c (MIN): Likewise.
28144         * lib/round.c (MIN): Likewise.
28145         Include <math.h> first.
28146
28147 2010-12-24  Bruno Haible  <bruno@clisp.org>
28148
28149         select tests: Avoid failures on OSF/1 5.1.
28150         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28151         failure of closing the last socket; it may fail with ECONNRESET.
28152
28153 2010-12-24  Eric Blake  <eblake@redhat.com>
28154
28155         stdint: avoid HP-UX 10.20 preprocessor bug
28156         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28157         than #if.
28158         * tests/test-floor2.c (main): Likewise.
28159         Reported by Peter O'Gorman.
28160
28161         pipe: make obsoletion transition easier
28162         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28163         * modules/pipe (Files): Include revived file.
28164         (Include): Drop reference, to mirror getdate's behavior.
28165
28166 2010-12-24  Bruno Haible  <bruno@clisp.org>
28167
28168         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28169         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28170         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28172
28173 2010-12-24  Bruno Haible  <bruno@clisp.org>
28174
28175         gethostname: Ensure declaration on NonStop Kernel.
28176         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28177         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28178
28179 2010-12-24  Bruno Haible  <bruno@clisp.org>
28180
28181         sys_select: Ensure all necessary types on NonStop Kernel.
28182         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28183         include <sys/time.h>.
28184         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28185         NonStop Kernel.
28186         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28187
28188 2010-12-24  Bruno Haible  <bruno@clisp.org>
28189
28190         sys_select: Remove unneeded include.
28191         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28192         have <sys/select.h>.
28193
28194 2010-12-24  Bruno Haible  <bruno@clisp.org>
28195
28196         gethostname: Provide a fallback for HOST_NAME_MAX.
28197         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28198         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28199         instead.
28200         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28201
28202 2010-12-24  Bruno Haible  <bruno@clisp.org>
28203
28204         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28205         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28206         (SA_RESTART): Likewise.
28207         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28208
28209 2010-12-24  Bruno Haible  <bruno@clisp.org>
28210
28211         signal: Define NSIG.
28212         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28213         * tests/test-signal.c (nsig): New variable.
28214         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28215
28216 2010-12-24  Bruno Haible  <bruno@clisp.org>
28217
28218         rename, renameat: Avoid test failures on OSF/1 5.1.
28219         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28220         alternative error codes.
28221         * tests/test-renameat.c (main): Likewise.
28222
28223 2010-12-24  Bruno Haible  <bruno@clisp.org>
28224
28225         *printf: Detect large precisions bug on Solaris 10/SPARC.
28226         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28227         by Paul Eggert.
28228         * tests/test-snprintf-posix.h (test_function): Add this test code here
28229         too.
28230         * tests/test-sprintf-posix.h (test_function): Likewise.
28231         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28232         * tests/test-vasprintf-posix.c (test_function): Likewise.
28233         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28234         around by gnulib.
28235         * doc/posix-functions/printf.texi: Likewise.
28236         * doc/posix-functions/snprintf.texi: Likewise.
28237         * doc/posix-functions/sprintf.texi: Likewise.
28238         * doc/posix-functions/vfprintf.texi: Likewise.
28239         * doc/posix-functions/vprintf.texi: Likewise.
28240         * doc/posix-functions/vsnprintf.texi: Likewise.
28241         * doc/posix-functions/vsprintf.texi: Likewise.
28242         * doc/posix-functions/dprintf.texi: Undo last commit.
28243         * doc/posix-functions/vdprintf.texi: Likewise.
28244
28245 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28246
28247         tests: port test-fdutimensat.c to Solaris 8
28248         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28249         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28250         On Solaris 8, it fails with errno == ENOSYS, because there is no
28251         futimens (so it can't use the fd), and there is no lutimens (so it
28252         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28253
28254         vsnprintf: make more consistent with snprintf; doc fixes
28255
28256         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28257         the byte count return problem was promoted from the snprintf-posix
28258         to the snprintf module.
28259         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28260         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28261         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28262         * tests/test-snprintf.c (main): Check the byte count returned.
28263         * tests/test-vsnprintf.c (main): Likewise.
28264
28265 2010-12-23  Eric Blake  <eblake@redhat.com>
28266
28267         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28268         * modules/sigpipe (License): Relax license.
28269
28270 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28271
28272         doc: document Solaris printf bug with large float precisions
28273         * doc/posix-functions/dprintf.texi (dprintf):
28274         * doc/posix-functions/fprintf.texi (fprintf):
28275         * doc/posix-functions/printf.texi (printf):
28276         * doc/posix-functions/snprintf.texi (snprintf):
28277         * doc/posix-functions/sprintf.texi (sprintf):
28278         * doc/posix-functions/vdprintf.texi (vdprintf):
28279         * doc/posix-functions/vfprintf.texi (vfprintf):
28280         * doc/posix-functions/vprintf.texi (vprintf):
28281         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28282         * doc/posix-functions/vsprintf.texi (vsprintf):
28283         Mention that these functions mishandle large floating point
28284         precisions on Solaris 10.  The same bug is also present in Solaris
28285         8, and I assume earlier.  This causes "cd gnulib-tests; make
28286         check" to fail on Solaris 8 (and I assume, later) when building
28287         the latest coreutils, in test-vasprintf-posix's call to
28288         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28289         the wide flavors (e.g., wprintf) so this patch just updates the
28290         documentation for the narrow ones.
28291
28292         test-posixtm.c: add two tests
28293         * tests/test-posixtm.c: Add two tests, to highlight the
28294         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28295         around this bug; this is merely to document it.
28296
28297 2010-12-22  Bruno Haible  <bruno@clisp.org>
28298
28299         getlogin_r: Work around portability problem on OSF/1.
28300         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28301         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28302         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28303         test for a truncated result.
28304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28305         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28306         * modules/getlogin_r (Depends-on): Add memchr.
28307         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28308
28309 2010-12-22  Bruno Haible  <bruno@clisp.org>
28310
28311         ptsname: Avoid test failure on OSF/1 5.1.
28312         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28313         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28314         (same_slave): New function.
28315         (main): Use it to compare ptsname's result with the expected file name.
28316
28317 2010-12-22  Bruno Haible  <bruno@clisp.org>
28318
28319         Port extended stdio modules to HP NonStop Kernel.
28320         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28321         macros.
28322         * lib/fbufmode.c: Update comments.
28323         * lib/fflush.c: Likewise.
28324         * lib/fpurge.c: Likewise.
28325         * lib/freadable.c: Likewise.
28326         * lib/freadahead.c: Likewise.
28327         * lib/freading.c: Likewise.
28328         * lib/freadptr.c: Likewise.
28329         * lib/freadseek.c: Likewise.
28330         * lib/fseeko.c: Likewise.
28331         * lib/fseterr.c: Likewise.
28332         * lib/fwritable.c: Likewise.
28333         * lib/fwriting.c: Likewise.
28334         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28335
28336 2010-12-22  Bruno Haible  <bruno@clisp.org>
28337
28338         ttyname_r: Work around bug on OSF/1 5.1.
28339         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28340         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28341         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28342         present.
28343         * lib/ttyname_r.c (ttyname_r): Update comments.
28344
28345 2010-12-22  Bruno Haible  <bruno@clisp.org>
28346
28347         round: Implement result sign according to IEEE 754.
28348         * lib/round.c (MIN, MINUS_ZERO): New macros.
28349         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28350         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28351         * tests/test-round-ieee.c (main): Likewise.
28352         * tests/test-roundl-ieee.c (main): Likewise.
28353
28354         trunc: Implement result sign according to IEEE 754.
28355         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28356         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28357         * tests/test-trunc2.c: Include minus-zero.h.
28358         (MINUS_ZERO): New macro.
28359         (trunc_reference): Keep in sync with lib/trunc.c.
28360         * tests/test-truncf2.c: Include minus-zero.h.
28361         (MINUS_ZERO): New macro.
28362         (truncf_reference): Keep in sync with lib/trunc.c.
28363         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28364         * tests/test-trunc-ieee.c (main): Likewise.
28365         * tests/test-truncl-ieee.c (main): Likewise.
28366
28367         ceil: Implement result sign according to IEEE 754.
28368         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28369         (FUNC): Return -0.0 for -1 < x < 0.
28370         * tests/test-ceil2.c: Include minus-zero.h.
28371         (MINUS_ZERO): New macro.
28372         (ceil_reference): Keep in sync with lib/ceil.c.
28373         * tests/test-ceilf2.c: Include minus-zero.h.
28374         (MINUS_ZERO): New macro.
28375         (ceilf_reference): Keep in sync with lib/ceil.c.
28376         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28377         * tests/test-ceil-ieee.c (main): Likewise.
28378         * tests/test-ceill-ieee.c (main): Likewise.
28379
28380         floor: Implement result sign according to IEEE 754.
28381         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28382         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28383         * tests/test-floorf2.c (floorf_reference): Likewise.
28384         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28385         * tests/test-floor-ieee.c (main): Likewise.
28386         * tests/test-floorl-ieee.c (main): Likewise.
28387
28388 2010-12-22  Bruno Haible  <bruno@clisp.org>
28389
28390         getaddrinfo: Update doc.
28391         * doc/posix-functions/gai_strerror.texi: Return type is also different
28392         on AIX and HP-UX.
28393
28394 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28395
28396         getaddrinfo, inet_ntop: Update doc for Solaris.
28397         * doc/posix-functions/gai_strerror.texi: Return type is also an
28398         issue on Solaris 9 and earlier.
28399         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28400         on Solaris 10 and earlier.
28401
28402 2010-12-21  Bruno Haible  <bruno@clisp.org>
28403
28404         New module 'roundl-ieee'.
28405         * modules/roundl-ieee: New file.
28406         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28407         test whether roundl works according to ISO C 99 with IEC 60559.
28408         * m4/roundl-ieee.m4: New file.
28409         * modules/roundl-ieee-tests: New file.
28410         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28411         * tests/test-roundl.c (main): Remove signbit tests.
28412         * modules/roundl-tests (Depends-on): Remove signbit.
28413         * doc/posix-functions/roundl.texi: Mention the new module.
28414
28415 2010-12-21  Bruno Haible  <bruno@clisp.org>
28416
28417         New module 'truncl-ieee'.
28418         * modules/truncl-ieee: New file.
28419         * modules/truncl-ieee-tests: New file.
28420         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28421         * tests/test-truncl.c (main): Remove signbit tests.
28422         * modules/truncl-tests (Depends-on): Remove signbit.
28423         * doc/posix-functions/truncl.texi: Mention the new module.
28424
28425 2010-12-21  Bruno Haible  <bruno@clisp.org>
28426
28427         New module 'ceill-ieee'.
28428         * modules/ceill-ieee: New file.
28429         * modules/ceill-ieee-tests: New file.
28430         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28431         * tests/test-ceill.c (main): Remove signbit tests.
28432         * modules/ceill-tests (Depends-on): Remove signbit.
28433         * doc/posix-functions/ceill.texi: Mention the new module.
28434
28435 2010-12-21  Bruno Haible  <bruno@clisp.org>
28436
28437         New module 'floorl-ieee'.
28438         * modules/floorl-ieee: New file.
28439         * modules/floorl-ieee-tests: New file.
28440         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28441         * tests/test-floorl.c (main): Remove signbit tests.
28442         * modules/floorl-tests (Depends-on): Remove signbit.
28443         * doc/posix-functions/floorl.texi: Mention the new module.
28444
28445 2010-12-21  Bruno Haible  <bruno@clisp.org>
28446
28447         New module 'round-ieee'.
28448         * modules/round-ieee: New file.
28449         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28450         whether round works according to ISO C 99 with IEC 60559.
28451         * m4/round-ieee.m4: New file.
28452         * modules/round-ieee-tests: New file.
28453         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28454         * tests/test-round1.c (main): Remove signbit tests.
28455         * modules/round-tests (Depends-on): Remove 'signbit'.
28456         * doc/posix-functions/round.texi: Mention the new module.
28457
28458 2010-12-21  Bruno Haible  <bruno@clisp.org>
28459
28460         New module 'trunc-ieee'.
28461         * modules/trunc-ieee: New file.
28462         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28463         whether trunc works according to ISO C 99 with IEC 60559.
28464         * m4/trunc-ieee.m4: New file.
28465         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28467         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28468         * modules/trunc-ieee-tests: New file.
28469         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28470         * tests/test-trunc1.c (main): Remove signbit tests.
28471         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28472         * doc/posix-functions/trunc.texi: Mention the new module.
28473
28474 2010-12-21  Bruno Haible  <bruno@clisp.org>
28475
28476         New module 'ceil-ieee'.
28477         * modules/ceil-ieee: New file.
28478         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28479         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28480         ISO C 99 with IEC 60559.
28481         * m4/ceil-ieee.m4: New file.
28482         * modules/ceil (Files): Add lib/ceil.c.
28483         (Depends-on): Add 'float'.
28484         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28485         * lib/math.in.h (ceil): New declaration.
28486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28487         REPLACE_CEIL.
28488         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28489         * modules/ceil-ieee-tests: New file.
28490         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28491         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28492         * doc/posix-functions/ceil.texi: Mention the new module.
28493
28494 2010-12-21  Bruno Haible  <bruno@clisp.org>
28495
28496         New module 'floor-ieee'.
28497         * modules/floor-ieee: New file.
28498         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28499         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28500         ISO C 99 with IEC 60559.
28501         * m4/floor-ieee.m4: New file.
28502         * modules/floor (Files): Add lib/floor.c.
28503         (Depends-on): Add 'float'.
28504         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28505         * lib/math.in.h (floor): New declaration.
28506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28507         REPLACE_FLOOR.
28508         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28509         * modules/floor-ieee-tests: New file.
28510         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28511         * tests/test-math-c++.cc: Check the signature of 'floor'.
28512         * doc/posix-functions/floor.texi: Mention the new module.
28513
28514 2010-12-21  Bruno Haible  <bruno@clisp.org>
28515
28516         New module 'roundf-ieee'.
28517         * modules/roundf-ieee: New file.
28518         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28519         test whether roundf works according to ISO C 99 with IEC 60559.
28520         * m4/roundf-ieee.m4: New file.
28521         * modules/roundf-ieee-tests: New file.
28522         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28523         * tests/test-roundf1.c (main): Remove signbit tests.
28524         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28525         * doc/posix-functions/roundf.texi: Mention the new module.
28526
28527 2010-12-21  Bruno Haible  <bruno@clisp.org>
28528
28529         New module 'truncf-ieee'.
28530         * modules/truncf-ieee: New file.
28531         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28532         test whether truncf works according to ISO C 99 with IEC 60559.
28533         * m4/truncf-ieee.m4: New file.
28534         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28536         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28537         * modules/truncf-ieee-tests: New file.
28538         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28539         * tests/test-truncf1.c (main): Remove signbit tests.
28540         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28541         * doc/posix-functions/truncf.texi: Mention the new module.
28542
28543 2010-12-21  Bruno Haible  <bruno@clisp.org>
28544
28545         New module 'ceilf-ieee'.
28546         * modules/ceilf-ieee: New file.
28547         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28548         test whether ceilf works according to ISO C 99 with IEC 60559.
28549         * m4/ceilf-ieee.m4: New file.
28550         * modules/ceilf-ieee-tests: New file.
28551         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28552         * tests/test-ceilf1.c (main): Remove signbit tests.
28553         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28554         * doc/posix-functions/ceilf.texi: Mention the new module.
28555
28556 2010-12-21  Bruno Haible  <bruno@clisp.org>
28557
28558         New module 'floorf-ieee'.
28559         * modules/floorf-ieee: New file.
28560         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28561         test whether floorf works according to ISO C 99 with IEC 60559.
28562         * m4/floorf-ieee.m4: New file.
28563         * modules/floorf-ieee-tests: New file.
28564         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28565         * tests/test-floorf1.c (main): Remove signbit tests.
28566         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28567         * doc/posix-functions/floorf.texi: Mention the new module.
28568
28569 2010-12-21  Bruno Haible  <bruno@clisp.org>
28570
28571         Support for minus zero in autoconf macros.
28572         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28573         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28574         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28575         * tests/minus-zero.h: Update comments.
28576
28577 2010-12-21  Bruno Haible  <bruno@clisp.org>
28578
28579         Tests for module 'ceil'.
28580         * modules/ceil-tests: New file.
28581         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28582         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28583
28584 2010-12-21  Bruno Haible  <bruno@clisp.org>
28585
28586         Tests for module 'floor'.
28587         * modules/floor-tests: New file.
28588         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28589         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28590
28591 2010-12-21  Bruno Haible  <bruno@clisp.org>
28592
28593         math: Fix indentation.
28594         * lib/math.in.h (floorf): Fix indentation.
28595
28596 2010-12-21  Bruno Haible  <bruno@clisp.org>
28597
28598         Fix cross-compilation guesses on Solaris.
28599         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28600         not match "solaris2.10".
28601         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28602         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28603         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28604
28605 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28606
28607         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28608         This fixes a problem observed with the latest coreutils snapshot
28609         that caused a test to fail on Solaris 8.  src/csplit.c's call
28610         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28611         earlier, instead of returning the number of bytes that would have
28612         been generated; this causes csplit to incorrectly report memory
28613         exhaustion.
28614         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28615         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28616         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28617         comments to match.
28618         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28619         Fix typo in matching older versions of Solaris: "solaris2.10"
28620         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28621         only for guessing while cross-compiling.
28622         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28623
28624 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28625
28626         ftoastr: fix comment again
28627         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28628         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28629         Also, simplify example a bit by using flags = 0.
28630
28631 2010-12-20  Bruno Haible  <bruno@clisp.org>
28632
28633         round*, trunc*: Update documentation regarding glibc.
28634         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28635         * doc/posix-functions/round.texi: Likewise.
28636         * doc/posix-functions/roundl.texi: Likewise.
28637         * doc/posix-functions/truncf.texi: Likewise.
28638         * doc/posix-functions/trunc.texi: Likewise.
28639         * doc/posix-functions/truncl.texi: Likewise.
28640
28641 2010-12-20  Bruno Haible  <bruno@clisp.org>
28642
28643         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28644         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28645         * doc/posix-functions/round.texi: Likewise.
28646         * doc/posix-functions/roundl.texi: Likewise.
28647
28648 2010-12-20  Bruno Haible  <bruno@clisp.org>
28649
28650         ttyname_r: Add missing declaration on HP-UX 11.
28651         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28652         HAVE_TTYNAME_R.
28653         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28654         declared. Set HAVE_TTYNAME_R always.
28655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28656         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28657         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28658         HAVE_TTYNAME_R.
28659         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28660
28661 2010-12-20  Bruno Haible  <bruno@clisp.org>
28662
28663         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28664         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28665         * doc/posix-functions/getlogin_r.texi: Likewise.
28666         * tests/test-getlogin.c: Include <errno.h>.
28667         (main): Avoid test failure on HP-UX 11.11.
28668         * tests/test-getlogin_r.c (main): Likewise.
28669
28670 2010-12-20  Bruno Haible  <bruno@clisp.org>
28671
28672         getlogin_r: Add missing declaration on HP-UX 11.
28673         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28674         declared also when it exists as a function.
28675         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28676
28677 2010-12-20  Bruno Haible  <bruno@clisp.org>
28678
28679         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28680         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28681         through wcrtomb.
28682
28683 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28684
28685         ftoastr: fix comment
28686         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28688
28689 2010-12-19  Bruno Haible  <bruno@clisp.org>
28690
28691         isnan: Ensure it is a macro.
28692         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28693         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28694         Solaris.
28695
28696 2010-12-19  Bruno Haible  <bruno@clisp.org>
28697
28698         ldexpl test: Fix link error on OSF/1 5.1.
28699         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28700
28701 2010-12-19  Bruno Haible  <bruno@clisp.org>
28702
28703         wctype: Make it work in C++ mode on OSF/1 5.1.
28704         * lib/wctype.in.h (iswblank): Declare but not define here.
28705         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28706         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28707         * modules/wctype (Files): Add lib/iswblank.c.
28708
28709 2010-12-19  Bruno Haible  <bruno@clisp.org>
28710
28711         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28712         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28713         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28714
28715 2010-12-19  Bruno Haible  <bruno@clisp.org>
28716
28717         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28719         _POSIX_PII_SOCKET.
28720         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28721         * doc/posix-functions/recvfrom.texi: Likewise.
28722         * doc/posix-functions/send.texi: Likewise.
28723         * doc/posix-functions/sendto.texi: Likewise.
28724
28725 2010-12-19  Bruno Haible  <bruno@clisp.org>
28726
28727         tcgetsid: Add missing declaration on OSF/1 5.1.
28728         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28729         HAVE_TCGETSID.
28730         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28731         Don't set HAVE_TCGETSID.
28732         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28733         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28734         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28735         HAVE_TCGETSID.
28736         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28737
28738 2010-12-19  Bruno Haible  <bruno@clisp.org>
28739
28740         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28741         * lib/stdio.in.h: During the include_next statement, let recursive
28742         includes of this file include only the system header file.
28743
28744 2010-12-19  Bruno Haible  <bruno@clisp.org>
28745
28746         iconv_open: Fix regression from 2010-12-04.
28747         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28748         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28749
28750 2010-12-19  Bruno Haible  <bruno@clisp.org>
28751
28752         stdbool test: Avoid a gcc warning.
28753         * tests/test-stdbool.c (main): Fail if e1 is false.
28754         Reported by Jim Meyering.
28755
28756 2010-12-19  Jim Meyering  <meyering@redhat.com>
28757
28758         setenv: restore to working order
28759         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28760         mistakenly removed.
28761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28762         HAVE_SETENV.
28763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28764         HAVE_SETENV.
28765
28766 2010-12-19  Bruno Haible  <bruno@clisp.org>
28767
28768         Document some different function declarations on OSF/1 5.1.
28769         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28770         * doc/posix-functions/inet_ntop.texi: Likewise.
28771         * doc/posix-functions/gethostname.texi: Likewise.
28772         * lib/unistd.in.h (gethostname): Update comment.
28773
28774 2010-12-19  Bruno Haible  <bruno@clisp.org>
28775
28776         doc: Mention vasprintf-posix module.
28777         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28778         the 'vasprintf-posix' module.
28779         * doc/glibc-functions/vasprintf.texi: Likewise.
28780
28781 2010-12-19  Bruno Haible  <bruno@clisp.org>
28782
28783         unsetenv: Add missing declaration on OSF/1 5.1.
28784         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28785         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28786         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28788         not HAVE_UNSETENV.
28789         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28790         HAVE_UNSETENV.
28791         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28792
28793 2010-12-19  Bruno Haible  <bruno@clisp.org>
28794
28795         setenv: Add missing declaration on OSF/1 5.1.
28796         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28797         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28798         declared. Don't set HAVE_SETENV.
28799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28800         not HAVE_SETENV.
28801         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28802         HAVE_SETENV.
28803         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28804
28805 2010-12-19  Bruno Haible  <bruno@clisp.org>
28806
28807         nl_langinfo tests: Avoid gcc warning.
28808         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28809
28810 2010-12-19  Bruno Haible  <bruno@clisp.org>
28811
28812         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28813         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28814         _GL_CXXALIAS_SYS.
28815
28816 2010-12-19  Bruno Haible  <bruno@clisp.org>
28817
28818         stdbool: Relax test.
28819         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28820         address to 'bool' work in static initializer, for compilers other than
28821         GCC.
28822
28823 2010-12-19  Bruno Haible  <bruno@clisp.org>
28824
28825         ftello: Add missing declaration on OSF/1 5.1.
28826         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28827         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28829         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28830         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28831
28832 2010-12-19  Bruno Haible  <bruno@clisp.org>
28833
28834         fseeko: Add missing declaration on OSF/1 5.1.
28835         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28838         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28839         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28840
28841 2010-12-19  Bruno Haible  <bruno@clisp.org>
28842
28843         fchdir: Add missing declaration on OSF/1 5.1.
28844         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28847         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28848         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28849
28850 2010-12-19  Bruno Haible  <bruno@clisp.org>
28851
28852         relocatable-prog-wrapper: Separate from relocatable-prog.
28853         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28854         uninstall-relocwrapper rule here.
28855         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28856         Reported by Ian Beckwith <ianb@erislabs.net>.
28857
28858 2010-12-19  Bruno Haible  <bruno@clisp.org>
28859
28860         unistr/u8-mbsnlen: Add missing dependency.
28861         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28862         Reported by Ian Beckwith <ianb@erislabs.net>.
28863
28864 2010-12-19  Bruno Haible  <bruno@clisp.org>
28865
28866         iconv: Make it possible again to use this module without 'iconv-h'.
28867         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28868         if it is not defined.
28869         Reported by Ian Beckwith <ianb@erislabs.net>.
28870
28871 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28872
28873         acl: port to Solaris 8 when copying from tmpfs to ufs
28874         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28875         error number.  Problem observed on Solaris 8 with latest
28876         coreutils, with "mv A B", where A is on a tmpfs file system and B
28877         is on a ufs file system.  This caused coreutils' mv/part-symlink
28878         test to fail.
28879
28880         tests: set fail=0 at start
28881         * tests/init.sh (setup_): Move fail=0 initialization here ...
28882         (mktempd_): ... from here, so that tests can rely on fail being
28883         set to 0 initially.  This fixes a problem in coreutils; see:
28884         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28885
28886 2010-12-18  Bruno Haible  <bruno@clisp.org>
28887
28888         memmem-simple: Stylistic changes.
28889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28890         Fix preprocessor directive indentation.
28891
28892 2010-12-15  Pádraig Brady <P@draigBrady.com>
28893
28894         memmem, memmem-simple: reorganize and expand empty needle check
28895         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28896         functional checks to memmem-simple so that one has a fully functional
28897         memmem by using just this module.
28898         Restrict the performance only check to the memmem module.
28899         Also expand the empty needle check to ensure the correct
28900         pointer is returned, not just a non NULL pointer.
28901         * doc/glibc-functions/memmem.texi: Rearrange the portability
28902         documentation to correlate with the rearranged checks.
28903         Clarify exactly how the memmem and memmem-simple modules
28904         relate to each other.
28905
28906 2010-12-15  Pádraig Brady <P@draigBrady.com>
28907             Bruno Haible  <bruno@clisp.org>
28908
28909         Improve cross-compilation guesses for uClibc.
28910         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28911         that uClibc does not have the glibc bug.
28912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28913         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28914
28915 2010-12-14  Eric Blake  <eblake@redhat.com>
28916
28917         configmake: provide fallbacks for oldest supported autotools
28918         * m4/configmake.m4: New file.
28919         * modules/configmake (Files): Ship it.
28920         (configure.ac): Use it to guarantee fallbacks.
28921
28922 2010-12-13  Pádraig Brady <P@draigBrady.com>
28923
28924         read-file: Improve handling of large files
28925         * lib/read-file.c (fread_file): Minimize realloc()s
28926         for regular files, and better manage sizes around SIZE_MAX.
28927
28928 2010-12-13  Eric Blake  <eblake@redhat.com>
28929
28930         cloexec, fcntl: relax license
28931         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28932         consent from all contributors.
28933         * modules/fcntl (License): Likewise.
28934
28935 2010-12-10  Bruno Haible  <bruno@clisp.org>
28936
28937         Tests for module 'pipe-posix'.
28938         * modules/pipe-posix-tests: New file.
28939         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28940
28941 2010-12-10  Bruno Haible  <bruno@clisp.org>
28942
28943         pipe-posix: Make it work in C++ mode.
28944         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28945         (pipe): Use common idiom, not a macro definition.
28946         * lib/pipe.c: New file.
28947         * m4/pipe.m4: New file.
28948         * modules/pipe-posix (Description): Enhance.
28949         (Files): Add lib/pipe.c, m4/pipe.m4.
28950         (configure.ac): Invoke gl_FUNC_PIPE.
28951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28952         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28953         * tests/test-unistd-c++.cc: Check the signature of pipe.
28954
28955 2010-12-10  Bruno Haible  <bruno@clisp.org>
28956
28957         Rename module 'pipe' to 'spawn-pipe'.
28958         * modules/spawn-pipe: New file, renamed from modules/pipe.
28959         (Files, configure.ac, Makefile.am): Update.
28960         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28961         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28962         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28963         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28964         "spawn-pipe.h" instead of "pipe.h".
28965         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28966         to gl_SPAWN_PIPE.
28967         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28968         (Files, Makefile.am): Update.
28969         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28970         Update.
28971         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28972         Include "spawn-pipe.h" instead of "pipe.h".
28973         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28974         * lib/javacomp.c: Likewise.
28975         * lib/javaversion.c: Likewise.
28976         * lib/pipe-filter-gi.c: Likewise.
28977         * lib/pipe-filter-ii.c: Likewise.
28978         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28979         * modules/javacomp (Depends-on): Likewise.
28980         * modules/javaversion (Depends-on): Likewise.
28981         * modules/pipe-filter-gi (Depends-on): Likewise.
28982         * modules/pipe-filter-ii (Depends-on): Likewise.
28983         * MODULES.html.sh (Executing programs): Update.
28984         * NEWS: Mention the change.
28985
28986 2010-12-10  Eric Blake  <eblake@redhat.com>
28987
28988         pipe-posix: new module
28989         * modules/pipe-posix: New file.
28990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28991         (gl_UNISTD_H): Check for declaration.
28992         * modules/unistd (Makefile.am): Substitute it.
28993         * lib/unistd.in.h (pipe): Provide it for mingw.
28994         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28995         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28996
28997 2010-12-07  Bruno Haible  <bruno@clisp.org>
28998
28999         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29000         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29001         u8_strcmp_gnu.
29002         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29003
29004 2010-12-06  Bruno Haible  <bruno@clisp.org>
29005
29006         Update internal documentation.
29007         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29008
29009 2010-12-04  Bruno Haible  <bruno@clisp.org>
29010
29011         Put more information about failed tests into the test return codes.
29012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29013         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29014         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29016         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29017         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29018         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29019         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29020         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29022         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29023         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29024         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29025         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29026         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29027         returns a bit mask.
29028         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29029         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29030         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29031         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29032         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29033         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29036         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29037         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29038         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29039         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29040         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29041         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29042         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29043         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29044         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29045         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29046         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29047         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29048         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29049         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29051         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29052         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29053         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29054         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29055         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29056         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29057         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29058         gl_PRINTF_PRECISION): Likewise.
29059         * m4/regex.m4 (gl_REGEX): Likewise.
29060         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29061         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29062         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29063         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29064         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29067         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29068         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29069         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29070         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29071         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29072         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29073         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29074         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29075         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29076         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29077         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29079         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29080         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29081         enumerated value.
29082         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29083
29084 2010-12-04  Bruno Haible  <bruno@clisp.org>
29085
29086         Update for Solaris 11 2010-11.
29087         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29088         Express, released in November 2010.
29089
29090 2010-12-04  Bruno Haible  <bruno@clisp.org>
29091
29092         nproc: Relax license.
29093         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29094         and Paul Eggert.
29095         Requested by Ludovic Courtès <ludo@gnu.org>.
29096
29097 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29098
29099         utimecmp: fine-grained src to nearby coarse-grained dest
29100
29101         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29102         and the source is on a file system with higher-resolution time
29103         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29104         not work, and the time stamps are close together, the algorithm to
29105         determine the exact resolution from the read-back mtime was buggy:
29106         it had a "!=" where it should have had an "==".  This bug has been
29107         in the code ever since it was introduced to gnulib.
29108         Problem reported by Dan Jacobson in
29109         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29110
29111 2010-11-30  Bruno Haible  <bruno@clisp.org>
29112
29113         strerror_r-posix: Fix autoconf test.
29114         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29115
29116 2010-11-28  Bruno Haible  <bruno@clisp.org>
29117             Paul Eggert  <eggert@cs.ucla.edu>
29118
29119         Tests for module 'getdomainname'.
29120         * modules/getdomainname-tests: New file.
29121         * tests/test-getdomainname.c: New file, based on
29122         tests/test-gethostname.c.
29123
29124 2010-11-28  Bruno Haible  <bruno@clisp.org>
29125             Paul Eggert  <eggert@cs.ucla.edu>
29126
29127         getdomainname: Use the system function when possible.
29128         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29129         (getdomainname): Replace if needed. Provide the declaration if it is
29130         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29131         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29132         (getdomainname): When the system has getdomainname, call the system
29133         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29134         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29135         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29136         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29137         the function if its second argument is of type 'int' or if it is found
29138         in libnsl.
29139         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29140         <sys/systeminfo.h> and sysinfo().
29141         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29143         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29144         HAVE_GETDOMAINNAME.
29145         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29146         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29147         * doc/glibc-functions/getdomainname.texi: Document the problems with
29148         the getdomainname declaration.
29149
29150 2010-11-28  Bruno Haible  <bruno@clisp.org>
29151
29152         sys_socket: Ensure ss_family field on AIX.
29153         * lib/sys_socket.in.h (ss_family): New macro definition.
29154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29155         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29156         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29157         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29158         * modules/sys_socket (Makefile.am): Substitute
29159         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29160         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29161
29162 2010-11-27  Bruno Haible  <bruno@clisp.org>
29163
29164         readline: Improve configure output.
29165         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29166         "checking for readline..." result understandable.
29167
29168 2010-11-27  Bruno Haible  <bruno@clisp.org>
29169
29170         *printf-posix: Detect a bug on Solaris 10/x86.
29171         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29172         for floating-point output.
29173         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29174         directive.
29175         * tests/test-snprintf-posix.h (test_function): Likewise.
29176         * tests/test-sprintf-posix.h (test_function): Likewise.
29177         * tests/test-vasprintf-posix.c (test_function): Likewise.
29178         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29179         * doc/posix-functions/printf.texi: Likewise.
29180         * doc/posix-functions/snprintf.texi: Likewise.
29181         * doc/posix-functions/sprintf.texi: Likewise.
29182         * doc/posix-functions/vfprintf.texi: Likewise.
29183         * doc/posix-functions/vprintf.texi: Likewise.
29184         * doc/posix-functions/vsnprintf.texi: Likewise.
29185         * doc/posix-functions/vsprintf.texi: Likewise.
29186         * doc/glibc-functions/obstack_printf.texi: Likewise.
29187         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29188
29189 2010-11-27  Bruno Haible  <bruno@clisp.org>
29190
29191         Fix link error when module libunistring-optional is in use.
29192         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29193         * modules/striconveha-tests (Makefile.am): Likewise.
29194
29195 2010-11-27  Bruno Haible  <bruno@clisp.org>
29196
29197         regex: Mention link dependencies.
29198         * modules/regex (Link): New section.
29199         * modules/rpmatch (Link): Likewise.
29200         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29201
29202 2010-11-27  Bruno Haible  <bruno@clisp.org>
29203
29204         ftoastr: Fix compilation error on Solaris.
29205         * lib/ftoastr.c: Include <config.h>.
29206
29207 2010-11-27  Bruno Haible  <bruno@clisp.org>
29208
29209         getloadavg: Update documentation.
29210         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29211
29212 2010-11-27  Bruno Haible  <bruno@clisp.org>
29213
29214         sys_socket: Fix test whether the functions are declared.
29215         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29216         not <sys/select.h>.
29217
29218 2010-11-27  Bruno Haible  <bruno@clisp.org>
29219
29220         getpass: Make sure to get system declaration on some platforms.
29221         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29222         gl_USE_SYSTEM_EXTENSIONS.
29223         * modules/getpass (Depends-on): Add extensions.
29224
29225 2010-11-26  Bruno Haible  <bruno@clisp.org>
29226
29227         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29228         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29229         'iconv' module is present.
29230         (ICONV_CONST): New macro.
29231         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29232         ICONV_CONST.
29233         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29234         set ICONV_CONST.
29235         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29236         here.
29237         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29238         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29239         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29240         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29241         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29242         present.
29243
29244 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29245
29246         ftoastr: comment fix
29247         * lib/ftoastr.c: "little" -> "little or no" in comment
29248
29249 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29250
29251         stdint: port to GCC 4.3 + OSX + Octave
29252         On this platform, stdint.h is buggy and defines int64_t to long
29253         long int.  The replacement defined it to long int, causing
29254         problems with C++ style name mangling.  Instead, trust the system
29255         definition if INT64_MAX is defined, and likewise for the unsigned
29256         variant.   Problem reported by Jarno Rajahalme in
29257         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29258         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29259         and don't mess with int64_t and INT64_MAX in this case.
29260         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29261
29262 2010-11-24  Bruno Haible  <bruno@clisp.org>
29263
29264         doc: Corrections regarding MacOS X 10.4 and 10.5.
29265         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29266         MacOS X.
29267         Reported by Simon Josefsson.
29268
29269 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29270
29271         Uninstall ".bin" files installed by relocwrapper.
29272         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29273         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29274         unless it is already there.
29275
29276 2010-11-21  Bruno Haible  <bruno@clisp.org>
29277
29278         Update for NetBSD 5.0.
29279         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29280         NetBSD; the test fails on NetBSD 5.0.
29281         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29282         about NetBSD.
29283
29284 2010-11-21  Bruno Haible  <bruno@clisp.org>
29285
29286         Update for HP-UX 11.23 and HP-UX 11.31.
29287         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29288         HP-UX.
29289
29290 2010-11-21  Bruno Haible  <bruno@clisp.org>
29291
29292         Update for MacOS X 10.5.
29293         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29294         MacOS X; the test fails on MacOS X 10.5.8.
29295         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29296         about MacOS X.
29297
29298 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29299
29300         bootstrap: add bootstrap_sync option.
29301         See discussion at
29302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29303         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29304         * build-aux/bootstrap: Accept --bootstrap-sync to update
29305         bootstrap if it is not identical to the local gnulib's
29306         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29307         enable this by default.  Accept --no-bootstrap-sync to disable
29308         it.
29309
29310 2010-11-20  Bruno Haible  <bruno@clisp.org>
29311
29312         Ensure that <features.h> is included before __GLIBC__ is tested.
29313         * lib/printf-parse.h: Include <features.h>.
29314         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29315         Reported by Mike Frysinger <vapier@gentoo.org>.
29316
29317         Ensure that <features.h> is included before __GLIBC__ is tested.
29318         * lib/wchar.in.h: Include <features.h>.
29319         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29320         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29321         Reported by Mike Frysinger <vapier@gentoo.org>.
29322
29323         Ensure that <features.h> is included before __GLIBC__ is tested.
29324         * lib/arpa_inet.in.h: Include <features.h>.
29325         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29326         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29327         Reported by Mike Frysinger <vapier@gentoo.org>.
29328
29329         Ensure that <features.h> is included before __GLIBC__ is tested.
29330         * build-aux/link-warning.h: Include <features.h>.
29331         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29332         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29333         Reported by Mike Frysinger <vapier@gentoo.org>.
29334
29335         Ensure that <features.h> is included before __GLIBC__ is tested.
29336         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29337         Reported by Mike Frysinger <vapier@gentoo.org>.
29338
29339 2010-11-20  Bruno Haible  <bruno@clisp.org>
29340
29341         memmem: Fix autoconf test.
29342         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29343
29344 2010-11-20  Bruno Haible  <bruno@clisp.org>
29345
29346         Port to uClibc.
29347         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29348         * lib/fcntl.in.h: Likewise.
29349         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29350         * lib/mbrtowc.c (mbrtowc): Likewise.
29351         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29352         * lib/strerror_r.c: Likewise.
29353         * lib/unistr/u8-strnlen.c: Likewise.
29354         * lib/vasnprintf.c (decimal_point_char): Likewise.
29355         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29356         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29357         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29358         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29359         * tests/test-sigaction.c (handler, main): Likewise.
29360         * lib/freading.h: Treat uClibc like a non-glibc platform.
29361         * lib/freading.c: Likewise.
29362         * lib/gettext.h: Likewise.
29363         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29364         Likewise.
29365         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29366         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29367         * lib/propername.c (proper_name_utf8): Likewise.
29368         * lib/spawn.in.h: Likewise.
29369         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29370         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29371         mem_cd_iconveh_internal): Likewise.
29372         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29373         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29374         strstr, strcasestr): Likewise.
29375         * lib/unicodeio.c (unicode_to_mb): Likewise.
29376         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29377         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29378         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29379         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29380         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29381         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29382         * lib/unistr/u8-stpncpy.c: Likewise.
29383         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29384         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29385         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29386         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29387         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29388         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29389         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29390         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29392         Likewise.
29393         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29394         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29396         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29397         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29398         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29399         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29400         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29401         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29402         * tests/test-striconveha.c (main): Likewise.
29403         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29404         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29405         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29406         * doc/posix-functions/getline.texi: Likewise.
29407         Reported by Mike Frysinger <vapier@gentoo.org>.
29408
29409 2010-11-20  Bruno Haible  <bruno@clisp.org>
29410
29411         nproc: Fix condition.
29412         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29413         HAVE_PTHREAD_AFFINITY_NP.
29414
29415 2010-11-20  Bruno Haible  <bruno@clisp.org>
29416
29417         Fix a comment.
29418         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29419
29420 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29421
29422         ftoastr: don't assume snprintf
29423         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29424         Implement a subset of snprintf here, by using sprintf safely.
29425         * modules/ftoastr (Depends-on): Remove snprintf.
29426
29427 2010-11-19  Jim Meyering  <meyering@redhat.com>
29428
29429         test-rename.h: fix compilation failure
29430         * tests/test-rename.h (test_rename): Add omitted "}".
29431
29432 2010-11-17  Jim Meyering  <meyering@redhat.com>
29433
29434         maint.mk: add a URL discussing the no-@acronym policy
29435         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29436
29437 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29438
29439         ftoastr: depend on snprintf, improve comments
29440         * lib/ftoastr.c: Also mention Loitsch's draft.
29441         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29442         needed in the current implementation, but it might simplify
29443         speeding up the code later.
29444         * modules/ftoastr: Depend on snprintf; this improves portability.
29445         Suggested by Bruno Haible in the same email.
29446
29447         ftoastr: port to hosts lacking strtof and strtold
29448         Problem reported by Bruno Haible in
29449         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29450         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29451         environment and strtold (and presumably strtof) are not available.
29452         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29453         (configure.ac): Require gl_C99_STRTOLD.
29454
29455 2010-11-18  Bruno Haible  <bruno@clisp.org>
29456
29457         c-strtold: Avoid link error on AIX 7.
29458         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29459         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29460         (gl_C_STRTOLD): Test whether strtold_l exists.
29461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29462
29463 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29464
29465         intprops: new macro INT_BITS_STRLEN_BOUND
29466         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29467         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29468         not exposed.  Also, it uses a slightly tighter bound than before;
29469         though this makes no practical difference, we might as well be as
29470         tight as we easily can.
29471
29472         ftoastr: new module, for lossless conversion of floats to short strings
29473         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29474         * modules/ftoastr: New files.
29475
29476 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29477
29478         bootstrap: port to Solaris sed
29479         * build-aux/bootstrap (get_version): Port to Solaris sed.
29480         See Ralf Wildenhues's note in
29481         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29482
29483 2010-11-14  Jim Meyering  <meyering@redhat.com>
29484
29485         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29486         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29487         and move definition closer to sole use.
29488
29489 2010-11-13  Jim Meyering  <meyering@redhat.com>
29490
29491         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29492         Now we require at least autoconf-2.59, which means the work-around
29493         is no longer needed.
29494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29495         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29496         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29497         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29498         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29499
29500 2010-11-13  Bruno Haible  <bruno@clisp.org>
29501
29502         rename, renameat: Avoid test failures at NFS mounted locations.
29503         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29504         functions.
29505         (test_rename): Use assert_nonexistent.
29506         * tests/test-rename.c: Include <dirent.h>.
29507         * tests/test-renameat.c: Likewise.
29508         Reported by Gary V. Vaughan <gary@gnu.org>.
29509
29510         rename, renameat: Document Linux bug with NFS
29511         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29512         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29513         * doc/posix-functions/renameat.texi: Likewise.
29514         Suggested by Eric Blake.
29515
29516 2010-11-13  Bruno Haible  <bruno@clisp.org>
29517
29518         rename test: Add comments.
29519         * tests/test-rename.h (test_rename): Add structure and comments.
29520
29521 2010-11-13  Eric Blake  <eblake@redhat.com>
29522
29523         maintainer-makefile: cover a few more files
29524         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29525         scripts generated within C files, for libvirt.
29526
29527 2010-11-13  Bruno Haible  <bruno@clisp.org>
29528
29529         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29530         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29531         character, return the number of bytes that belong together, not always
29532         1.
29533         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29534         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29535         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29536         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29537         number of bytes of an invalid character.
29538         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29539         (main): Invoke it.
29540         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29541         results.
29542         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29543         malformed byte sequences.
29544         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29545         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29546         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29547         Reported by Ben Pfaff and Paolo Bonzini.
29548
29549 2010-11-13  Bruno Haible  <bruno@clisp.org>
29550
29551         openat: Work around glibc bug with fchownat() and empty file names.
29552         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29553         (gl_FUNC_FCHOWNAT): Invoke it.
29554         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29555         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29556         Reported by Gary V. Vaughan <gary@gnu.org>.
29557
29558 2010-11-13  Bruno Haible  <bruno@clisp.org>
29559
29560         openat: Ensure autoconf macro ordering.
29561         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29562         gl_USE_SYSTEM_EXTENSIONS.
29563         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29564
29565 2010-11-13  Bruno Haible  <bruno@clisp.org>
29566
29567         Update comments.
29568         * lib/unistr/u8-check.c: Update file name in comments.
29569         * lib/unistr/u8-mblen.c: Likewise.
29570         * lib/unistr/u8-prev.c: Likewise.
29571         * lib/unistr/u8-strmblen.c: Likewise.
29572         * lib/unistr/u8-strmbtouc.c: Likewise.
29573
29574 2010-11-13  Jim Meyering  <meyering@redhat.com>
29575
29576         tests: avoid test failure on Solaris 10 due to lack of PATH export
29577         * tests/test-update-copyright.sh: Don't forget to export PATH.
29578
29579         init.sh: ensure that IFS is defined, just in case...
29580         * tests/init.sh (setup_): Ensure that IFS is defined,
29581         so that saving and restoring it works as expected.  This
29582         appears to be useful at least for an old version of dash
29583         from a long time ago (RH 6).  See here for details:
29584         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29585
29586         maint.mk: tighten "test a == b" check
29587         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29588         test to files that contain something like #!/bin/sh.
29589         Without this, coreutils would get two false positives in
29590         the comments of C source files.
29591
29592 2010-11-12  Eric Blake  <eblake@redhat.com>
29593
29594         bootstrap: fix typo in previous attempt
29595         * build-aux/bootstrap (buildreq): Correct the grouping.
29596         Reported by Paul Eggert.
29597
29598         maintainer-makefile: prohibit test x == x
29599         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29600         Based on a report by Matthias Bolte.
29601
29602         bootstrap: allow FreeBSD gzip
29603         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29604         which has no '.' and goes to stderr.
29605         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29606         Reported by Matthias Bolte.
29607
29608         maintainer-makefile: check for i18n setup
29609         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29610         will likely work.
29611
29612 2010-11-12  Bruno Haible  <bruno@clisp.org>
29613
29614         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29615         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29616         * lib/nanosleep.c (nanosleep): Likewise.
29617
29618 2010-11-11  Bruno Haible  <bruno@clisp.org>
29619
29620         fcntl-h: Fix for use of C++ on glibc systems.
29621         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29622         also on glibc systems in C++ mode.
29623         Reported by Gary V. Vaughan <gary@gnu.org>.
29624
29625 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29626
29627         mknod: avoid false failure with dash
29628         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29629
29630 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29631
29632         unlink: Fix "is it should" typo in diagnostic.
29633         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29634         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29635
29636 2010-11-11  Bruno Haible  <bruno@clisp.org>
29637
29638         Tests for module 'strerror_r-posix'.
29639         * modules/strerror_r-posix-tests: New file.
29640         * tests/test-strerror_r.c: New file.
29641         * tests/test-string-c++.cc: Check the signature of strerror_r.
29642
29643         New module 'strerror_r-posix'.
29644         * lib/string.in.h (strerror_r): New declaration.
29645         * lib/strerror_r.c: New file.
29646         * m4/strerror_r.m4: New file.
29647         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29648         of strerror_r.
29649         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29650         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29651         * modules/strerror_r-posix: New file.
29652         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29653         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29654         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29655         portability problems.
29656
29657 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29658
29659         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29660         line is also considered for output. Quoted function name in shell
29661         command, so temporary files for functions like MyClass::operator()
29662         are removed correctly without errors.
29663
29664 2010-11-09  Bruno Haible  <bruno@clisp.org>
29665
29666         * doc/posix-functions/strerror.texi: List more failing platforms.
29667
29668         * doc/posix-functions/strerror.texi: Add a comment.
29669
29670 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29671
29672         fdopendir: fix bug on MacOS X when low on file descriptors
29673
29674         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29675         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29676         All callers changed.
29677         (fdopendir): Invoke save_cwd at the top level, not after using
29678         multiple dup() calls to use up file descriptors.  Then retry
29679         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29680         less than the maximum number of open file descriptors, because
29681         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29682         on Mac OS X 10.6.4 for tar 1.24
29683         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29684         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29685         and for tar 1.25
29686         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29687
29688 2010-11-07  Bruno Haible  <bruno@clisp.org>
29689
29690         vasnprintf: Support I flag on glibc systems.
29691         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29692         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29693         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29694         snprintf function.
29695         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29696         glibc systems.
29697         * tests/test-vasnprintf-posix3.c: New file.
29698         * modules/vasnprintf-posix-tests (Files): Add it.
29699         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29700
29701 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29702
29703         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29704         * MODULES.html.sh: For compiler warnings, use name
29705         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29706
29707 2010-11-05  Eric Blake  <eblake@redhat.com>
29708
29709         ceil, floor: avoid spurious failure with icc
29710         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29711         [denormals-as-zero] when optimizing without -mieee-fp option.
29712         * tests/test-floorf2.c (floorf_reference): Likewise.
29713         * tests/test-ceilf1.c (dummy): New function.
29714         (main): Use it to outsmart icc's optimization.
29715         * tests/test-floorf1.c (dummy, main): Likewise.
29716
29717         tests: require working signbit
29718         * modules/ceilf-tests (Depends-on): Add signbit.
29719         * modules/ceill-tests (Depends-on): Likewise.
29720         * modules/floorf-tests (Depends-on): Likewise.
29721         * modules/floorl-tests (Depends-on): Likewise.
29722         * modules/round-tests (Depends-on): Likewise.
29723         * modules/roundf-tests (Depends-on): Likewise.
29724         * modules/roundl-tests (Depends-on): Likewise.
29725         * modules/trunc-tests (Depends-on): Likewise.
29726         * modules/truncf-tests (Depends-on): Likewise.
29727         * modules/truncl-tests (Depends-on): Likewise.
29728
29729         strtod: work around icc bug
29730         * lib/strtod.c (minus_zero): Define to working value.
29731         (strtod): Use it to avoid icc bug.
29732
29733         copysign: enhance tests
29734         * modules/copysign-tests (Files): Add minus-zero.h.
29735         * tests/test-copysign.c (main): Also test zeros.
29736
29737 2010-11-04  Eric Blake  <eblake@redhat.com>
29738
29739         ceil, floor, round, trunc: enhance tests of -0
29740         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29741         * tests/test-ceill.c (main): Likewise.
29742         * tests/test-floorf1.c (main): Likewise.
29743         * tests/test-floorl.c (main): Likewise.
29744         * tests/test-round1.c (main): Likewise.
29745         * tests/test-roundf1.c (main): Likewise.
29746         * tests/test-roundl.c (main): Likewise.
29747         * tests/test-trunc1.c (main): Likewise.
29748         * tests/test-truncf1.c (main): Likewise.
29749         * tests/test-truncl.c (main): Likewise.
29750
29751 2010-11-04  Eric Blake  <eblake@redhat.com>
29752
29753         frexp, tests: work around ICC bug with -zero
29754         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29755         works with more compilers.
29756         * tests/minus-zero.h: New file.
29757         * modules/ceilf-tests (Files): Include it.
29758         * modules/ceill-tests (Files): Likewise.
29759         * modules/floorf-tests (Files): Likewise.
29760         * modules/floorl-tests (Files): Likewise.
29761         * modules/frexp-nolibm-tests (Files): Likewise.
29762         * modules/frexp-tests (Files): Likewise.
29763         * modules/frexpl-nolibm-tests (Files): Likewise.
29764         * modules/frexpl-tests (Files): Likewise.
29765         * modules/isnan-tests (Files): Likewise.
29766         * modules/isnand-nolibm-tests (Files): Likewise.
29767         * modules/isnand-tests (Files): Likewise.
29768         * modules/isnanf-nolibm-tests (Files): Likewise.
29769         * modules/isnanf-tests (Files): Likewise.
29770         * modules/isnanl-nolibm-tests (Files): Likewise.
29771         * modules/isnanl-tests (Files): Likewise.
29772         * modules/round-tests (Files): Likewise.
29773         * modules/roundf-tests (Files): Likewise.
29774         * modules/roundl-tests (Files): Likewise.
29775         * modules/ldexpl-tests (Files): Likewise.
29776         * modules/signbit-tests (Files): Likewise.
29777         * modules/snprintf-posix-tests (Files): Likewise.
29778         * modules/sprintf-posix-tests (Files): Likewise.
29779         * modules/strtod-tests (Files): Likewise.
29780         * modules/trunc-tests (Files): Likewise.
29781         * modules/truncf-tests (Files): Likewise.
29782         * modules/truncl-tests (Files): Likewise.
29783         * modules/vsnprintf-posix-tests (Files): Likewise.
29784         * modules/vsprintf-posix-tests (Files): Likewise.
29785         * modules/vasnprintf-posix-tests (Files): Likewise.
29786         * modules/vasprintf-posix-tests (Files): Likewise.
29787         * tests/test-ceilf1.c (main): Use it.
29788         * tests/test-ceill.c (main): Likewise.
29789         * tests/test-floorf1.c (main): Likewise.
29790         * tests/test-floorl.c (main): Likewise.
29791         * tests/test-frexp.c (main): Likewise.
29792         * tests/test-frexpl.c (main): Likewise.
29793         * tests/test-isnan.c (main): Likewise.
29794         * tests/test-isnand.h (main): Likewise.
29795         * tests/test-isnanf.h (main): Likewise.
29796         * tests/test-isnanl.h (main): Likewise.
29797         * tests/test-ldexpl.c (main): Likewise.
29798         * tests/test-round.c (main): Likewise.
29799         * tests/test-roundf.c (main): Likewise.
29800         * tests/test-roundl.c (main): Likewise.
29801         * tests/test-signbit.c (test_signbitf, test_signbitd)
29802         (test_signbitl): Likewise.
29803         * tests/test-snprintf-posix.h (test_function): Likewise.
29804         * tests/test-sprintf-posix.h (test_function): Likewise.
29805         * tests/test-strtod.c (main): Likewise.
29806         * tests/test-trunc1.c (main): Likewise.
29807         * tests/test-truncf1.c (main): Likewise.
29808         * tests/test-truncl.c (main): Likewise.
29809
29810         isnanl: work around icc bug
29811         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29812
29813 2010-11-03  Eric Blake  <eblake@redhat.com>
29814
29815         tests: fix compiler warnings
29816         * tests/test-getopt.h (test_getopt): Fix condition.
29817         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29818         * tests/test-pipe2.c (main): Likewise.
29819         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29820
29821         utimens: fix broken m4 test
29822         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29823
29824 2010-10-28  Bruno Haible  <bruno@clisp.org>
29825
29826         posix_spawn*, getdtablesize: Relax license.
29827         * modules/posix_spawn (License): Change to LGPLv2+.
29828         * modules/posix_spawnp (License): Likewise.
29829         * modules/posix_spawn-internal (License): Likewise.
29830         * modules/posix_spawnattr_init (License): Likewise.
29831         * modules/posix_spawnattr_getflags (License): Likewise.
29832         * modules/posix_spawnattr_setflags (License): Likewise.
29833         * modules/posix_spawnattr_getpgroup (License): Likewise.
29834         * modules/posix_spawnattr_setpgroup (License): Likewise.
29835         * modules/posix_spawnattr_getschedparam (License): Likewise.
29836         * modules/posix_spawnattr_setschedparam (License): Likewise.
29837         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29838         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29839         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29840         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29841         * modules/posix_spawnattr_getsigmask (License): Likewise.
29842         * modules/posix_spawnattr_setsigmask (License): Likewise.
29843         * modules/posix_spawnattr_destroy (License): Likewise.
29844         * modules/posix_spawn_file_actions_init (License): Likewise.
29845         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29846         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29847         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29848         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29849         * modules/getdtablesize (License): Likewise.
29850         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29851
29852 2010-10-26  Bruno Haible  <bruno@clisp.org>
29853
29854         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29855         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29856         Cygwin and mingw.
29857         Suggested by Eric Blake.
29858
29859 2010-10-26  Bruno Haible  <bruno@clisp.org>
29860
29861         stdio: Work around compilation error due to renameat() on Solaris 10.
29862         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29863         * lib/renameat.c: Don't include <unistd.h> here.
29864         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29865         Reported by Paul Eggert and Eric Blake.
29866
29867 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29868
29869         renameat: port to Solaris 10, which declares renameat in unistd.h
29870
29871         * lib/renameat.c: Include unistd.h before stdio.h, because
29872         Solaris 10 declares renameat in unistd.h.  Problem encountered
29873         when building GNU tar 1.24 on Solaris 10.
29874
29875 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29876
29877         fdopendir: fix C89 compilation
29878         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29879         compilers.
29880
29881 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29882
29883         inttostr: simplify by removing unnecessary redundancy
29884         * lib/anytostr.c: Don't include verify.h.
29885         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29886         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29887         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29888         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29889         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29890         Likewise.
29891         * modules/inttostr (Depends-on): Remove 'verify'.
29892
29893 2010-10-23  Bruno Haible  <bruno@clisp.org>
29894
29895         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29896         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29897         Reported by Eric Blake.
29898
29899 2010-10-23  Bruno Haible  <bruno@clisp.org>
29900
29901         Tests: Fix LOCALE_JA on MirBSD 10.
29902         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29903         to an UTF-8 locale.
29904         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29905         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29906         Reported by Eric Blake.
29907
29908 2010-10-21  Bruno Haible  <bruno@clisp.org>
29909
29910         nl_langinfo test: Avoid test failure on NetBSD 5.
29911         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29912         Reported by Eric Blake.
29913
29914 2010-10-21  Eric Blake  <eblake@redhat.com>
29915
29916         c-stack: work around libsigsegv 2.8 bug
29917         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29918         overflow on at least PowerPC64.
29919
29920 2010-10-17  Bruno Haible  <bruno@clisp.org>
29921
29922         userspec: Drop redundant file.
29923         * modules/userspec (Files): Remove lib/inttostr.h.
29924
29925 2010-10-17  Bruno Haible  <bruno@clisp.org>
29926
29927         nl_langinfo tests: Silence some warnings.
29928         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29929         Reported by Jim Meyering.
29930
29931 2010-10-17  Bruno Haible  <bruno@clisp.org>
29932
29933         Make use of GCC's attribute __alloc_size__.
29934         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29935         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29936         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29937         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29938         __alloc_size__.
29939         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29940         Suggested by Jim Meyering.
29941
29942 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29943
29944         bootstrap: anchor .gitignore entries.
29945         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29946         with...
29947         (insert_vc_ignore): ... this new function, which prepends `/' to
29948         all .gitignore entries before passing them to
29949         insert_sorted_if_absent.
29950
29951 2010-10-16  Bruno Haible  <bruno@clisp.org>
29952
29953         nextafter: Fix configure check.
29954         * modules/nextafter (configure.ac): Correct expected prototype.
29955
29956 2010-10-16  Bruno Haible  <bruno@clisp.org>
29957
29958         termios: Update documentation.
29959         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29960
29961 2010-10-16  Bruno Haible  <bruno@clisp.org>
29962
29963         tests: Make them compile with TinyCC.
29964         * tests/test-strstr.c (main): Remove parentheses around array
29965         initializer.
29966
29967 2010-10-15  Eric Blake  <eblake@redhat.com>
29968
29969         ignore-value: make header idempotent
29970         * lib/ignore-value.h: Add double-inclusion guards.
29971         Reported by Stefan Berger.
29972
29973 2010-10-15  Jim Meyering  <meyering@redhat.com>
29974
29975         GNUmakefile: handle "stable" target, not "major"
29976         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29977         lists in maint.mk and announce-gen.  Without this, "make stable"
29978         would fail to ensure that $(VERSION) is up to date.
29979
29980 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29981
29982         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29983         & co.
29984
29985 2010-10-14  Bruno Haible  <bruno@clisp.org>
29986
29987         vasnprintf: Don't set errno to 0.
29988         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29989         block that sets it to 0.
29990         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29991
29992 2010-10-14  Bruno Haible  <bruno@clisp.org>
29993
29994         socketlib: Fix.
29995         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29996         gl_PREREQ_SYS_H_WINSOCK2.
29997         Reported by Ian Beckwith <ianb@erislabs.net>.
29998
29999 2010-10-13  Jim Meyering  <meyering@redhat.com>
30000
30001         test-select-stdin.c: avoid warn_unused_result warnings
30002         * tests/test-select-stdin.c: Include "macros.h".
30003         ASSERT that read and fflush succeed.
30004
30005 2010-10-13  Jim Meyering  <meyering@redhat.com>
30006
30007         git-version-gen: do require git-VC'd files in cwd
30008         * build-aux/git-version-gen: Reject a git version string
30009         if there are no commits associated with the current directory.
30010         This avoids an unlikely false-positive (unrelated dir whose parent
30011         repository also contains a tag matching v*), as pointed out
30012         by Giuseppe Scrivano in
30013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30014
30015 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30016
30017         argv-iter: omit nonconforming declaration
30018         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30019         enum arg_iter_err declaration, which doesn't conform to C99.
30020         Solaris 10 cc warns about this.
30021
30022 2010-10-13  Eric Blake  <eblake@redhat.com>
30023
30024         termios: fix compilation on mingw
30025         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30026         (gl_TERMIOS_H): Adjust it on mingw.
30027         * modules/termios (Makefile.am): Substitute new key.
30028         * lib/termios.in.h (includes): Make include_next conditional.
30029         * doc/posix-headers/termios.texi (termios.h): Update
30030         documentation.
30031         Reported by Daniel P. Berrange.
30032
30033 2010-10-13  Jim Meyering  <meyering@redhat.com>
30034
30035         git-version-gen: don't require that .git/ be in the current dir
30036         * build-aux/git-version-gen: Adjust this script so that it works
30037         when run from any working directory beneath the top-level .git/-
30038         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30039         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30040
30041         test-select: avoid warn_unused_result warnings
30042         * tests/test-select.c: Include "macros.h".
30043         ASSERT that each call to read, write, and pipe succeeds.
30044         While not technically required, also check each "close".
30045         * modules/select-tests (Files): Add tests/macros.h.
30046
30047         test-symlinkat: remove declaration of unused local
30048         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30049
30050         test-inttostr: avoid shadowing warnings
30051         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30052         and use malloc rather than the stack for the same reason as
30053         mentioned in the comment justifying the other allocation.
30054
30055 2010-10-11  Bruno Haible  <bruno@clisp.org>
30056
30057         stdlib: Allow multiple gnulib generated replacements to coexist.
30058         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30059         Reported by Sam Steingold <sds@gnu.org>.
30060
30061 2010-10-11  Jim Meyering  <meyering@redhat.com>
30062
30063         fix a documentation typo
30064         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30065
30066 2010-10-11  Eric Blake  <eblake@redhat.com>
30067
30068         futimens: work around Solaris 11 bug
30069         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30070         * tests/test-futimens.h (test_futimens): Enhance, rather than
30071         weaken test.
30072         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30073
30074 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30075
30076         Indentation.
30077         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30078         higher-level operators more to the left.
30079
30080 2010-10-11  Jim Meyering  <meyering@redhat.com>
30081
30082         test-futimens: avoid unwarranted test failure on Solaris 5.11
30083         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30084         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30085         because it tries to dereference the NULL name argument.
30086
30087 2010-10-11  Bruno Haible  <bruno@clisp.org>
30088
30089         Indentation.
30090         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30091         indentation.
30092
30093 2010-10-11  Jim Meyering  <meyering@redhat.com>
30094
30095         spawn.in.h: make indentation consistent with parentheses
30096         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30097         Make indentation consistent with parentheses.
30098
30099 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30100
30101         Fix mismatched parens in previous commit
30102         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30103         parens.
30104
30105 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30106
30107         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30108
30109         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30110         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30111         * lib/malloca.c: Include "verify.h".
30112         (verify1): Remove, replacing with a verify call.
30113         * lib/relocwrapper.c (verify1): Likewise.
30114         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30115         Likewise.
30116         * modules/malloca (Depends-on): Add 'verify'.
30117         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30118         * modules/vasnprintf (Depends-on): Add 'verify'.
30119         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30120         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30121         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30122         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30123         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30124         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30125         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30126
30127         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30128
30129         Formerly the style was sometimes 2*X - 1, because the C standard
30130         was wrongly thought to disallow ?: in integral constant expressions.
30131         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30132         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30133         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30134         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30135         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30136         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30137         verify that time_t cannot be floating.
30138
30139 2010-10-08  Eric Blake  <eblake@redhat.com>
30140
30141         time: enforce recent POSIX ruling that time_t is integral
30142         * lib/time.in.h (__time_t_must_be_integral): Detect any
30143         problematic systems, allowing the rest of gnulib to assume POSIX.
30144
30145 2010-10-08  Jim Meyering  <meyering@redhat.com>
30146
30147         fdopendir: fix a bug on systems lacking openat and /proc support
30148         OpenBSD 4.7 is one such system.  The most noticeable effect was
30149         failure of any application making nontrivial use of fts: rm, du,
30150         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30151           ./rm: traversal failed: `a': Bad file descriptor
30152         Debugging that, you see that even though FD 6 was closed just
30153         prior to the opendir call in fd_clone_opendir, its resulting
30154         dir->dd_fd was 8, rather than the expected value of 6:
30155
30156         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30157         93                close (fd);
30158         (gdb) n
30159         94                dir = fd_clone_opendir (dupfd);
30160         (gdb) n
30161         95                saved_errno = errno;
30162         (gdb) p dir->dd_fd
30163         $11 = 8
30164
30165         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30166         The problem is that on OpenBSD, fd_clone_opendir has to resort
30167         to using the old-style save/restore CWD mechanism, due to its
30168         lack of openat/proc support, and *that* would steal the FD (6)
30169         that opendir was supposed to use.
30170
30171         The fix is to squirrel away the desired FD so that save_cwd uses a
30172         different one, and then free the dest FD right before calling opendir.
30173         That guarantees opendir will use the required file descriptor.
30174
30175         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30176
30177 2010-10-08  Bruno Haible  <bruno@clisp.org>
30178
30179         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30180         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30181
30182 2010-10-08  Bruno Haible  <bruno@clisp.org>
30183
30184         nanosleep: Make replacement POSIX compliant.
30185         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30186         is out of range.
30187         Reported by Jim Meyering.
30188
30189 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30190
30191         bootstrap: add hook for altering gnulib.mk, for Bison
30192         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30193         the Bison bootstrapping process can rewrite file names and variables
30194         in this file before later parts of 'bootstrap' use the file.
30195         Bison wants to include lib/gnulib.mk from the top-level makefile,
30196         so it needs the file names in this file to be relative to the top
30197         level, not relative to lib; plus it needs variable names to be
30198         rewritten.
30199         (slurp): Use the new function.
30200
30201         bootstrap: reformat for readability
30202         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30203
30204 2010-10-08  Eric Blake  <eblake@redhat.com>
30205
30206         docs: update cygwin progress
30207         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30208         1.7.7.
30209         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30210         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30211         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30212         * doc/posix-functions/carg.texi (carg): Likewise.
30213         * doc/posix-functions/cargf.texi (cargf): Likewise.
30214         * doc/posix-functions/casin.texi (casin): Likewise.
30215         * doc/posix-functions/casinf.texi (casinf): Likewise.
30216         * doc/posix-functions/casinh.texi (casinh): Likewise.
30217         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30218         * doc/posix-functions/catan.texi (catan): Likewise.
30219         * doc/posix-functions/catanf.texi (catanf): Likewise.
30220         * doc/posix-functions/catanh.texi (catanh): Likewise.
30221         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30222         * doc/posix-functions/ccos.texi (ccos): Likewise.
30223         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30224         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30225         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30226         * doc/posix-functions/cexp.texi (cexp): Likewise.
30227         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30228         * doc/posix-functions/cimag.texi (cimag): Likewise.
30229         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30230         * doc/posix-functions/clog.texi (clog): Likewise.
30231         * doc/posix-functions/clogf.texi (clogf): Likewise.
30232         * doc/posix-functions/conj.texi (conj): Likewise.
30233         * doc/posix-functions/conjf.texi (conjf): Likewise.
30234         * doc/posix-functions/cpow.texi (cpow): Likewise.
30235         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30236         * doc/posix-functions/cproj.texi (cproj): Likewise.
30237         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30238         * doc/posix-functions/creal.texi (creal): Likewise.
30239         * doc/posix-functions/crealf.texi (crealf): Likewise.
30240         * doc/posix-functions/csin.texi (csin): Likewise.
30241         * doc/posix-functions/csinf.texi (csinf): Likewise.
30242         * doc/posix-functions/csinh.texi (csinh): Likewise.
30243         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30244         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30245         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30246         * doc/posix-functions/ctan.texi (ctan): Likewise.
30247         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30248         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30249         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30250         * doc/posix-headers/complex.texi (complex.h): Likewise.
30251
30252 2010-10-07  Jim Meyering  <meyering@redhat.com>
30253
30254         parse-datetime: avoid compilation failure on OpenBSD 4.7
30255         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30256         This works around a compilation failure on OpenBSD 4.7:
30257         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30258
30259 2010-10-07  Eric Blake  <eblake@redhat.com>
30260
30261         docs: update cygwin progress
30262         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30263         1.7.6.
30264         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30265         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30266         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30267         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30268         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30269         Likewise.
30270         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30271         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30272         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30273         Likewise.
30274         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30275         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30276         Likewise.
30277         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30278         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30279         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30280         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30281         Likewise.
30282         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30283         Likewise.
30284         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30285
30286         docs: update parse-datetime history
30287         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30288         documentation of this function's history and alternatives.
30289
30290         cygwin: use more robust version check
30291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30292         exclude an eventual cygwin 1.9.1.
30293         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30295         (gl_FUNC_STRCASESTR): Likewise.
30296         Reported by Bruno Haible.
30297
30298 2010-10-06  Bruno Haible  <bruno@clisp.org>
30299
30300         string, sys_select: Avoid #including large headers unless necessary.
30301         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30302         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30303         OSF/1, BeOS, Haiku.
30304         Reported by Jim Meyering.
30305
30306 2010-10-05  Eric Blake  <eblake@redhat.com>
30307
30308         memmem, strstr, strcasestr: fix bug with long periodic needle
30309         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30310         periodic needle having false positive.
30311         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30312         and cygwin 1.7.7.
30313         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30315         (gl_FUNC_STRCASESTR): Likewise.
30316         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30317         * tests/test-memmem.c (main): Expose the bug.
30318         * tests/test-strcasestr.c (main): Likewise.
30319         * tests/test-strstr.c (main): Likewise.
30320         * tests/test-c-strcasestr.c (main): Likewise.
30321         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30322         * doc/posix-functions/strstr.texi (strstr): Likewise.
30323         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30324         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30325
30326 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30327
30328         parse-datetime: do some more renaming
30329         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30330         parse_datetime, not get_date.  Mention the renaming.
30331         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30332         in comments.
30333         * m4/bison.m4: Likewise.
30334
30335 2010-10-05  Eric Blake  <eblake@redhat.com>
30336
30337         parse-datetime: better name than get_date
30338         * NEWS: Reword the deprecation notice.
30339         * modules/get_date: Rename to modules/parse-datetime.
30340         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30341         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30342         * lib/get_date.y: Rename to lib/parse-datetime.y.
30343         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30344         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30345         * doc/getdate.texi: Provide fallback wrapper.
30346         * lib/getdate.h: Move guts, and wrap...
30347         * lib/parse-datetime.h: ...new file.
30348         * lib/parse-datetime.y (get_date): Rename...
30349         (parse_datetime): ...to this.
30350         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30351         (gl_PARSE_DATETIME): ...to this.
30352         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30353         documentation.
30354         * modules/getdate (Files): Provide fallback docs and header.
30355         (Notice, Depends-on): Update references.
30356         * tests/test-parse-datetime.c: Likewise.
30357         * DEPENDENCIES: Likewise.
30358         * MODULES.html.sh (Date and time <time.h>): Likewise.
30359         * doc/parse-datetime.texi (Date input formats)
30360         (Authors of parse_datetime): Likewise.
30361         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30362         (Include): Likewise.
30363         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30364         * gnulib-tool: Likewise.
30365         * m4/bison.m4 (gl_BISON): Likewise.
30366         Suggested by Bruno Haible.
30367
30368 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30369
30370         more ports to Solaris tr, which needs [] around ranges
30371         * gnulib-tool: Solaris tr needs [] around ranges.
30372         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30373         * tests/test-pipe-filter-gi1.c (main): Likewise.
30374         * tests/test-pipe-filter-ii1.c (main): Likewise.
30375
30376 2010-10-05  Eric Blake  <eblake@redhat.com>
30377
30378         bootstrap: fix Solaris regression
30379         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30380         around ranges.
30381         Reported by Pádraig Brady.
30382
30383         bootstrap: work with pkg-config
30384         * build-aux/bootstrap (check_versions): Also transliterate - in
30385         prerequisite name.
30386         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30387         prerequisites that were already found, to avoid confusion.
30388         Reported by Justin Clift.
30389
30390         faccessat: remove unused wrappers
30391         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30392         presence of these wrappers dragged in -lgen on Solaris.
30393         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30394
30395 2010-10-05  Jim Meyering  <meyering@redhat.com>
30396
30397         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30398         * Makefile (sc_pragma_columns): New syntax-check rule.
30399
30400 2010-10-04  Bruno Haible  <bruno@clisp.org>
30401
30402         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30403         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30404         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30405         Reported by Bruce Korb and Eric Blake.
30406
30407 2010-10-04  Bruno Haible  <bruno@clisp.org>
30408
30409         threadlib: Make option --with-libpth-prefix work.
30410         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30411         use $LIBPTH, not just -lpth.
30412
30413 2010-10-04  Bruno Haible  <bruno@clisp.org>
30414
30415         Avoid line length limitation from HP NonStop system header files.
30416         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30417         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30418         * lib/ctype.in.h: Likewise.
30419         * lib/dirent.in.h: Likewise.
30420         * lib/errno.in.h: Likewise.
30421         * lib/fcntl.in.h: Likewise.
30422         * lib/float.in.h: Likewise.
30423         * lib/getopt.in.h: Likewise.
30424         * lib/iconv.in.h: Likewise.
30425         * lib/inttypes.in.h: Likewise.
30426         * lib/langinfo.in.h: Likewise.
30427         * lib/locale.in.h: Likewise.
30428         * lib/math.in.h: Likewise.
30429         * lib/netdb.in.h: Likewise.
30430         * lib/netinet_in.in.h: Likewise.
30431         * lib/poll.in.h: Likewise.
30432         * lib/pthread.in.h: Likewise.
30433         * lib/pty.in.h: Likewise.
30434         * lib/sched.in.h: Likewise.
30435         * lib/se-selinux.in.h: Likewise.
30436         * lib/search.in.h: Likewise.
30437         * lib/signal.in.h: Likewise.
30438         * lib/spawn.in.h: Likewise.
30439         * lib/stdarg.in.h: Likewise.
30440         * lib/stddef.in.h: Likewise.
30441         * lib/stdint.in.h: Likewise.
30442         * lib/stdio.in.h: Likewise.
30443         * lib/stdlib.in.h: Likewise.
30444         * lib/string.in.h: Likewise.
30445         * lib/strings.in.h: Likewise.
30446         * lib/sys_file.in.h: Likewise.
30447         * lib/sys_ioctl.in.h: Likewise.
30448         * lib/sys_select.in.h: Likewise.
30449         * lib/sys_socket.in.h: Likewise.
30450         * lib/sys_stat.in.h: Likewise.
30451         * lib/sys_time.in.h: Likewise.
30452         * lib/sys_times.in.h: Likewise.
30453         * lib/sys_utsname.in.h: Likewise.
30454         * lib/sys_wait.in.h: Likewise.
30455         * lib/sysexits.in.h: Likewise.
30456         * lib/termios.in.h: Likewise.
30457         * lib/time.in.h: Likewise.
30458         * lib/unistd.in.h: Likewise.
30459         * lib/wchar.in.h: Likewise.
30460         * lib/wctype.in.h: Likewise.
30461         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30462         * modules/ctype (Makefile.am): Likewise.
30463         * modules/dirent (Makefile.am): Likewise.
30464         * modules/errno (Makefile.am): Likewise.
30465         * modules/fcntl-h (Makefile.am): Likewise.
30466         * modules/float (Makefile.am): Likewise.
30467         * modules/getopt-posix (Makefile.am): Likewise.
30468         * modules/iconv-h (Makefile.am): Likewise.
30469         * modules/inttypes (Makefile.am): Likewise.
30470         * modules/langinfo (Makefile.am): Likewise.
30471         * modules/locale (Makefile.am): Likewise.
30472         * modules/math (Makefile.am): Likewise.
30473         * modules/netdb (Makefile.am): Likewise.
30474         * modules/netinet_in (Makefile.am): Likewise.
30475         * modules/poll-h (Makefile.am): Likewise.
30476         * modules/pthread (Makefile.am): Likewise.
30477         * modules/pty (Makefile.am): Likewise.
30478         * modules/sched (Makefile.am): Likewise.
30479         * modules/search (Makefile.am): Likewise.
30480         * modules/selinux-h (Makefile.am): Likewise.
30481         * modules/signal (Makefile.am): Likewise.
30482         * modules/spawn (Makefile.am): Likewise.
30483         * modules/stdarg (Makefile.am): Likewise.
30484         * modules/stddef (Makefile.am): Likewise.
30485         * modules/stdint (Makefile.am): Likewise.
30486         * modules/stdio (Makefile.am): Likewise.
30487         * modules/stdlib (Makefile.am): Likewise.
30488         * modules/string (Makefile.am): Likewise.
30489         * modules/strings (Makefile.am): Likewise.
30490         * modules/sys_file (Makefile.am): Likewise.
30491         * modules/sys_ioctl (Makefile.am): Likewise.
30492         * modules/sys_select (Makefile.am): Likewise.
30493         * modules/sys_socket (Makefile.am): Likewise.
30494         * modules/sys_stat (Makefile.am): Likewise.
30495         * modules/sys_time (Makefile.am): Likewise.
30496         * modules/sys_times (Makefile.am): Likewise.
30497         * modules/sys_utsname (Makefile.am): Likewise.
30498         * modules/sys_wait (Makefile.am): Likewise.
30499         * modules/sysexits (Makefile.am): Likewise.
30500         * modules/termios (Makefile.am): Likewise.
30501         * modules/time (Makefile.am): Likewise.
30502         * modules/unistd (Makefile.am): Likewise.
30503         * modules/wchar (Makefile.am): Likewise.
30504         * modules/wctype (Makefile.am): Likewise.
30505
30506 2010-10-04  Bruno Haible  <bruno@clisp.org>
30507
30508         read-file tests: Avoid a test failure on NonStop Kernel.
30509         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30510         a regular file.
30511         Reported by Joachim Schmitz <schmitz@hp.com>.
30512
30513 2010-10-03  Bruno Haible  <bruno@clisp.org>
30514
30515         gnulib-tool: Fixes for --create-testdir with --libtool.
30516         * gnulib-tool (func_get_automake_snippet): Don't augment
30517         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30518         an executable.
30519         (func_create_testdir): Handle module 'alloca' like func_import.
30520         Reported by Bruce Korb <bruce.korb@gmail.com>.
30521
30522 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30523
30524         Avoid some lines longer than 80 characters.
30525         * lib/stdint.in.h: Break long comment lines.
30526         * lib/math.in.h: Likewise.
30527         (_GL_NUM_UINT_WORDS): New macro, for readability.
30528         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30529         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30530         * lib/stdlib.in.h: Likewise.
30531         * lib/spawn.in.h: Likewise.
30532         * lib/sys_socket.in.h: Update an URL.
30533         * lib/sys_stat.in.h: Break long line.
30534
30535 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30536
30537         Improve pmccabe2html.
30538         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30539         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30540         when the sources change. Remove the line in the HTML about "Used
30541         ranges" (which implied that there might be other unused ranges),
30542         rename "Resume" to "Summary" (easier to understand for more users).
30543         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30544         styles, and some unnecessary blank lines.
30545
30546 2010-10-03  Bruno Haible  <bruno@clisp.org>
30547             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30548
30549         acl: Add support for ACLs on NonStop Kernel.
30550         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30551         Check whether the function aclsort() exists.
30552         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30553         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30554         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30555         (acl_nontrivial [HAVE_ACLSORT]: New function.
30556         (file_has_acl): Implement for NonStop Kernel.
30557         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30558         (qset_acl): Implement for NonStop Kernel.
30559         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30560         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30561         (main): Implement for NonStop Kernel.
30562         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30563         Kernel. Handle this flavor.
30564         * tests/test-set-mode-acl.sh: Likewise.
30565         * tests/test-copy-acl.sh: Likewise.
30566         * tests/test-copy-file.sh: Likewise.
30567
30568 2010-10-03  Bruno Haible  <bruno@clisp.org>
30569
30570         Info about ACLs on NonStop Kernel.
30571         * doc/acl-resources.txt: Add info about NonStop Kernel.
30572         References by Joachim Schmitz <schmitz@hp.com>.
30573
30574 2010-10-02  Bruno Haible  <bruno@clisp.org>
30575
30576         Define missing EDQUOT on NonStop Kernel.
30577         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30578         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30580         missing.
30581         * doc/posix-headers/errno.texi: Mention the NSK bug.
30582         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30583         Reported by Joachim Schmitz <schmitz@hp.com>.
30584
30585 2010-10-02  Bruno Haible  <bruno@clisp.org>
30586
30587         Update doc for POSIX:2008.
30588         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30589         Update URL of POSIX specification.
30590
30591 2010-10-02  Bruno Haible  <bruno@clisp.org>
30592
30593         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30594         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30595         from gnulib, not from Automake.
30596
30597 2010-10-02  Bruno Haible  <bruno@clisp.org>
30598
30599         New module 'system-posix'.
30600         * modules/system-posix: New file.
30601         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30602         module is present.
30603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30604         GNULIB_SYSTEM_POSIX.
30605         * modules/stdlib (Depends-on): Remove sys_wait.
30606         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30607         * doc/posix-functions/system.texi: Mention the new module.
30608         * doc/posix-headers/stdlib.texi: Likewise.
30609         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30610         define test_sys_wait_macros to a no-op.
30611         Reported by Sam Steingold <sds@gnu.org>.
30612
30613 2010-09-30  Bruno Haible  <bruno@clisp.org>
30614
30615         More renaming from 'getdate' to 'get_date'.
30616         * doc/get_date.texi: Renamed from doc/getdate.texi.
30617         * modules/get_date (Files): Update.
30618         * MODULES.html.sh (Date and time <time.h>): Update.
30619         * DEPENDENCIES: Update.
30620         * gnulib-tool: Update comment.
30621         * m4/bison.m4 (gl_BISON): Likewise.
30622         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30623
30624 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30625
30626         bootstrap: support ACLOCAL_FLAGS during aclocal
30627         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30628         can add additional -I dir for third-party .m4 files.
30629
30630 2010-09-30  Eric Blake  <eblake@redhat.com>
30631
30632         bootstrap: use glibtoolize on MacOS
30633         * build-aux/bootstrap (check_versions): Convert libtool into
30634         libtoolize.
30635         (tool search): Move libtool check earlier, and look for
30636         glibtoolize for MacOS.
30637         (gnulib_tool_options): Auto-add --libtool when appropriate.
30638         Reported by Justin Clift.
30639
30640         poll: fix typo that broke test on MacOS
30641         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30642         Reported by Justin Clift.
30643
30644         getdate: rename to get_date
30645         Note: getdate.h is not renamed, to minimize client impact.
30646         * modules/getdate: Mark obsolete.  Move old contents...
30647         * modules/get_date: ...to new module name.
30648         * modules/getdate-tests: Move...
30649         * modules/get_date-tests: ...here.
30650         * m4/getdate.m4: Move...
30651         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30652         * lib/getdate.y: Move...
30653         * lib/get_date.y: ...here.
30654         * tests/test-getdate.c: Move...
30655         * tests/test-get_date.c: ...here.
30656         * doc/posix-functions/getdate.texi (getdate): Update name.
30657         * NEWS: Mention the change.
30658
30659 2010-09-29  Bruno Haible  <bruno@clisp.org>
30660
30661         Separate the module 'waitpid' from the module 'sys_wait'.
30662         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30663         present.
30664         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30665         gl_MODULE_INDICATOR_FOR_TESTS.
30666         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30667         * modules/sys_wait (Depends-on): Remove waitpid.
30668         (Makefile.am): Substitute GNULIB_WAITPID.
30669         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30670         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30671         signature only if the 'waitpid' module is present.
30672         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30673         * NEWS: Mention the change.
30674         * modules/grantpt (Depends-on): Add waitpid.
30675         * modules/wait-process (Depends-on): Likewise.
30676
30677 2010-09-29  Bruno Haible  <bruno@clisp.org>
30678
30679         More tests for module 'sys_wait'.
30680         * modules/sys_wait-c++-tests: New file.
30681         * tests/test-sys_wait-c++.cc: New file.
30682         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30683         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30684
30685 2010-09-29  Bruno Haible  <bruno@clisp.org>
30686
30687         New module 'waitpid'.
30688         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30689         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30690         Don't include <process.h>.
30691         (waitpid): Declare only, using modern idiom.
30692         * m4/waitpid.m4: New file.
30693         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30694         * modules/waitpid: New file.
30695         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30696         (Makefile.am): Update.
30697         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30698
30699 2010-09-28  Bruno Haible  <bruno@clisp.org>
30700
30701         poll: Assume ANSI C.
30702         * lib/poll.c (poll): Use an ANSI C declaration.
30703
30704 2010-09-28  Bruno Haible  <bruno@clisp.org>
30705
30706         poll-h: Create poll.h on all platforms.
30707         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30708         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30709         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30710         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30711         (gl_REPLACE_POLL_H): Don't set POLL_H.
30712         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30713         * modules/poll-h (Depends-on): Add include_next.
30714         (Makefile.am): Create poll.h unconditionally. Substitute also
30715         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30716
30717 2010-09-28  Bruno Haible  <bruno@clisp.org>
30718
30719         Tests for module 'poll-h'.
30720         * modules/poll-h-c++-tests: New file.
30721         * tests/test-poll-h-c++.cc: New file.
30722
30723         Tests for module 'poll-h'.
30724         * modules/poll-h-tests: New file.
30725         * tests/test-poll-h.c: New file.
30726
30727 2010-09-28  Bruno Haible  <bruno@clisp.org>
30728
30729         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30730         * modules/poll-h (Depends-on): Add 'extensions'.
30731
30732 2010-09-28  Bruno Haible  <bruno@clisp.org>
30733
30734         New module 'poll-h'.
30735         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30736         (poll): Use modern idiom.
30737         * modules/poll-h: New file.
30738         * modules/poll (Files): Remove lib/poll.in.h.
30739         (Depends-on): Add poll-h.
30740         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30741         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30742         * m4/poll_h.m4: New file.
30743         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30744         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30745         and invoke gl_REPLACE_POLL_H.
30746         * lib/poll.c: Use common idiom.
30747         * tests/test-poll.c: Likewise.
30748         * doc/posix-headers/poll.texi: Mention the poll-h module.
30749         Suggested by Eric Blake.
30750
30751 2010-09-26  Bruno Haible  <bruno@clisp.org>
30752
30753         sys_wait: Implement WSTOPSIG.
30754         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30755         Reported by Simon Josefsson.
30756
30757 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30758
30759         stdlib, sys_wait: Avoid compilation error on mingw.
30760         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30761
30762 2010-09-26  Bruno Haible  <bruno@clisp.org>
30763
30764         stdlib tests: Avoid code duplication.
30765         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30766         * modules/sys_wait-tests (Files): Likewise.
30767         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30768         * tests/test-stdlib.c: Include test-sys_wait.h.
30769         (main): Invoke test_sys_wait_macros.
30770         * tests/test-sys_wait.c: Include test-sys_wait.h.
30771         (main): Invoke test_sys_wait_macros.
30772
30773 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30774
30775         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30776         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30777         sure Windows sockets are working before calling getaddrinfo.
30778         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30779         * doc/gnulib.texi (Windows sockets): Fix typo.
30780
30781 2010-09-25  Bruno Haible  <bruno@clisp.org>
30782
30783         Tests for module 'regex-quote'.
30784         * modules/regex-quote-tests: New file.
30785         * tests/test-regex-quote.c: New file.
30786
30787         New module 'regex-quote'.
30788         * lib/regex-quote.h: New file.
30789         * lib/regex-quote.c: New file.
30790         * modules/regex-quote: New file.
30791         Suggested by Reuben Thomas <rrt@sc3d.org>.
30792
30793 2010-09-24  Bruno Haible  <bruno@clisp.org>
30794
30795         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30796         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30797
30798 2010-09-23  Bruno Haible  <bruno@clisp.org>
30799
30800         setenv: Relax license.
30801         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30802         Blake.
30803         Requested by Eric Blake.
30804
30805 2010-09-22  Bruno Haible  <bruno@clisp.org>
30806
30807         termios: Relax license.
30808         * modules/termios (License): Change to LGPLv2+.
30809         Requested by Eric Blake.
30810
30811 2010-09-22  Bruno Haible  <bruno@clisp.org>
30812
30813         threadlib: Allow the package to change the default to 'no'.
30814         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30815         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30816         Reported by Paul Eggert.
30817
30818 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30819             Bruno Haible  <bruno@clisp.org>
30820
30821         Fix endless loop in mbmemcasecoll.
30822         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30823         byte.
30824         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30825
30826 2010-09-22  Bruno Haible  <bruno@clisp.org>
30827
30828         Tests for module 'memcoll'.
30829         * modules/memcoll-tests: New file.
30830         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30831
30832         memcoll, xmemcoll: Clarify size vs. length.
30833         * modules/memcoll.c (memcoll0): Clarify specification.
30834         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30835         passed to collate_error.
30836
30837 2010-09-22  Bruno Haible  <bruno@clisp.org>
30838
30839         Tests for module 'memcasecmp'.
30840         * modules/memcasecmp-tests: New file.
30841         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30842
30843 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30844
30845         * lib/pthread.in.h: Add split double-inclusion guard, and include
30846         system <pthread.h> if there is one.  Use @@-style as in other
30847         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30848         pthread.h doesn't.
30849         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30850         (pthread_mutexattr_settype, pthread_mutex_trylock):
30851         New static inline functions, if there's no system <pthread.h>.
30852         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30853         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30854         Approximate with mutexes if the system lacks spinlocks, as in
30855         MacOS.
30856         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30857         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30858         @@-style.  Check for spinlocks separately.
30859         (gl_PTHREAD_DEFAULTS): New macro.
30860         * modules/pthread: Redo to use a more typical style for in.h files.
30861
30862 2010-09-21  Eric Blake  <eblake@redhat.com>
30863
30864         net_if: enhance tests
30865         * tests/test-net_if.c (main): Move signature checks earlier.
30866         Print failures to stderr.
30867         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30868         Document the bug that we do not yet fix.
30869
30870 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30871
30872         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30873         about gnulib, not GSS.
30874
30875 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30876
30877         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30878         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30879         for Emacs.
30880         * build-aux/pmccabe2html: Make Makefile.am example code more
30881         cut-and-paste friendly.
30882
30883 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30884
30885         * tests/test-net_if.c: New file.
30886         * modules/net_if-tests: New file.
30887
30888 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30889
30890         pthread: add pthread_spin_destroy
30891         * lib/pthread.in.h (pthread_spin_destroy): New function.
30892
30893 2010-09-19  Bruno Haible  <bruno@clisp.org>
30894
30895         gnulib-tool: Fix --help output.
30896         * gnulib-tool (func_usage): Fix help message.
30897         Reported by Reuben Thomas <rrt@sc3d.org>.
30898
30899 2010-09-18  Jim Meyering  <meyering@redhat.com>
30900
30901         maint.mk: avoid unexpanded \n in two diagnostics
30902         * top/maint.mk (sc_prohibit_always_true_header_tests):
30903         Don't use a literal \n in a halt=... assignment.  It would not be
30904         expanded, and the two \n bytes would appear in the diagnostic output
30905         rather than the desired newline.  Use halt=$$(printf ... instead.
30906         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30907
30908 2010-09-18  Bruno Haible  <bruno@clisp.org>
30909
30910         netinet_in: Doc tweak.
30911         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30912         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30913
30914 2010-09-18  Jim Meyering  <meyering@redhat.com>
30915
30916         init.sh: correct an outdated comment
30917         * tests/init.sh (create_exe_shims_):  s/function/alias/
30918
30919         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30920         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30921         a file named "*.exe" is removed between the glob expansion and the
30922         processing of that oddly named file.
30923
30924 2010-09-17  Eric Blake  <eblake@redhat.com>
30925
30926         mirbsd: add some more support
30927         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30928         in BSD family.
30929         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30930         devices as OpenBSD.
30931         * m4/host-os.m4 (mirbsd): Add MirBSD.
30932
30933         tests: fix unportable assumption on sys/wait.h
30934         * tests/test-sys_wait.c (main): Relax test.
30935         * tests/test-stdlib.c (main): Likewise.
30936
30937         init.sh: accommodate directory with no .exes
30938         * tests/init.sh: Accomodate directory containing only scripts.
30939
30940         tests: avoid compiler warning
30941         * tests/test-stdlib.c (main): Use the variable.
30942
30943         fdutimens, fdutimensat: update signature, again
30944         * lib/utimens.h (gl_futimens): Delete, and move signature...
30945         (fdutimens): ...here.
30946         (fdutimensat): Rearrange signature.
30947         (lutimensat): Rename variable for clarity.
30948         * lib/fdutimensat.c (fdutimensat): Update signature.
30949         * lib/utimens.c (fdutimens): Likewise.
30950         (gl_futimens): Delete.
30951         (utimens, lutimens): Update callers.
30952         * lib/futimens.c (futimens): Likewise.
30953         * tests/test-fdutimensat.c: Likewise.
30954         * tests/test-utimens.c: Likewise.
30955         * tests/test-futimens.h: Update comment.
30956         * NEWS: Mention this.
30957         Suggested by Paul Eggert.
30958
30959 2010-09-17  Bruno Haible  <bruno@clisp.org>
30960
30961         Take over the maintenance of some older macros from Autoconf.
30962         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30963         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30964         GNU Autoconf.
30965         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30966         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30967
30968 2010-09-17  Eric Blake  <eblake@redhat.com>
30969
30970         fdutimensat: drop atflag validation
30971         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30972         with valid fd, to close a race scenario where futimens is
30973         unsupported and FILE was replaced by a symlink.
30974         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30975         accordingly.
30976         Suggested by Paul Eggert.
30977
30978 2010-09-16  Bruno Haible  <bruno@clisp.org>
30979
30980         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30981         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30982
30983 2010-09-16  Bruno Haible  <bruno@clisp.org>
30984
30985         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30986         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30987         login_tty exists.
30988         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30989
30990 2010-09-16  Bruno Haible  <bruno@clisp.org>
30991
30992         login_tty: Make the replacement code work on BSD systems.
30993         * lib/login_tty.c: Include <sys/ioctl.h>.
30994         (login_tty): Use ioctl TIOCSCTTY when available.
30995         * modules/login_tty (Depends-on): Add sys_ioctl.
30996         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30997
30998 2010-09-16  Bruno Haible  <bruno@clisp.org>
30999
31000         login_tty: Stricter unit test.
31001         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31002         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31003         and tcgetsid() after login_tty.
31004         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31005
31006 2010-09-16  Bruno Haible  <bruno@clisp.org>
31007
31008         New module 'tcgetsid'.
31009         * lib/tcgetsid.c: New file.
31010         * m4/tcgetsid.m4: New file.
31011         * modules/tcgetsid: New file.
31012         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31013         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31014         GNULIB_TCGETSID, HAVE_TCGETSID.
31015         * lib/termios.in.h: Include <sys/types.h>.
31016         (tcgetsid): New declaration.
31017         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31018         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31019         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31020         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31021
31022 2010-09-16  Bruno Haible  <bruno@clisp.org>
31023
31024         Tests for module 'termios'.
31025         * modules/termios-c++-tests: New file.
31026         * modules/termios-tests: New file.
31027         * tests/test-termios-c++.cc: New file.
31028         * tests/test-termios.c: New file.
31029
31030         New module 'termios'.
31031         * modules/termios: New file.
31032         * lib/termios.in.h: New file.
31033         * m4/termios_h.m4: New file.
31034         * doc/posix-headers/termios.texi: Mention the new module.
31035
31036 2010-09-16  Eric Blake  <eblake@redhat.com>
31037
31038         fdutimensat: add an atflag parameter
31039         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31040         * lib/utimens.h (fdutimensat): Update prototype.
31041         * tests/test-fdutimensat.c: Adjust test to match.
31042         * NEWS: Document the change.
31043         Suggested by Paul Eggert.
31044
31045 2010-09-16  Bruno Haible  <bruno@clisp.org>
31046
31047         Fix typos in comments.
31048         * lib/striconveh.h: Fix typo in comment.
31049         * lib/login_tty.c (login_tty): Likewise.
31050
31051 2010-09-15  Bruno Haible  <bruno@clisp.org>
31052
31053         stdlib: clarify MirBSD WEXITSTATUS bug
31054         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31055         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31056
31057 2010-09-15  Eric Blake  <eblake@redhat.com>
31058
31059         stdlib: work around MirBSD WEXITSTATUS bug
31060         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31061         * modules/stdlib (Depends-on): Add sys_wait.
31062         * tests/test-sys_wait.c (main): Enhance test.
31063         * tests/test-stdlib.c (main): Likewise.
31064         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31065
31066         docs: mention MacOS issue with WEXITSTATUS(constant)
31067         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31068         issue.
31069         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31070
31071         strnlen: add tests
31072         * modules/strnlen-tests: New file.
31073         * tests/test-strnlen.c: Likewise.
31074
31075 2010-09-14  Bruno Haible  <bruno@clisp.org>
31076
31077         unistr/base: Avoid link errors when module 'libunistring' is also used.
31078         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31079         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31080         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31081         Declare also when HAVE_LIBUNISTRING is set.
31082         Reported by Pádraig Brady <P@draigbrady.com>.
31083
31084 2010-09-14  Eric Blake  <eblake@redhat.com>
31085
31086         test-rawmemchr: make more robust
31087         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31088         (Depends-on, configure.ac): Add needed prerequisites to use it.
31089         * modules/memchr-tests (Files, Depends-on, configure.ac):
31090         Likewise, to avoid implicit reliance on memchr module prereqs.
31091         * tests/test-memchr.c (main): Ensure proper masking.
31092         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31093         reads.
31094
31095         memchr: detect glibc Alpha bug
31096         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31097         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31098         Alpha.
31099         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31100         * tests/test-memchr.c (main): Enhance test.
31101         Reported by Nelson H. F. Beebe.
31102
31103 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31104
31105         fts, getcwd, glob: audit for dirfd returning -1
31106         * lib/fts.c (opendir): Remove #define; no longer used.
31107         (opendirat): New arg PDIR_FD.  All callers changed.
31108         (fts_build, _opendir2): Use new opendirat to avoid the need for
31109         dirfd, or for checking whether dirfd returns a negative value.
31110         Don't use opendir; always use openat followed by fdopendir.
31111         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31112         it.
31113         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31114         returns -1 here.
31115         * modules/fts (Depends-on): Remove dirfd.
31116         * modules/getcwd (Depends-on): Likewise.
31117
31118 2010-09-13  Eric Blake  <eblake@redhat.com>
31119
31120         float: fix broken MirBSD header
31121         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31122         * doc/posix-headers/float.texi (float.h): Document it.
31123
31124 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31125
31126         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31127         * lib/fts.c (opendirat): New arg extra_flags.
31128         (__opendir2): Use it to avoid following symlinks when opening
31129         a directory, if symlinks are not supposed to be followed.  See
31130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31131
31132         fdopendir: preserve argument fd before returning
31133         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31134         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31135         (fdopendir): Use them, arranging for FD to be open to the same
31136         directory that it was when it started.  (It might be temporarily
31137         closed while fdopendir is running, so this not thread- or
31138         signal-safe.)  Be careful to do the right thing even when file
31139         descriptors are scarce and dup fails with errno == EMFILE.  See
31140         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31141
31142 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31143
31144         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31145         * NEWS: Document change.
31146         * m4/regex.m4: Disable test for regoff_t size.
31147
31148 2010-09-13  Jim Meyering  <meyering@redhat.com>
31149
31150         fts: don't operate on an invalid file descriptor after failed dup
31151         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31152         negative file descriptor.
31153
31154 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31155
31156         savedir: add streamsavedir, deprecate fdsavedir
31157         * NEWS: Mention deprecation of fdsavedir.
31158         * lib/savedir.c (streamsavedir): New extern function, whose name
31159         ends in "savedir" to be consistent with the others.  This differs
31160         from savedirstream in that it doesn't close its argument.  The
31161         next version of GNU tar will use this instead of fdsavedir, to
31162         avoid some race conditions and conserve file descriptors.
31163         (savedirstream): Reimplement as a wrapper around streamsavedir.
31164         (fdsavedir): Add a comment deprecating this function.  As far as
31165         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31166         * lib/savedir.h (streamsavedir): New decl.
31167         (fdsavedir): Add a comment deprecating this.
31168
31169 2010-09-10  Bruno Haible  <bruno@clisp.org>
31170
31171         langinfo: Fix last commit.
31172         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31173         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31175
31176 2010-09-10  Bruno Haible  <bruno@clisp.org>
31177
31178         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31179         * lib/progreloc.c (O_EXEC): Define fallback.
31180
31181 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31182
31183         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31184         * NEWS: Document recent changes to fcntl-h.
31185         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31186         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31187         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31188         Similarly for O_SEARCH; this last was already true, but not documented.
31189         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31190         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31191         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31192         Likewise.
31193         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31194         is zero, not whether it is defined.
31195         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31196         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31197         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31198
31199 2010-09-10  Bruno Haible  <bruno@clisp.org>
31200
31201         langinfo, nl_langinfo: Fix for IRIX 5.3.
31202         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31203         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31204         HAVE_LANGINFO_YESEXPR.
31205         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31206         HAVE_LANGINFO_YESEXPR.
31207         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31208         HAVE_LANGINFO_T_FMT_AMPM is 0.
31209         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31210         HAVE_LANGINFO_YESEXPR is 0.
31211         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31212         NOEXPR.
31213         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31214         * doc/posix-functions/nl_langinfo.texi: Likewise.
31215         Reported by Eric Blake.
31216
31217 2010-09-10  Bruno Haible  <bruno@clisp.org>
31218
31219         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31220         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31221         on FreeBSD 8.0 and OpenBSD 4.6.
31222         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31223         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31224         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31225         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31226         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31227         ac_includes_default.
31228         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31229
31230 2010-09-09  Eric Blake  <eblake@redhat.com>
31231
31232         strsignal: work around NetBSD bug
31233         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31234         * lib/string.in.h (includes): Likewise.
31235         * doc/posix-functions/strsignal.texi (strsignal): Document the
31236         bug.
31237         Reported by Nelson H. F. Beebe.
31238
31239         gnulib-tool: work with NetBSD /bin/sh
31240         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31241         (func_get_description, func_get_comment, func_get_status)
31242         (func_get_notice, func_get_applicability, func_get_filelist)
31243         (func_get_dependencies, func_get_autoconf_early_snippet)
31244         (func_get_autoconf_snippet, func_get_automake_snippet)
31245         (func_get_include_directive, func_get_link_directive)
31246         (func_get_license, func_get_maintainer, func_import): Avoid
31247         shell syntax errors from parsing syntax extensions.
31248
31249 2010-09-09  Bruno Haible  <bruno@clisp.org>
31250
31251         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31252         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31253         a reliable way to determine whether the 'alias' command works.
31254
31255 2010-09-08  Jim Meyering  <meyering@redhat.com>
31256
31257         init.sh: penalize a set-x-impaired shell; don't disqualify it
31258         * tests/init.sh: Too many shells corrupt application stderr when
31259         you set -x, so we can't afford to disqualify them, since at least
31260         on Irix-6.5, that would disqualify all bourne shells.
31261         Instead, use a two-pass approach.
31262         On the first pass, try to find a shell that meets the stricter
31263         condition that set -x does not corrupt stderr.
31264         If no shell meets the stricter condition, retest each candidate
31265         shell, but without that extra condition.  Finally, when
31266         VERBOSE=yes is requested and set -x might cause trouble, simply
31267         issue a warning and refrain from enabling debug output.
31268
31269 2010-09-08  Eric Blake  <eblake@redhat.com>
31270
31271         unsetenv: fix OpenBSD bug
31272         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31273         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31274         documentation.
31275         Reported by Jim Meyering.
31276
31277         strtod: work around IRIX 6.5 bug
31278         * lib/strtod.c (strtod): Reparse number on shorter string if
31279         exponent parse was invalid.
31280         * tests/test-strtod.c (main): Add check for "0x1p 2".
31281         Reported by Tom G. Christensen.
31282
31283         getopt: optimize previous patch
31284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31285         empty variable.  Speed up awk script.
31286         Reported by Paolo Bonzini.
31287
31288 2010-09-08  Jim Meyering  <meyering@redhat.com>
31289
31290         test.sh: disqualify shells for which set -x corrupts stderr
31291         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31292         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31293         appear in stderr output.  For example, this command:
31294             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31295         prints "P=1" on those two systems:
31296
31297 2010-09-08  Bruno Haible  <bruno@clisp.org>
31298
31299         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31300         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31301         commands, because some shells ignore redirections when there is an
31302         error in the command lookup.
31303         Reported by Eric Blake.
31304
31305 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31306
31307         * lib/regex.h: Fix a mention of `regex_compile' (should be
31308         `re_compile_pattern').
31309         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31310         (re_set_registers): Correct name of parameter in comment.
31311
31312         * doc/regex.texi: Add documentation for missing syntax flags.
31313         Remove commented-out documentation of defunct syntax option
31314         RE_NO_EMPTY_ALTS.
31315         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31316         Add documentation of re_set_registers.
31317         Document trick to re-use a pattern buffer by setting fastmap manually.
31318         Update documentation of struct re_pattern_buffer per public members.
31319         Uncomment documentation of equivalence class operators and
31320         collating symbol operators, since they are now implemented,
31321         Explain leftmost-longest matching in relation to alternatives.
31322         Tidy documentation of substring matching.
31323         Remove POSIX documentation, which is done better in
31324         glibc, and refer the reader there. Keep BSD API documentation, as
31325         that is not readily available elsewhere.
31326
31327 2010-09-07  Eric Blake  <eblake@redhat.com>
31328
31329         getopt: handle POSIXLY_CORRECT set but not exported
31330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31331         export state of POSIXLY_CORRECT, due to bash set -o posix.
31332         Reported by Dustin J. Mitchell.
31333
31334 2010-09-05  Bruno Haible  <bruno@clisp.org>
31335
31336         gnulib-tool: Highlight the changed options.
31337         * gnulib-tool (func_usage): Display the --import, --add-import,
31338         --remove-import explanations in bold font.
31339
31340 2010-09-06  Karl Berry  <karl@gnu.org>
31341
31342         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31343
31344 2010-09-05  Bruno Haible  <bruno@clisp.org>
31345
31346         uniwidth/width: Update comment.
31347         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31348         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31349
31350 2010-09-05  Bruno Haible  <bruno@clisp.org>
31351
31352         isinf, isnan: Relax license.
31353         * modules/isinf (License): Change from GPL to LGPL, with consent from
31354         Ben Pfaff.
31355         * modules/isnan (License): Likewise.
31356         Requested by Ludovic Courtès.
31357
31358 2010-09-04  Bruno Haible  <bruno@clisp.org>
31359
31360         gnulib-tool: Help migration from --import to --add-import or --update.
31361         * gnulib-tool: Emit a verbose error message when --import is used
31362         without any module name.
31363
31364 2010-09-04  Bruno Haible  <bruno@clisp.org>
31365
31366         Update doc about gnulib-tool.
31367         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31368         'gnulib-tool --update' in more detail.
31369         Reported by Eric Blake.
31370
31371 2010-09-04  Bruno Haible  <bruno@clisp.org>
31372
31373         gnulib-tool: Change --import. New options --add/remove-import.
31374         * gnulib-tool: New options --add-import, --remove-import.
31375         (func_usage): Document them.
31376         (have_associative): Define always.
31377         (func_import): In import mode, don't merge the specified settings with
31378         the cached settings. Implement remove-import mode.
31379         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31380         Explain when to use them versus --import.
31381         (Simple update): Use --add-import instead of --import.
31382         * NEWS: Mention the change.
31383
31384 2010-09-04  Bruno Haible  <bruno@clisp.org>
31385
31386         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31387         separate gnulib.mk.
31388
31389 2010-09-04  Bruno Haible  <bruno@clisp.org>
31390
31391         gnulib-tool: Don't talk about CVS any more.
31392         * gnulib-tool (func_usage, func_import): Write "version control"
31393         instead of CVS.
31394
31395 2010-09-04  Jim Meyering  <meyering@redhat.com>
31396
31397         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31398         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31399         false positives (whose names may be ill-chosen) when searching
31400         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31401         would cause a false-positive.
31402
31403         avoid coreutils "make distcheck" failure
31404         Coreutils tests with an absolute build directory name that contains
31405         a space.  Not quoting this directory name caused a failure.
31406         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31407         * tests/test-vc-list-files-cvs.sh: Likewise.
31408
31409 2010-09-04  Bruno Haible  <bruno@clisp.org>
31410
31411         gnulib-tool: Avoid error when run in a package without Makefile.am.
31412         * gnulib-tool: When collecting the m4dirs in a package that does not
31413         have a Makefile.am, eliminate those directories that contain no
31414         gnulib-cache.m4. Fix expression that counts these directories.
31415
31416 2010-09-04  Bruno Haible  <bruno@clisp.org>
31417
31418         update-copyright test: Improve output when perl is missing or too old.
31419         * tests/test-update-copyright.sh: Move test of Perl version down after
31420         the test whether Perl exists. Provide an explanation relating Perl's
31421         error message to Automake's SKIP: message.
31422
31423 2010-09-04  Bruno Haible  <bruno@clisp.org>
31424
31425         Don't augment PATH in TESTS_ENVIRONMENT.
31426         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31427         set abs_aux_dir instead of augmenting PATH.
31428         * modules/vc-list-files-tests (Makefile.am): Likewise.
31429         * tests/test-update-copyright.sh: Augment PATH here.
31430         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31431         path_prepend_.
31432         * tests/test-vc-list-files-git.sh: Likewise.
31433
31434 2010-09-04  Jim Meyering  <meyering@redhat.com>
31435
31436         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31437         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31438
31439 2010-09-04  Bruno Haible  <bruno@clisp.org>
31440
31441         strdup: Fix compilation error in C++ mode.
31442         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31443         the macro.
31444
31445 2010-09-04  Bruno Haible  <bruno@clisp.org>
31446
31447         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31448         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31449         macro into a function.
31450         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31451
31452 2010-09-04  Bruno Haible  <bruno@clisp.org>
31453
31454         Set PATH_SEPARATOR the same way autoconf does.
31455         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31456         the value of PATH_SEPARATOR the same way autoconf-generated configure
31457         scripts do.
31458         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31459         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31460
31461 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31462
31463         Set PATH_SEPARATOR the same way autoconf does.
31464         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31465         the same way autoconf-generated configure scripts do.
31466         * posix-modules: Likewise.
31467
31468 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31469
31470         hash: fix safe_hasher const typo
31471         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31472         const; otherwise, there is a type error later.
31473
31474 2010-09-02  Jim Meyering  <meyering@redhat.com>
31475
31476         test-update-copyright.sh: require perl 5.8.0
31477         * tests/test-update-copyright.sh: Require 5.8.0,
31478         which Tom G. Christensen has confirmed is adequate,
31479         while 5.6.1 is not.
31480
31481 2010-09-02  Eric Blake  <eblake@redhat.com>
31482
31483         tests: init.sh improvements for re-exec'ing with zsh
31484         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31485         -vx through shell re-exec.
31486         Reported by Tom G. Christensen.
31487
31488         wctype: fix typo in previous commit
31489         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31490         Reported by Ludovic Courtès.
31491
31492 2010-09-02  Jim Meyering  <meyering@redhat.com>
31493
31494         test-update-copyright.sh: skip test if Perl is too old
31495         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31496         Reported by Tom G. Christensen.
31497
31498 2010-09-02  Bruno Haible  <bruno@clisp.org>
31499
31500         wctype: Avoid compilation error on IRIX 6.5.30.
31501         * lib/wctype.in.h (iswblank): Declare with a replacement if
31502         REPLACE_ISWBLANK is set.
31503         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31504         declared. Set REPLACE_ISWBLANK.
31505         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31506         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31507         * doc/posix-headers/wctype.texi: Likewise.
31508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31509
31510 2010-09-01  Bruno Haible  <bruno@clisp.org>
31511
31512         New module 'socketlib'.
31513         * modules/socketlib: New file.
31514         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31515         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31516         * modules/sockets (Depends-on): Add socketlib.
31517         Suggested by Sam Steingold <sds@gnu.org>.
31518
31519 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31520
31521         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31522
31523         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31524         when one needs search access to a directory but not read access.
31525         On systems where it is available, it works in some cases where
31526         O_RDONLY does not, namely on directories that are searchable but
31527         not readable, and which need only to be searchable.  If O_SEARCH
31528         is not available, fall back to the traditional method of using
31529         O_RDONLY.
31530
31531         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31532         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31533         when opening a directory that needs only to be searchable.
31534         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31535         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31536         * lib/openat-proc.c (openat_proc_name): Likewise.
31537         * lib/openat.c (openat_needs_fchdir): Likewise.
31538         * lib/save-cwd.c (save_cwd): Likewise.
31539         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31540
31541 2010-08-28  Bruno Haible  <bruno@clisp.org>
31542
31543         New module 'host-cpu-c-abi'.
31544         * modules/host-cpu-c-abi: New file.
31545         * m4/host-cpu-c-abi.m4: New file, based on part of
31546         clisp/src/m4/general.m4.
31547         Requested by Sam Steingold <sds@gnu.org>.
31548
31549 2010-08-31  Eric Blake  <eblake@redhat.com>
31550         and Jim Meyering  <meyering@redhat.com>
31551
31552         hash: factor, and guard against misbehaving hasher function
31553         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31554         of table->hasher's return value.  Also protect against a hash value
31555         so large that adding it to table->bucket results in a NULL pointer.
31556         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31557         Use it in place of open-coded check-and-abort.
31558
31559 2010-08-30  Bruno Haible  <bruno@clisp.org>
31560
31561         hash: silence spurious clang warning
31562         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31563         Reported by Eric Blake.
31564
31565 2010-08-30  Eric Blake  <eblake@redhat.com>
31566
31567         strstr, memmem, strcasestr: avoid leaked shell message
31568         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31569         FreeBSD.
31570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31571         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31572
31573         tests: silence clang warning
31574         * tests/test-malloca.c (do_allocation): Avoid dead store.
31575
31576 2010-08-29  Bruno Haible  <bruno@clisp.org>
31577
31578         gettext: Fix recent mistake.
31579         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31580
31581 2010-08-29  Bruno Haible  <bruno@clisp.org>
31582
31583         selinux-h: Offer a --without-selinux option.
31584         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31585         --without-selinux was specified, skip all tests and define
31586         HAVE_SELINUX_SELINUX_H to 0.
31587         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31588         set LIB_SELINUX to empty.
31589         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31590         gl_LIBSELINUX. If --without-selinux was specified, replace
31591         selinux/context.h.
31592         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31593
31594 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31595             Bruno Haible  <bruno@clisp.org>
31596
31597         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31598         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31599         of HAVE_REALLOC.
31600         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31601         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31602         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31603         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31604
31605 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31606             Bruno Haible  <bruno@clisp.org>
31607
31608         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31609         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31610         HAVE_CALLOC.
31611         * lib/xmalloc.c: Update accordingly.
31612         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31613         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31614         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31615
31616 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31617             Bruno Haible  <bruno@clisp.org>
31618
31619         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31620         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31621         HAVE_MALLOC.
31622         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31623         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31624         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31625
31626 2010-08-29  Bruno Haible  <bruno@clisp.org>
31627
31628         Update modules list.
31629         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31630         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31631         (String handling <string.h>): Add astrxfrm.
31632         (File system functions): Add readlinkat.
31633
31634 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31635
31636         Tests for module 'realloc-gnu'.
31637         * modules/realloc-gnu-tests: New file.
31638         * tests/test-realloc-gnu.c: New file.
31639
31640         Tests for module 'calloc-gnu'.
31641         * modules/calloc-gnu-tests: New file.
31642         * tests/test-calloc-gnu.c: New file.
31643
31644         Tests for module 'malloc-gnu'.
31645         * modules/malloc-gnu-tests: New file.
31646         * tests/test-malloc-gnu.c: New file.
31647
31648 2010-08-28  Bruno Haible  <bruno@clisp.org>
31649
31650         Rename module 'realloc' -> 'realloc-gnu'.
31651         * modules/realloc-gnu: New file, copied from modules/realloc.
31652         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31653         obsolete.
31654         * modules/mgetgroups (Depends-on): Update.
31655         * doc/posix-functions/realloc.texi: Update.
31656         * NEWS: Mention the change.
31657
31658         Rename module 'calloc' -> 'calloc-gnu'.
31659         * modules/calloc-gnu: New file, copied from modules/calloc.
31660         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31661         obsolete.
31662         * doc/posix-functions/calloc.texi: Update.
31663         * NEWS: Mention the change.
31664
31665         Rename module 'malloc' -> 'malloc-gnu'.
31666         * modules/malloc-gnu: New file, copied from modules/malloc.
31667         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31668         obsolete.
31669         * modules/argp (Depends-on): Update.
31670         * modules/regex (Depends-on): Update.
31671         * doc/posix-functions/malloc.texi: Update.
31672         * NEWS: Mention the change.
31673
31674 2010-08-28  Eric Blake  <eblake@redhat.com>
31675
31676         pread, pwrite: add missing dependency
31677         * modules/pread (Depends-on): Add extensions.
31678         * modules/pwrite (Depends-on): Likewise.
31679
31680 2010-08-28  Bruno Haible  <bruno@clisp.org>
31681
31682         unistr/u*-strchr: Fix tests dependencies.
31683         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31684         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31685         Reported by Ian Beckwith <ianb@erislabs.net>.
31686
31687 2010-08-28  Bruno Haible  <bruno@clisp.org>
31688
31689         read-file: Don't occupy too much unused memory.
31690         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31691
31692 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31693             Eric Blake  <eblake@redhat.com>
31694             Bruno Haible  <bruno@clisp.org>
31695
31696         read-file: Avoid memory reallocations with regular files.
31697         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31698         (fread_file): With regular files, use the remaining length as the
31699         initial buffer size.  Check against overflow.
31700         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31701         sys_stat.
31702
31703 2010-08-28  Bruno Haible  <bruno@clisp.org>
31704
31705         ftello: Relax license.
31706         * modules/ftello (License): Relax to LGPLv2+.
31707         Reported by Eric Blake.
31708
31709 2010-08-28  Bruno Haible  <bruno@clisp.org>
31710
31711         Avoid relocwrapper link errors due to gnulib replacement functions.
31712         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31713         function.
31714         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31715
31716 2010-08-28  Bruno Haible  <bruno@clisp.org>
31717
31718         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31719         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31720         defined.
31721         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31722         Suggested by Eric Blake.
31723
31724 2010-08-28  Bruno Haible  <bruno@clisp.org>
31725
31726         sys_socket, netdb: Ensure socklen_t gets defined.
31727         * modules/sys_socket (Depends-on): Add socklen.
31728         * modules/netdb (Depends-on): Likewise.
31729         * modules/getaddrinfo (Depends-on): Remove socklen.
31730         * modules/getsockopt (Depends-on): Likewise.
31731         * modules/setsockopt (Depends-on): Likewise.
31732         * tests/test-sys_socket.c: Check that socklen_t is defined.
31733         * tests/test-netdb.c: Likewise.
31734         * m4/socklen.m4: Update comments.
31735         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31736
31737 2010-08-27  Eric Blake  <eblake@redhat.com>
31738
31739         login_tty: add missing dependency
31740         * modules/login_tty (Depends-on): Add pty.
31741
31742 2010-08-26  Eric Blake  <eblake@redhat.com>
31743
31744         lib-symbol-versions: fix m4 quoting
31745         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31746         format for AC_LINK_IFELSE.
31747
31748         glob: fix compile test
31749         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31750
31751         btowc: fix missing file
31752         * modules/btowc (Files): Also ship locale-fr.m4.
31753
31754         lseek: fix link test
31755         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31756         AC_LINK_IFELSE.
31757
31758         include_next: silence autoconf 2.68 warning
31759         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31760         AC_COMPILE_IFELSE as special.
31761         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31762         autoconf < 2.68.
31763
31764         acl: fix compilation test
31765         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31766         AC_COMPILE_IFELSE.
31767
31768 2010-08-26  Bruno Haible  <bruno@clisp.org>
31769
31770         Modernize AC_TRY_RUN invocations.
31771         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31772         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31773         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31774         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31775         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31776         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31777         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31779         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31780         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31781         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31782         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31783         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31784         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31785         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31786         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31787         gl_MBRLEN_NUL_RETVAL): Likewise.
31788         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31789         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31790         Likewise.
31791         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31792         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31793         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31794         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31795         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31796         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31797         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31798         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31799         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31800         Likewise.
31801         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31802         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31804         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31805         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31806         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31807         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31808         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31809         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31811
31812 2010-08-26  Bruno Haible  <bruno@clisp.org>
31813
31814         Modernize AC_TRY_LINK invocations.
31815         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31816         AC_TRY_LINK.
31817         * m4/argp.m4 (gl_ARGP): Likewise.
31818         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31819         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31820         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31821         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31822         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31823         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31824         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31825         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31826         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31827         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31828         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31829         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31830         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31831         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31832         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31833         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31834         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31835         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31836         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31837         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31838         Likewise.
31839         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31840         Likewise.
31841         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31842         Likewise.
31843         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31844         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31845         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31846         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31847         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31848         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31849         * m4/servent.m4 (gl_SERVENT): Likewise.
31850         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31851         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31852         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31853         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31854         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31855         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31856         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31857         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31858         * modules/tsearch-tests (configure.ac): Likewise.
31859
31860 2010-08-26  Bruno Haible  <bruno@clisp.org>
31861
31862         Modernize AC_TRY_COMPILE invocations.
31863         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31864         AC_TRY_COMPILE.
31865         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31866         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31867         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31868         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31869         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31870         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31871         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31872         * m4/lock.m4 (gl_LOCK): Likewise.
31873         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31874         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31875         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31876         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31877         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31878         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31879         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31881         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31882         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31883         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31884         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31885         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31886         extraneous semicolon.
31887
31888 2010-08-26  Jim Meyering  <meyering@redhat.com>
31889
31890         stat-time: relax license LGPL
31891         * modules/stat-time (License): Change from GPL to LGPL,
31892         with consent from all contributors, for use in libguile.
31893         Requested by Ludovic Courtès.
31894
31895 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31896
31897         poll: return immediately on POLLHUP.
31898         * lib/poll.c (poll): Always set timeout before wait_timeout is
31899         computed.
31900
31901 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31902
31903         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31904         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31905         rmdir ("dir/.//"), unlinkat.
31906
31907 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31908
31909         stdbool: avoid spurious failure with modern xlc
31910         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31911
31912 2010-08-24  Bruno Haible  <bruno@clisp.org>
31913
31914         getloadavg: simplify code
31915         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31916         gl_have_func. Update comments.
31917
31918 2010-08-24  Eric Blake  <eblake@redhat.com>
31919
31920         getloadavg: don't define SVR4 on cygwin
31921         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31922         only define SVR4 when -lkvm is required.
31923         Reported by Yaakov Selkowitz.
31924
31925 2010-08-24  Bruno Haible  <bruno@clisp.org>
31926
31927         priv-set: fix comment
31928         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31929
31930 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31931
31932         priv-set: fix comments
31933         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31934         to match code, as suggested by David Bartley in:
31935         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31936
31937 2010-08-23  Eric Blake  <eblake@redhat.com>
31938
31939         stdbool: avoid rejecting clang
31940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31941         * tests/test-stdbool.c: Enable more tests if using the system
31942         <stdbool.h> instead of the gnulib replacement.
31943         (main): Move xlc bug test to a runtime test for all compilers.
31944         Reported by Anders Kaseorg.
31945
31946         argz: fix shell quoting issue
31947         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31948         Reported by Charles Wilson.
31949
31950 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31951             Erik Faye-Lund <kusmabite@gmail.com>
31952
31953         poll, select: handle ERROR_BROKEN_PIPE.
31954         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31955         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31956         * lib/select.c (win32_compute_revents): Do not mark a pipe
31957         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31958
31959 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31960
31961         fts: allow compilation with C++
31962         * lib/fts_.h: Specify extern "C" linkage with C++.
31963
31964 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31965
31966         Fix gnulib-tool sed script de-commentation for AIX sed.
31967         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31968         sed.
31969
31970 2010-08-17  Eric Blake  <eblake@redhat.com>
31971
31972         test-stddef: test for (some) offsetof bugs
31973         * tests/test-stddef.c: Enhance test to ensure correct type of
31974         offsetof.
31975         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31976         that we are not fixing at this time.
31977
31978 2010-08-15  Bruno Haible  <bruno@clisp.org>
31979
31980         stpncpy: Allow stpncpy to be defined as a macro.
31981         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31982         if it's already correctly declared.
31983         * lib/string.in.h (stpncpy): Undefine before redefining.
31984         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31985
31986 2010-08-14  Bruno Haible  <bruno@clisp.org>
31987
31988         Rename module 'memxfrm' to 'amemxfrm'.
31989         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31990         (amemxfrm): Renamed from memxfrm.
31991         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31992         (amemxfrm): Renamed from memxfrm.
31993         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31994         * NEWS: Mention the change.
31995         * MODULES.html.sh (String handling <string.h>): Update.
31996         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31997         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31998         * lib/unicase/u16-casexfrm.c: Likewise.
31999         * lib/unicase/u32-casexfrm.c: Likewise.
32000         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32001         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32002         * lib/uninorm/u16-normxfrm.c: Likewise.
32003         * lib/uninorm/u32-normxfrm.c: Likewise.
32004         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32005         memxfrm.
32006         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32007         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32008         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32009         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32010         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32011         Suggested by Paul Eggert.
32012
32013 2010-08-14  Bruno Haible  <bruno@clisp.org>
32014
32015         Tests for module 'astrxfrm'.
32016         * modules/astrxfrm-tests: New file.
32017         * tests/test-astrxfrm.c: New file.
32018
32019         New module 'astrxfrm'.
32020         * lib/astrxfrm.h: New file.
32021         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32022         * modules/astrxfrm: New file.
32023
32024 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32025
32026         regex: Tweak doc.
32027         * doc/regex.texi (Overview): Don't mention regex.c.
32028         (GNU Regular Expression Compiling): Likewise.
32029         (Match-end-of-line Operator): Mention 'not_eol'.
32030
32031 2010-08-14  Brian Gough  <bjg@gnu.org>
32032             Bruno Haible  <bruno@clisp.org>
32033
32034         git-merge-changelog: add doc relating to use with bzr and hg.
32035         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32036
32037 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32038
32039         pthread: fix pthread.h creation for srcdir != builddir
32040         * modules/pthread (Makefile.am): Fix the rule to work also in a
32041         non-srcdir build.
32042
32043 2010-08-13  Karl Berry  <karl@gnu.org>
32044
32045         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32046         * doc/posix-*/*: force line break before @url of POSIX
32047         specifications.
32048         Suggested by Werner Lemberg.
32049
32050 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32051
32052         strtod: fix const diagnostic
32053         * lib/strtod.c (strtod): Don't assign const char * to char *,
32054         as this elicits a warning from GCC when warnings are enabled.
32055
32056 2010-08-10  Pádraig Brady <P@draigbrady.com>
32057         and Eric Blake  <eblake@redhat.com>
32058
32059         copy-acl: ignore ENOTSUP on HP-UX
32060         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32061         so that it is available for HP-UX.
32062         * lib/copy-acl.c (qcopy_acl): Use it.
32063         Reported by Patrick M. Callahan.
32064
32065 2010-08-10  Eric Blake  <eblake@redhat.com>
32066
32067         open, chown: relax license
32068         * modules/open (License): Change to LGPLv2+, with consent by all
32069         authors, for use in augeas.
32070         * modules/chown (License): Likewise.
32071         * modules/lchown (Likewise): Likewise.
32072         Requested by Adam Stokes.
32073
32074 2010-08-09  Karl Berry  <karl@gnu.org>
32075
32076         * build-aux/ar-lib: new file, import from Automake.
32077         * config/srclist.txt: autocheck for updates.
32078
32079 2010-08-09  Eric Blake  <eblake@redhat.com>
32080
32081         readlinkat: adjust client modules
32082         * modules/areadlinkat (Depends-on): Use readlinkat, not
32083         symlinkat.
32084         * modules/areadlinkat-with-size (Depends-on): Likewise.
32085
32086         mknod: be more vocal about danger of running tests as root
32087         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32088         root, since that is just asking for problems.
32089         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32090
32091         readlinkat: split into its own module
32092         * modules/symlinkat: Split readlinkat...
32093         * modules/readlinkat: ...into separate module.
32094         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32095         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32096         * lib/symlinkat.c (readlinkat): Move...
32097         * lib/readlinkat.c: ...into new file.
32098         * modules/symlinkat-tests: Split readlinkat test...
32099         * modules/readlinkat-tests: ...into separate module.
32100         * tests/test-symlinkat.c: Split...
32101         * tests/test-readlinkat.c: ...into new file.
32102         * NEWS: Document the split.
32103         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32104         * lib/unistd.in.h (readlinkat): Likewise.
32105         Suggested by Bruno Haible.
32106
32107 2010-08-08  Bruno Haible  <bruno@clisp.org>
32108
32109         memxfrm: Speed up.
32110         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32111         that usually only one call to strxfrm is necessary for each string
32112         part.
32113         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32114
32115 2010-08-07  Karl Berry  <karl@gnu.org>
32116
32117         * doc/posix-headers/limits.texi,
32118         * doc/posix-functions/malloc.texi,
32119         * doc/posix-functions/strsignal.texi: missing @item.
32120         * doc/ld-version-script.texi: spurious leading i.
32121         * doc/regex.texi (Interval Operators): no commas inside @var.
32122
32123 2010-08-01  Bruno Haible  <bruno@clisp.org>
32124
32125         Integrate the regex documentation.
32126         * doc/gnulib.texi: Define 'cn' index.
32127         (Regular expressions): New a chapter that includes regex.texi and
32128         regexprops-generic.texi.
32129         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32130         syntax.
32131
32132         Whitespace cleanup.
32133         * doc/regex.texi: Remove trailing spaces.
32134
32135         Add regex documentation.
32136         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32137         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32138         Written by Kathy A. Hargreaves and Karl Berry.
32139
32140 2010-08-01  Bruno Haible  <bruno@clisp.org>
32141
32142         link: Update documentation.
32143         * doc/posix-functions/link.texi: Update regarding Solaris.
32144
32145 2010-07-31  Bruno Haible  <bruno@clisp.org>
32146
32147         Update modules list.
32148         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32149         (String handling <string.h>): Add memcmp2, memxfrm.
32150         (Container data structures): Add xlist, xsublist, xoset.
32151         (Core language properties): Add alignof, unused-parameter.
32152         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32153         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32154         (Unibyte characters <ctype.h>): New section.
32155         (String handling <string.h>): New section.
32156         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32157         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32158         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32159         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32160         tan, tanh, tanl, y0, y1, yn.
32161         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32162         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32163         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32164         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32165         unlockpt, vdprintf, vdprintf-posix.
32166         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32167         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32168         xconcat-filename.
32169         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32170         getdtablesize, pipe2, pipe2-safer.
32171         (Security): New section.
32172         (Networking functions): Add accept4.
32173         (Signal handling): Add sigpipe.
32174         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32175         mbmemcasecoll.
32176         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32177         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32178         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32179         pipe-filter-ii.
32180         (Misc): Add argp-version-etc, login_tty, parse-duration.
32181
32182 2010-07-31  Bruno Haible  <bruno@clisp.org>
32183
32184         Improve doc in MODULES.html.
32185         * modules/linkat (Description): Add the word "function".
32186         * modules/mkfifo (Description): Likewise.
32187         * modules/mknod (Description): Likewise.
32188         * modules/remove (Description): Likewise.
32189         * modules/renameat (Description): Likewise.
32190         * modules/stat (Description): Likewise.
32191         * modules/symlink (Description): Likewise.
32192         * modules/unlink (Description): Likewise.
32193
32194 2010-07-31  Bruno Haible  <bruno@clisp.org>
32195
32196         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32197         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32198         option --enable/disable-c++ instead of --enable/disable-cxx.
32199         * NEWS: Mention the change.
32200
32201 2010-07-31  Bruno Haible  <bruno@clisp.org>
32202
32203         readlink, areadlink: Relax test a bit.
32204         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32205         alternative to ENOTDIR.
32206         * tests/test-areadlink.h (test_areadlink): Likewise.
32207         Reported by Rainer Tammer.
32208
32209 2010-07-31  Bruno Haible  <bruno@clisp.org>
32210
32211         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32212         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32213         character, perform the search using U_STRCHR.
32214         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32215         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32216         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32217         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32218         Suggested by Paolo Bonzini.
32219
32220 2010-07-31  Bruno Haible  <bruno@clisp.org>
32221
32222         unistr/u*-strstr: Fix dependencies.
32223         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32224         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32225         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32226
32227 2010-07-31  Bruno Haible  <bruno@clisp.org>
32228
32229         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32230         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32231         the beginning of the loop.
32232         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32233         cases in 'switch' statement.
32234
32235         unistr/u8-strchr: Fix several bugs.
32236         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32237         the string. When not found, return NULL, not a pointer near the end.
32238
32239         More tests for unistr/u8-strchr.
32240         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32241         that the function does not read past the first occurrence of the byte
32242         being searched.
32243         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32244         * tests/unistr/test-u16-strchr.c (main): New function.
32245         * tests/unistr/test-u32-strchr.c (main): New function.
32246
32247 2010-07-31  Bruno Haible  <bruno@clisp.org>
32248
32249         posix-modules: Ignore backup files of documentation files.
32250         * posix-modules: grep only through files named *.texi.
32251
32252 2010-07-31  Bruno Haible  <bruno@clisp.org>
32253
32254         symlinkat: Fix documentation.
32255         * doc/posix-functions/readlinkat.texi: Fix module name.
32256
32257 2010-07-31  Bruno Haible  <bruno@clisp.org>
32258
32259         fchownat: Replace also when chown has the trailing slash bug.
32260         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32261         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32262         introduced on 2010-04-10.
32263         Reported by Rainer Tammer.
32264
32265 2010-07-31  Bruno Haible  <bruno@clisp.org>
32266
32267         linkat: Work around AIX 7.1 bug.
32268         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32269         whether linkat handles trailing slash correctly. If not, replace linkat
32270         and define LINKAT_TRAILING_SLASH_BUG.
32271         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32272         check whether (fd1,file1) points to a directory if file1 or file2 ends
32273         in a slash. Code taken from lib/link.c.
32274         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32275         Reported by Rainer Tammer.
32276
32277 2010-07-31  Bruno Haible  <bruno@clisp.org>
32278
32279         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32280         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32281         This disables an xlc optimization that was causing wrong test results.
32282         Reported by Rainer Tammer.
32283
32284 2010-07-31  Bruno Haible  <bruno@clisp.org>
32285
32286         iconv: Work around AIX 6.1..7.1 bug.
32287         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32288         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32289         cross-compiling, guess no on all versions of AIX.
32290         Reported by Rainer Tammer.
32291
32292 2010-07-31  Bruno Haible  <bruno@clisp.org>
32293
32294         readlink: Relax test a bit.
32295         * tests/test-readlink.h (test_readlink): Allow different errno value
32296         when readlink is called with a file name that ends in / and refers to
32297         a file.
32298         Suggested by Eric Blake.
32299         Reported by Rainer Tammer.
32300
32301 2010-07-31  Bruno Haible  <bruno@clisp.org>
32302
32303         copysign: Does not require -lm on glibc systems.
32304         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32305         gl_COMMON_DOUBLE_MATHFUNC.
32306         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32307
32308 2010-07-31  Bruno Haible  <bruno@clisp.org>
32309
32310         duplocale: Work around AIX 7.1 bug.
32311         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32312         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32313         * lib/duplocale.c (rpl_duplocale): Update comment.
32314         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32315         Reported by Rainer Tammer.
32316
32317 2010-07-30  Bruno Haible  <bruno@clisp.org>
32318
32319         dirfd: Avoid link error on AIX 7.1.
32320         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32321         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32322         exist, set REPLACE_DIRFD.
32323         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32324         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32325         * doc/posix-functions/dirfd.texi: Update.
32326         Reported by Rainer Tammer.
32327
32328 2010-07-30  Eric Blake  <eblake@redhat.com>
32329
32330         strtod: next round of AIX fixes
32331         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32332         exponent.
32333         * tests/test-strtod.c (main): Enhance tests.
32334         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32335         Reported by Rainer Tammer.
32336
32337         futimens: fix configure check
32338         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32339         Reported by Bruno Haible.
32340
32341 2010-07-30  Bruno Haible  <bruno@clisp.org>
32342
32343         getline: Update regarding AIX.
32344         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32345         Reported by Rainer Tammer.
32346
32347 2010-07-30  Bruno Haible  <bruno@clisp.org>
32348
32349         wcwidth: Drop replacement on AIX 7.
32350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32351         AIX 7.
32352         Reported by Rainer Tammer.
32353
32354 2010-07-30  Bruno Haible  <bruno@clisp.org>
32355
32356         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32357         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32358         a 'char *'.
32359         Reported by Rainer Tammer.
32360
32361 2010-07-30  Bruno Haible  <bruno@clisp.org>
32362
32363         unlink: Update regarding AIX.
32364         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32365         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32366         Reported by Rainer Tammer.
32367
32368 2010-07-30  Bruno Haible  <bruno@clisp.org>
32369
32370         symlink: Update regarding AIX.
32371         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32372         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32373         Reported by Rainer Tammer.
32374
32375 2010-07-30  Bruno Haible  <bruno@clisp.org>
32376
32377         strndup: Update regarding AIX.
32378         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32379         AIX 7.
32380         Reported by Rainer Tammer.
32381
32382 2010-07-30  Bruno Haible  <bruno@clisp.org>
32383
32384         stat: Update regarding AIX.
32385         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32386         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32387         Reported by Rainer Tammer.
32388
32389 2010-07-30  Bruno Haible  <bruno@clisp.org>
32390
32391         truncl: Fix autoconf test.
32392         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32393         whether truncl works.
32394         Reported by Rainer Tammer.
32395
32396 2010-07-30  Bruno Haible  <bruno@clisp.org>
32397
32398         round: Update regarding AIX.
32399         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32400         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32401         Reported by Rainer Tammer.
32402
32403 2010-07-30  Bruno Haible  <bruno@clisp.org>
32404
32405         rename: Update regarding AIX.
32406         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32407         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32408         Reported by Rainer Tammer.
32409
32410 2010-07-30  Bruno Haible  <bruno@clisp.org>
32411
32412         printf.m4: Update regarding AIX.
32413         * m4/printf.m4: Update comments regarding AIX.
32414         Reported by Rainer Tammer.
32415
32416 2010-07-30  Bruno Haible  <bruno@clisp.org>
32417
32418         iconv: Update regarding AIX.
32419         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32420         AIX 7.
32421         Reported by Rainer Tammer.
32422
32423 2010-07-30  Bruno Haible  <bruno@clisp.org>
32424
32425         getopt: Update regarding AIX.
32426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32427         no on AIX.
32428         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32429         Reported by Rainer Tammer.
32430
32431 2010-07-30  Bruno Haible  <bruno@clisp.org>
32432
32433         ldexpl; Update regarding AIX.
32434         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32435         on AIX 7.
32436         Reported by Rainer Tammer.
32437
32438 2010-07-30  Bruno Haible  <bruno@clisp.org>
32439
32440         frexpl: Update regarding AIX.
32441         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32442         on AIX 7.
32443         Reported by Rainer Tammer.
32444
32445 2010-07-30  Bruno Haible  <bruno@clisp.org>
32446
32447         open, fopen: Update regarding AIX.
32448         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32449         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32450         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32451         * doc/posix-functions/fopen.texi: Likewise.
32452         Reported by Rainer Tammer.
32453
32454 2010-07-30  Bruno Haible  <bruno@clisp.org>
32455
32456         chown: Update doc regarding AIX.
32457         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32458         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32459         Reported by Rainer Tammer.
32460
32461 2010-07-30  Eric Blake  <eblake@redhat.com>
32462
32463         strtod: fix bug in replacement function on AIX
32464         * lib/strtod.c (strtod): Special case broken "0x" parse in
32465         underlying strtod.
32466         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32467         * doc/posix-functions/strtod.texi (strtod): Likewise.
32468         Reported by Rainer Tammer.
32469
32470 2010-07-30  Bruno Haible  <bruno@clisp.org>
32471
32472         mbrlen: Fix cross-compilation guess for AIX.
32473         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32474         guess. Leftover from 2008-12-22.
32475
32476 2010-07-30  Bruno Haible  <bruno@clisp.org>
32477
32478         mbrtowc: Fix cross-compilation guess for AIX.
32479         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32480         guess. Leftover from 2008-12-21.
32481
32482 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32483
32484         init.sh: work around trap limitation of some shells
32485         * tests/init.sh (setup_): Move exit trap outside of shell function.
32486
32487 2010-07-29  Eric Blake  <eblake@redhat.com>
32488
32489         strtod: aid debugging
32490         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32491         understanding why strtod is rejected.
32492
32493 2010-07-28  Bruno Haible  <bruno@clisp.org>
32494
32495         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32496         * lib/unistr/u8-chr.c: Include <string.h>.
32497         * tests/unistr/test-u8-chr.c: Likewise.
32498         * tests/unistr/test-u16-chr.c: Likewise.
32499         * tests/unistr/test-u32-chr.c: Likewise.
32500         * tests/unistr/test-u8-strchr.c: Likewise.
32501         * tests/unistr/test-u16-strchr.c: Likewise.
32502         * tests/unistr/test-u32-strchr.c: Likewise.
32503         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32504         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32505         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32506         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32507
32508 2010-07-28  Bruno Haible  <bruno@clisp.org>
32509
32510         Use spaces for indentation, not tabs.
32511         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32512
32513 2010-07-27  Bruno Haible  <bruno@clisp.org>
32514
32515         mbspcasecmp: Fix function specification.
32516         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32517         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32518         Reported by Eric Blake <eblake@redhat.com>.
32519
32520 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32521
32522         timespec: use cast and not conditional, as truncation isn't possible
32523         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32524         instead of a conditional.  Comment about the situation in more detail.
32525         This undoes most of the 2009-10-29 patch.
32526
32527 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32528
32529         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32530         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32531         * lib/unistr/u8-strchr.c: Likewise.
32532         * modules/unistr/u8-chr: Depend on memchr.
32533
32534         unistr/u*-strchr: add tests
32535         * modules/unistr/u8-strchr-tests: New file.
32536         * modules/unistr/u16-strchr-tests: New file.
32537         * modules/unistr/u32-strchr-tests: New file.
32538         * tests/unistr/test-strchr.h: New file.
32539         * tests/unistr/test-u8-strchr.c: New file.
32540         * tests/unistr/test-u16-strchr.c: New file.
32541         * tests/unistr/test-u32-strchr.c: New file.
32542
32543         unistr/u*-chr: test multibyte sequences more
32544         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32545         test vector.
32546         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32547         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32548         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32549
32550         unistr/u*-chr: test multibyte sequences
32551         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32552
32553         unistr/u*-chr: prepare for multibyte tests
32554         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32555         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32556         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32557         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32558         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32559         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32560
32561 2010-07-18  Bruno Haible  <bruno@clisp.org>
32562
32563         unistr/u8-strchr: Optimize non-ASCII argument case.
32564         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32565         because the first byte often matches anyway.
32566         Reported by Pádraig Brady <P@draigbrady.com>.
32567
32568 2010-07-15  Karl Berry  <karl@gnu.org>
32569
32570         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32571
32572 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32573
32574         getcwd: on Solaris, work better if ancestors are inaccessible
32575         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32576         buffer and size, try again with a large buffer.  This works better
32577         on Solaris, since its getcwd succeeds even if the path to the root
32578         is inaccessible, and this is helpful in common cases such as .zfs
32579         hidden directories.  Problem reported by J Chapman Flack in
32580         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32581         Use system getcwd if it's declared, not merely if it's partly
32582         working; use the partly-working test only to avoid needless effort
32583         if the system getcwd fails.
32584         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32585         comment that was already obsolete and is now even more obsolete.
32586         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32587         now might call strdup.
32588
32589 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32590
32591         pthread: Add enough so that coreutils/src/sort.c compiles.
32592         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32593         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32594         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32595         Include <sys/types.h>, in case it defines pthread_t.
32596         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32597         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32598         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32599         (pthread_rwlockattr_t, pthread_spinlock_t):
32600         New typedefs, if HAVE_PTHREAD_T is not defined.
32601         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32602         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32603         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32604         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32605         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32606         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32607         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32608         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32609         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32610         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32611         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32612         New macros.
32613         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32614         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32615         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32616         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32617         (pthread_spin_unlock): New dummy functions.
32618         (pthread_create): Return EAGAIN; don't set errno.
32619         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32620         require AC_C_INLINE.
32621         * modules/pthread (Depends-on): Add sched, time.
32622         (pthread.h): Use AM_V_GEN.
32623
32624 2010-07-13  Bruno Haible  <bruno@clisp.org>
32625
32626         striconveh: Don't malloc memory if the result buffer is sufficient.
32627         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32628         buffer if its size is sufficient.
32629         Reported by Ludovic Courtès <ludo@gnu.org>.
32630
32631 2010-07-13  Bruno Haible  <bruno@clisp.org>
32632
32633         strtod: Add safety check.
32634         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32635
32636 2010-07-12  Bruno Haible  <bruno@clisp.org>
32637
32638         Unify tests that set gl_cv_func_ldexpl_no_libm.
32639         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32640         gl_FUNC_LDEXPL.
32641         (gl_FUNC_LDEXPL): Invoke it.
32642         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32643
32644 2010-07-12  Bruno Haible  <bruno@clisp.org>
32645
32646         Unify tests that set gl_cv_func_ldexp_no_libm.
32647         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32648         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32649         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32650         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32651         * modules/strtod (Files): Add m4/ldexp.m4.
32652
32653 2010-07-12  Bruno Haible  <bruno@clisp.org>
32654
32655         Unify tests that set gl_cv_func_frexpl_no_libm.
32656         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32657         gl_FUNC_FREXPL_NO_LIBM.
32658         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32659         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32660
32661 2010-07-12  Bruno Haible  <bruno@clisp.org>
32662
32663         Unify tests that set gl_cv_func_frexp_no_libm.
32664         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32665         gl_FUNC_FREXP_NO_LIBM.
32666         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32667         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32668
32669 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32670
32671         memcoll: clarify sizes versus lengths, document better, and tweak perf
32672         * lib/memcoll.c (strcoll_loop, memcoll0):
32673         Improve quality of descriptive comments.  Name variables
32674         consistently as to whether they are lengths (which do not include
32675         terminating null) versus sizes (which do).
32676         * lib/xmemcoll.c (xmemcoll0): Likewise.
32677         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32678         returned when s1size == 0; this is easier to compile and saves
32679         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32680
32681 2010-07-12  Bruno Haible  <bruno@clisp.org>
32682
32683         Tests for module '_Exit'.
32684         * modules/_Exit-tests: New file.
32685         * tests/test-_Exit.sh: New file.
32686         * tests/test-_Exit.c: New file.
32687
32688         New module '_Exit'.
32689         * lib/stdlib.in.h (__attribute__): New macro.
32690         (_Exit): New declaration.
32691         * lib/_Exit.c: New file.
32692         * m4/_Exit.m4: New file.
32693         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32694         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32695         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32696         * modules/_Exit: New file.
32697         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32698         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32699
32700 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32701
32702         strtod: make it more-accurate typically, and don't require libm
32703         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32704         Include limits.h.  Don't include string.h.
32705         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32706         (locale_isspace): New function, so that no casts are needed to
32707         check whether *s is a space.
32708         (ldexp): Provide an unused dummy if not available.
32709         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32710         (strtod): Use them.  This implementation prefers to use the
32711         underlying strtod if available, falling back on our own code
32712         only to fix known bugs.  This is more likely to produce an
32713         accurate result.  Also, it avoids the use of libm functions.
32714         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32715         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32716         was absent, but it caused a test failure with coreutils.
32717         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32718         with libm.
32719         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32720         * modules/strtod-tests (Makefile.am): Likewise.
32721
32722 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32723             Bruno Haible  <bruno@clisp.org>
32724
32725         unistr/u8-strchr: Optimize ASCII argument case.
32726         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32727
32728 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32729
32730         (x)memcoll: minor tweaks
32731         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32732         is after the type that it qualifies.
32733         (memcoll0): Likewise.
32734         * lib/memcoll.h (memcoll0): Likewise.
32735         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32736         * lib/xmemcoll.h (xmemcoll0): Likewise.
32737         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32738         differs from memcoll in that the NUL byte is part of the argument.
32739         Omit the abort-checks, as performance is a real issue here.  Plus,
32740         the checks were wrong anyway (an off-by-one error).  Omit local
32741         variable 'diff', as it's a bit clearer that way.
32742         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32743         no longer needed.
32744
32745 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32746
32747         (x)memcoll: speedup when input is known to be NUL delimited
32748         * lib/memcoll.c: Include stdlib.
32749         (memcoll0): New function.
32750         (strcoll_loop): New function, refactored for use in both memcoll
32751         and memcoll0.
32752         * lib/memcoll.h (memcoll0): Add prototype.
32753         * lib/xmemcoll.c (xmemcoll0): New function.
32754         (collate_error): New function, refactored for use in both xmemcoll
32755         and xmemcoll0.
32756         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32757         * m4/memcoll.m4: add inline invocation.
32758
32759 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32760
32761         * build-aux/bootstrap: Remove any local translations
32762         from the translation project synchronization directory,
32763         so that local only translations are not distributed.
32764
32765 2010-07-04  Bruno Haible  <bruno@clisp.org>
32766
32767         fsusage: Clarify which code applies to which platforms.
32768         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32769         platform.
32770         * lib/fsusage.c (get_fs_usage): Likewise.
32771
32772 2010-07-04  Bruno Haible  <bruno@clisp.org>
32773
32774         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32775         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32776         Reported by Martin Lambers <marlam@marlam.de>.
32777
32778 2010-07-04  Jim Meyering  <meyering@redhat.com>
32779
32780         hash: once again explicitly disallow insertion of NULL
32781         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32782         inserting a NULL pointer cannot work with these functions.
32783         Add a comment with details.
32784         This reverts part of the 2010-07-01 commit, 5bef1a35
32785         "hash: extend module to deal with non-pointer keys".
32786
32787 2010-07-01  Bruno Haible  <bruno@clisp.org>
32788
32789         stdbool: Update doc.
32790         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32791         Info from Christian Weisgerber <naddy@mips.inka.de>.
32792
32793 2010-07-01  Jim Meyering  <meyering@redhat.com>
32794
32795         hash: extend module to deal with non-pointer keys
32796         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32797         but that allows insertion of non-pointer entries.
32798         Do not disallow an ENTRY value of NULL.
32799         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32800         * lib/hash.h (hash_insert0): Declare.
32801
32802 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32803
32804         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32805         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32806         not present (i.e. with autoconf 2.59 and when using gettextize, not
32807         gnulib), require AC_GNU_SOURCE instead.
32808
32809 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32810
32811         idpriv-drop: Fix tests.
32812         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32813         not to the test-idpriv-droptemp program.
32814
32815 2010-06-29  Bruno Haible  <bruno@clisp.org>
32816
32817         string: Fix syntax error with g++ 2.96.
32818         * lib/string.in.h (__pure__): Remove definition.
32819         (_GL_ATTRIBUTE_PURE): New macro.
32820         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32821         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32822         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32823
32824 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32825
32826         unitypes: Fix bug introduced on 2010-05-18.
32827         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32828
32829 2010-06-22  Eric Blake  <eblake@redhat.com>
32830
32831         memmem: slight optimization
32832         * lib/str-two-way.h (critical_factorization): Update comments.
32833         Reduce work during factorization phase.
32834         Reported by Carlos Bueno <carlos@bueno.org>.
32835
32836 2010-06-21  Bruno Haible  <bruno@clisp.org>
32837
32838         Fix HAVE_CALLOC_POSIX misnomer.
32839         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32840         !HAVE_CALLOC_POSIX.
32841         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32842         HAVE_CALLOC_POSIX.
32843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32844         instead of HAVE_CALLOC_POSIX.
32845         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32846         HAVE_CALLOC_POSIX.
32847
32848         Use modern idiom for calloc() replacement.
32849         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32850         AC_FUNC_CALLOC.
32851         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32852         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32853         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32854         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32855         (gl_REPLACE_CALLOC): New macro.
32856
32857 2010-06-21  Bruno Haible  <bruno@clisp.org>
32858
32859         Fix HAVE_REALLOC_POSIX misnomer.
32860         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32861         !HAVE_REALLOC_POSIX.
32862         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32863         HAVE_REALLOC_POSIX.
32864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32865         instead of HAVE_REALLOC_POSIX.
32866         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32867         HAVE_REALLOC_POSIX.
32868
32869         Use modern idiom for realloc() replacement.
32870         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32871         AC_FUNC_REALLOC.
32872         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32873         Autoconf's AC_FUNC_REALLOC.
32874         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32875         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32876         (gl_REPLACE_REALLOC): New macro.
32877         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32878
32879 2010-06-21  Bruno Haible  <bruno@clisp.org>
32880
32881         Fix HAVE_MALLOC_POSIX misnomer.
32882         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32883         !HAVE_MALLOC_POSIX.
32884         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32885         HAVE_MALLOC_POSIX.
32886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32887         instead of HAVE_MALLOC_POSIX.
32888         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32889         HAVE_MALLOC_POSIX.
32890
32891         Use modern idiom for malloc() replacement.
32892         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32893         AC_FUNC_MALLOC.
32894         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32895         Autoconf's AC_FUNC_MALLOC.
32896         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32897         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32898         (gl_REPLACE_MALLOC): New macro.
32899         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32900
32901 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32902
32903         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32904         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32905         This macro takes 3 arguments, not 4.
32906
32907 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32908
32909         ipv6: fix detection under mingw
32910         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32911         in6_addr.
32912
32913 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32914
32915         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32916         that strtod() works when cross-compiling to a glibc version known
32917         to work.
32918
32919 2010-06-15  Bruno Haible  <bruno@clisp.org>
32920
32921         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32922
32923 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32924
32925         select: Correct timeout.
32926         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32927
32928 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32929
32930         git-version-gen: init shell var to avoid env var influence
32931         * build-aux/git-version-gen (v): Init shell var to empty.
32932
32933 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32934
32935         priv-set: Don't assume that priv.h exists merely because getppriv does.
32936         See Jan Andersen's bug report about AIX 5L in
32937         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32938         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32939         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32940         * lib/priv-set.h: Likewise.
32941         * tests/test-priv-set.c: Likewise.
32942
32943 2010-06-13  Bruno Haible  <bruno@clisp.org>
32944
32945         relocatable: Make it easier to test whether to install wrappers.
32946         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32947         RELOCATABLE_VIA_WRAPPER.
32948
32949 2010-06-13  Bruno Haible  <bruno@clisp.org>
32950
32951         gnulib-tool: Display specified modules and dependencies differently.
32952         * gnulib-tool (func_show_module_list): New function.
32953         (func_import, func_create_testdir): Invoke it.
32954         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32955
32956 2010-06-13  Bruno Haible  <bruno@clisp.org>
32957
32958         gnulib-tool: Align code of func_import and func_create_testdir.
32959         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32960         specified_modules.
32961
32962 2010-06-12  Jim Meyering  <meyering@redhat.com>
32963
32964         test-inttostr: avoid spurious failure on Solaris 9
32965         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32966         to accept "%ju".  Reported by Bruno Haible.
32967
32968 2010-06-11  Jim Meyering  <meyering@redhat.com>
32969
32970         test-sys_socket: mark variables as used more readably
32971         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32972         as "used" explicitly via (void) statement casts.  This is more
32973         readable than using them in an artificial return expression.
32974         Suggestion from Bruno Haible.
32975
32976 2010-06-11  Bruno Haible  <bruno@clisp.org>
32977
32978         Avoid some more warnings from "gcc -Wwrite-strings".
32979         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32980         to 'const char *'.
32981         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32982         * tests/test-c-strcasestr.c (main): Likewise.
32983         * tests/test-mbscasestr1.c (main): Likewise.
32984         * tests/test-mbscasestr2.c (main): Likewise.
32985         * tests/test-memmem.c (main): Likewise.
32986         * tests/test-strstr.c (main): Likewise.
32987         * tests/test-strcasestr.c (main): Likewise.
32988
32989 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32990
32991         init.sh: change framework_failure_ to fail with status 99, not 1
32992         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32993         automake's parallel-tests rule that this is an unexpected failure,
32994         even if the test is listed in XFAIL_TESTS.
32995
32996 2010-06-11  Jim Meyering  <meyering@redhat.com>
32997
32998         test-inttostr: avoid warnings about 4-6KB literal strings
32999         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33000         Include "macros.h", for its definition of ASSERT.
33001         (CK): s/assert/ASSERT/
33002         * modules/inttostr-tests (Files): Add macros.h.
33003
33004         init.sh: don't use $ME_ or skip_ before they are defined
33005         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33006         their first uses.  Also hoist their companions: warn_, fail_,
33007         framework_failure_, $stderr_fileno.  Prompted by a patch from
33008         Stefano Lattarini.
33009
33010         test-sys_socket: avoid set-but-not-used warnings from gcc
33011         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33012         avoid warning about set-but-not-used variables.
33013
33014         test-xvasprintf: avoid 'const' discard warnings
33015         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33016         "const" when assigning from literal strings.
33017         (test_xasprintf): Add "void" in function argument list to placate
33018         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33019
33020         tests: avoid compilation warnings in argmatch and exclude tests...
33021         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33022         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33023         Since it always exits, declare with the "noreturn" attribute.
33024         * tests/test-argmatch.c: Likewise.
33025
33026         tests: avoid 'const' discard warnings in mbsstr tests
33027         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33028         * tests/test-mbsstr2.c (main): Likewise.
33029
33030         test-verify: avoid warning from gcc's -Wmissing-declarations
33031         * tests/test-verify.c (function): Declare to be static.
33032
33033         test-inttostr.c: include <string.h> for use of strcmp
33034         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33035
33036         test-linkat: avoid failed assertion on "other" architectures
33037         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33038         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33039         sparc: https://bugs.launchpad.net/bugs/591968
33040
33041 2010-06-11  Jim Meyering  <meyering@redhat.com>
33042
33043         printf.m4: avoid autoconf's "Expanded Before Required" warning
33044         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33045         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33046         autoconf warning.
33047
33048 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33049
33050         Replacement header templates are now named with ".in", not "_".
33051         * doc/gnulib-intro.texi: Correct.
33052
33053 2010-06-10  Jim Meyering  <meyering@redhat.com>
33054
33055         inttostr-tests: depend on snprintf, not snprintf-posix
33056         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33057         snprintf-posix, to avoid this aclocal failure:
33058           missing file gnulib-tests/vasnprintf.c
33059           configure.ac:45: error: expected source file, required through \
33060           AC_LIBSOURCES, not found
33061
33062 2010-06-10  Jim Meyering  <meyering@redhat.com>
33063
33064         inttostr: add a new function, inttostr, and tests
33065         The namesake function was not available.  The existence of the
33066         template file, inttostr.c makes its addition nontrivial.
33067         * lib/anytostr.c: Rename from inttostr.c.
33068         (anytostr): Rename from inttostr.
33069         * lib/inttostr.c: New file.
33070         * modules/inttostr (Files): Add anytostr.c.
33071         (Makefile.am): Set lib_SOURCES instead of ...
33072         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33073         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33074         * lib/offtostr.c: Likewise.
33075         * lib/uinttostr.c: Likewise.
33076         * lib/umaxtostr.c: Likewise.
33077         * modules/inttostr-tests: New file.
33078         * tests/test-inttostr.c: New file.  Test these functions.
33079
33080 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33081             Bruno Haible  <bruno@clisp.org>
33082
33083         Add "Extending Gnulib" chapter to manual.
33084         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33085         chapter.
33086         (Extending Gnulib): New chapter.
33087         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33088         chapter.
33089
33090 2010-06-09  Bruno Haible  <bruno@clisp.org>
33091
33092         Avoid relocwrapper link errors due to gnulib replacement functions.
33093         * lib/areadlink.c: Use the system's malloc, realloc functions.
33094         (areadlink): Set errno to ENOMEM explicitly.
33095         * modules/areadlink (Depends-on): Remove malloc-posix.
33096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33097
33098 2010-06-09  Bruno Haible  <bruno@clisp.org>
33099
33100         Avoid relocwrapper link errors due to gnulib replacement functions.
33101         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33102         * lib/malloca.c: Likewise.
33103         * lib/relocatable.c: Likewise.
33104         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33105         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33106         * lib/setenv.c: Use the system's malloc, realloc functions.
33107         * lib/strerror.c: Use the system's sprintf function.
33108         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33109
33110 2010-06-04  Bruno Haible  <bruno@clisp.org>
33111
33112         Prefer documented low-level autoconf macro names.
33113         * m4/lib-link.m4: Use m4_translit instead of translit.
33114         * m4/environ.m4: Likewise.
33115         * m4/mathfunc.m4: Likewise.
33116         * m4/onceonly.m4: Likewise.
33117         * m4/stdint.m4: Likewise.
33118         Suggested by Eric Blake.
33119
33120 2010-06-04  Martin Lambers  <marlam@marlam.de>
33121             Bruno Haible  <bruno@clisp.org>
33122
33123         havelib: Allow library names with '+' characters.
33124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33125         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33126
33127 2010-06-09  Bruno Haible  <bruno@clisp.org>
33128
33129         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33130         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33131         realloc failed.
33132
33133 2010-06-08  Peter Simons  <simons@cryp.to>
33134
33135         maint.mk: make the news-check rule more configurable
33136         * top/maint.mk (news-check-lines-spec): New variable.
33137         (news-check): Use "sed -n 1,10p" in place of "head".
33138
33139 2010-06-07  Jim Meyering  <meyering@redhat.com>
33140
33141         do-release-commit-and-tag: fix typo in --help
33142         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33143
33144         regex: avoid new dead-code warning with gcc-4.6.0
33145         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33146         if-block containing a while-loop.  It's been unused for at least
33147         5 years.
33148
33149 2010-06-05  Bruno Haible  <bruno@clisp.org>
33150
33151         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33152         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33153
33154 2010-06-04  Bruno Haible  <bruno@clisp.org>
33155
33156         Update to GNU gettext 0.18.1.
33157         * modules/gettext (configure.ac): Require gettext infrastructure from
33158         version 0.18.1.
33159
33160 2010-06-03  Bruno Haible  <bruno@clisp.org>
33161
33162         Don't use AC_LIBOBJ with file names in subdirectories.
33163         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33164         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33165         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33166         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33167         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33168         gl_LIBUNISTRING_LIBSOURCE.
33169         (Makefile.am): Augment lib_SOURCES here, conditionally.
33170         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33171
33172 2010-06-03  Bruno Haible  <bruno@clisp.org>
33173
33174         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33175         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33176         expansion does not end with a newline.
33177         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33178         unnecessary newline.
33179
33180 2010-06-03  Bruno Haible  <bruno@clisp.org>
33181
33182         Reduce dependencies.
33183         * tests/test-quotearg.h: New file, extracted from
33184         tests/test-quotearg.c.
33185         * tests/test-quotearg-simple.c: New file, extracted from
33186         tests/test-quotearg.c.
33187         * tests/test-quotearg.c: Don't include <ctype.h>.
33188         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33189         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33190         use_quote_double_quotes, use_quotearg_colon): Moved to
33191         tests/test-quotearg.h.
33192         (results_g, flag_results, custom_quotes, custom_results): Moved
33193         to tests/test-quotearg-simple.c.
33194         (main): Moved the part that does not depend on gettext to
33195         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33196         performed.
33197         * modules/quotearg-simple: New file.
33198         * modules/quotearg-simple-tests: New file.
33199         * modules/quotearg (Depends-on): Add quotearg-simple.
33200         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33201         (Files): Add tests/test-quotearg.h.
33202         Reported by Paolo Bonzini.
33203
33204 2010-06-03  Bruno Haible  <bruno@clisp.org>
33205
33206         Reduce dependencies.
33207         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33208
33209 2010-06-03  Bruno Haible  <bruno@clisp.org>
33210
33211         time: Undefine more broken macros.
33212         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33213         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33214         Reported by Eric Blake.
33215
33216 2010-06-03  Bruno Haible  <bruno@clisp.org>
33217
33218         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33219         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33220         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33221         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33222         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33223         Reported by Ludovic Courtès <ludo@gnu.org>.
33224
33225 2010-06-02  Eric Blake  <eblake@redhat.com>
33226
33227         time: work with mingw + pthreads-win32 library
33228         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33229         if timespec is defined only in pthread.h.
33230         * modules/time (Makefile.am): Substitute it.
33231         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33232         <pthread.h>, when needed.
33233         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33234         from the library.
33235
33236 2010-05-31  Bruno Haible  <bruno@clisp.org>
33237
33238         Avoid expanding two macros in the wrong order.
33239         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33240         gl_LIBUNISTRING if it is defined.
33241         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33242         autoconf >= 2.64.
33243         Reported by Ludovic Courtès <ludo@gnu.org>.
33244
33245 2010-05-27  Jim Meyering  <meyering@redhat.com>
33246
33247         maint.mk: also prohibit "#undef" of always-defined symbols
33248         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33249         Allow more than one space before the symbol name.
33250         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33251         the regexp uses alternation.
33252
33253 2010-05-26  Eric Blake  <eblake@redhat.com>
33254
33255         maint.mk: avoid echo -e
33256         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33257         Convert all uses of echo -* to printf.
33258         Reported by Matthias Bolte.
33259
33260 2010-05-25  Bruno Haible  <bruno@clisp.org>
33261
33262         Update to GNU gettext 0.18, part 2.
33263         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33264         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33265
33266 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33267
33268         Add missing include in test-pwrite.c.
33269         * tests/test-pwrite.c: Include string.h, for strcmp.
33270
33271 2010-05-24  Bruno Haible  <bruno@clisp.org>
33272
33273         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33274
33275 2010-05-24  Bruno Haible  <bruno@clisp.org>
33276
33277         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33278         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33279         iconveh_error argument.
33280         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33281         U_STRCONV_TO_LOCALE.
33282         * lib/unistr/u16-strcoll.c: Likewise.
33283         * lib/unistr/u32-strcoll.c: Likewise.
33284         * modules/unistr/u8-strcoll (Depends-on): Add
33285         uniconv/u8-strconv-to-enc, localcharset. Remove
33286         uniconv/u8-strconv-to-locale.
33287         (configure.ac): Bump version number.
33288         * modules/unistr/u16-strcoll (Depends-on): Add
33289         uniconv/u16-strconv-to-enc, localcharset. Remove
33290         uniconv/u16-strconv-to-locale.
33291         (configure.ac): Bump version number.
33292         * modules/unistr/u32-strcoll (Depends-on): Add
33293         uniconv/u32-strconv-to-enc, localcharset. Remove
33294         uniconv/u32-strconv-to-locale.
33295         (configure.ac): Bump version number.
33296
33297 2010-05-24  Bruno Haible  <bruno@clisp.org>
33298
33299         Avoid a test failure on NetBSD 5.0.
33300         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33301         an iconv() bug.
33302
33303 2010-05-24  Bruno Haible  <bruno@clisp.org>
33304
33305         Adjust #include directive style.
33306         * modules/regex (Includes): Recommend to write <regex.h>.
33307
33308 2010-05-24  Bruno Haible  <bruno@clisp.org>
33309
33310         regex: Don't require alloca.
33311         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33312         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33313         only inside if (0).
33314
33315 2010-05-23  Jim Meyering  <meyering@redhat.com>
33316
33317         test-renameat.c: include <sys/stat.h>
33318         * tests/test-renameat.c: Include <sys/stat.h>; required for
33319         definition of S_IS* macros.
33320
33321 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33322
33323         Update maintainer documentation for 'relocatable-prog' module.
33324         * doc/relocatable-maint.texi: Update.
33325         Comments by Bruno Haible.
33326
33327 2010-05-23  Bruno Haible  <bruno@clisp.org>
33328
33329         git-merge-changelog: Enable --split-merged-entry by default.
33330         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33331         (usage): Don't mention this option any more.
33332         Reported by Ralf Wildenhues.
33333
33334 2010-05-23  Jim Meyering  <meyering@redhat.com>
33335
33336         test-pwrite: do not leave behind a test file named "out"
33337         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33338         The trivial-looking use of init.sh is really necessary.
33339         It ensures that the temporary file, "out", is created in
33340         a temporary directory, and removed upon termination.
33341         * tests/test-pwrite.sh: Re-add file.
33342         * modules/pwrite-tests: Reference it.
33343
33344 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33345
33346         Fix output redirection buglet in init.sh.
33347         * tests/init.sh: Fix redirection of stderr.
33348
33349 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33350
33351         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33352
33353 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33354
33355         * modules/valgrind-tests: New file.
33356         * m4/valgrind-tests.m4: New file.
33357         * doc/valgrind-tests.texi: New file.
33358         * doc/gnulib.texi (Running self-tests under valgrind): New
33359         section.
33360
33361 2010-05-19  Bruno Haible  <bruno@clisp.org>
33362
33363         Clean up dead code in recent commit.
33364         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33365         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33366         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33367         Suggested by Paolo Bonzini.
33368
33369 2010-05-19  Bruno Haible  <bruno@clisp.org>
33370
33371         Avoid valgrind error reports from libunistring.
33372         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33373         * modules/libunistring (Files): Add it.
33374         * modules/libunistring-optional (Files): Likewise.
33375
33376 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33377             Bruno Haible  <bruno@clisp.org>
33378
33379         New module 'libunistring-optional'.
33380         * modules/libunistring-optional: New file.
33381         * m4/libunistring-base.m4: New file.
33382         * m4/libunistring-optional.m4: New file.
33383         * lib/unicase.in.h: Renamed from lib/unicase.h.
33384         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33385         * lib/unictype.in.h: Renamed from lib/unictype.h.
33386         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33387         * lib/uniname.in.h: Renamed from lib/uniname.h.
33388         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33389         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33390         * lib/unistr.in.h: Renamed from lib/unistr.h.
33391         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33392         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33393         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33394         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33395         gl_LIBUNISTRING. If the library was found, determine the installed
33396         version and set LIBUNISTRING_VERSION.
33397         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33398         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33399         handle a configuration option --with-included-libunistring.
33400         * modules/libunistring (Files): Add m4/absolute-header.m4.
33401         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33402         Add m4/libunistring-base.m4.
33403         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33404         (Makefile.am): Build unicase.h from unicase.in.h.
33405         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33406         Add m4/libunistring-base.m4.
33407         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33408         (Makefile.am): Build uniconv.h from uniconv.in.h.
33409         * modules/unictype/base (Files): Use unictype.in.h instead of
33410         unictype.h. Add m4/libunistring-base.m4.
33411         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33412         (Makefile.am): Build unictype.h from unictype.in.h.
33413         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33414         Add m4/libunistring-base.m4.
33415         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33416         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33417         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33418         Add m4/libunistring-base.m4.
33419         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33420         (Makefile.am): Build uniname.h from uniname.in.h.
33421         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33422         Add m4/libunistring-base.m4.
33423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33424         (Makefile.am): Build uninorm.h from uninorm.in.h.
33425         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33426         unistdio.h. Add m4/libunistring-base.m4.
33427         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33428         (Makefile.am): Build unistdio.h from unistdio.in.h.
33429         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33430         Add m4/libunistring-base.m4.
33431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33432         (Makefile.am): Build unistr.h from unistr.in.h.
33433         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33434         Add m4/libunistring-base.m4.
33435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33436         (Makefile.am): Build unitypes.h from unitypes.in.h.
33437         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33438         Add m4/libunistring-base.m4.
33439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33440         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33441         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33442         uniwidth.h. Add m4/libunistring-base.m4.
33443         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33444         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33445         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33446         instead of augmenting lib_SOURCES.
33447         * modules/unicase/empty-suffix-context: Likewise.
33448         * modules/unicase/locale-language: Likewise.
33449         * modules/unicase/tolower: Likewise.
33450         * modules/unicase/totitle: Likewise.
33451         * modules/unicase/toupper: Likewise.
33452         * modules/unicase/u8-casecmp: Likewise.
33453         * modules/unicase/u8-casecoll: Likewise.
33454         * modules/unicase/u8-casefold: Likewise.
33455         * modules/unicase/u8-casexfrm: Likewise.
33456         * modules/unicase/u8-ct-casefold: Likewise.
33457         * modules/unicase/u8-ct-tolower: Likewise.
33458         * modules/unicase/u8-ct-totitle: Likewise.
33459         * modules/unicase/u8-ct-toupper: Likewise.
33460         * modules/unicase/u8-is-cased: Likewise.
33461         * modules/unicase/u8-is-casefolded: Likewise.
33462         * modules/unicase/u8-is-lowercase: Likewise.
33463         * modules/unicase/u8-is-titlecase: Likewise.
33464         * modules/unicase/u8-is-uppercase: Likewise.
33465         * modules/unicase/u8-prefix-context: Likewise.
33466         * modules/unicase/u8-suffix-context: Likewise.
33467         * modules/unicase/u8-tolower: Likewise.
33468         * modules/unicase/u8-totitle: Likewise.
33469         * modules/unicase/u8-toupper: Likewise.
33470         * modules/unicase/u16-casecmp: Likewise.
33471         * modules/unicase/u16-casecoll: Likewise.
33472         * modules/unicase/u16-casefold: Likewise.
33473         * modules/unicase/u16-casexfrm: Likewise.
33474         * modules/unicase/u16-ct-casefold: Likewise.
33475         * modules/unicase/u16-ct-tolower: Likewise.
33476         * modules/unicase/u16-ct-totitle: Likewise.
33477         * modules/unicase/u16-ct-toupper: Likewise.
33478         * modules/unicase/u16-is-cased: Likewise.
33479         * modules/unicase/u16-is-casefolded: Likewise.
33480         * modules/unicase/u16-is-lowercase: Likewise.
33481         * modules/unicase/u16-is-titlecase: Likewise.
33482         * modules/unicase/u16-is-uppercase: Likewise.
33483         * modules/unicase/u16-prefix-context: Likewise.
33484         * modules/unicase/u16-suffix-context: Likewise.
33485         * modules/unicase/u16-tolower: Likewise.
33486         * modules/unicase/u16-totitle: Likewise.
33487         * modules/unicase/u16-toupper: Likewise.
33488         * modules/unicase/u32-casecmp: Likewise.
33489         * modules/unicase/u32-casecoll: Likewise.
33490         * modules/unicase/u32-casefold: Likewise.
33491         * modules/unicase/u32-casexfrm: Likewise.
33492         * modules/unicase/u32-ct-casefold: Likewise.
33493         * modules/unicase/u32-ct-tolower: Likewise.
33494         * modules/unicase/u32-ct-totitle: Likewise.
33495         * modules/unicase/u32-ct-toupper: Likewise.
33496         * modules/unicase/u32-is-cased: Likewise.
33497         * modules/unicase/u32-is-casefolded: Likewise.
33498         * modules/unicase/u32-is-lowercase: Likewise.
33499         * modules/unicase/u32-is-titlecase: Likewise.
33500         * modules/unicase/u32-is-uppercase: Likewise.
33501         * modules/unicase/u32-prefix-context: Likewise.
33502         * modules/unicase/u32-suffix-context: Likewise.
33503         * modules/unicase/u32-tolower: Likewise.
33504         * modules/unicase/u32-totitle: Likewise.
33505         * modules/unicase/u32-toupper: Likewise.
33506         * modules/unicase/ulc-casecmp: Likewise.
33507         * modules/unicase/ulc-casecoll: Likewise.
33508         * modules/unicase/ulc-casexfrm: Likewise.
33509         * modules/uniconv/u8-conv-from-enc: Likewise.
33510         * modules/uniconv/u8-conv-to-enc: Likewise.
33511         * modules/uniconv/u8-strconv-from-enc: Likewise.
33512         * modules/uniconv/u8-strconv-from-locale: Likewise.
33513         * modules/uniconv/u8-strconv-to-enc: Likewise.
33514         * modules/uniconv/u8-strconv-to-locale: Likewise.
33515         * modules/uniconv/u16-conv-from-enc: Likewise.
33516         * modules/uniconv/u16-conv-to-enc: Likewise.
33517         * modules/uniconv/u16-strconv-from-enc: Likewise.
33518         * modules/uniconv/u16-strconv-from-locale: Likewise.
33519         * modules/uniconv/u16-strconv-to-enc: Likewise.
33520         * modules/uniconv/u16-strconv-to-locale: Likewise.
33521         * modules/uniconv/u32-conv-from-enc: Likewise.
33522         * modules/uniconv/u32-conv-to-enc: Likewise.
33523         * modules/uniconv/u32-strconv-from-enc: Likewise.
33524         * modules/uniconv/u32-strconv-from-locale: Likewise.
33525         * modules/uniconv/u32-strconv-to-enc: Likewise.
33526         * modules/uniconv/u32-strconv-to-locale: Likewise.
33527         * modules/unictype/bidicategory-byname: Likewise.
33528         * modules/unictype/bidicategory-name: Likewise.
33529         * modules/unictype/bidicategory-of: Likewise.
33530         * modules/unictype/bidicategory-test: Likewise.
33531         * modules/unictype/block-list: Likewise.
33532         * modules/unictype/block-test: Likewise.
33533         * modules/unictype/category-C: Likewise.
33534         * modules/unictype/category-Cc: Likewise.
33535         * modules/unictype/category-Cf: Likewise.
33536         * modules/unictype/category-Cn: Likewise.
33537         * modules/unictype/category-Co: Likewise.
33538         * modules/unictype/category-Cs: Likewise.
33539         * modules/unictype/category-L: Likewise.
33540         * modules/unictype/category-Ll: Likewise.
33541         * modules/unictype/category-Lm: Likewise.
33542         * modules/unictype/category-Lo: Likewise.
33543         * modules/unictype/category-Lt: Likewise.
33544         * modules/unictype/category-Lu: Likewise.
33545         * modules/unictype/category-M: Likewise.
33546         * modules/unictype/category-Mc: Likewise.
33547         * modules/unictype/category-Me: Likewise.
33548         * modules/unictype/category-Mn: Likewise.
33549         * modules/unictype/category-N: Likewise.
33550         * modules/unictype/category-Nd: Likewise.
33551         * modules/unictype/category-Nl: Likewise.
33552         * modules/unictype/category-No: Likewise.
33553         * modules/unictype/category-P: Likewise.
33554         * modules/unictype/category-Pc: Likewise.
33555         * modules/unictype/category-Pd: Likewise.
33556         * modules/unictype/category-Pe: Likewise.
33557         * modules/unictype/category-Pf: Likewise.
33558         * modules/unictype/category-Pi: Likewise.
33559         * modules/unictype/category-Po: Likewise.
33560         * modules/unictype/category-Ps: Likewise.
33561         * modules/unictype/category-S: Likewise.
33562         * modules/unictype/category-Sc: Likewise.
33563         * modules/unictype/category-Sk: Likewise.
33564         * modules/unictype/category-Sm: Likewise.
33565         * modules/unictype/category-So: Likewise.
33566         * modules/unictype/category-Z: Likewise.
33567         * modules/unictype/category-Zl: Likewise.
33568         * modules/unictype/category-Zp: Likewise.
33569         * modules/unictype/category-Zs: Likewise.
33570         * modules/unictype/category-and: Likewise.
33571         * modules/unictype/category-and-not: Likewise.
33572         * modules/unictype/category-byname: Likewise.
33573         * modules/unictype/category-name: Likewise.
33574         * modules/unictype/category-none: Likewise.
33575         * modules/unictype/category-of: Likewise.
33576         * modules/unictype/category-or: Likewise.
33577         * modules/unictype/category-test: Likewise.
33578         * modules/unictype/combining-class: Likewise.
33579         * modules/unictype/ctype-alnum: Likewise.
33580         * modules/unictype/ctype-alpha: Likewise.
33581         * modules/unictype/ctype-blank: Likewise.
33582         * modules/unictype/ctype-cntrl: Likewise.
33583         * modules/unictype/ctype-digit: Likewise.
33584         * modules/unictype/ctype-graph: Likewise.
33585         * modules/unictype/ctype-lower: Likewise.
33586         * modules/unictype/ctype-print: Likewise.
33587         * modules/unictype/ctype-punct: Likewise.
33588         * modules/unictype/ctype-space: Likewise.
33589         * modules/unictype/ctype-upper: Likewise.
33590         * modules/unictype/ctype-xdigit: Likewise.
33591         * modules/unictype/decimal-digit: Likewise.
33592         * modules/unictype/digit: Likewise.
33593         * modules/unictype/mirror: Likewise.
33594         * modules/unictype/numeric: Likewise.
33595         * modules/unictype/property-alphabetic: Likewise.
33596         * modules/unictype/property-ascii-hex-digit: Likewise.
33597         * modules/unictype/property-bidi-arabic-digit: Likewise.
33598         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33599         * modules/unictype/property-bidi-block-separator: Likewise.
33600         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33601         * modules/unictype/property-bidi-common-separator: Likewise.
33602         * modules/unictype/property-bidi-control: Likewise.
33603         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33604         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33605         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33606         * modules/unictype/property-bidi-european-digit: Likewise.
33607         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33608         * modules/unictype/property-bidi-left-to-right: Likewise.
33609         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33610         * modules/unictype/property-bidi-other-neutral: Likewise.
33611         * modules/unictype/property-bidi-pdf: Likewise.
33612         * modules/unictype/property-bidi-segment-separator: Likewise.
33613         * modules/unictype/property-bidi-whitespace: Likewise.
33614         * modules/unictype/property-byname: Likewise.
33615         * modules/unictype/property-combining: Likewise.
33616         * modules/unictype/property-composite: Likewise.
33617         * modules/unictype/property-currency-symbol: Likewise.
33618         * modules/unictype/property-dash: Likewise.
33619         * modules/unictype/property-decimal-digit: Likewise.
33620         * modules/unictype/property-default-ignorable-code-point: Likewise.
33621         * modules/unictype/property-deprecated: Likewise.
33622         * modules/unictype/property-diacritic: Likewise.
33623         * modules/unictype/property-extender: Likewise.
33624         * modules/unictype/property-format-control: Likewise.
33625         * modules/unictype/property-grapheme-base: Likewise.
33626         * modules/unictype/property-grapheme-extend: Likewise.
33627         * modules/unictype/property-grapheme-link: Likewise.
33628         * modules/unictype/property-hex-digit: Likewise.
33629         * modules/unictype/property-hyphen: Likewise.
33630         * modules/unictype/property-id-continue: Likewise.
33631         * modules/unictype/property-id-start: Likewise.
33632         * modules/unictype/property-ideographic: Likewise.
33633         * modules/unictype/property-ids-binary-operator: Likewise.
33634         * modules/unictype/property-ids-trinary-operator: Likewise.
33635         * modules/unictype/property-ignorable-control: Likewise.
33636         * modules/unictype/property-iso-control: Likewise.
33637         * modules/unictype/property-join-control: Likewise.
33638         * modules/unictype/property-left-of-pair: Likewise.
33639         * modules/unictype/property-line-separator: Likewise.
33640         * modules/unictype/property-logical-order-exception: Likewise.
33641         * modules/unictype/property-lowercase: Likewise.
33642         * modules/unictype/property-math: Likewise.
33643         * modules/unictype/property-non-break: Likewise.
33644         * modules/unictype/property-not-a-character: Likewise.
33645         * modules/unictype/property-numeric: Likewise.
33646         * modules/unictype/property-other-alphabetic: Likewise.
33647         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33648         * modules/unictype/property-other-grapheme-extend: Likewise.
33649         * modules/unictype/property-other-id-continue: Likewise.
33650         * modules/unictype/property-other-id-start: Likewise.
33651         * modules/unictype/property-other-lowercase: Likewise.
33652         * modules/unictype/property-other-math: Likewise.
33653         * modules/unictype/property-other-uppercase: Likewise.
33654         * modules/unictype/property-paired-punctuation: Likewise.
33655         * modules/unictype/property-paragraph-separator: Likewise.
33656         * modules/unictype/property-pattern-syntax: Likewise.
33657         * modules/unictype/property-pattern-white-space: Likewise.
33658         * modules/unictype/property-private-use: Likewise.
33659         * modules/unictype/property-punctuation: Likewise.
33660         * modules/unictype/property-quotation-mark: Likewise.
33661         * modules/unictype/property-radical: Likewise.
33662         * modules/unictype/property-sentence-terminal: Likewise.
33663         * modules/unictype/property-soft-dotted: Likewise.
33664         * modules/unictype/property-space: Likewise.
33665         * modules/unictype/property-terminal-punctuation: Likewise.
33666         * modules/unictype/property-test: Likewise.
33667         * modules/unictype/property-titlecase: Likewise.
33668         * modules/unictype/property-unassigned-code-value: Likewise.
33669         * modules/unictype/property-unified-ideograph: Likewise.
33670         * modules/unictype/property-uppercase: Likewise.
33671         * modules/unictype/property-variation-selector: Likewise.
33672         * modules/unictype/property-white-space: Likewise.
33673         * modules/unictype/property-xid-continue: Likewise.
33674         * modules/unictype/property-xid-start: Likewise.
33675         * modules/unictype/property-zero-width: Likewise.
33676         * modules/unictype/scripts: Likewise.
33677         * modules/unictype/syntax-c-ident: Likewise.
33678         * modules/unictype/syntax-c-whitespace: Likewise.
33679         * modules/unictype/syntax-java-ident: Likewise.
33680         * modules/unictype/syntax-java-whitespace: Likewise.
33681         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33682         * modules/unilbrk/u8-width-linebreaks: Likewise.
33683         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33684         * modules/unilbrk/u16-width-linebreaks: Likewise.
33685         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33686         * modules/unilbrk/u32-width-linebreaks: Likewise.
33687         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33688         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33689         * modules/uniname/uniname: Likewise.
33690         * modules/uninorm/canonical-decomposition: Likewise.
33691         * modules/uninorm/composition: Likewise.
33692         * modules/uninorm/decomposing-form: Likewise.
33693         * modules/uninorm/decomposition: Likewise.
33694         * modules/uninorm/filter: Likewise.
33695         * modules/uninorm/nfc: Likewise.
33696         * modules/uninorm/nfd: Likewise.
33697         * modules/uninorm/nfkc: Likewise.
33698         * modules/uninorm/nfkd: Likewise.
33699         * modules/uninorm/u8-normalize: Likewise.
33700         * modules/uninorm/u8-normcmp: Likewise.
33701         * modules/uninorm/u8-normcoll: Likewise.
33702         * modules/uninorm/u8-normxfrm: Likewise.
33703         * modules/uninorm/u16-normalize: Likewise.
33704         * modules/uninorm/u16-normcmp: Likewise.
33705         * modules/uninorm/u16-normcoll: Likewise.
33706         * modules/uninorm/u16-normxfrm: Likewise.
33707         * modules/uninorm/u32-normalize: Likewise.
33708         * modules/uninorm/u32-normcmp: Likewise.
33709         * modules/uninorm/u32-normcoll: Likewise.
33710         * modules/uninorm/u32-normxfrm: Likewise.
33711         * modules/unistdio/u8-asnprintf: Likewise.
33712         * modules/unistdio/u8-asprintf: Likewise.
33713         * modules/unistdio/u8-snprintf: Likewise.
33714         * modules/unistdio/u8-sprintf: Likewise.
33715         * modules/unistdio/u8-u8-asnprintf: Likewise.
33716         * modules/unistdio/u8-u8-asprintf: Likewise.
33717         * modules/unistdio/u8-u8-snprintf: Likewise.
33718         * modules/unistdio/u8-u8-sprintf: Likewise.
33719         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33720         * modules/unistdio/u8-u8-vasprintf: Likewise.
33721         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33722         * modules/unistdio/u8-u8-vsprintf: Likewise.
33723         * modules/unistdio/u8-vasnprintf: Likewise.
33724         * modules/unistdio/u8-vasprintf: Likewise.
33725         * modules/unistdio/u8-vsnprintf: Likewise.
33726         * modules/unistdio/u8-vsprintf: Likewise.
33727         * modules/unistdio/u16-asnprintf: Likewise.
33728         * modules/unistdio/u16-asprintf: Likewise.
33729         * modules/unistdio/u16-snprintf: Likewise.
33730         * modules/unistdio/u16-sprintf: Likewise.
33731         * modules/unistdio/u16-u16-asnprintf: Likewise.
33732         * modules/unistdio/u16-u16-asprintf: Likewise.
33733         * modules/unistdio/u16-u16-snprintf: Likewise.
33734         * modules/unistdio/u16-u16-sprintf: Likewise.
33735         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33736         * modules/unistdio/u16-u16-vasprintf: Likewise.
33737         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33738         * modules/unistdio/u16-u16-vsprintf: Likewise.
33739         * modules/unistdio/u16-vasnprintf: Likewise.
33740         * modules/unistdio/u16-vasprintf: Likewise.
33741         * modules/unistdio/u16-vsnprintf: Likewise.
33742         * modules/unistdio/u16-vsprintf: Likewise.
33743         * modules/unistdio/u32-asnprintf: Likewise.
33744         * modules/unistdio/u32-asprintf: Likewise.
33745         * modules/unistdio/u32-snprintf: Likewise.
33746         * modules/unistdio/u32-sprintf: Likewise.
33747         * modules/unistdio/u32-u32-asnprintf: Likewise.
33748         * modules/unistdio/u32-u32-asprintf: Likewise.
33749         * modules/unistdio/u32-u32-snprintf: Likewise.
33750         * modules/unistdio/u32-u32-sprintf: Likewise.
33751         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33752         * modules/unistdio/u32-u32-vasprintf: Likewise.
33753         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33754         * modules/unistdio/u32-u32-vsprintf: Likewise.
33755         * modules/unistdio/u32-vasnprintf: Likewise.
33756         * modules/unistdio/u32-vasprintf: Likewise.
33757         * modules/unistdio/u32-vsnprintf: Likewise.
33758         * modules/unistdio/u32-vsprintf: Likewise.
33759         * modules/unistdio/ulc-asnprintf: Likewise.
33760         * modules/unistdio/ulc-asprintf: Likewise.
33761         * modules/unistdio/ulc-fprintf: Likewise.
33762         * modules/unistdio/ulc-snprintf: Likewise.
33763         * modules/unistdio/ulc-sprintf: Likewise.
33764         * modules/unistdio/ulc-vasnprintf: Likewise.
33765         * modules/unistdio/ulc-vasprintf: Likewise.
33766         * modules/unistdio/ulc-vfprintf: Likewise.
33767         * modules/unistdio/ulc-vsnprintf: Likewise.
33768         * modules/unistdio/ulc-vsprintf: Likewise.
33769         * modules/unistr/u8-check: Likewise.
33770         * modules/unistr/u8-chr: Likewise.
33771         * modules/unistr/u8-cmp: Likewise.
33772         * modules/unistr/u8-cmp2: Likewise.
33773         * modules/unistr/u8-cpy: Likewise.
33774         * modules/unistr/u8-cpy-alloc: Likewise.
33775         * modules/unistr/u8-endswith: Likewise.
33776         * modules/unistr/u8-mblen: Likewise.
33777         * modules/unistr/u8-mbsnlen: Likewise.
33778         * modules/unistr/u8-mbtouc: Likewise.
33779         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33780         * modules/unistr/u8-mbtoucr: Likewise.
33781         * modules/unistr/u8-move: Likewise.
33782         * modules/unistr/u8-next: Likewise.
33783         * modules/unistr/u8-prev: Likewise.
33784         * modules/unistr/u8-set: Likewise.
33785         * modules/unistr/u8-startswith: Likewise.
33786         * modules/unistr/u8-stpcpy: Likewise.
33787         * modules/unistr/u8-stpncpy: Likewise.
33788         * modules/unistr/u8-strcat: Likewise.
33789         * modules/unistr/u8-strchr: Likewise.
33790         * modules/unistr/u8-strcmp: Likewise.
33791         * modules/unistr/u8-strcoll: Likewise.
33792         * modules/unistr/u8-strcpy: Likewise.
33793         * modules/unistr/u8-strcspn: Likewise.
33794         * modules/unistr/u8-strdup: Likewise.
33795         * modules/unistr/u8-strlen: Likewise.
33796         * modules/unistr/u8-strmblen: Likewise.
33797         * modules/unistr/u8-strmbtouc: Likewise.
33798         * modules/unistr/u8-strncat: Likewise.
33799         * modules/unistr/u8-strncmp: Likewise.
33800         * modules/unistr/u8-strncpy: Likewise.
33801         * modules/unistr/u8-strnlen: Likewise.
33802         * modules/unistr/u8-strpbrk: Likewise.
33803         * modules/unistr/u8-strrchr: Likewise.
33804         * modules/unistr/u8-strspn: Likewise.
33805         * modules/unistr/u8-strstr: Likewise.
33806         * modules/unistr/u8-strtok: Likewise.
33807         * modules/unistr/u8-to-u16: Likewise.
33808         * modules/unistr/u8-to-u32: Likewise.
33809         * modules/unistr/u8-uctomb: Likewise.
33810         * modules/unistr/u16-check: Likewise.
33811         * modules/unistr/u16-chr: Likewise.
33812         * modules/unistr/u16-cmp: Likewise.
33813         * modules/unistr/u16-cmp2: Likewise.
33814         * modules/unistr/u16-cpy: Likewise.
33815         * modules/unistr/u16-cpy-alloc: Likewise.
33816         * modules/unistr/u16-endswith: Likewise.
33817         * modules/unistr/u16-mblen: Likewise.
33818         * modules/unistr/u16-mbsnlen: Likewise.
33819         * modules/unistr/u16-mbtouc: Likewise.
33820         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33821         * modules/unistr/u16-mbtoucr: Likewise.
33822         * modules/unistr/u16-move: Likewise.
33823         * modules/unistr/u16-next: Likewise.
33824         * modules/unistr/u16-prev: Likewise.
33825         * modules/unistr/u16-set: Likewise.
33826         * modules/unistr/u16-startswith: Likewise.
33827         * modules/unistr/u16-stpcpy: Likewise.
33828         * modules/unistr/u16-stpncpy: Likewise.
33829         * modules/unistr/u16-strcat: Likewise.
33830         * modules/unistr/u16-strchr: Likewise.
33831         * modules/unistr/u16-strcmp: Likewise.
33832         * modules/unistr/u16-strcoll: Likewise.
33833         * modules/unistr/u16-strcpy: Likewise.
33834         * modules/unistr/u16-strcspn: Likewise.
33835         * modules/unistr/u16-strdup: Likewise.
33836         * modules/unistr/u16-strlen: Likewise.
33837         * modules/unistr/u16-strmblen: Likewise.
33838         * modules/unistr/u16-strmbtouc: Likewise.
33839         * modules/unistr/u16-strncat: Likewise.
33840         * modules/unistr/u16-strncmp: Likewise.
33841         * modules/unistr/u16-strncpy: Likewise.
33842         * modules/unistr/u16-strnlen: Likewise.
33843         * modules/unistr/u16-strpbrk: Likewise.
33844         * modules/unistr/u16-strrchr: Likewise.
33845         * modules/unistr/u16-strspn: Likewise.
33846         * modules/unistr/u16-strstr: Likewise.
33847         * modules/unistr/u16-strtok: Likewise.
33848         * modules/unistr/u16-to-u32: Likewise.
33849         * modules/unistr/u16-to-u8: Likewise.
33850         * modules/unistr/u16-uctomb: Likewise.
33851         * modules/unistr/u32-check: Likewise.
33852         * modules/unistr/u32-chr: Likewise.
33853         * modules/unistr/u32-cmp: Likewise.
33854         * modules/unistr/u32-cmp2: Likewise.
33855         * modules/unistr/u32-cpy: Likewise.
33856         * modules/unistr/u32-cpy-alloc: Likewise.
33857         * modules/unistr/u32-endswith: Likewise.
33858         * modules/unistr/u32-mblen: Likewise.
33859         * modules/unistr/u32-mbsnlen: Likewise.
33860         * modules/unistr/u32-mbtouc: Likewise.
33861         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33862         * modules/unistr/u32-mbtoucr: Likewise.
33863         * modules/unistr/u32-move: Likewise.
33864         * modules/unistr/u32-next: Likewise.
33865         * modules/unistr/u32-prev: Likewise.
33866         * modules/unistr/u32-set: Likewise.
33867         * modules/unistr/u32-startswith: Likewise.
33868         * modules/unistr/u32-stpcpy: Likewise.
33869         * modules/unistr/u32-stpncpy: Likewise.
33870         * modules/unistr/u32-strcat: Likewise.
33871         * modules/unistr/u32-strchr: Likewise.
33872         * modules/unistr/u32-strcmp: Likewise.
33873         * modules/unistr/u32-strcoll: Likewise.
33874         * modules/unistr/u32-strcpy: Likewise.
33875         * modules/unistr/u32-strcspn: Likewise.
33876         * modules/unistr/u32-strdup: Likewise.
33877         * modules/unistr/u32-strlen: Likewise.
33878         * modules/unistr/u32-strmblen: Likewise.
33879         * modules/unistr/u32-strmbtouc: Likewise.
33880         * modules/unistr/u32-strncat: Likewise.
33881         * modules/unistr/u32-strncmp: Likewise.
33882         * modules/unistr/u32-strncpy: Likewise.
33883         * modules/unistr/u32-strnlen: Likewise.
33884         * modules/unistr/u32-strpbrk: Likewise.
33885         * modules/unistr/u32-strrchr: Likewise.
33886         * modules/unistr/u32-strspn: Likewise.
33887         * modules/unistr/u32-strstr: Likewise.
33888         * modules/unistr/u32-strtok: Likewise.
33889         * modules/unistr/u32-to-u16: Likewise.
33890         * modules/unistr/u32-to-u8: Likewise.
33891         * modules/unistr/u32-uctomb: Likewise.
33892         * modules/uniwbrk/u8-wordbreaks: Likewise.
33893         * modules/uniwbrk/u16-wordbreaks: Likewise.
33894         * modules/uniwbrk/u32-wordbreaks: Likewise.
33895         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33896         * modules/uniwbrk/wordbreak-property: Likewise.
33897         * modules/uniwidth/u8-strwidth: Likewise.
33898         * modules/uniwidth/u8-width: Likewise.
33899         * modules/uniwidth/u16-strwidth: Likewise.
33900         * modules/uniwidth/u16-width: Likewise.
33901         * modules/uniwidth/u32-strwidth: Likewise.
33902         * modules/uniwidth/u32-width: Likewise.
33903         * modules/uniwidth/width: Likewise.
33904         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33905         with $(LIBUNISTRING).
33906         * modules/unicase/ignorable-tests: Likewise.
33907         * modules/unicase/locale-language-tests: Likewise.
33908         * modules/unicase/tolower-tests: Likewise.
33909         * modules/unicase/totitle-tests: Likewise.
33910         * modules/unicase/toupper-tests: Likewise.
33911         * modules/unicase/u8-casecmp-tests: Likewise.
33912         * modules/unicase/u8-casecoll-tests: Likewise.
33913         * modules/unicase/u8-casefold-tests: Likewise.
33914         * modules/unicase/u8-is-cased-tests: Likewise.
33915         * modules/unicase/u8-is-casefolded-tests: Likewise.
33916         * modules/unicase/u8-is-lowercase-tests: Likewise.
33917         * modules/unicase/u8-is-titlecase-tests: Likewise.
33918         * modules/unicase/u8-is-uppercase-tests: Likewise.
33919         * modules/unicase/u8-tolower-tests: Likewise.
33920         * modules/unicase/u8-totitle-tests: Likewise.
33921         * modules/unicase/u8-toupper-tests: Likewise.
33922         * modules/unicase/u16-casecmp-tests: Likewise.
33923         * modules/unicase/u16-casecoll-tests: Likewise.
33924         * modules/unicase/u16-casefold-tests: Likewise.
33925         * modules/unicase/u16-is-cased-tests: Likewise.
33926         * modules/unicase/u16-is-casefolded-tests: Likewise.
33927         * modules/unicase/u16-is-lowercase-tests: Likewise.
33928         * modules/unicase/u16-is-titlecase-tests: Likewise.
33929         * modules/unicase/u16-is-uppercase-tests: Likewise.
33930         * modules/unicase/u16-tolower-tests: Likewise.
33931         * modules/unicase/u16-totitle-tests: Likewise.
33932         * modules/unicase/u16-toupper-tests: Likewise.
33933         * modules/unicase/u32-casecmp-tests: Likewise.
33934         * modules/unicase/u32-casecoll-tests: Likewise.
33935         * modules/unicase/u32-casefold-tests: Likewise.
33936         * modules/unicase/u32-is-cased-tests: Likewise.
33937         * modules/unicase/u32-is-casefolded-tests: Likewise.
33938         * modules/unicase/u32-is-lowercase-tests: Likewise.
33939         * modules/unicase/u32-is-titlecase-tests: Likewise.
33940         * modules/unicase/u32-is-uppercase-tests: Likewise.
33941         * modules/unicase/u32-tolower-tests: Likewise.
33942         * modules/unicase/u32-totitle-tests: Likewise.
33943         * modules/unicase/u32-toupper-tests: Likewise.
33944         * modules/unicase/ulc-casecmp-tests: Likewise.
33945         * modules/unicase/ulc-casecoll-tests: Likewise.
33946         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33947         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33948         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33949         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33950         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33951         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33952         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33953         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33954         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33955         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33956         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33957         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33958         * modules/unictype/bidicategory-byname-tests: Likewise.
33959         * modules/unictype/bidicategory-name-tests: Likewise.
33960         * modules/unictype/bidicategory-of-tests: Likewise.
33961         * modules/unictype/bidicategory-test-tests: Likewise.
33962         * modules/unictype/block-list-tests: Likewise.
33963         * modules/unictype/block-of-tests: Likewise.
33964         * modules/unictype/block-test-tests: Likewise.
33965         * modules/unictype/category-C-tests: Likewise.
33966         * modules/unictype/category-Cc-tests: Likewise.
33967         * modules/unictype/category-Cf-tests: Likewise.
33968         * modules/unictype/category-Cn-tests: Likewise.
33969         * modules/unictype/category-Co-tests: Likewise.
33970         * modules/unictype/category-Cs-tests: Likewise.
33971         * modules/unictype/category-L-tests: Likewise.
33972         * modules/unictype/category-Ll-tests: Likewise.
33973         * modules/unictype/category-Lm-tests: Likewise.
33974         * modules/unictype/category-Lo-tests: Likewise.
33975         * modules/unictype/category-Lt-tests: Likewise.
33976         * modules/unictype/category-Lu-tests: Likewise.
33977         * modules/unictype/category-M-tests: Likewise.
33978         * modules/unictype/category-Mc-tests: Likewise.
33979         * modules/unictype/category-Me-tests: Likewise.
33980         * modules/unictype/category-Mn-tests: Likewise.
33981         * modules/unictype/category-N-tests: Likewise.
33982         * modules/unictype/category-Nd-tests: Likewise.
33983         * modules/unictype/category-Nl-tests: Likewise.
33984         * modules/unictype/category-No-tests: Likewise.
33985         * modules/unictype/category-P-tests: Likewise.
33986         * modules/unictype/category-Pc-tests: Likewise.
33987         * modules/unictype/category-Pd-tests: Likewise.
33988         * modules/unictype/category-Pe-tests: Likewise.
33989         * modules/unictype/category-Pf-tests: Likewise.
33990         * modules/unictype/category-Pi-tests: Likewise.
33991         * modules/unictype/category-Po-tests: Likewise.
33992         * modules/unictype/category-Ps-tests: Likewise.
33993         * modules/unictype/category-S-tests: Likewise.
33994         * modules/unictype/category-Sc-tests: Likewise.
33995         * modules/unictype/category-Sk-tests: Likewise.
33996         * modules/unictype/category-Sm-tests: Likewise.
33997         * modules/unictype/category-So-tests: Likewise.
33998         * modules/unictype/category-Z-tests: Likewise.
33999         * modules/unictype/category-Zl-tests: Likewise.
34000         * modules/unictype/category-Zp-tests: Likewise.
34001         * modules/unictype/category-Zs-tests: Likewise.
34002         * modules/unictype/category-and-not-tests: Likewise.
34003         * modules/unictype/category-and-tests: Likewise.
34004         * modules/unictype/category-byname-tests: Likewise.
34005         * modules/unictype/category-name-tests: Likewise.
34006         * modules/unictype/category-none-tests: Likewise.
34007         * modules/unictype/category-of-tests: Likewise.
34008         * modules/unictype/category-or-tests: Likewise.
34009         * modules/unictype/category-test-withtable-tests: Likewise.
34010         * modules/unictype/combining-class-tests: Likewise.
34011         * modules/unictype/ctype-alnum-tests: Likewise.
34012         * modules/unictype/ctype-alpha-tests: Likewise.
34013         * modules/unictype/ctype-blank-tests: Likewise.
34014         * modules/unictype/ctype-cntrl-tests: Likewise.
34015         * modules/unictype/ctype-digit-tests: Likewise.
34016         * modules/unictype/ctype-graph-tests: Likewise.
34017         * modules/unictype/ctype-lower-tests: Likewise.
34018         * modules/unictype/ctype-print-tests: Likewise.
34019         * modules/unictype/ctype-punct-tests: Likewise.
34020         * modules/unictype/ctype-space-tests: Likewise.
34021         * modules/unictype/ctype-upper-tests: Likewise.
34022         * modules/unictype/ctype-xdigit-tests: Likewise.
34023         * modules/unictype/decimal-digit-tests: Likewise.
34024         * modules/unictype/digit-tests: Likewise.
34025         * modules/unictype/mirror-tests: Likewise.
34026         * modules/unictype/numeric-tests: Likewise.
34027         * modules/unictype/property-alphabetic-tests: Likewise.
34028         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34029         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34030         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34031         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34032         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34033         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34034         * modules/unictype/property-bidi-control-tests: Likewise.
34035         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34036         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34037         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34038         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34039         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34040         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34041         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34042         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34043         * modules/unictype/property-bidi-pdf-tests: Likewise.
34044         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34045         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34046         * modules/unictype/property-byname-tests: Likewise.
34047         * modules/unictype/property-combining-tests: Likewise.
34048         * modules/unictype/property-composite-tests: Likewise.
34049         * modules/unictype/property-currency-symbol-tests: Likewise.
34050         * modules/unictype/property-dash-tests: Likewise.
34051         * modules/unictype/property-decimal-digit-tests: Likewise.
34052         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34053         * modules/unictype/property-deprecated-tests: Likewise.
34054         * modules/unictype/property-diacritic-tests: Likewise.
34055         * modules/unictype/property-extender-tests: Likewise.
34056         * modules/unictype/property-format-control-tests: Likewise.
34057         * modules/unictype/property-grapheme-base-tests: Likewise.
34058         * modules/unictype/property-grapheme-extend-tests: Likewise.
34059         * modules/unictype/property-grapheme-link-tests: Likewise.
34060         * modules/unictype/property-hex-digit-tests: Likewise.
34061         * modules/unictype/property-hyphen-tests: Likewise.
34062         * modules/unictype/property-id-continue-tests: Likewise.
34063         * modules/unictype/property-id-start-tests: Likewise.
34064         * modules/unictype/property-ideographic-tests: Likewise.
34065         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34066         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34067         * modules/unictype/property-ignorable-control-tests: Likewise.
34068         * modules/unictype/property-iso-control-tests: Likewise.
34069         * modules/unictype/property-join-control-tests: Likewise.
34070         * modules/unictype/property-left-of-pair-tests: Likewise.
34071         * modules/unictype/property-line-separator-tests: Likewise.
34072         * modules/unictype/property-logical-order-exception-tests: Likewise.
34073         * modules/unictype/property-lowercase-tests: Likewise.
34074         * modules/unictype/property-math-tests: Likewise.
34075         * modules/unictype/property-non-break-tests: Likewise.
34076         * modules/unictype/property-not-a-character-tests: Likewise.
34077         * modules/unictype/property-numeric-tests: Likewise.
34078         * modules/unictype/property-other-alphabetic-tests: Likewise.
34079         * modules/unictype/property-other-default-ignorable-code-point-tests:
34080         Likewise.
34081         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34082         * modules/unictype/property-other-id-continue-tests: Likewise.
34083         * modules/unictype/property-other-id-start-tests: Likewise.
34084         * modules/unictype/property-other-lowercase-tests: Likewise.
34085         * modules/unictype/property-other-math-tests: Likewise.
34086         * modules/unictype/property-other-uppercase-tests: Likewise.
34087         * modules/unictype/property-paired-punctuation-tests: Likewise.
34088         * modules/unictype/property-paragraph-separator-tests: Likewise.
34089         * modules/unictype/property-pattern-syntax-tests: Likewise.
34090         * modules/unictype/property-pattern-white-space-tests: Likewise.
34091         * modules/unictype/property-private-use-tests: Likewise.
34092         * modules/unictype/property-punctuation-tests: Likewise.
34093         * modules/unictype/property-quotation-mark-tests: Likewise.
34094         * modules/unictype/property-radical-tests: Likewise.
34095         * modules/unictype/property-sentence-terminal-tests: Likewise.
34096         * modules/unictype/property-soft-dotted-tests: Likewise.
34097         * modules/unictype/property-space-tests: Likewise.
34098         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34099         * modules/unictype/property-test-tests: Likewise.
34100         * modules/unictype/property-titlecase-tests: Likewise.
34101         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34102         * modules/unictype/property-unified-ideograph-tests: Likewise.
34103         * modules/unictype/property-uppercase-tests: Likewise.
34104         * modules/unictype/property-variation-selector-tests: Likewise.
34105         * modules/unictype/property-white-space-tests: Likewise.
34106         * modules/unictype/property-xid-continue-tests: Likewise.
34107         * modules/unictype/property-xid-start-tests: Likewise.
34108         * modules/unictype/property-zero-width-tests: Likewise.
34109         * modules/unictype/scripts-tests: Likewise.
34110         * modules/unictype/syntax-c-ident-tests: Likewise.
34111         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34112         * modules/unictype/syntax-java-ident-tests: Likewise.
34113         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34114         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34115         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34116         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34117         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34118         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34119         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34120         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34121         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34122         * modules/uniname/uniname-tests: Likewise.
34123         * modules/uninorm/canonical-decomposition-tests: Likewise.
34124         * modules/uninorm/compat-decomposition-tests: Likewise.
34125         * modules/uninorm/composition-tests: Likewise.
34126         * modules/uninorm/decomposing-form-tests: Likewise.
34127         * modules/uninorm/decomposition-tests: Likewise.
34128         * modules/uninorm/filter-tests: Likewise.
34129         * modules/uninorm/nfc-tests: Likewise.
34130         * modules/uninorm/nfd-tests: Likewise.
34131         * modules/uninorm/nfkc-tests: Likewise.
34132         * modules/uninorm/nfkd-tests: Likewise.
34133         * modules/uninorm/u8-normcmp-tests: Likewise.
34134         * modules/uninorm/u8-normcoll-tests: Likewise.
34135         * modules/uninorm/u16-normcmp-tests: Likewise.
34136         * modules/uninorm/u16-normcoll-tests: Likewise.
34137         * modules/uninorm/u32-normcmp-tests: Likewise.
34138         * modules/uninorm/u32-normcoll-tests: Likewise.
34139         * modules/unistdio/u8-asnprintf-tests: Likewise.
34140         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34141         * modules/unistdio/u8-vasprintf-tests: Likewise.
34142         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34143         * modules/unistdio/u8-vsprintf-tests: Likewise.
34144         * modules/unistdio/u16-asnprintf-tests: Likewise.
34145         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34146         * modules/unistdio/u16-vasprintf-tests: Likewise.
34147         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34148         * modules/unistdio/u16-vsprintf-tests: Likewise.
34149         * modules/unistdio/u32-asnprintf-tests: Likewise.
34150         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34151         * modules/unistdio/u32-vasprintf-tests: Likewise.
34152         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34153         * modules/unistdio/u32-vsprintf-tests: Likewise.
34154         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34155         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34156         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34157         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34158         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34159         * modules/unistr/u8-check-tests: Likewise.
34160         * modules/unistr/u8-chr-tests: Likewise.
34161         * modules/unistr/u8-cmp-tests: Likewise.
34162         * modules/unistr/u8-cmp2-tests: Likewise.
34163         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34164         * modules/unistr/u8-cpy-tests: Likewise.
34165         * modules/unistr/u8-mblen-tests: Likewise.
34166         * modules/unistr/u8-mbsnlen-tests: Likewise.
34167         * modules/unistr/u8-mbtouc-tests: Likewise.
34168         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34169         * modules/unistr/u8-mbtoucr-tests: Likewise.
34170         * modules/unistr/u8-move-tests: Likewise.
34171         * modules/unistr/u8-next-tests: Likewise.
34172         * modules/unistr/u8-prev-tests: Likewise.
34173         * modules/unistr/u8-set-tests: Likewise.
34174         * modules/unistr/u8-stpcpy-tests: Likewise.
34175         * modules/unistr/u8-stpncpy-tests: Likewise.
34176         * modules/unistr/u8-strcat-tests: Likewise.
34177         * modules/unistr/u8-strcmp-tests: Likewise.
34178         * modules/unistr/u8-strcoll-tests: Likewise.
34179         * modules/unistr/u8-strcpy-tests: Likewise.
34180         * modules/unistr/u8-strdup-tests: Likewise.
34181         * modules/unistr/u8-strlen-tests: Likewise.
34182         * modules/unistr/u8-strmblen-tests: Likewise.
34183         * modules/unistr/u8-strmbtouc-tests: Likewise.
34184         * modules/unistr/u8-strncat-tests: Likewise.
34185         * modules/unistr/u8-strncmp-tests: Likewise.
34186         * modules/unistr/u8-strncpy-tests: Likewise.
34187         * modules/unistr/u8-strnlen-tests: Likewise.
34188         * modules/unistr/u8-to-u16-tests: Likewise.
34189         * modules/unistr/u8-to-u32-tests: Likewise.
34190         * modules/unistr/u8-uctomb-tests: Likewise.
34191         * modules/unistr/u16-check-tests: Likewise.
34192         * modules/unistr/u16-chr-tests: Likewise.
34193         * modules/unistr/u16-cmp-tests: Likewise.
34194         * modules/unistr/u16-cmp2-tests: Likewise.
34195         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34196         * modules/unistr/u16-cpy-tests: Likewise.
34197         * modules/unistr/u16-mblen-tests: Likewise.
34198         * modules/unistr/u16-mbsnlen-tests: Likewise.
34199         * modules/unistr/u16-mbtouc-tests: Likewise.
34200         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34201         * modules/unistr/u16-mbtoucr-tests: Likewise.
34202         * modules/unistr/u16-move-tests: Likewise.
34203         * modules/unistr/u16-next-tests: Likewise.
34204         * modules/unistr/u16-prev-tests: Likewise.
34205         * modules/unistr/u16-set-tests: Likewise.
34206         * modules/unistr/u16-stpcpy-tests: Likewise.
34207         * modules/unistr/u16-stpncpy-tests: Likewise.
34208         * modules/unistr/u16-strcat-tests: Likewise.
34209         * modules/unistr/u16-strcmp-tests: Likewise.
34210         * modules/unistr/u16-strcoll-tests: Likewise.
34211         * modules/unistr/u16-strcpy-tests: Likewise.
34212         * modules/unistr/u16-strdup-tests: Likewise.
34213         * modules/unistr/u16-strlen-tests: Likewise.
34214         * modules/unistr/u16-strmblen-tests: Likewise.
34215         * modules/unistr/u16-strmbtouc-tests: Likewise.
34216         * modules/unistr/u16-strncat-tests: Likewise.
34217         * modules/unistr/u16-strncmp-tests: Likewise.
34218         * modules/unistr/u16-strncpy-tests: Likewise.
34219         * modules/unistr/u16-strnlen-tests: Likewise.
34220         * modules/unistr/u16-to-u32-tests: Likewise.
34221         * modules/unistr/u16-to-u8-tests: Likewise.
34222         * modules/unistr/u16-uctomb-tests: Likewise.
34223         * modules/unistr/u32-check-tests: Likewise.
34224         * modules/unistr/u32-chr-tests: Likewise.
34225         * modules/unistr/u32-cmp-tests: Likewise.
34226         * modules/unistr/u32-cmp2-tests: Likewise.
34227         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34228         * modules/unistr/u32-cpy-tests: Likewise.
34229         * modules/unistr/u32-mblen-tests: Likewise.
34230         * modules/unistr/u32-mbsnlen-tests: Likewise.
34231         * modules/unistr/u32-mbtouc-tests: Likewise.
34232         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34233         * modules/unistr/u32-mbtoucr-tests: Likewise.
34234         * modules/unistr/u32-move-tests: Likewise.
34235         * modules/unistr/u32-next-tests: Likewise.
34236         * modules/unistr/u32-prev-tests: Likewise.
34237         * modules/unistr/u32-set-tests: Likewise.
34238         * modules/unistr/u32-stpcpy-tests: Likewise.
34239         * modules/unistr/u32-stpncpy-tests: Likewise.
34240         * modules/unistr/u32-strcat-tests: Likewise.
34241         * modules/unistr/u32-strcmp-tests: Likewise.
34242         * modules/unistr/u32-strcoll-tests: Likewise.
34243         * modules/unistr/u32-strcpy-tests: Likewise.
34244         * modules/unistr/u32-strdup-tests: Likewise.
34245         * modules/unistr/u32-strlen-tests: Likewise.
34246         * modules/unistr/u32-strmblen-tests: Likewise.
34247         * modules/unistr/u32-strmbtouc-tests: Likewise.
34248         * modules/unistr/u32-strncat-tests: Likewise.
34249         * modules/unistr/u32-strncmp-tests: Likewise.
34250         * modules/unistr/u32-strncpy-tests: Likewise.
34251         * modules/unistr/u32-strnlen-tests: Likewise.
34252         * modules/unistr/u32-to-u16-tests: Likewise.
34253         * modules/unistr/u32-to-u8-tests: Likewise.
34254         * modules/unistr/u32-uctomb-tests: Likewise.
34255         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34256         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34257         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34258         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34259         * modules/uniwidth/u8-strwidth-tests: Likewise.
34260         * modules/uniwidth/u8-width-tests: Likewise.
34261         * modules/uniwidth/u16-strwidth-tests: Likewise.
34262         * modules/uniwidth/u16-width-tests: Likewise.
34263         * modules/uniwidth/u32-strwidth-tests: Likewise.
34264         * modules/uniwidth/u32-width-tests: Likewise.
34265         * modules/uniwidth/width-tests: Likewise.
34266
34267 2010-05-18  Richard Jones  <rjones@redhat.com>
34268
34269         doc: users.txt: list hivex
34270         * users.txt: Add hivex.
34271
34272 2010-05-18  Richard Jones  <rjones@redhat.com>
34273
34274         doc: users.txt: list febootstrap
34275         * users.txt: Add febootstrap.
34276
34277 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34278
34279         bootstrap: fix an error when gnulib is not used as a git submodule
34280         * build-aux/bootstrap (gnulib_path): If its length is zero then
34281         assign "gnulib" to it.
34282         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34283
34284 2010-05-16  Bruno Haible  <bruno@clisp.org>
34285
34286         Avoid autoconf warnings about AM_ICONV.
34287         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34288         2.64.
34289
34290 2010-05-16  Bruno Haible  <bruno@clisp.org>
34291
34292         absolute-header: Make the macro usable in more situations.
34293         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34294         from gl_ABSOLUTE_HEADER.
34295         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34296
34297 2010-05-16  James Youngman  <jay@gnu.org>
34298
34299         doc: update users.txt
34300         * users.txt: Add CSSC.
34301
34302 2010-05-16  Jim Meyering  <meyering@redhat.com>
34303
34304         init.sh: fix an error in the previous change; add more comments
34305         * tests/init.sh: Compare exit code in loop against 9, not 2.
34306         Patch by Bruno Haible.
34307         Make the two tests more similar by adding an empty "then" clause.
34308         Add comments.
34309
34310         init.sh: avoid unnecessary shell re-exec
34311         * tests/init.sh: Improve the re-exec-required check to first test the
34312         current shell.  If it passes the test, do not search for a shell that
34313         does pass, and do not re-exec.  This test is particularly contorted to
34314         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34315         of $(...) evokes a syntax error and causes immediate shell exit with
34316         status 2.  Bruno Haible reported that the re-exec made it impossible
34317         to single-step through any init.sh-using script.
34318
34319 2010-05-16  Bruno Haible  <bruno@clisp.org>
34320
34321         Fix collision between gnulib's and libintl's printf replacements.
34322         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34323         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34324         (printf): When using GNU C, map the __printf__ function to rpl_printf
34325         via __asm__. When not using GNU C, define rpl_printf instead of
34326         __printf__.
34327         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34328         commit.
34329         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34330         commit.
34331         * m4/asm-underscore.m4: New file.
34332         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34333         * modules/stdio (Files): Add m4/asm-underscore.m4.
34334         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34335         Reported by Ben Pfaff.
34336
34337 2010-05-16  Bruno Haible  <bruno@clisp.org>
34338
34339         verify: Avoid skipping the test on openSUSE 11.0.
34340         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34341
34342 2010-05-13  Bruno Haible  <bruno@clisp.org>
34343
34344         Avoid useless warnings from G++.
34345         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34346         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34347         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34348
34349 2010-05-11  Jim Meyering  <meyering@redhat.com>
34350
34351         maint.mk: tweak preceding change
34352         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34353         regexps tighter by anchoring at EOL, and make the new group "shy"
34354         for slightly decreased overhead.
34355
34356 2010-05-11  Eric Blake  <eblake@redhat.com>
34357
34358         maint.mk: gnulib doesn't guarantee NSIG
34359         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34360
34361 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34362
34363         test-pwrite.c: Remove unused variable declaration.
34364         * tests/test-pwrite.c (main): Remove read_buf declaration.
34365
34366         Remove useless test-pwrite.sh file.
34367         * tests/test-pwrite.sh: Delete file.
34368         * modules/pwrite-tests: Remove references.
34369         Reported by Bruno Haible.
34370
34371 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34372
34373         init.sh: fix a typo
34374         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34375
34376 2010-05-10  Jim Meyering  <meyering@redhat.com>
34377
34378         maint.mk: avoid using a temporary file in the always-defined-macros check
34379         * top/maint.mk (.re-defmac): Remove rule.
34380         (gl_trap_): Remove definition.
34381         (sc_prohibit_always-defined_macros): Rewrite not to create and
34382         depend on a temporary file.  Instead, depend on GNU grep's ability
34383         to read a list of regular expressions from stdin when given "-f -".
34384
34385 2010-05-09  Bruno Haible  <bruno@clisp.org>
34386
34387         Update to GNU gettext 0.18, part 1.
34388         * m4/gettext.m4: Update to GNU gettext 0.18.
34389         * m4/intl.m4: Likewise.
34390         * m4/po.m4: Likewise.
34391         * modules/gettext (Files): Add m4/fcntl-o.m4.
34392         (configure.ac): Require gettext infrastructure from version 0.18.
34393
34394 2010-05-09  Jim Meyering  <meyering@redhat.com>
34395
34396         init.sh: enable MALLOC_PERTURB_
34397         * tests/init.sh: Enable glibc's malloc-perturbing option.
34398
34399         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34400         With my recent change in init.sh from the two-line form:
34401             -#   : ${srcdir=.}
34402             -#   . "$srcdir/init.sh"; path_prepend_ .
34403             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34404         I noticed that using the one-line form would cause this test
34405         to fail with a false-positive, or to stop working altogether,
34406         depending on whether help-version changed or all the tests did.
34407         * top/maint.mk (_hv_regex): Remove this definition.
34408         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34409         (_hv_regex_strong): Use a stronger regex to check for conformance.
34410         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34411         Give a separate diagnostic for lack of conforming use.
34412
34413         maint.mk: prohibit definition of symbols defined by gnulib
34414         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34415         definition of symbols defined by gnulib.
34416
34417 2010-05-09  Bruno Haible  <bruno@clisp.org>
34418
34419         acl: Avoid test failure on Cygwin-hosted mingw.
34420         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34421
34422 2010-05-09  Bruno Haible  <bruno@clisp.org>
34423
34424         error: Use system's fcntl function.
34425         * lib/error.c (fcntl): Undefine.
34426
34427 2010-05-09  Jim Meyering  <meyering@redhat.com>
34428
34429         verify: adjust formatting to be more consistent
34430         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34431         argument-list '('s, and after one comma.
34432
34433 2010-05-09  Bruno Haible  <bruno@clisp.org>
34434
34435         error: More reliable output on mingw.
34436         * lib/error.c: Include <windows.h>.
34437         (is_open): New function.
34438         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34439         defined.
34440
34441 2010-05-09  Bruno Haible  <bruno@clisp.org>
34442
34443         vasnprintf: Fix syntax errors in libintl build on mingw.
34444         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34445         pad_ourselves and prec_ourselves after use.
34446
34447 2010-05-08  Bruno Haible  <bruno@clisp.org>
34448
34449         * lib/config.charset: Update comments for Cygwin 1.7.
34450         * lib/localcharset.c: Likewise.
34451
34452 2010-05-07  Jim Meyering  <meyering@redhat.com>
34453
34454         init.sh: improve comments
34455         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34456         . "${srcdir=.}/init.sh"; path_prepend_ .
34457         Add a note about path_prepend_ and the alternative of using
34458         TESTS_ENVIRONMENT.
34459
34460 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34461
34462         exclude: Unescape hashed patterns in wildcard mode.
34463         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34464         to the hash list.
34465         * tests/test-exclude8.sh: New test case.
34466         * modules/exclude-tests: Add new test.
34467
34468 2010-05-05  Eric Blake  <eblake@redhat.com>
34469
34470         verify: automate tests
34471         * modules/verify-tests: New module.
34472         * tests/test-verify.sh: New file.
34473         * tests/test-verify.c: Guard each negative test with a unique id.
34474         Also avoid warning about unused left hand of comma expressions.
34475
34476 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34477
34478         Further improvements to verify.h, suggested by Eric Blake.
34479         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34480         the GL_* versions, to avoid collision with OpenGL.
34481         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34482         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34483         than testing merely whether it's defined.
34484
34485         Modify verify.h to pacify gcc -Wredundant_decls.
34486         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34487         These use the prefix "GL_" since they're likely to be useful elsewhere.
34488         We may need to break them out into a different .h file.
34489         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34490         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34491         of verify_function__.
34492
34493 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34494
34495         Tests for module pwrite.
34496         * modules/pwrite-tests: New file.
34497         * tests/test-pwrite.sh: New file.
34498         * tests/test-pwrite.c: New file.
34499
34500         New module pwrite.
34501         * lib/unistd.in.h (pwrite): New declaration.
34502         * lib/pwrite.c: New file, from glibc with modifications.
34503         * m4/pwrite.m4: New file.
34504         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34505         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34506         REPLACE_PWRITE.
34507         * modules/pwrite: New file.
34508         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34509         REPLACE_PWRITE.
34510         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34511         * doc/posix-functions/pwrite.texi: Mention the new module.
34512
34513 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34514
34515         pread: Update documentation.
34516         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34517
34518 2010-05-04  Eric Blake  <eblake@redhat.com>
34519
34520         docs: update cygwin progress
34521         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34522         this bug.
34523         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34524         Added in cygwin 1.7.2.
34525         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34526         Likewise.
34527         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34528         Likewise.
34529         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34530         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34531         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34532         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34533         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34534         Mention nproc module.
34535         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34536         bug in cygwin 1.7.5 addition.
34537         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34538         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34539         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34540         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34541         1.7.5.
34542         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34543         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34544         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34545         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34546         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34547         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34548         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34549         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34550         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34551         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34552         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34553         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34554         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34555         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34556         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34557         Likewise.
34558         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34559         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34560         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34561         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34562         Likewise.
34563         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34564         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34565         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34566         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34567         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34568         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34569         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34570         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34571         Likewise.
34572         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34573         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34574         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34575         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34576         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34577         Likewise.
34578         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34579         Likewise.
34580         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34581         Likewise.
34582         * doc/glibc-functions/xdrrec_endofrecord.texi
34583         (xdrrec_endofrecord): Likewise.
34584         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34585         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34586         Likewise.
34587         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34588         Likewise.
34589
34590 2010-05-04  Jim Meyering  <meyering@redhat.com>
34591
34592         gendocs.sh: make its "-s FILE" option more useful
34593         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34594         $PACKAGE to reflect the probably-different basename of "FILE".
34595
34596 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34597
34598         bootstrap: don't ignore download_po_files failure
34599         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34600         failure.
34601
34602 2010-05-03  Jim Meyering  <meyering@redhat.com>
34603
34604         maint.mk: allow to pass options to gendocs.sh
34605         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34606         (gendocs_options_): New overridable variable.
34607
34608         gnu-web-doc-update: don't ignore configure or build failure
34609         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34610
34611         announce-gen: backslash-escape '@'s in --help output
34612         * build-aux/announce-gen: Fix syntax errors.
34613
34614         maint.mk, announce-gen: allow project-specific announcement mail headers
34615         * top/maint.mk (translation_project_): Define default.
34616         (announcement_Cc_, announcement_mail_headers_): Likewise.
34617         (announcement): Invoke announce-gen with new --mail-headers option.
34618         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34619
34620         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34621         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34622         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34623         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34624         line in the "err2" output file when running "make check" in verbose
34625         mode (i.e., with set -x enabled).
34626
34627 2010-05-03  Bruno Haible  <bruno@clisp.org>
34628
34629         wctob: Fix for weird platforms.
34630         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34631         argument value.
34632
34633 2010-05-03  Jim Meyering  <meyering@redhat.com>
34634
34635         maint.mk: prohibit unwarranted use of <strings.h>
34636         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34637         strings.h in a file that does not also use strcasecmp, strncasecmp,
34638         ffs or ffsll.
34639
34640         maint.mk: remove obsolete comments
34641         * top/maint.mk: Remove stale, commented-out rules.
34642
34643 2010-05-02  Bruno Haible  <bruno@clisp.org>
34644
34645         wcwidth: Declare also when it's aliased.
34646         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34647         macro.
34648
34649 2010-05-02  Bruno Haible  <bruno@clisp.org>
34650
34651         Fix regression from 2010-04-25.
34652         * gnulib-tool (func_modules_transitive_closure): Check the status of
34653         all modules, not only of the tests that are of the form foo-tests where
34654         foo is a module.
34655
34656 2010-05-02  Bruno Haible  <bruno@clisp.org>
34657
34658         wctob: Work around nasty Cygwin 1.7.2 bug.
34659         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34660         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34661
34662 2010-05-01  Bruno Haible  <bruno@clisp.org>
34663
34664         fpurge: Sharper test.
34665         * tests/test-fpurge.c (main): Add one more ftell check.
34666         * modules/fpurge-tests (Depends-on): Add ftell.
34667         Suggested by Eric Blake.
34668
34669 2010-05-01  Bruno Haible  <bruno@clisp.org>
34670
34671         ftello: Another test.
34672         * tests/test-ftello3.c: New file.
34673         * modules/ftello-tests (Files): Add it.
34674         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34675         MOSTLYCLEANFILES.
34676
34677         ftell: Another test.
34678         * tests/test-ftell3.c: New file.
34679         * modules/ftell-tests (Files): Add it.
34680         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34681         MOSTLYCLEANFILES.
34682
34683 2010-05-01  Bruno Haible  <bruno@clisp.org>
34684
34685         ftell, ftello: Work around Solaris bug.
34686         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34687         * lib/ftello.c: Include stdio-impl.h.
34688         (ftello): On Solaris, when _IOWRT is set, compute the result without
34689         looking at _IOREAD.
34690         * modules/ftello (Files): Add lib/stdio-impl.h.
34691         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34692         * doc/posix-functions/ftello.texi: Likewise.
34693         Reported by Eric Blake.
34694
34695 2010-05-01  Bruno Haible  <bruno@clisp.org>
34696
34697         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34698         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34699         the _IOWRT flag is also set.
34700
34701 2010-05-01  Bruno Haible  <bruno@clisp.org>
34702
34703         Fix doc about a HP-UX stdio bug.
34704         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34705         * doc/posix-functions/ftello.texi: Likewise.
34706
34707 2010-05-01  Bruno Haible  <bruno@clisp.org>
34708
34709         lseek test: Fix failure on Solaris.
34710         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34711         output.
34712
34713 2010-04-30  Jim Meyering  <meyering@redhat.com>
34714
34715         bootstrap: don't ignore failure to generate po*/Makevars
34716         * build-aux/bootstrap (with_gettext): Don't ignore failure
34717         to create po/Makevars or runtime-po/Makevars.
34718
34719 2010-04-29  Eric Blake  <eblake@redhat.com>
34720
34721         headers: relax license to LGPLv2+
34722         * modules/fcntl-h (License): Relax license.
34723         * modules/getopt-posix (License): Likewise.
34724         * modules/locale (License): Likewise.
34725         * modules/math (License): Likewise.
34726         * modules/pty (License): Likewise.
34727         * modules/sched (License): Likewise.
34728         * modules/search (License): Likewise.
34729         * modules/spawn (License): Likewise.
34730         * modules/stdarg (License): Likewise.
34731         * modules/sysexits (License): Likewise.
34732
34733 2010-04-29  Jim Meyering  <meyering@redhat.com>
34734
34735         inttypes: relax license to LGPLv2+
34736         * modules/inttypes (License): Relax license.
34737
34738 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34739
34740         * top/maint.mk (indent): Run twice to produce idempotent results.
34741
34742 2010-04-28  Bruno Haible  <bruno@clisp.org>
34743
34744         getdate: Generate getdate.c in the source directory.
34745         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34746         MOSTLYCLEANFILES.
34747         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34748
34749 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34750
34751         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34752         is not declared as a const *; avoid warnings in that case.
34753
34754 2010-04-28  Eric Blake  <eblake@redhat.com>
34755
34756         canonicalize-lgpl: avoid compiler warning
34757         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34758         declaration' / 'extraneous semicolon' warning with some compilers.
34759         Reported by Andreas Gruenbacher.
34760
34761 2010-04-28  Jim Meyering  <meyering@redhat.com>
34762
34763         init.sh: ensure a more reliable exit status when exiting via trap
34764         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34765         Inspired by patches from Dmitry V. Levin.
34766         Also trap on signal 3 (SIGQUIT).
34767
34768 2010-04-27  Bruno Haible  <bruno@clisp.org>
34769
34770         Update doc about utimes().
34771         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34772         'utimens' module.
34773         Reported by Andreas Gruenbacher <agruen@suse.de>.
34774
34775 2010-04-27  Eric Blake  <eblake@redhat.com>
34776
34777         full-read, full-write: relax license
34778         * modules/full-read (License): Drop to LGPLv2+.
34779         * modules/full-write (License): Likewise.
34780         * modules/safe-read (License): Likewise.
34781         * modules/safe-write (License): Likewise.
34782
34783         pthread: mention library for linking
34784         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34785
34786 2010-04-27  Jim Meyering  <meyering@redhat.com>
34787
34788         maint.mk: fix a bug introduced in last change
34789         * top/maint.mk (gl_assured_headers_): Now that all names are on
34790         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34791         is not anchored to end of word, it should be adequate.
34792
34793         maint.mk: avoid side-effect in latest syntax-check
34794         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34795         to run commands via $(shell...), and hence to incur cost only when
34796         the new rule is actually run.
34797
34798         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34799         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34800         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34801         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34802         (gl_assured_headers_, az_, AZ_): Define.
34803         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34804
34805 2010-04-26  Jim Meyering  <jim@meyering.net>
34806             Bruno Haible  <bruno@clisp.org>
34807
34808         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34809         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34810         Prompted by an exchange with Gilles Espinasse.
34811
34812 2010-04-26  Jim Meyering  <meyering@redhat.com>
34813
34814         git-version-gen: aesthetic tweak
34815         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34816         so that the command remains on a single line.
34817
34818 2010-04-26  Eric Blake  <eblake@redhat.com>
34819
34820         git-version-gen: allow use on EBCDIC hosts
34821         * build-aux/git-version-gen (dirty): Use literal rather than tying
34822         ourselves to ascii.
34823         Reported by Steve Goetze.
34824
34825 2010-04-25  Bruno Haible  <bruno@clisp.org>
34826
34827         netdb: Add support for GNULIB_POSIXCHECK.
34828         * lib/netdb.in.h: Include warn-on-use.h.
34829         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34830         functions are used when GNULIB_POSIXCHECK is defined and the
34831         getaddrinfo module is not in use.
34832         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34833         freeaddrinfo, gai_strerror, getnameinfo are declared.
34834         * modules/netdb (Depends-on): Add warn-on-use.
34835         (Makefile.am): Include warn-on-use.h in netdb.h.
34836
34837 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34838
34839         build: avoid "make check" failure without .git/ directory
34840         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34841         there is no .git/ directory.
34842
34843 2010-04-25  Bruno Haible  <bruno@clisp.org>
34844
34845         ptsname: Fix misuse of ttyname_r.
34846         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34847         of errno.
34848
34849 2010-04-25  Bruno Haible  <bruno@clisp.org>
34850
34851         ttyname_r: Make it work on Solaris 10.
34852         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34853         if the system function has the POSIX declaration. Test whether the
34854         function fails if the buffer is less than 128 bytes large.
34855         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34856         system's ttyname_r function. Provide a reasonably large buffer.
34857         * modules/ttyname_r (Depends-on): Add extensions.
34858         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34859
34860 2010-04-25  Bruno Haible  <bruno@clisp.org>
34861
34862         Use the 'extensions' module for some more functions on Solaris.
34863         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34864         module.
34865         * doc/posix-functions/ctime_r.texi: Likewise.
34866         * doc/posix-functions/getgrgid_r.texi: Likewise.
34867         * doc/posix-functions/getgrnam_r.texi: Likewise.
34868         * doc/posix-functions/getpwnam_r.texi: Likewise.
34869         * doc/posix-functions/getpwuid_r.texi: Likewise.
34870         * doc/posix-functions/readdir_r.texi: Likewise.
34871         * doc/posix-functions/sigwait.texi: Likewise.
34872         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34873         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34874
34875 2010-04-25  Bruno Haible  <bruno@clisp.org>
34876
34877         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34878         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34879         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34880         * lib/ttyname_r.c: Include <limits.h>.
34881         (ttyname_r): Define using the system's ttyname_r function, if it exists
34882         and not on Solaris.
34883         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34884         set.
34885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34886         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34887         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34888         Reported by Simon Josefsson.
34889
34890 2010-04-25  Bruno Haible  <bruno@clisp.org>
34891
34892         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34893         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34894         * doc/posix-functions/ctime_r.texi: Likewise.
34895         * doc/posix-functions/getgrgid_r.texi: Likewise.
34896         * doc/posix-functions/getgrnam_r.texi: Likewise.
34897         * doc/posix-functions/getlogin_r.texi: Likewise.
34898         * doc/posix-functions/getpwnam_r.texi: Likewise.
34899         * doc/posix-functions/getpwuid_r.texi: Likewise.
34900         * doc/posix-functions/readdir_r.texi: Likewise.
34901         * doc/posix-functions/sigwait.texi: Likewise.
34902         * doc/posix-functions/ttyname_r.texi: Likewise.
34903         Reported by Simon Josefsson.
34904
34905 2010-04-25  Bruno Haible  <bruno@clisp.org>
34906
34907         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34908         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34909         also to --create-testdir.
34910         (func_acceptable): Don't consider the status of *-tests modules here.
34911         (func_modules_transitive_closure): Consider it here, before including a
34912         test module.
34913         (func_import, func_create_testdir): Set inc_all_direct_tests,
34914         inc_all_indirect_tests.
34915         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34916         --create-testdir and --create-megatestdir.
34917
34918 2010-04-25  Bruno Haible  <bruno@clisp.org>
34919
34920         gnulib-tool: Add --without-*-tests options.
34921         * gnulib-tool (func_usage): Document the --without-*-tests options.
34922         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34923         excl_unportable_tests): New variables.
34924         Fail if they are specified with --import or --update.
34925         (func_acceptable): Respect the excl_*_tests variables.
34926         (func_import): Set the excl_*_tests variables to empty.
34927
34928 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34929             Bruno Haible  <bruno@clisp.org>
34930
34931         Work around a MacOS X 10.4 bug with openpty.
34932         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34933         * tests/test-openpty.c (main): Close the master side explicitly.
34934
34935 2010-04-25  Bruno Haible  <bruno@clisp.org>
34936
34937         strnlen: Fix a C++ test error on MacOS X and Solaris.
34938         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34939         the function is not declared.
34940         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34941         Simon Josefsson.
34942
34943 2010-04-24  Bruno Haible  <bruno@clisp.org>
34944
34945         Avoid a gcc warning.
34946         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34947         of correct type for %08lx directive.
34948         Reported by Eric Blake.
34949
34950 2010-04-24  Bruno Haible  <bruno@clisp.org>
34951
34952         vasnprintf: Correct errno value in case of out-of-memory.
34953         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34954         or sprintf. Use the errno value from SNPRINTF or sprintf.
34955         Reported by Ian Beckwith <ianb@erislabs.net>.
34956
34957 2010-04-24  Bruno Haible  <bruno@clisp.org>
34958
34959         ansi-c++-opt: Find correct compiler when cross-compiling.
34960         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34961         AC_CHECK_PROGS.
34962         Reported by Simon Josefsson.
34963
34964 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34965
34966         vc-list-files: Add support for subversion
34967         * build-aux/vc-list-files: Use "svn list" to generate the list of
34968         files controlled by subversion.
34969
34970 2010-04-23  Jim Meyering  <meyering@redhat.com>
34971
34972         vc-list-files tests: convert to use init.sh
34973         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34974         path_prepend_.
34975         Use Exit, not exit.
34976         Use skip_ rather than open coding it.
34977         Remove trap set-up and compare definitions.
34978         * tests/test-vc-list-files-git.sh: Likewise.
34979         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34980
34981 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34982
34983         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34984         backup files.
34985
34986 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34987
34988         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34989
34990 2010-04-20  Eric Blake  <eblake@redhat.com>
34991
34992         tests: be robust to ignored SIGPIPE
34993         * tests/test-select-in.sh: Consume all output.
34994         * tests/test-lseek.sh: Check correct exit status, while avoiding
34995         EPIPE.
34996
34997 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34998             Bruno Haible  <bruno@clisp.org>
34999
35000         visibility: Don't use -fvisibility if it leads to a warning.
35001         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35002         yes, don't pretend that visibility works if it leads to a warning.
35003         Reported by Mike Gran <spk121@yahoo.com>.
35004
35005 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35006
35007         * build-aux/bootstrap: Use "git -h" for testing for supported options
35008         instead of "git --help".  The short-form option only shows a summary,
35009         and doesn't layout the full man page.  Grep for the full option name
35010         in the summary, too.
35011
35012 2010-04-19  Bruno Haible  <bruno@clisp.org>
35013
35014         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35015         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35016         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35017         mention of RELOCATABLE_STRIP.
35018         Reported by Sylvain Beucler <beuc@beuc.net>.
35019
35020 2010-04-19  Bruno Haible  <bruno@clisp.org>
35021
35022         * lib/diffseq.h: Fix typo in comment.
35023         Reported by Eric Blake.
35024
35025 2010-04-19  Bruno Haible  <bruno@clisp.org>
35026
35027         ioctl: Move autoconf macro to a .m4 file.
35028         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35029         * modules/ioctl (Files): Add it.
35030         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35031         Reported by Ian Beckwith <ianb@erislabs.net>.
35032
35033 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35034             Bruno Haible  <bruno@clisp.org>
35035
35036         diffseq: Accommodate use-case with abstract arrays.
35037         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35038         is not defined.
35039         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35040         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35041
35042 2010-04-18  Bruno Haible  <bruno@clisp.org>
35043
35044         * doc/posix-headers/stdbool.texi: More precise wording.
35045
35046 2010-04-17  Jim Meyering  <meyering@redhat.com>
35047
35048         maint.mk: use gnu-style indentation in an embedded perl script
35049         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35050         Rename variable: s/two/last_two_bytes/
35051
35052 2010-04-16  Eric Blake  <eblake@redhat.com>
35053
35054         test-stdbool: skip test that fails with Solaris CC
35055         * tests/test-stdbool.c (f): Skip test that causes compilation
35056         error under buggy C++ compiler.
35057         * lib/stdbool.in.h: Document the limitation.
35058         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35059
35060         setenv: allow compilation with C++
35061         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35062         register keyword.
35063
35064         stdint: allow test to pass with C++
35065         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35066
35067         getopt: allow compilation with C++
35068         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35069         struct.
35070         * lib/getopt.c (_getopt_internal_r): Use correct type.
35071         Reported by Dagobert Michelson, via Joel E. Denny.
35072
35073 2010-04-16  Bruno Haible  <bruno@clisp.org>
35074
35075         Override netdb.h always.
35076         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35077         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35078         Reported by Ludovic Courtès <ludo@gnu.org>.
35079
35080 2010-04-15  Bruno Haible  <bruno@clisp.org>
35081
35082         openpty: Fix mistake from 2010-03-21.
35083         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35084         Reported by Simon Josefsson.
35085
35086 2010-04-15  Eric Blake  <eblake@redhat.com>
35087
35088         test-forkpty: fix expected signature
35089         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35090         Reported by Simon Josefsson.
35091
35092 2010-04-15  Jim Meyering  <meyering@redhat.com>
35093
35094         maint.mk: texinfo_suffix_re_: correct the default regexp
35095         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35096
35097         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35098         make it configurable via texinfo_suffix_re_.
35099
35100 2010-04-14  Eric Blake  <eblake@redhat.com>
35101
35102         strtok_r: relax license to LGPLv2+
35103         * modules/strtok_r (License): Relax license.
35104         Reported by Matthias Bolte.
35105
35106 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35107
35108         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35109         version 1.4.4 by default instead of requiring the libgcrypt
35110         version used during build.  This makes it possible to use the
35111         application with older but still binary compatible libgcrypt
35112         versions.
35113
35114 2010-04-13  Eric Blake  <eblake@redhat.com>
35115
35116         getopt-gnu: match recent glibc fixes and posix ruling
35117         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35118         '+' handling, when requesting extensions.
35119         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35120         'W;' handling.
35121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35122         * doc/posix-functions/getopt.texi (getopt): Document this.
35123         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35124         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35125         Likewise.
35126
35127         getopt: merge bug fixes from glibc
35128         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35129         diagnostics.  Honor '+:' correctly.  Reject ';'.
35130
35131         getopt-posix: detect MacOS bug
35132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35133         optind when missing a required argument.
35134         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35135         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35136         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35137         Likewise.
35138
35139         getopt-posix: avoid spurious failure on Solaris
35140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35141         an indicator that setting optind=1 is sufficient for reset.
35142
35143         getopt-posix: avoid spurious failure on FreeBSD
35144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35145         in POSIX mode, since the m4 test uses it.
35146
35147         gnulib-tool: silence warning on BSD sh
35148         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35149
35150 2010-04-13  Jim Meyering  <meyering@redhat.com>
35151
35152         doc: users.txt: GNU patch now uses gnulib
35153         * users.txt: Add patch.
35154
35155 2010-04-12  Jim Meyering  <meyering@redhat.com>
35156
35157         maint.mk: generate more concise timing data for syntax-check rules
35158         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35159         " done" from each line that reports a syntax-check test duration.
35160
35161 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35162
35163         git-version-gen: use "git update-index..." rather than "git status"
35164         * build-aux/git-version-gen: Use git update-index --refresh, not
35165         "git status".  With some versions of git, "git status" would fail
35166         to update the index and result in an unwarranted "-dirty" suffix.
35167
35168 2010-04-11  Jim Meyering  <meyering@redhat.com>
35169
35170         openat: correct formatting (no semantic change)
35171         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35172         Suggested by Bruno Haible.
35173
35174 2010-04-11  Bruno Haible  <bruno@clisp.org>
35175
35176         Stricter declaration checking in testdirs.
35177         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35178         If for_tests is true, augment AM_CPPFLAGS to define
35179         GNULIB_STRICT_CHECKING.
35180         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35181         GNULIB_STRICT_CHECKING is defined, verify that the function is
35182         declared.
35183
35184 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35185             Bruno Haible  <bruno@clisp.org>
35186
35187         libunistring: Improve configure output.
35188         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35189         Don't say "consider installing GNU libunistring" when checking again
35190         with libiconv.
35191
35192 2010-04-11  Bruno Haible  <bruno@clisp.org>
35193
35194         libunistring: Correct value of $LTLIBUNISTRING.
35195         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35196         correct the value of $LTLIBUNISTRING.
35197
35198 2010-04-11  Bruno Haible  <bruno@clisp.org>
35199
35200         havelib: Add static libraries to LIBS in the right order.
35201         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35202         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35203
35204 2010-04-11  Bruno Haible  <bruno@clisp.org>
35205
35206         libunistring: Detect libunistring also when it depends on libiconv.
35207         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35208         the second AC_LIB_HAVE_LINKFLAGS invocation.
35209
35210 2010-04-11  James Youngman  <jay@gnu.org>
35211
35212         close-stream: declare local scalars to be "const"
35213         * lib/close-stream.c (close_stream): Make boolean variables const
35214         to document the fact that we set but do not change them.
35215
35216 2010-04-11  Bruno Haible  <bruno@clisp.org>
35217
35218         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35219
35220 2010-04-11  Jim Meyering  <meyering@redhat.com>
35221
35222         maint.mk: don't include dist-check.mk
35223         * top/maint.mk: Remove bogus include directive.
35224
35225         maint.mk: improve empty-line-at-EOF check
35226         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35227         solution, rather than tail+Perl-based one.  The latter would read
35228         a few kilobytes from the end of each file, and did not handle empty
35229         files properly.
35230
35231         maint.mk: print the elapsed time for each syntax-check rule
35232         * top/maint.mk (sc_m_rules_): Save start time in a file.
35233         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35234         (local-check): Interpose the .z rules
35235
35236 2010-04-11  Jim Meyering  <meyering@redhat.com>
35237
35238         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35239         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35240         empty file with one that ends in an empty line.
35241
35242 2010-04-10  Bruno Haible  <bruno@clisp.org>
35243
35244         mkdir: Make it work on mingw64.
35245         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35246         * lib/mkdir.c: Update comment.
35247         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35248
35249 2010-04-10  Bruno Haible  <bruno@clisp.org>
35250
35251         Don't override improved macro from newer autoconf.
35252         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35253         autoconf >= 2.62.
35254         Reported by Joel E. Denny <jdenny@clemson.edu>.
35255
35256 2010-04-10  Jim Meyering  <meyering@redhat.com>
35257
35258         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35259         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35260
35261         maint.mk: correct a diagnostic
35262         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35263         in diagnostic; now use $prohibit.
35264
35265 2010-04-10  Bruno Haible  <address@hidden>
35266
35267         fchownat: Fix a C++ test error on Solaris 8.
35268         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35269         the function does not exist.
35270
35271 2010-04-10  Bruno Haible  <bruno@clisp.org>
35272
35273         vasnprintf: Add more tests.
35274         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35275         (test_function): Test converting an invalid wide string.
35276
35277         vasnprintf: Correct handling of unconvertible wide string arguments.
35278         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35279         VASNPRINTF.
35280         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35281         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35282         smaller than the expected maximum need for the directive. Set errno to
35283         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35284         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35286         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35287         * modules/vasnprintf (Files): Add m4/printf.m4.
35288         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35289
35290 2010-04-10  Bruno Haible  <bruno@clisp.org>
35291
35292         vasnprintf: Fix crash in %ls directive.
35293         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35294         string is passed as argument to %ls, with no precision and no width.
35295         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35296
35297 2010-04-10  Bruno Haible  <bruno@clisp.org>
35298
35299         vasnprintf: Fix multiple test failures on mingw.
35300         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35301         _snprintf, or snwprintf, not _snwprintf.
35302
35303 2010-04-10  Bruno Haible  <bruno@clisp.org>
35304
35305         write: Fix a C++ test error on mingw.
35306         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35307
35308 2010-04-10  Bruno Haible  <bruno@clisp.org>
35309
35310         vasnprintf test: Reduce code duplication.
35311         * tests/test-vasnprintf.c (test_function): New function, extracted from
35312         test_vasnprintf.
35313         (test_vasnprintf, test_asnprintf): Invoke it.
35314
35315 2010-04-10  Bruno Haible  <bruno@clisp.org>
35316
35317         strnlen: Fix warning in C++ mode on MacOS X.
35318         * lib/string.in.h (strnlen): Use the modern idiom.
35319         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35320         defining strnlen as a macro already in <config.h>.
35321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35322         REPLACE_STRNLEN.
35323         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35324         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35325
35326 2010-04-08  James Youngman  <jay@gnu.org>
35327
35328         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35329         the example.
35330
35331 2010-04-09  Jim Meyering  <meyering@redhat.com>
35332
35333         maint.mk: print better diagnostic when there is no $(_hv_file)
35334         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35335         announce that when $(_hv_file) (aka help-version) does not exist.
35336
35337         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35338         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35339         not try to interpret its random input bytes.  Jarno Rajahalme reported
35340         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35341         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35342         (mktempd_): Likewise, just in case.
35343
35344         ftruncate: add two years to projected module removal date: 2012
35345         * m4/ftruncate.m4: Adjust comments.
35346
35347         ftruncate: mark module as obsolete; even MinGW provides it, now
35348         * modules/ftruncate (Status): Obsolete.
35349         (Notice): Say that.
35350         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35351         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35352
35353 2010-04-08  Bruno Haible  <bruno@clisp.org>
35354
35355         Fix side effects from tests-related modules.
35356         * modules/dprintf-posix (Comment): New section.
35357         * modules/fprintf-posix (Comment): Likewise.
35358         * modules/obstack-printf-posix (Comment): Likewise.
35359         * modules/printf-posix (Comment): Likewise.
35360         * modules/snprintf-posix (Comment): Likewise.
35361         * modules/sprintf-posix (Comment): Likewise.
35362         * modules/vasnprintf-posix (Comment): Likewise.
35363         * modules/vasprintf-posix (Comment): Likewise.
35364         * modules/vdprintf-posix (Comment): Likewise.
35365         * modules/vfprintf-posix (Comment): Likewise.
35366         * modules/vprintf-posix (Comment): Likewise.
35367         * modules/vsnprintf-posix (Comment): Likewise.
35368         * modules/vsprintf-posix (Comment): Likewise.
35369         * modules/xprintf-posix (Comment): Likewise.
35370         * modules/xvasprintf-posix (Comment): Likewise.
35371         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35372         * modules/floorf-tests (Depends-on): Likewise.
35373         * modules/round-tests (Depends-on): Likewise.
35374         * modules/roundf-tests (Depends-on): Likewise.
35375         * modules/trunc-tests (Depends-on): Likewise.
35376         * modules/truncf-tests (Depends-on): Likewise.
35377         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35378         'fprintf-posix' module is not present.
35379         * tests/test-floorf2.c (check): Likewise.
35380         * tests/test-trunc2.c (check): Likewise.
35381         * tests/test-truncf2.c (check): Likewise.
35382         * tests/test-round2.c (equal): Likewise.
35383         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35384
35385 2010-04-07  Karl Berry  <karl@gnu.org>
35386
35387         * config/srclist.txt,
35388         * config/srclistvars.sh,
35389         * config/srclist-update: doc fixes.
35390
35391 2010-04-07  Jim Meyering  <meyering@redhat.com>
35392
35393         maint.mk: add a PATH crosschecking syntax-check rule
35394         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35395         Useful if you use a test like the one in help-version (coreutils,
35396         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35397         printed by prog --version.
35398
35399 2010-04-06  Bruno Haible  <bruno@clisp.org>
35400
35401         Fix link error on mingw.
35402         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35403         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35404
35405 2010-04-06  Bruno Haible  <bruno@clisp.org>
35406
35407         Assume rmdir exists.
35408         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35409
35410 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35411
35412         doc: update users.txt
35413         * users.txt: Add gcal.
35414
35415 2010-04-06  Jim Meyering  <meyering@redhat.com>
35416
35417         init.sh: simply unset TMPDIR rather than risking env -i
35418         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35419         although it probably works fine on all Unix-based systems, some
35420         systems (Cygwin?) cannot tolerate a totally cleared environment.
35421         Suggestion from Eric Blake.
35422
35423 2010-04-06  Jim Meyering  <meyering@redhat.com>
35424
35425         init.sh: portability fix: use env's POSIX-specified -i option not -u
35426         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35427         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35428
35429 2010-04-05  Bruno Haible  <bruno@clisp.org>
35430
35431         btowc: Work around Cygwin 1.7.2 bug.
35432         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35433         does not map NUL to 0.
35434         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35435
35436 2010-04-05  Bruno Haible  <bruno@clisp.org>
35437
35438         Make the multithread modules work on Cygwin 1.7.2.
35439         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35440         imported symbols can be declared weak, so that it returns "no" on
35441         Cygwin 1.7.2.
35442
35443 2010-04-05  Bruno Haible  <bruno@clisp.org>
35444
35445         Use the module 'strncat'.
35446         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35447
35448         Tests for module 'strncat'.
35449         * modules/strncat-tests: New file.
35450         * tests/test-strncat.c: New file.
35451
35452         New module 'strncat'.
35453         * lib/string.in.h (strncat): New declaration.
35454         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35455         * m4/strncat.m4: New file, based on m4/memchr.m4.
35456         * modules/strncat: New file.
35457         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35458         is declared.
35459         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35460         REPLACE_STRNCAT.
35461         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35462         REPLACE_STRNCAT.
35463         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35464         module.
35465         * tests/test-string-c++.cc: Check signature of strncat.
35466
35467 2010-04-05  Jim Meyering  <meyering@redhat.com>
35468
35469         xstrtoumax-tests: convert to use init.sh
35470         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35471         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35472         Use Exit, not exit.
35473         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35474
35475         xstrtoimax-tests: convert to use init.sh
35476         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35477         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35478         Use Exit, not exit.
35479         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35480
35481 2010-04-05  Bruno Haible  <bruno@clisp.org>
35482
35483         sys_socket: Avoid #define replacements in C++ mode.
35484         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35485         warning to the function if possible, rather than #defining the symbol
35486         to a dysfunctional alias.
35487
35488 2010-04-05  Bruno Haible  <bruno@clisp.org>
35489
35490         fseeko: Fix C++ test error on mingw.
35491         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35492         gl_FUNC_FSEEKO.
35493         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35494         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35495         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35496         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35497
35498 2010-04-05  Bruno Haible  <bruno@clisp.org>
35499
35500         duplocale: Improve test output.
35501         * tests/test-duplocale.c (main): Print reason for skipped test.
35502
35503 2010-04-05  Bruno Haible  <bruno@clisp.org>
35504
35505         Assume rmdir exists.
35506         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35507         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35508
35509 2010-04-05  Bruno Haible  <bruno@clisp.org>
35510
35511         Fix link error on Solaris 8 with cc.
35512         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35513
35514 2010-04-05  Bruno Haible  <bruno@clisp.org>
35515
35516         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35517         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35518
35519 2010-04-05  Bruno Haible  <bruno@clisp.org>
35520
35521         vasprintf: Update documentation.
35522         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35523
35524 2010-04-05  Bruno Haible  <bruno@clisp.org>
35525
35526         ptsname: Improve test.
35527         * tests/test-ptsname.c (main): Also try the various master names of BSD
35528         systems.
35529
35530 2010-04-05  Bruno Haible  <bruno@clisp.org>
35531
35532         memchr: Avoid a possible C++ test error.
35533         * lib/string.in.h (memchr): Provide declaration if function is missing.
35534         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35535         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35537         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35538
35539 2010-04-05  Bruno Haible  <bruno@clisp.org>
35540
35541         strtok_r: Improve idiom.
35542         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35543         AC_LIBOBJ is used.
35544
35545 2010-04-05  Bruno Haible  <bruno@clisp.org>
35546
35547         strdup: Improve idiom.
35548         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35549         AC_LIBOBJ is used.
35550         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35551         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35552         when AC_LIBOBJ is used.
35553
35554 2010-04-05  Bruno Haible  <bruno@clisp.org>
35555
35556         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35557         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35558         don't set REPLACE_MBSINIT to 1.
35559         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35560         don't set REPLACE_MBRTOWC to 1.
35561         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35562         exist, don't set REPLACE_MBSRTOWCS to 1.
35563         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35564         exist, don't set REPLACE_MBSNRTOWCS to 1.
35565         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35566         don't set REPLACE_WCRTOMB to 1.
35567         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35568         exist, don't set REPLACE_WCSRTOMBS to 1.
35569         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35570         exist, don't set REPLACE_WCSNRTOMBS to 1.
35571
35572 2010-04-05  Bruno Haible  <bruno@clisp.org>
35573
35574         ldexpl: Improve idiom.
35575         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35576         make sure to set HAVE_DECL_LDEXPL to 0.
35577
35578 2010-04-05  Jim Meyering  <meyering@redhat.com>
35579
35580         xstrtol-tests: convert to use init.sh
35581         * modules/xstrtol-tests (Files): Add tests/init.sh.
35582         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35583         Use Exit, not exit.
35584         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35585
35586         atexit-tests: convert to use init.sh
35587         * modules/atexit-tests (Files): Add tests/init.sh.
35588         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35589         Use Exit, not exit.
35590         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35591
35592         init.sh: fix typo
35593         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35594
35595         init.sh: make it easier for a test script to write to the tty, ...
35596         when using automake's parallel-tests mode.
35597         * tests/init.sh (stderr_fileno_): Define overridable variable.
35598         (warn_): New function, to use it.
35599         (fail_, skip_, framework_failure_): Use warn_.
35600
35601 2010-04-04  Bruno Haible  <bruno@clisp.org>
35602
35603         btowc: Avoid warning.
35604         * lib/btowc.c: Include <stdlib.h>.
35605         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35606
35607 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35608             Bruno Haible  <bruno@clisp.org>
35609
35610         wchar: Port to NetBSD 1.5.
35611         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35612         * lib/wctype.in.h (WEOF): Likewise.
35613
35614 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35615             Bruno Haible  <bruno@clisp.org>
35616
35617         Port extended stdio to NetBSD 1.5.
35618         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35619         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35620         older.
35621
35622 2010-04-04  Bruno Haible  <bruno@clisp.org>
35623
35624         string: Remove unused substitution.
35625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35626         HAVE_DECL_STRERROR.
35627         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35628
35629 2010-04-04  Bruno Haible  <bruno@clisp.org>
35630
35631         strtod: Avoid a possible C++ test error.
35632         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35633         set REPLACE_STRTOD.
35634
35635 2010-04-04  Bruno Haible  <bruno@clisp.org>
35636
35637         strerror: Update documentation.
35638         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35639
35640 2010-04-04  Bruno Haible  <bruno@clisp.org>
35641
35642         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35643         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35644         _GL_CXXALIAS_SYS_CAST.
35645
35646 2010-04-04  Bruno Haible  <bruno@clisp.org>
35647
35648         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35649         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35650         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35651         REPLACE_FREXPL to 1.
35652         * doc/posix-functions/frexpl.texi: Update documentation.
35653
35654 2010-04-04  Bruno Haible  <bruno@clisp.org>
35655
35656         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35657         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35658
35659 2010-04-04  Bruno Haible  <bruno@clisp.org>
35660
35661         Implement nanosleep for native Windows.
35662         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35663
35664 2010-04-04  Bruno Haible  <bruno@clisp.org>
35665
35666         math: Fix some C++ test errors on Solaris 8.
35667         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35668
35669 2010-04-04  Bruno Haible  <bruno@clisp.org>
35670
35671         math: Fix some C++ test errors on Cygwin.
35672         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35673         truncl): Provide declaration if the system does not have it.
35674         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35675         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35676         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35677         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35678         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35679         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35680         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35681         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35682         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35683         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35684         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35685         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35686         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35687         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35688         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35689         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35691         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35692         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35693         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35694         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35695         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35696
35697 2010-04-04  Bruno Haible  <bruno@clisp.org>
35698
35699         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35700         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35701         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35702         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35703         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35704         * m4/isinf.m4 (gl_ISINF): Likewise.
35705         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35706
35707 2010-04-04  Bruno Haible  <bruno@clisp.org>
35708
35709         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35710         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35711
35712 2010-04-04  Bruno Haible  <bruno@clisp.org>
35713
35714         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35715         * modules/tmpfile (configure.ac): Update.
35716
35717         tmpfile: Fix C++ test error on mingw.
35718         * lib/stdio.in.h (tmpfile): New declaration.
35719         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35720         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35721         * modules/tmpfile (Depends-on): Add stdio.
35722         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35723         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35724         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35725         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35726         REPLACE_TMPFILE.
35727         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35728
35729 2010-04-04  Bruno Haible  <bruno@clisp.org>
35730
35731         ioctl: Fix C++ test error on mingw.
35732         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35733         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35734         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35735
35736 2010-04-03  Bruno Haible  <bruno@clisp.org>
35737
35738         wcwidth: Fix C++ test error on mingw.
35739         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35741         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35742
35743 2010-04-03  Bruno Haible  <bruno@clisp.org>
35744
35745         nanosleep: Fix C++ test error on mingw.
35746         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35747         * lib/time.in.h (nanosleep): Use modern idiom.
35748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35749         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35750         REPLACE_NANOSLEEP to 1.
35751         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35752         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35753
35754 2010-04-03  Bruno Haible  <bruno@clisp.org>
35755
35756         strptime: Fix C++ test error on mingw.
35757         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35758         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35759         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35760         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35761         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35762         not REPLACE_STRPTIME.
35763         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35764         REPLACE_STRPTIME.
35765
35766 2010-04-03  Bruno Haible  <bruno@clisp.org>
35767
35768         timegm: Fix C++ test error on mingw.
35769         * lib/time.in.h (timegm): Use modern idiom.
35770         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35771         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35773         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35774
35775 2010-04-03  Bruno Haible  <bruno@clisp.org>
35776
35777         timegm: Assume declaration if function exists.
35778         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35779         if it exists. Don't clobber ac_cv_func_timegm.
35780
35781 2010-04-03  Bruno Haible  <bruno@clisp.org>
35782
35783         time_r: Fix C++ test error on mingw.
35784         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35785         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35786         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35787         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35788         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35789
35790 2010-04-03  Bruno Haible  <bruno@clisp.org>
35791
35792         time_r: Minor updates.
35793         * modules/time_r (Description): Mention the provided functions.
35794         * lib/time_r.c: Don't include <string.h>.
35795         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35796         * doc/posix-functions/localtime_r.texi: Likewise.
35797
35798 2010-04-03  Bruno Haible  <bruno@clisp.org>
35799
35800         time: Fix regression introduced on 2010-03-08.
35801         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35802         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35803
35804 2010-04-03  Jim Meyering  <meyering@redhat.com>
35805
35806         maint.mk: don't silently disable project-specific syntax-check rules
35807         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35808         that they need to convert their project-specific syntax-check rules
35809         to use the new _sc_search_regexp.
35810
35811 2010-04-03  Bruno Haible  <bruno@clisp.org>
35812
35813         fchdir: Fix regression introduced on 2010-03-08.
35814         * lib/unistd.in.h (fchdir): Fix declaration.
35815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35817         REPLACE_FCHDIR.
35818         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35819         REPLACE_FCHDIR.
35820
35821 2010-04-03  Bruno Haible  <bruno@clisp.org>
35822
35823         getpagesize: Fix C++ test error on mingw.
35824         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35825         system does not declare the function.
35826         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35827         declared.
35828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35829         HAVE_DECL_GETPAGESIZE.
35830         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35831
35832 2010-04-03  Bruno Haible  <bruno@clisp.org>
35833
35834         stdio: Make C++ tests work on mingw.
35835         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35836         does not declare the function.
35837
35838 2010-04-03  Bruno Haible  <bruno@clisp.org>
35839
35840         ftello: Fix C++ test error on mingw.
35841         * lib/stdio.in.h (ftello): Use modern idiom.
35842         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35843         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35844         is missing and that it needs to be replaced.
35845         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35847         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35848
35849 2010-04-03  Bruno Haible  <bruno@clisp.org>
35850
35851         fseeko: Fix C++ test error on mingw.
35852         * lib/stdio.in.h (fseeko): Use modern idiom.
35853         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35855         is missing and that it needs to be replaced.
35856         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35858         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35859
35860 2010-04-03  Bruno Haible  <bruno@clisp.org>
35861
35862         mkstemp: Fix C++ test error on mingw.
35863         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35865         function is missing and that it needs to be replaced.
35866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35867         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35868
35869 2010-04-03  Bruno Haible  <bruno@clisp.org>
35870
35871         stpncpy: Fix C++ test error on mingw.
35872         * lib/string.in.h (stpncpy): Use modern idiom.
35873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35874         function is missing and that it needs to be replaced.
35875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35876         REPLACE_STPNCPY.
35877         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35878
35879 2010-04-03  Bruno Haible  <bruno@clisp.org>
35880
35881         sys_stat: Fix C++ test error on mingw.
35882         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35883         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35884
35885 2010-04-03  Bruno Haible  <bruno@clisp.org>
35886
35887         pty: Update doc.
35888         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35889
35890 2010-04-03  Bruno Haible  <bruno@clisp.org>
35891
35892         unistd: Fix C++ test error on mingw.
35893         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35894
35895 2010-04-03  Bruno Haible  <bruno@clisp.org>
35896
35897         Update doc regarding mingw.
35898         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35899         * doc/glibc-functions/login_tty.texi: Likewise.
35900         * doc/glibc-functions/forkpty.texi: Likewise.
35901
35902 2010-04-03  Bruno Haible  <bruno@clisp.org>
35903
35904         stdlib: Avoid compilation failure of c-strtold on mingw.
35905         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35906
35907 2010-04-03  Bruno Haible  <bruno@clisp.org>
35908
35909         locale: Make C++ tests work on Cygwin and mingw.
35910         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35911         cannot provide the function.
35912         Reported by Simon Josefsson.
35913
35914 2010-04-03  Bruno Haible  <bruno@clisp.org>
35915
35916         localename: Port to MacOS X 10.6.
35917         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35918         memory layout of the locales in MacOS X 10.6 as well.
35919         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35920
35921 2010-04-02  Bruno Haible  <bruno@clisp.org>
35922
35923         gnulib-tool: Ensure that long-running tests are executed last.
35924         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35925         running tests after the one for the other tests.
35926
35927 2010-04-02  Bruno Haible  <bruno@clisp.org>
35928
35929         gnulib-tool: Ensure the tests in the main directory are executed first.
35930         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35931         start with the current directory.
35932
35933 2010-04-02  Bruno Haible  <bruno@clisp.org>
35934
35935         Tests for module 'havelib', moved here from GNU gettext.
35936         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35937         modifications.
35938         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35939         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35940         with modifications.
35941         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35942         modifications.
35943         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35944         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35945         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35946         with modifications.
35947         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35948         with modifications.
35949         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35950         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35951         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35952         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35953         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35954         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35955         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35956         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35957         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35958         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35959         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35960         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35961         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35962         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35963         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35964         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35965         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35966         with modifications.
35967         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35968         with modifications.
35969         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35970         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35971         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35972         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35973         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35974         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35975         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35976         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35977         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35978         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35979         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35980         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35981         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35982         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35983         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35984         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35985         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35986         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35987         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35988         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35989         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35990         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35991         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35992         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35993         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35994         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35995         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35996         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35997         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35998         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35999         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36000         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36001         * tests/havelib/rpathx/rpathx.c: New file, from
36002         gettext/autoconf-lib-link.
36003         * tests/havelib/rpathx/Makefile.am: New file, from
36004         gettext/autoconf-lib-link.
36005         * tests/havelib/rpathx/configure.ac: New file, from
36006         gettext/autoconf-lib-link with modifications.
36007         * tests/havelib/rpathy/rpathy.c: New file, from
36008         gettext/autoconf-lib-link.
36009         * tests/havelib/rpathy/Makefile.am: New file, from
36010         gettext/autoconf-lib-link.
36011         * tests/havelib/rpathy/configure.ac: New file, from
36012         gettext/autoconf-lib-link with modifications.
36013         * tests/havelib/rpathz/rpathz.c: New file, from
36014         gettext/autoconf-lib-link.
36015         * tests/havelib/rpathz/Makefile.am: New file, from
36016         gettext/autoconf-lib-link.
36017         * tests/havelib/rpathz/configure.ac: New file, from
36018         gettext/autoconf-lib-link with modifications.
36019         * tests/havelib/rpathlx/usex.c: New file, from
36020         gettext/autoconf-lib-link.
36021         * tests/havelib/rpathlx/Makefile.am: New file, from
36022         gettext/autoconf-lib-link.
36023         * tests/havelib/rpathlx/configure.ac: New file, from
36024         gettext/autoconf-lib-link with modifications.
36025         * tests/havelib/rpathly/usey.c: New file, from
36026         gettext/autoconf-lib-link.
36027         * tests/havelib/rpathly/Makefile.am: New file, from
36028         gettext/autoconf-lib-link.
36029         * tests/havelib/rpathly/configure.ac: New file, from
36030         gettext/autoconf-lib-link with modifications.
36031         * tests/havelib/rpathlz/usez.c: New file, from
36032         gettext/autoconf-lib-link.
36033         * tests/havelib/rpathlz/Makefile.am: New file, from
36034         gettext/autoconf-lib-link.
36035         * tests/havelib/rpathlz/configure.ac: New file, from
36036         gettext/autoconf-lib-link with modifications.
36037         * tests/havelib/rpathlyx/usey.c: New file, from
36038         gettext/autoconf-lib-link.
36039         * tests/havelib/rpathlyx/Makefile.am: New file, from
36040         gettext/autoconf-lib-link.
36041         * tests/havelib/rpathlyx/configure.ac: New file, from
36042         gettext/autoconf-lib-link with modifications.
36043         * tests/havelib/rpathlzyx/usez.c: New file, from
36044         gettext/autoconf-lib-link.
36045         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36046         gettext/autoconf-lib-link.
36047         * tests/havelib/rpathlzyx/configure.ac: New file, from
36048         gettext/autoconf-lib-link with modifications.
36049         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36050         with modifications.
36051
36052 2010-04-02  Bruno Haible  <bruno@clisp.org>
36053
36054         gnulib-tool: Create distributed built sources also for the tests.
36055         * gnulib-tool (func_create_testdir): Also generate distributed built
36056         sources in the tests directory.
36057
36058 2010-04-02  Bruno Haible  <bruno@clisp.org>
36059
36060         gnulib-tool: Obey user's environment variables.
36061         * gnulib-tool (func_create_testdir): When creating built sources,
36062         respect the environment variables for autoconf, automake, etc. given by
36063         the user.
36064
36065 2010-04-02  Bruno Haible  <bruno@clisp.org>
36066
36067         gnulib-tool: Provide the value of --m4-base to modules.
36068         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36069         of gl_m4_base.
36070
36071 2010-04-02  Eric Blake  <eblake@redhat.com>
36072
36073         maint.mk: fix some fallout
36074         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36075         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36076
36077 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36078
36079         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36080         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36081         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36082         (sc_cast_of_x_alloc_return_value): Likewise.
36083         (sc_cast_of_alloca_return_value): Likewise.
36084         (sc_space_tab): Likewise.
36085         (sc_prohibit_atoi_atof): Likewise.
36086         (sc_prohibit_magic_number_exit): Likewise.
36087         (sc_error_exit_success): Likewise.
36088         (sc_file_system): Likewise.
36089         (sc_prohibit_have_config_h): Likewise.
36090         (sc_require_config_h): Likewise.
36091         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36092         (sc_obsolete_symbols): Likewise.
36093         (sc_changelog): Likewise.
36094         (sc_program_name): Likewise.
36095         (sc_the_the): Likewise.
36096         (sc_trailing_blank): Likewise.
36097         (sc_two_space_separator_in_usage): Likewise.
36098         (sc_useless_cpp_parens): Likewise.
36099         (sc_GPL_version): Likewise.
36100         (sc_GFDL_version): Likewise.
36101         (sc_texinfo_acronym): Likewise.
36102         (sc_prohibit_cvs_keyword): Likewise.
36103         (sc_prohibit_stat_st_blocks): Likewise.
36104         (sc_prohibit_S_IS_definition): Likewise.
36105         (sc_redundant_const): Likewise.
36106         (sc_makefile_TAB_only_indentation): Likewise.
36107         (sc_m4_quote_check): Likewise.
36108         (sc_makefile_path_separator_check): Likewise.
36109         (sc_copyright_check): Likewise.
36110         (sc_Wundef_boolean): Likewise.
36111         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36112
36113         maint.mk: match 0 or more whitespace-before-function-call '('
36114         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36115         that have zero or two-and-more spaces between the function name
36116         and the open parenthesis.
36117         (sc_error_message_warn_fatal): Likewise.
36118         (sc_error_message_uppercase): Likewise.
36119         (sc_error_message_period): Likewise.
36120
36121 2010-03-31  Eric Blake  <eblake@redhat.com>
36122
36123         maint.mk: check for [ as well as test
36124         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36125         Based on a libvirt report by Matthias Bolte.
36126
36127         gnumakefile: don't squelch _version output
36128         * top/GNUmakefile (_version): Create one-shot dependency rather
36129         than using $(shell) when version must be regenerated.
36130         (_autoreconf): Run verbosely, by default.
36131
36132         sys_time: avoid compiler warnings
36133         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36134         unconditional, fixing regression from 2010-03-29.
36135         Reported by Simon Josefsson.
36136
36137 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36138
36139         maint.mk: s/_header_without_use/_sc_header_without_use/
36140         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36141         (sc_prohibit_assert_without_use): Use the new name.
36142         (sc_prohibit_close_stream_without_use): Likewise.
36143         (sc_prohibit_getopt_without_use): Likewise.
36144         (sc_prohibit_quotearg_without_use): Likewise.
36145         (sc_prohibit_quote_without_use): Likewise.
36146         (sc_prohibit_long_options_without_use): Likewise.
36147         (sc_prohibit_inttostr_without_use): Likewise.
36148         (sc_prohibit_ignore_value_without_use): Likewise.
36149         (sc_prohibit_error_without_use): Likewise.
36150         (sc_prohibit_xalloc_without_use): Likewise.
36151         (sc_prohibit_hash_without_use): Likewise.
36152         (sc_prohibit_hash_pjw_without_use): Likewise.
36153         (sc_prohibit_safe_read_without_use): Likewise.
36154         (sc_prohibit_argmatch_without_use): Likewise.
36155         (sc_prohibit_canonicalize_without_use): Likewise.
36156         (sc_prohibit_root_dev_ino_without_use): Likewise.
36157         (sc_prohibit_openat_without_use): Likewise.
36158         (sc_prohibit_c_ctype_without_use): Likewise.
36159         (sc_prohibit_signal_without_use): Likewise.
36160         (sc_prohibit_intprops_without_use): Likewise.
36161
36162 2010-03-30  Eric Blake  <eblake@redhat.com>
36163
36164         maint: improve module indicators
36165         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36166         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36167         columns, and avoid extra macro expansion.
36168
36169         fdopendir: work around FreeBSD bug
36170         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36171         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36172         * modules/dirent (Makefile.am): Substitute it.
36173         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36174         declaration.
36175         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36176         fix.
36177         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36178
36179 2010-03-29  Bruno Haible  <bruno@clisp.org>
36180
36181         Emit #pragma system_header after the inclusion guard, not before.
36182         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36183         guard that spans the entire file, not before. This enables an
36184         optimization in GCC's preprocessor.
36185         * lib/ctype.in.h: Likewise.
36186         * lib/dirent.in.h: Likewise.
36187         * lib/errno.in.h: Likewise.
36188         * lib/float.in.h: Likewise.
36189         * lib/getopt.in.h: Likewise.
36190         * lib/iconv.in.h: Likewise.
36191         * lib/langinfo.in.h: Likewise.
36192         * lib/locale.in.h: Likewise.
36193         * lib/math.in.h: Likewise.
36194         * lib/netdb.in.h: Likewise.
36195         * lib/netinet_in.in.h: Likewise.
36196         * lib/pty.in.h: Likewise.
36197         * lib/sched.in.h: Likewise.
36198         * lib/se-selinux.in.h: Likewise.
36199         * lib/search.in.h: Likewise.
36200         * lib/spawn.in.h: Likewise.
36201         * lib/stdarg.in.h: Likewise.
36202         * lib/stdint.in.h: Likewise.
36203         * lib/string.in.h: Likewise.
36204         * lib/strings.in.h: Likewise.
36205         * lib/sys_file.in.h: Likewise.
36206         * lib/sys_ioctl.in.h: Likewise.
36207         * lib/sys_time.in.h: Likewise.
36208         * lib/sys_times.in.h: Likewise.
36209         * lib/sys_utsname.in.h: Likewise.
36210         * lib/sys_wait.in.h: Likewise.
36211         * lib/sysexits.in.h: Likewise.
36212         * lib/wctype.in.h: Likewise.
36213
36214 2010-03-28  James Youngman  <jay@gnu.org>
36215
36216         save-cwd: don't leak a file descriptor when the caller execs.
36217         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36218         saved file descriptor.
36219         * modules/save-cwd (Depends-on): Depend on cloexec.
36220
36221 2010-03-29  Bruno Haible  <bruno@clisp.org>
36222
36223         Remove vestiges of fts-lgpl module.
36224         * lib/fts_.h: Assume GNULIB_FTS is 1.
36225         * lib/fts.c: Likewise.
36226         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36227
36228 2010-03-28  Bruno Haible  <bruno@clisp.org>
36229
36230         Fix definition of tests witness macro.
36231         * gnulib-tool (func_import): Fix definition of witness macro.
36232
36233 2010-03-28  Bruno Haible  <bruno@clisp.org>
36234
36235         Fix ioctl's protoype on glibc systems.
36236         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36237         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36238         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36239         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36240         signature. If not, arrange to replace the ioctl function.
36241         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36242         REPLACE_IOCTL.
36243         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36244         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36245         Reported by Ludovic Courtès <ludo@gnu.org>.
36246
36247 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36248
36249         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36250         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36251         made it so grep -r --include=GLOB* ... did not work.
36252
36253 2010-03-26  Jim Meyering  <meyering@redhat.com>
36254             Eric Blake  <eblake@redhat.com>
36255
36256         maint.mk: prohibit use of test's -o and -a operators
36257         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36258
36259 2010-03-28  Bruno Haible  <bruno@clisp.org>
36260
36261         Remove unused GNULIB_XYZ macro definitions.
36262         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36263         invocation.
36264
36265 2010-03-28  Bruno Haible  <bruno@clisp.org>
36266
36267         Mark privileged tests modules.
36268         * modules/idpriv-drop-tests (Status): New section.
36269         * modules/idpriv-droptemp-tests (Status): New section.
36270
36271 2010-03-28  Bruno Haible  <bruno@clisp.org>
36272
36273         Split C++ tests into separate tests modules.
36274         * modules/dirent-c++-tests: New file, extracted from
36275         modules/dirent-tests.
36276         * modules/dirent-tests: Depend on it.
36277         * modules/fcntl-h-c++-tests: New file, extracted from
36278         modules/fcntl-h-tests.
36279         * modules/fcntl-h-tests: Depend on it.
36280         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36281         * modules/glob-tests: Depend on it.
36282         * modules/iconv-h-c++-tests: New file, extracted from
36283         modules/iconv-h-tests.
36284         * modules/iconv-h-tests: Depend on it.
36285         * modules/langinfo-c++-tests: New file, extracted from
36286         modules/langinfo-tests.
36287         * modules/langinfo-tests: Depend on it.
36288         * modules/locale-c++-tests: New file, extracted from
36289         modules/locale-tests.
36290         * modules/locale-tests: Depend on it.
36291         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36292         * modules/math-tests: Depend on it.
36293         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36294         * modules/pty-tests: Depend on it.
36295         * modules/search-c++-tests: New file, extracted from
36296         modules/search-tests.
36297         * modules/search-tests: Depend on it.
36298         * modules/signal-c++-tests: New file, extracted from
36299         modules/signal-tests.
36300         * modules/signal-tests: Depend on it.
36301         * modules/spawn-c++-tests: New file, extracted from
36302         modules/spawn-tests.
36303         * modules/spawn-tests: Depend on it.
36304         * modules/stdio-c++-tests: New file, extracted from
36305         modules/stdio-tests.
36306         * modules/stdio-tests: Depend on it.
36307         * modules/stdlib-c++-tests: New file, extracted from
36308         modules/stdlib-tests.
36309         * modules/stdlib-tests: Depend on it.
36310         * modules/string-c++-tests: New file, extracted from
36311         modules/string-tests.
36312         * modules/string-tests: Depend on it.
36313         * modules/sys_ioctl-c++-tests: New file, extracted from
36314         modules/sys_ioctl-tests.
36315         * modules/sys_ioctl-tests: Depend on it.
36316         * modules/sys_select-c++-tests: New file, extracted from
36317         modules/sys_select-tests.
36318         * modules/sys_select-tests: Depend on it.
36319         * modules/sys_socket-c++-tests: New file, extracted from
36320         modules/sys_socket-tests.
36321         * modules/sys_socket-tests: Depend on it.
36322         * modules/sys_stat-c++-tests: New file, extracted from
36323         modules/sys_stat-tests.
36324         * modules/sys_stat-tests: Depend on it.
36325         * modules/sys_time-c++-tests: New file, extracted from
36326         modules/sys_time-tests.
36327         * modules/sys_time-tests: Depend on it.
36328         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36329         * modules/time-tests: Depend on it.
36330         * modules/unistd-c++-tests: New file, extracted from
36331         modules/unistd-tests.
36332         * modules/unistd-tests: Depend on it.
36333         * modules/wchar-c++-tests: New file, extracted from
36334         modules/wchar-tests.
36335         * modules/wchar-tests: Depend on it.
36336         * modules/wctype-c++-tests: New file, extracted from
36337         modules/wctype-tests.
36338         * modules/wctype-tests: Depend on it.
36339         Reported by Simon Josefsson.
36340
36341 2010-03-28  Bruno Haible  <bruno@clisp.org>
36342
36343         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36344         * gnulib-tool (func_exists_module): New function, extracted from
36345         func_verify_module.
36346         (func_verify_module): Use it.
36347         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36348         'foo' only if 'foo' exists.
36349         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36350         module.
36351
36352 2010-03-28  Bruno Haible  <bruno@clisp.org>
36353
36354         gnulib-tool: Add support for special categories of tests.
36355         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36356         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36357         (func_usage): Document them.
36358         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36359         inc_unportable_tests, inc_all_tests): New variables.
36360         (func_acceptable): Consider these variables.
36361         (func_modules_transitive_closure): Make it work when the 'Status' field
36362         consists of multiple words.
36363         (func_import): Store and restore the values of inc_cxx_tests,
36364         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36365         inc_all_tests in gnulib-comp.m4.
36366         (func_create_testdir): Set inc_all_tests to true.
36367         * doc/gnulib.texi (Extra tests modules): New section.
36368         Suggested by Jim Meyering.
36369
36370 2010-03-28  Bruno Haible  <bruno@clisp.org>
36371
36372         ansi-c++-opt: Allow turning off the C++ build by default.
36373         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36374         gl_CXX_CHOICE_DEFAULT_NO is defined.
36375         Requested by Eric Blake.
36376
36377 2010-03-28  Bruno Haible  <bruno@clisp.org>
36378
36379         unistd: Avoid #define replacements in C++ mode.
36380         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36381         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36382         setsockopt, shutdown, select): In C++, attach a warning to the function
36383         if possible, rather than #defining the symbol to a dysfunctional alias.
36384         Reported by John W. Eaton <jwe@gnu.org>.
36385
36386 2010-03-28  Bruno Haible  <bruno@clisp.org>
36387
36388         Fix link errors on mingw.
36389         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36390         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36391         $(LIBSOCKET).
36392         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36393         $(LIBSOCKET).
36394
36395 2010-03-28  Bruno Haible  <bruno@clisp.org>
36396             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36397
36398         lib-ignore: Determine different options for different compilers.
36399         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36400         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36401         Add comments.
36402         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36403         * NEWS: Mention the change.
36404
36405 2010-03-27  Bruno Haible  <bruno@clisp.org>
36406
36407         Remove unused GNULIB_XYZ macro definitions.
36408         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36409         * modules/fseek (configure.ac): Likewise.
36410         * modules/ioctl (configure.ac): Likewise.
36411         * modules/open (configure.ac): Likewise.
36412         * modules/stdlib-safer (configure.ac): Likewise.
36413
36414 2010-03-27  Bruno Haible  <bruno@clisp.org>
36415
36416         Add a remark about certain modules.
36417         * modules/malloc (Comment): New section.
36418         * modules/realloc (Comment): Likewise.
36419         * modules/sigpipe (Comment): Likewise.
36420
36421 2010-03-27  Bruno Haible  <bruno@clisp.org>
36422
36423         Resolve conflict between the two kinds of module indicators.
36424         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36425         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36426         * modules/canonicalize (configure.ac): Invoke
36427         gl_MODULE_INDICATOR_FOR_TESTS.
36428         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36429         GNULIB_XYZ.
36430         * tests/test-dirent-c++.cc: Likewise.
36431         * tests/test-dirent-safer.c: Likewise.
36432         * tests/test-dup2.c: Likewise.
36433         * tests/test-fchdir.c: Likewise.
36434         * tests/test-fcntl-h-c++.cc: Likewise.
36435         * tests/test-getopt.c: Likewise.
36436         * tests/test-getopt.h: Likewise.
36437         * tests/test-langinfo-c++.cc: Likewise.
36438         * tests/test-locale-c++.cc: Likewise.
36439         * tests/test-math-c++.cc: Likewise.
36440         * tests/test-pty-c++.cc: Likewise.
36441         * tests/test-search-c++.cc: Likewise.
36442         * tests/test-signal-c++.cc: Likewise.
36443         * tests/test-spawn-c++.cc: Likewise.
36444         * tests/test-stdio-c++.cc: Likewise.
36445         * tests/test-stdlib-c++.cc: Likewise.
36446         * tests/test-string-c++.cc: Likewise.
36447         * tests/test-sys_ioctl-c++.cc: Likewise.
36448         * tests/test-sys_select-c++.cc: Likewise.
36449         * tests/test-sys_socket-c++.cc: Likewise.
36450         * tests/test-sys_stat-c++.cc: Likewise.
36451         * tests/test-sys_time-c++.cc: Likewise.
36452         * tests/test-time-c++.cc: Likewise.
36453         * tests/test-unistd-c++.cc: Likewise.
36454         * tests/test-wchar-c++.cc: Likewise.
36455         * tests/uninorm/test-u8-nfc.c: Likewise.
36456         * tests/uninorm/test-u8-nfd.c: Likewise.
36457         * tests/uninorm/test-u8-nfkc.c: Likewise.
36458         * tests/uninorm/test-u8-nfkd.c: Likewise.
36459         * tests/uninorm/test-u16-nfc.c: Likewise.
36460         * tests/uninorm/test-u16-nfd.c: Likewise.
36461         * tests/uninorm/test-u16-nfkc.c: Likewise.
36462         * tests/uninorm/test-u16-nfkd.c: Likewise.
36463         * tests/uninorm/test-u32-nfc.c: Likewise.
36464         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36465         * tests/uninorm/test-u32-nfd.c: Likewise.
36466         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36467         * tests/uninorm/test-u32-nfkc.c: Likewise.
36468         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36469         * tests/uninorm/test-u32-nfkd.c: Likewise.
36470         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36471         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36472
36473 2010-03-27  Bruno Haible  <bruno@clisp.org>
36474
36475         Distinguish two kinds of module indicators.
36476         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36477         gl_MODULE_INDICATOR.
36478         (gl_MODULE_INDICATOR): New macro.
36479         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36480         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36481         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36482         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36483         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36484         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36485         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36486         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36487         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36488         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36489         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36490         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36492         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36493         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36494         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36495         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36496         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36497         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36498         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36499         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36500         * modules/cloexec (configure.ac): Likewise.
36501         * modules/getopt-gnu (configure.ac): Likewise.
36502         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36503         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36504         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36505         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36506
36507 2010-03-27  Bruno Haible  <bruno@clisp.org>
36508
36509         New module description field 'Comment'.
36510         * gnulib-tool: New option --extract-comment.
36511         (func_usage): Document it.
36512         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36513         (func_get_comment): New function.
36514         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36515
36516 2010-03-27  Bruno Haible  <bruno@clisp.org>
36517
36518         Addendum to 2010-02-07 commit.
36519         * gnulib-tool (func_usage): Document --extract-applicability option.
36520
36521 2010-03-27  Bruno Haible  <bruno@clisp.org>
36522
36523         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36524         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36525         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36526         rather than link errors.
36527
36528 2010-03-27  Bruno Haible  <bruno@clisp.org>
36529
36530         Avoid side effects from tests-related modules on the compilation of lib.
36531         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36532         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36533         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36534         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36535         macro.
36536         (func_import): Define a witness macro. Assign it a value that depends
36537         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36538         tests-related modules.
36539         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36540         Reported by Jim Meyering.
36541
36542 2010-03-27  Bruno Haible  <bruno@clisp.org>
36543
36544         Factorize common .m4 code.
36545         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36546         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36547         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36548         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36549         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36550         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36551         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36552         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36553         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36554         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36555         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36556         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36557         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36558         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36559         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36560         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36561         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36562         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36563         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36564         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36565         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36566         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36567         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36568         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36569         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36570         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36571         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36572         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36573         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36574         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36575         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36576         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36577
36578 2010-03-27  Bruno Haible  <bruno@clisp.org>
36579
36580         Fix a compilation error on Cygwin with g++ >= 4.3.
36581         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36582         if it is undefined or if we alias it to chmod.
36583         (lstat): Don't warn about the use of this function if it is undefined
36584         or if we alias it to stat.
36585         Reported by Simon Josefsson.
36586
36587 2010-03-27  Bruno Haible  <bruno@clisp.org>
36588
36589         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36590         * modules/getlogin (configure.ac): Update.
36591
36592         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36593         * modules/getlogin_r (configure.ac): Update.
36594
36595         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36597         * modules/inet_ntop (configure.ac): Update.
36598
36599         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36600         * modules/inet_pton (configure.ac): Update.
36601
36602         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36603         * modules/mbslen (configure.ac): Update.
36604
36605         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36606         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36607         * modules/forkpty (configure.ac): Update.
36608         * modules/openpty (configure.ac): Update.
36609
36610 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36611
36612         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36613         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36614
36615 2010-03-25  Eric Blake  <eblake@redhat.com>
36616
36617         maint: use pragma consistently across replacement headers
36618         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36619         * lib/dirent.in.h (system_header): Likewise.
36620         * lib/errno.in.h (system_header): Likewise.
36621         * lib/float.in.h (system_header): Likewise.
36622         * lib/getopt.in.h (system_header): Likewise.
36623         * lib/iconv.in.h (system_header): Likewise.
36624         * lib/inttypes.in.h (system_header): Likewise.
36625         * lib/langinfo.in.h (system_header): Likewise.
36626         * lib/locale.in.h (system_header): Likewise.
36627         * lib/math.in.h (system_header): Likewise.
36628         * lib/netdb.in.h (system_header): Likewise.
36629         * lib/netinet_in.in.h (system_header): Likewise.
36630         * lib/pty.in.h (system_header): Likewise.
36631         * lib/sched.in.h (system_header): Likewise.
36632         * lib/se-selinux.in.h (system_header): Likewise.
36633         * lib/search.in.h (system_header): Likewise.
36634         * lib/spawn.in.h (system_header): Likewise.
36635         * lib/stdarg.in.h (system_header): Likewise.
36636         * lib/stdint.in.h (system_header): Likewise.
36637         * lib/string.in.h (system_header): Likewise.
36638         * lib/strings.in.h (system_header): Likewise.
36639         * lib/sys_file.in.h (system_header): Likewise.
36640         * lib/sys_ioctl.in.h (system_header): Likewise.
36641         * lib/sys_socket.in.h (system_header): Likewise.
36642         * lib/sys_times.in.h (system_header): Likewise.
36643         * lib/sys_utsname.in.h (system_header): Likewise.
36644         * lib/sys_wait.in.h (system_header): Likewise.
36645         * lib/sysexits.in.h (system_header): Likewise.
36646         * lib/unistd.in.h (system_header): Likewise.
36647         * lib/wctype.in.h (system_header): Likewise.
36648
36649         arpa/inet: fix mingw compilation warning
36650         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36651         Reported by Matthew Bolte.
36652
36653 2010-03-25  Bruno Haible  <bruno@clisp.org>
36654
36655         Avoid collision between gnulib wrapper and libintl wrapper.
36656         * lib/printf.c (printf): Don't define if a printf wrapper is already
36657         defined in intl/printf.c.
36658         Reported by Michel Boaventura <michel@michelboaventura.com>.
36659
36660 2010-03-25  Bruno Haible  <bruno@clisp.org>
36661
36662         Use ANSI C.
36663         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36664
36665 2010-03-25  Bruno Haible  <bruno@clisp.org>
36666
36667         Minor formatting changes.
36668         * lib/acosl.c: Insert space before function argument list.
36669         * lib/argz.c: Likewise.
36670         * lib/asinl.c: Likewise.
36671         * lib/expl.c: Likewise.
36672         * lib/gen-uni-tables.c: Likewise.
36673         * lib/gettext.h: Likewise.
36674         * lib/glthread/lock.h: Likewise.
36675         * lib/tanl.c: Likewise.
36676         * lib/uniname/uniname.c: Likewise.
36677         * tests/test-idpriv-drop.c: Likewise.
36678         * tests/test-idpriv-droptemp.c: Likewise.
36679         * tests/test-lock.c: Likewise.
36680         * tests/test-tls.c: Likewise.
36681         * lib/argp-help.c: Insert space before function-like macro argument
36682         list.
36683         * lib/memcmp.c: Likewise.
36684         * tests/test-base64.c: Likewise.
36685         * lib/localename.c: Insert space before sizeof's argument list.
36686         * lib/safe-alloc.h: Likewise.
36687         * lib/file-set.h: Insert space before macro argument list.
36688         * tests/test-argp.c: Likewise.
36689         * lib/argp-namefrob.h: Insert space before function parameter list.
36690         * lib/getaddrinfo.c: Likewise.
36691         * lib/netdb.in.h: Likewise.
36692         * lib/parse-duration.h: Likewise.
36693         * lib/parse-duration.c: Likewise.
36694         * lib/poll.c: Likewise.
36695         * lib/select.c: Likewise.
36696         * lib/trim.h: Likewise.
36697         * tests/test-usleep.c: Likewise.
36698         * lib/ldexpl.c: Insert space before function parameter list and before
36699         function argument list.
36700         * lib/logl.c: Likewise.
36701         * lib/sqrtl.c: Likewise.
36702         * lib/trim.c: Likewise.
36703         * lib/cosl.c: Use GNU style indentation. Insert space before function
36704         argument list.
36705         * lib/sinl.c: Likewise.
36706         * lib/tsearch.c: Insert space after 'for'.
36707         Reported by Jim Meyering.
36708
36709 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36710
36711         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36712         config header before grepping, as it's not present before
36713         autoreconf/configure are run.  Reported by Simon Josefsson.
36714
36715 2010-03-23  Bruno Haible  <bruno@clisp.org>
36716
36717         pt_chown: Make it work with automake < 1.11.
36718         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36719         Reported by Simon Josefsson.
36720
36721 2010-03-23  Bruno Haible  <bruno@clisp.org>
36722
36723         pt_chown: Don't depend on GPLed modules.
36724         * lib/pt_chown.c: Don't include idpriv.h.
36725         (main): Don't drop privileges.
36726         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36727         Reported by Simon Josefsson.
36728
36729 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36730
36731         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36732         suggestions from karl@freefriends.org (Karl Berry).
36733
36734 2010-03-22  Eric Blake  <eblake@redhat.com>
36735
36736         gethostname: further tweaks
36737         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36738         are overriding gethostname.
36739         Suggested by Bruno Haible.
36740
36741 2010-03-21  Bruno Haible  <bruno@clisp.org>
36742
36743         Fix comments.
36744         * lib/forkpty.c (rpl_forkpty): Fix comment.
36745         * lib/openpty.c (rpl_openpty): Likewise.
36746         Reported by Eric Blake.
36747
36748 2010-03-22  Eric Blake  <eblake@redhat.com>
36749
36750         gethostname: fix build on mingw
36751         * lib/unistd.in.h (includes): Work around fact that mingw
36752         <winsock2.h> re-includes <unistd.h>, by avoiding any
36753         redeclarations if we are being included by <winsock2.h>.
36754         Reported by Matthias Bolte.
36755
36756 2010-03-21  Bruno Haible  <bruno@clisp.org>
36757
36758         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36759         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36760         modifications.
36761         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36762         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36763         provide the replacement.
36764         * modules/forkpty (Depends-on): Add openpty, login_tty.
36765         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36766         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36767         * doc/glibc-functions/forkpty.texi: More supported platforms.
36768         * config/srclist.txt: Add forkpty.c (commented).
36769
36770 2010-03-21  Bruno Haible  <bruno@clisp.org>
36771
36772         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36773         (Makefile.am): Verify that PTY_LIB is defined.
36774
36775         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36776
36777 2010-03-21  Bruno Haible  <bruno@clisp.org>
36778
36779         Tests for module 'login_tty'.
36780         * modules/login_tty-tests: New file.
36781         * tests/test-login_tty.c: New file.
36782
36783         New module 'login_tty'.
36784         * lib/login_tty.c: New file.
36785         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36786         * modules/login_tty: New file.
36787         * doc/glibc-functions/login_tty.texi: Mention the new module.
36788
36789 2010-03-21  Bruno Haible  <bruno@clisp.org>
36790
36791         login_tty: Documentation.
36792         * doc/glibc-functions/login_tty.texi: New file.
36793         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36794
36795 2010-03-21  Bruno Haible  <bruno@clisp.org>
36796
36797         pty: Consistent macro naming.
36798         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36799         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36800         * modules/pty (configure.ac): Update.
36801
36802 2010-03-21  Bruno Haible  <bruno@clisp.org>
36803
36804         Tests for openpty: Make stricter.
36805         * tests/test-openpty.c (main): Add test of canonical processing and
36806         erase.
36807         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36808
36809         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36810         * lib/openpty.c (openpty): New replacement function.
36811         * lib/pty.in.h: Include <termios.h>.
36812         (openpty): Update declaration. Add comments.
36813         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36814         is not declared, arrange to provide the replacement. Check for _getpty
36815         and posix_openpt.
36816         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36817         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36818         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36819         * modules/pty-tests (test_pty_c___LDADD): New variable.
36820         * doc/glibc-functions/openpty.texi: More supported platforms.
36821
36822 2010-03-21  Bruno Haible  <bruno@clisp.org>
36823
36824         setenv: Tweaks.
36825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36826         the test program.
36827         * doc/posix-functions/setenv.texi: Update platforms list.
36828
36829 2010-03-21  Bruno Haible  <bruno@clisp.org>
36830
36831         New module 'unlockpt'.
36832         * lib/unlockpt.c: New file, from glibc with modifications.
36833         * m4/unlockpt.m4: New file.
36834         * modules/unlockpt: New file.
36835         * lib/stdlib.in.h (unlockpt): New declaration.
36836         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36837         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36838         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36839         HAVE_UNLOCKPT.
36840         * doc/posix-functions/unlockpt.texi: Mention the new module.
36841         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36842         * config/srclist.txt: Add unlockpt.c (commented).
36843
36844 2010-03-21  Jim Meyering  <meyering@redhat.com>
36845
36846         maint.mk: prohibit inclusion of "intprops.h" without use
36847         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36848
36849 2010-03-21  Bruno Haible  <bruno@clisp.org>
36850
36851         New module 'grantpt'.
36852         * lib/grantpt.c: New file, from glibc with modifications.
36853         * m4/grantpt.m4: New file.
36854         * modules/grantpt: New file.
36855         * lib/stdlib.in.h (grantpt): New declaration.
36856         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36857         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36858         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36859         HAVE_GRANTPT.
36860         * doc/posix-functions/grantpt.texi: Mention the new module.
36861         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36862         * config/srclist.txt: Add grantpt.c (commented).
36863
36864 2010-03-21  Bruno Haible  <bruno@clisp.org>
36865
36866         New module 'pt_chown'.
36867         * lib/pt_chown.c: New file, from glibc with modifications.
36868         * lib/pty-private.h: New file, from glibc with modifications.
36869         * modules/pt_chown: New file.
36870         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36871
36872 2010-03-21  Bruno Haible  <bruno@clisp.org>
36873
36874         Tests for module 'ptsname'.
36875         * modules/ptsname-tests: New file.
36876         * tests/test-ptsname.c: New file.
36877
36878         New module 'ptsname'.
36879         * lib/ptsname.c: New file, from glibc with modifications.
36880         * m4/ptsname.m4: New file.
36881         * modules/ptsname: New file.
36882         * lib/stdlib.in.h (ptsname): New declaration.
36883         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36884         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36885         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36886         HAVE_PTSNAME.
36887         * doc/posix-functions/ptsname.texi: Mention the new module.
36888         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36889         * config/srclist.txt: Add ptsname.c (commented).
36890
36891 2010-03-21  Bruno Haible  <bruno@clisp.org>
36892
36893         Tests for module 'ttyname_r'.
36894         * modules/ttyname_r-tests: New file.
36895         * tests/test-ttyname_r.c: New file.
36896
36897         New module 'ttyname_r'.
36898         * lib/ttyname_r.c: New file.
36899         * m4/ttyname_r.m4: New file.
36900         * modules/ttyname_r: New file.
36901         * lib/unistd.in.h (ttyname_r): New declaration.
36902         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36903         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36904         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36905         HAVE_TTYNAME_R.
36906         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36907         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36908
36909 2010-03-20  Bruno Haible  <bruno@clisp.org>
36910
36911         signal: Undefine macro definitions in C++ mode.
36912         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36913         sigfillset): Undefine macro definitions from the system header in C++
36914         mode.
36915         Reported by John W. Eaton <jwe@gnu.org>.
36916
36917 2010-03-20  Bruno Haible  <bruno@clisp.org>
36918
36919         Ensure no #include statements inside extern "C" { ... }.
36920         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36921         contain #include statements.
36922         * lib/time.in.h: Likewise.
36923
36924 2010-03-20  Bruno Haible  <bruno@clisp.org>
36925
36926         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36927         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36928         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36929         Reported by John W. Eaton <jwe@gnu.org>.
36930
36931 2010-03-20  Bruno Haible  <bruno@clisp.org>
36932
36933         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36934         Reported by Jim Meyering.
36935
36936 2010-03-20  Bruno Haible  <bruno@clisp.org>
36937
36938         pipe: Set errno upon failure.
36939         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36940         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36941         errno value in error message.
36942
36943 2010-03-20  Bruno Haible  <bruno@clisp.org>
36944             Jim Meyering  <meyering@redhat.com>
36945
36946         lchown: Avoid "unused variable" warning.
36947         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36948
36949 2010-03-20  Bruno Haible  <bruno@clisp.org>
36950
36951         Work around unlink() bug on MacOS X 10.5.6.
36952         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36953         attempting to unlink a parent directory.
36954         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36955         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36956         activate for the replacement function.
36957         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36958
36959 2010-03-20  Bruno Haible  <bruno@clisp.org>
36960
36961         Fix link errors on Solaris 8.
36962         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36963         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36964
36965 2010-03-19  Jim Meyering  <meyering@redhat.com>
36966
36967         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36968         The _LIBC implementation of build_range_exp correctly honors the
36969         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36970         However, the non-_LIBC implementation would ignore that syntax-bit
36971         flag and return REG_ERANGE unconditionally.
36972         This change makes it honor that flag.
36973         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36974         Make two pointer parameters "const".
36975         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36976         (parse_bracket_exp): Update caller.
36977
36978         regex.m4: correct the reversed range endpoint ([b-a]) test
36979         * m4/regex.m4: When requiring that [b-a] evoke failure,
36980         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36981         test pass once again for x86-based systems.
36982
36983 2010-03-19  Bruno Haible  <bruno@clisp.org>
36984
36985         scandir: Fix link error on Solaris 8.
36986         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36987         macros.
36988
36989 2010-03-19  Bruno Haible  <bruno@clisp.org>
36990
36991         getusershell: Fix documentation.
36992         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36993         module.
36994         * doc/glibc-functions/setusershell.texi: Likewise.
36995
36996         getusershell: Provide declaration, missing on Solaris 9.
36997         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36998         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36999         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37000         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37002         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37003         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37004         HAVE_GETUSERSHELL.
37005         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37006
37007 2010-03-19  Bruno Haible  <bruno@clisp.org>
37008
37009         wctype: Provide iswblank function.
37010         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37011         exists and is fine.
37012         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37013         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37014         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37015         * doc/posix-functions/iswblank.texi: Update.
37016
37017 2010-03-19  Bruno Haible  <bruno@clisp.org>
37018
37019         Tests of module 'pty' in C++ mode.
37020         * modules/pty-tests: New file.
37021         * tests/test-pty-c++.cc: New file.
37022         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37023
37024 2010-03-19  Eric Blake  <eblake@redhat.com>
37025
37026         logb: fix documentation
37027         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37028         1.5 declaration bug.
37029
37030         forkpty, openpty: prefer glibc's const-safe prototype
37031         * lib/forkpty.c (rpl_forkpty): New file.
37032         * lib/openpty.c (rpl_openpty): Likewise.
37033         * modules/forkpty (Files): Distribute it.
37034         * modules/openpty (Files): Likewise.
37035         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37036         check...
37037         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37038         replacement for for non-const BSD signature.
37039         * modules/pty (Makefile.am): Substitute witnesses.
37040         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37041         * tests/test-forkpty.c: Update signature check.
37042         * tests/test-openpty.c: Likewise.
37043         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37044         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37045
37046         forkpty, openpty: split functions into new modules
37047         * modules/pty (Makefile.am): Substitute new witnesses.
37048         (Libraries): Move library detection...
37049         * modules/forkpty: ...into new module.
37050         * modules/openpty: Another new module.
37051         * modules/pty-tests: Rename and split...
37052         * modules/forkpty-tests: ...to this...
37053         * modules/openpty-tests: ...and this.
37054         * tests/test-pty.c: Rename and split...
37055         * tests/test-forkpty.c: ...to this...
37056         * tests/test-openpty.c: ...and this.
37057         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37058         (gl_PTY): Split library searching...
37059         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37060         (gl_FORKPTY, gl_OPENPTY): New macros.
37061         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37062         * NEWS: Mention the split.
37063         * MODULES.html.sh (Misc): Document the modules.
37064         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37065         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37066
37067         pty: improve replacement header
37068         * lib/pty.in.h: New file.
37069         * modules/pty (Files): Ship it.
37070         (Makefile.am): Always build replacement.
37071         * m4/pty.m4: Rename...
37072         * m4/pty_h.m4: ...to this.
37073         (gl_PTY): Modernize setting of witness macros; update check of
37074         forkpty to take proper advantage of cache.
37075         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37076
37077         getopt: avoid compiler warning
37078         * lib/getopt.c (attribute_hidden): Remove unused macro.
37079
37080 2010-03-18  Bruno Haible  <bruno@clisp.org>
37081
37082         Fix link errors on Solaris 8.
37083         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37084         * modules/search-tests (test_search_c___LDADD): Likewise.
37085         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37086         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37087         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37088         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37089         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37090         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37091         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37092
37093 2010-03-18  Bruno Haible  <bruno@clisp.org>
37094
37095         Fix bug introduced on 2010-03-14.
37096         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37097         (gl_SPAWN_H): Require it.
37098         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37099         Reported by Simon Josefsson.
37100
37101 2010-03-18  Bruno Haible  <bruno@clisp.org>
37102
37103         Fix typo introduced on 2009-12-31.
37104         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37105         posix_spawn_file_actions_adddup2.
37106
37107 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37108         and Eric Blake  <eblake@redhat.com>
37109
37110         test-vc-list-files-git: make more robust
37111         * tests/test-vc-list-files-git.sh: Unset problematic environment
37112         variables.  Chain commands together.
37113
37114 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37115
37116         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37117         `AC_CHECK_DECL' invocation.
37118
37119 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37120
37121         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37122         appears before executable statements. Suggested by Petr Sumbera
37123         <Petr.Sumbera@Sun.COM>.
37124
37125 2010-03-14  Bruno Haible  <bruno@clisp.org>
37126
37127         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37128         portability problems. Instead use a simpler test.
37129         (main): Check that invalid arguments are rejected only on Linux.
37130
37131 2010-03-14  Bruno Haible  <bruno@clisp.org>
37132
37133         Fix bug introduced on 2009-12-31.
37134         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37135         gl_PREREQ_SYS_H_WINSOCK2 always.
37136         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37137         SYS_SOCKET_H variable.
37138         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37139         Update comments.
37140         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37141         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37142         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37143         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37144         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37145
37146 2010-03-14  Bruno Haible  <bruno@clisp.org>
37147
37148         Fix values returned by sinl, cosl.
37149         * lib/trigl.h: Add specification comments.
37150         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37151         that combines the values from the precomputed table with the values of
37152         the Chebyshev polynomials.
37153
37154 2010-03-14  Bruno Haible  <bruno@clisp.org>
37155
37156         Fix compilation error when modules 'posix_spawn[p]' are not used.
37157         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37158         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37159
37160 2010-03-14  Bruno Haible  <bruno@clisp.org>
37161
37162         Fix compilation error on mingw when module 'time_r' is not used.
37163         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37164         is 1.
37165         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37166         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37167         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37169
37170 2010-03-14  Bruno Haible  <bruno@clisp.org>
37171
37172         Fix compilation error with Sun C.
37173         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37174         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37175         instead of GCC specific ULONG_LONG_MAX.
37176         * lib/xstrtoll.c: Likewise.
37177         * lib/xstrtoull.c: Likewise.
37178
37179 2010-03-13  Bruno Haible  <bruno@clisp.org>
37180
37181         Allow the user to disable C++ code and tests.
37182         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37183         (gl_PROG_ANSI_CXX): Require it.
37184
37185 2010-03-13  Bruno Haible  <bruno@clisp.org>
37186
37187         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37188         cases.
37189
37190 2010-03-13  Bruno Haible  <bruno@clisp.org>
37191
37192         Test that gnulib does not break the standard C++ headers.
37193         * tests/test-locale-c++2.cc: New file.
37194         * modules/locale-tests (Files): Add it.
37195         (Makefile.am): Compile it for test-locale-c++.
37196         * tests/test-math-c++2.cc: New file.
37197         * modules/math-tests (Files): Add it.
37198         (Makefile.am): Compile it for test-math-c++.
37199         * tests/test-signal-c++2.cc: New file.
37200         * modules/signal-tests (Files): Add it.
37201         (Makefile.am): Compile it for test-signal-c++.
37202         * tests/test-stdio-c++2.cc: New file.
37203         * modules/stdio-tests (Files): Add it.
37204         (Makefile.am): Compile it for test-stdio-c++.
37205         * tests/test-stdlib-c++2.cc: New file.
37206         * modules/stdlib-tests (Files): Add it.
37207         (Makefile.am): Compile it for test-stdlib-c++.
37208         * tests/test-string-c++2.cc: New file.
37209         * modules/string-tests (Files): Add it.
37210         (Makefile.am): Compile it for test-string-c++.
37211         * tests/test-time-c++2.cc: New file.
37212         * modules/time-tests (Files): Add it.
37213         (Makefile.am): Compile it for test-time-c++.
37214         Reported by John W. Eaton <jwe@gnu.org>.
37215
37216 2010-03-13  Bruno Haible  <bruno@clisp.org>
37217
37218         * gnulib-tool (func_usage): Clarify which options are available for
37219         --create-testdir and --create-megatestdir.
37220
37221 2010-03-13  Bruno Haible  <bruno@clisp.org>
37222
37223         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37224         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37225         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37226         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37227         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37228         when appropriate.
37229         Reported by Jim Meyering.
37230
37231 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37232
37233         * gnulib-tool (func_import): Explain origin of code.
37234
37235 2010-03-12  Bruno Haible  <bruno@clisp.org>
37236
37237         Fix problem with automake's definition of CXXLINK.
37238         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37239         Reported by Simon Josefsson and Ludovic Courtès.
37240
37241 2010-03-12  Bruno Haible  <bruno@clisp.org>
37242
37243         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37244         stable releases.
37245
37246 2010-03-11  Bruno Haible  <bruno@clisp.org>
37247
37248         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37249         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37250         whether the system provides one variant or multiple variants of the
37251         function.
37252         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37253         C++ compilers.
37254         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37255         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37256         Reported by Jim Meyering.
37257
37258 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37259
37260         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37261
37262 2010-03-08  Bruno Haible  <bruno@clisp.org>
37263
37264         gnulib-tool: Add support for --libtool in --create-testdir.
37265         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37266         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37267
37268 2010-03-08  Eric Blake  <eblake@redhat.com>
37269
37270         gnulib-tool.texi: mention possibility of git submodule
37271         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37272         submodules.
37273         * doc/.gitignore: Ignore another generated file.
37274
37275 2010-03-08  Karl Berry  <karl@gnu.org>
37276
37277         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37278         of committing gnulib files while skipping others.
37279
37280 2010-03-07  Bruno Haible  <bruno@clisp.org>
37281
37282         Tests of module 'wctype' in C++ mode.
37283         * tests/test-wctype-c++.cc: New file.
37284         * modules/wctype-tests (Files): Add it and tests/signature.h.
37285         (Depends-on): Add ansi-c++-opt.
37286         (Makefile.am): Arrange to compile and run test-wctype-c++.
37287
37288         Tests of module 'wchar' in C++ mode.
37289         * tests/test-wchar-c++.cc: New file.
37290         * modules/wchar-tests (Files): Add it and tests/signature.h.
37291         (Depends-on): Add ansi-c++-opt.
37292         (Makefile.am): Arrange to compile and run test-wchar-c++.
37293         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37294         gl_MODULE_INDICATOR.
37295
37296         Tests of module 'unistd' in C++ mode.
37297         * tests/test-unistd-c++.cc: New file.
37298         * modules/unistd-tests (Files): Add it and tests/signature.h.
37299         (Depends-on): Add ansi-c++-opt.
37300         (Makefile.am): Arrange to compile and run test-unistd-c++.
37301         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37302         gl_MODULE_INDICATOR.
37303
37304         Tests of module 'time' in C++ mode.
37305         * tests/test-time-c++.cc: New file.
37306         * modules/time-tests (Files): Add it and tests/signature.h.
37307         (Depends-on): Add ansi-c++-opt.
37308         (Makefile.am): Arrange to compile and run test-time-c++.
37309         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37310
37311         Tests of module 'sys_time' in C++ mode.
37312         * tests/test-sys_time-c++.cc: New file.
37313         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37314         (Depends-on): Add ansi-c++-opt.
37315         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37316         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37317         gl_MODULE_INDICATOR.
37318
37319         Tests of module 'sys_stat' in C++ mode.
37320         * tests/test-sys_stat-c++.cc: New file.
37321         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37322         (Depends-on): Add ansi-c++-opt.
37323         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37324         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37325         gl_MODULE_INDICATOR.
37326
37327         Tests of module 'sys_socket' in C++ mode.
37328         * tests/test-sys_socket-c++.cc: New file.
37329         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37330         (Depends-on): Add ansi-c++-opt.
37331         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37332         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37333         gl_MODULE_INDICATOR.
37334
37335         Tests of module 'sys_select' in C++ mode.
37336         * tests/test-sys_select-c++.cc: New file.
37337         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37338         (Depends-on): Add ansi-c++-opt.
37339         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37340         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37341         gl_MODULE_INDICATOR.
37342
37343         Tests of module 'sys_ioctl' in C++ mode.
37344         * tests/test-sys_ioctl-c++.cc: New file.
37345         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37346         (Depends-on): Add ansi-c++-opt.
37347         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37348         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37349         gl_MODULE_INDICATOR.
37350
37351         Tests of module 'string' in C++ mode.
37352         * tests/test-string-c++.cc: New file.
37353         * modules/string-tests (Files): Add it and tests/signature.h.
37354         (Depends-on): Add ansi-c++-opt.
37355         (Makefile.am): Arrange to compile and run test-string-c++.
37356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37357         gl_MODULE_INDICATOR.
37358
37359         Tests of module 'stdlib' in C++ mode.
37360         * tests/test-stdlib-c++.cc: New file.
37361         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37362         (Depends-on): Add ansi-c++-opt.
37363         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37364         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37365         gl_MODULE_INDICATOR.
37366
37367         Tests of module 'stdio' in C++ mode.
37368         * tests/test-stdio-c++.cc: New file.
37369         * modules/stdio-tests (Files): Add it and tests/signature.h.
37370         (Depends-on): Add ansi-c++-opt.
37371         (Makefile.am): Arrange to compile and run test-stdio-c++.
37372         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37373         gl_MODULE_INDICATOR.
37374
37375         Tests of module 'spawn' in C++ mode.
37376         * tests/test-spawn-c++.cc: New file.
37377         * modules/spawn-tests (Files): Add it and tests/signature.h.
37378         (Depends-on): Add ansi-c++-opt.
37379         (Makefile.am): Arrange to compile and run test-spawn-c++.
37380         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37381         gl_MODULE_INDICATOR.
37382
37383         Tests of module 'signal' in C++ mode.
37384         * tests/test-signal-c++.cc: New file.
37385         * modules/signal-tests (Files): Add it and tests/signature.h.
37386         (Depends-on): Add ansi-c++-opt.
37387         (Makefile.am): Arrange to compile and run test-signal-c++.
37388         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37389         gl_MODULE_INDICATOR.
37390
37391         Tests of module 'search' in C++ mode.
37392         * tests/test-search-c++.cc: New file.
37393         * modules/search-tests (Files): Add it and tests/signature.h.
37394         (Depends-on): Add ansi-c++-opt.
37395         (Makefile.am): Arrange to compile and run test-search-c++.
37396         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37397         gl_MODULE_INDICATOR.
37398
37399         Tests of module 'math' in C++ mode.
37400         * tests/test-math-c++.cc: New file.
37401         * modules/math-tests (Files): Add it and tests/signature.h.
37402         (Depends-on): Add ansi-c++-opt.
37403         (Makefile.am): Arrange to compile and run test-math-c++.
37404         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37405
37406         Tests of module 'locale' in C++ mode.
37407         * tests/test-locale-c++.cc: New file.
37408         * modules/locale-tests (Files): Add it and tests/signature.h.
37409         (Depends-on): Add ansi-c++-opt.
37410         (Makefile.am): Arrange to compile and run test-locale-c++.
37411         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37412         gl_MODULE_INDICATOR.
37413
37414         Tests of module 'langinfo' in C++ mode.
37415         * tests/test-langinfo-c++.cc: New file.
37416         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37417         (Depends-on): Add ansi-c++-opt.
37418         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37419         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37420         gl_MODULE_INDICATOR.
37421
37422         Tests of module 'iconv-h' in C++ mode.
37423         * tests/test-iconv-h-c++.cc: New file.
37424         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37425         (Depends-on): Add ansi-c++-opt.
37426         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37427
37428         Tests of module 'glob' in C++ mode.
37429         * tests/test-glob-c++.cc: New file.
37430         * modules/glob-tests (Files): Add it.
37431         (Depends-on): Add ansi-c++-opt.
37432         (Makefile.am): Arrange to compile and run test-glob-c++.
37433
37434         Tests of module 'fcntl-h' in C++ mode.
37435         * tests/test-fcntl-h-c++.cc: New file.
37436         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37437         (Depends-on): Add ansi-c++-opt.
37438         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37439         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37440         gl_MODULE_INDICATOR.
37441
37442         Tests of module 'dirent' in C++ mode.
37443         * tests/test-dirent-c++.cc: New file.
37444         * modules/dirent-tests (Files): Add it and tests/signature.h.
37445         (Depends-on): Add ansi-c++-opt.
37446         (Makefile.am): Arrange to compile and run test-dirent-c++.
37447         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37448         gl_MODULE_INDICATOR.
37449
37450         New module 'ansi-c++-opt'.
37451         * modules/ansi-c++-opt: New file.
37452         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37453
37454         Document C++ namespace mode.
37455         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37456
37457         wctype: Avoid #define replacements in C++ mode.
37458         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37459         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37460         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37461         In C++, define a namespaced alias symbol.
37462         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37463         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37464         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37465         rule.
37466
37467         wchar: Avoid #define replacements in C++ mode.
37468         * lib/wchar.in.h: Include c++defs.h.
37469         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37470         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37471         symbol.
37472         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37473         * modules/wchar (Depends-on): Add c++defs.
37474         (Makefile.am): Update wchar.h rule.
37475
37476         unistd: Avoid #define replacements in C++ mode.
37477         * lib/unistd.in.h: Include c++defs.h.
37478         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37479         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37480         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37481         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37482         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37483         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37484         symbol.
37485         (environ): Update.
37486         * modules/unistd (Depends-on): Add c++defs.
37487         (Makefile.am): Update unistd.h rule.
37488
37489         time: Avoid #define replacements in C++ mode.
37490         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37491         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37492         define a namespaced alias symbol.
37493         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37494         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37495         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37496         * modules/time (Depends-on): Add c++defs, warn-on-use.
37497         (Makefile.am): Update time.h rule.
37498         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37499         * modules/nanosleep (configure.ac): Likewise.
37500         * modules/strptime (configure.ac): Likewise.
37501         * modules/timegm (configure.ac): Likewise.
37502
37503         sys_time: Avoid #define replacements in C++ mode.
37504         * lib/sys_time.in.h: Include c++defs.h.
37505         (gettimeofday): In C++, define a namespaced alias symbol.
37506         * modules/sys_time (Depends-on): Add c++defs.
37507         (Makefile.am): Update sys/time.h rule.
37508
37509         sys_stat: Avoid #define replacements in C++ mode.
37510         * lib/sys_stat.in.h: Include c++defs.h.
37511         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37512         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37513         namespaced alias symbol.
37514         In C++, define a namespaced alias symbol.
37515         * modules/sys_stat (Depends-on): Add c++defs.
37516         (Makefile.am): Update sys/stat.h rule.
37517
37518         sys_socket: Avoid #define replacements in C++ mode.
37519         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37520         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37521         definitions also when the system has a <sys/socket.h>.
37522         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37523         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37524         In C++, define a namespaced alias symbol.
37525         * modules/sys_socket (Depends-on): Add c++defs.
37526         (Makefile.am): Update sys/socket.h rule.
37527
37528         sys_select: Avoid #define replacements in C++ mode.
37529         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37530         definitions also when the system has a <sys/select.h>.
37531         (select): In C++, define a namespaced alias symbol.
37532         * modules/sys_select (Depends-on): Add c++defs.
37533         (Makefile.am): Update sys/select.h rule.
37534
37535         sys_ioctl: Avoid #define replacements in C++ mode.
37536         * lib/sys_ioctl.in.h: Include c++defs.h.
37537         (ioctl): In C++, define a namespaced alias symbol.
37538         * modules/sys_ioctl (Depends-on): Add c++defs.
37539         (Makefile.am): Update sys/ioctl.h rule.
37540
37541         string: Avoid #define replacements in C++ mode.
37542         * lib/string.in.h: Include c++defs.h.
37543         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37544         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37545         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37546         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37547         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37548         * modules/string (Depends-on): Add c++defs.
37549         (Makefile.am): Update string.h rule.
37550
37551         stdlib: Avoid #define replacements in C++ mode.
37552         * lib/stdlib.in.h: Include c++defs.h.
37553         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37554         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37555         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37556         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37557         symbol.
37558         * modules/stdlib (Depends-on): Add c++defs.
37559         (Makefile.am): Update stdlib.h rule.
37560
37561         stdio: Avoid #define replacements in C++ mode.
37562         * lib/stdio.in.h: Include c++defs.h.
37563         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37564         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37565         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37566         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37567         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37568         namespaced alias symbol.
37569         * modules/stdio (Depends-on): Add c++defs.
37570         (Makefile.am): Update stdio.h rule.
37571
37572         spawn: Avoid #define replacements in C++ mode.
37573         * lib/spawn.in.h: Include c++defs.h.
37574         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37575         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37576         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37577         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37578         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37579         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37580         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37581         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37582         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37583         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37584         In C++, define a namespaced alias symbol.
37585         * modules/spawn (Depends-on): Add c++defs.
37586         (Makefile.am): Update spawn.h rule.
37587
37588         signal: Avoid #define replacements in C++ mode.
37589         * lib/signal.in.h: Include c++defs.h.
37590         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37591         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37592         namespaced alias symbol.
37593         * modules/signal (Depends-on): Add c++defs.
37594         (Makefile.am): Update signal.h rule.
37595
37596         search: Avoid #define replacements in C++ mode.
37597         * lib/search.in.h: Include c++defs.h.
37598         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37599         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37600         symbol.
37601         * modules/search (Depends-on): Add c++defs.
37602         (Makefile.am): Update search.h rule.
37603
37604         math: Avoid #define replacements in C++ mode.
37605         * lib/math.in.h: Include c++defs.h.
37606         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37607         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37608         trunc, truncl): In C++, define a namespaced alias symbol.
37609         * modules/math (Depends-on): Add c++defs.
37610         (Makefile.am): Update math.h rule.
37611
37612         locale: Avoid #define replacements in C++ mode.
37613         * lib/locale.in.h: Include c++defs.h.
37614         (duplocale): In C++, define a namespaced alias symbol.
37615         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37616         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37617         * modules/locale (Depends-on): Add c++defs.
37618         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37619
37620         langinfo: Avoid #define replacements in C++ mode.
37621         * lib/langinfo.in.h: Include c++defs.h.
37622         (nl_langinfo): In C++, define a namespaced alias symbol.
37623         * modules/langinfo (Depends-on): Add c++defs.
37624         (Makefile.am): Update langinfo.h rule.
37625
37626         iconv-h: Avoid #define replacements in C++ mode.
37627         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37628         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37629         symbol.
37630         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37631         whenever iconv is present.
37632         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37633         (Makefile.am): Update iconv.h rule.
37634
37635         glob: Avoid #define replacements in C++ mode.
37636         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37637         (_gl_glob_errfunc_fn): New type.
37638         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37639         symbol.
37640         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37641         (Makefile.am): Update glob.h rule.
37642
37643         fcntl-h: Avoid #define replacements in C++ mode.
37644         * lib/fcntl.in.h: Include c++defs.h.
37645         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37646         * modules/fcntl-h (Depends-on): Add c++defs.
37647         (Makefile.am): Update fcntl.h rule.
37648
37649         dirent: Avoid #define replacements in C++ mode.
37650         * lib/dirent.in.h: Include c++defs.h.
37651         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37652         namespaced alias symbol.
37653         (dirfd): Update declaration.
37654         * modules/dirent (Depends-on): Add c++defs.
37655         (Makefile.am): Update dirent.h rule.
37656
37657         ctype: Make it usable in C++ code.
37658         * lib/ctype.in.h: Include c++defs.h.
37659         (isblank): Declare as extern "C".
37660         * modules/ctype (Depends-on): Add c++defs.
37661         (Makefile.am): Update ctype.h rule.
37662
37663         New module 'c++defs'.
37664         * modules/c++defs: New file.
37665         * build-aux/c++defs.h: New file.
37666         Reported by John W. Eaton <jwe@gnu.org>.
37667
37668 2010-03-07  Bruno Haible  <bruno@clisp.org>
37669
37670         logb: Provide missing declaration for Cygwin.
37671         * lib/math.in.h (logb): New declaration.
37672         * m4/logb.m4: New file.
37673         * modules/logb (Files): Add m4/logb.m4.
37674         (Depends-on): Add math.
37675         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37676         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37677         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37678         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37679         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37680
37681 2010-03-07  Bruno Haible  <bruno@clisp.org>
37682
37683         Fix test-cond link error.
37684         * tests/test-cond.c: Include <stdio.h>.
37685
37686 2010-03-07  Bruno Haible  <bruno@clisp.org>
37687
37688         Fix test-dirent-safer link error.
37689         * modules/dirent-safer-tests (Makefile.am): Define
37690         test_dirent_safer_LDADD.
37691
37692 2010-03-07  Bruno Haible  <bruno@clisp.org>
37693
37694         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37695         among default module list.
37696
37697 2010-03-07  Bruno Haible  <bruno@clisp.org>
37698
37699         Fix link error on platforms with GNU libiconv.
37700         * modules/unistr/u8-strcoll-tests (Makefile): Define
37701         test_u8_strcoll_LDADD.
37702         * modules/unistr/u16-strcoll-tests (Makefile): Define
37703         test_u16_strcoll_LDADD.
37704         * modules/unistr/u32-strcoll-tests (Makefile): Define
37705         test_u32_strcoll_LDADD.
37706
37707 2010-03-07  Bruno Haible  <bruno@clisp.org>
37708
37709         Use POSIX declarations for socket functions.
37710         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37711         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37712         rpl_sendto): Change declaration to match POSIX.
37713         * lib/connect.c (rpl_connect): Likewise.
37714         * lib/accept.c (rpl_accept): Likewise.
37715         * lib/bind.c (rpl_bind): Likewise.
37716         * lib/getpeername.c (rpl_getpeername): Likewise.
37717         * lib/getsockname.c (rpl_getsockname): Likewise.
37718         * lib/recv.c (rpl_recv): Likewise.
37719         * lib/send.c (rpl_send): Likewise.
37720         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37721         * lib/sendto.c (rpl_sendto): Likewise.
37722
37723 2010-03-06  Bruno Haible  <bruno@clisp.org>
37724
37725         Clarify access, euidaccess, faccessat.
37726         * doc/posix-functions/faccessat.texi: Mention security problem under
37727         "Other problems", not "Portability problems".
37728         * doc/posix-functions/access.texi: Likewise. Mention a related security
37729         problem.
37730         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37731         * lib/euidaccess.c: Add comments about platforms.
37732         * lib/unistd.in.h (access, euidaccess): Add warnings.
37733
37734 2010-03-07  Bruno Haible  <bruno@clisp.org>
37735
37736         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37737         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37738         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37739         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37740         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37741         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37742         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37743         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37744         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37746         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37747         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37748         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37749         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37750         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37751         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37752         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37753         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37754         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37755         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37756         Likewise.
37757         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37758         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37759         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37760         Likewise.
37761         * tests/test-spawn.c (main): Make it work when
37762         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37763
37764 2010-03-07  Bruno Haible  <bruno@clisp.org>
37765
37766         Fix incorrect Makefile.am generation in German locale.
37767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37768         Execute sed command with character range in C locale.
37769
37770 2010-03-06  Bruno Haible  <bruno@clisp.org>
37771
37772         Tests for module 'iconv-h'.
37773         * modules/iconv-h-tests: New file.
37774         * tests/test-iconv-h.c: New file.
37775
37776         New module 'iconv-h'.
37777         * modules/iconv-h: New file.
37778         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37779         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37780         (configure.ac): Remove gl_ICONV_H.
37781         (Makefile.am): Remove rule for iconv.h.
37782
37783 2010-03-06  Bruno Haible  <bruno@clisp.org>
37784
37785         More consistent naming of *.m4 files.
37786         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37787         * modules/wctype (Files): Update.
37788
37789         More consistent naming of *.m4 files.
37790         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37791         * modules/wchar (Files): Update.
37792
37793 2010-03-06  Jim Meyering  <meyering@redhat.com>
37794
37795         euidaccess: relax license to LGPLv2+
37796         * modules/euidaccess (License): Relax to LGPLv2+.
37797
37798 2010-03-06  Bruno Haible  <bruno@clisp.org>
37799
37800         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37801         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37802         (Makefile.am): Augment lib_SOURCES instead.
37803
37804 2010-03-04  Jim Meyering  <meyering@redhat.com>
37805
37806         utime: remove obsolete module
37807         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37808         unnecessary for years, and has been marked as obsolete for 10 months.
37809         * modules/utime: Remove file.
37810         * lib/utime.c: Remove file.
37811         * m4/utime.m4: Remove file.
37812         * m4/utimes-null.m4: Remove file.
37813         * doc/posix-functions/utime.texi (utime): Remove reference to
37814         the module.  Move the sole "fixed by gnulib" item into the
37815         "problems not fixed by Gnulib" list.
37816         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37817
37818 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37819
37820         * modules/exit (License): Relax license to LGPLv2+.
37821         (Status): Mark as obsolete.
37822         * NEWS: Mention deprecated 'exit' module.
37823         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37824         of now obsolete 'exit'.
37825
37826 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37827
37828         fts-lgpl: remove unused module
37829         * modules/fts-lgpl: Remove.
37830         * MODULES.html.sh (func_all_modules): Adjust.
37831         * check-module (find_included_lib_files): Adjust.
37832         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37833
37834 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37835
37836         copy-acl: enhance Solaris ACL error handling
37837         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37838         * lib/set-mode-acl.c (qset_acl): Likewise.
37839
37840 2010-03-02  Bruno Haible  <bruno@clisp.org>
37841
37842         spawn: Don't override the system defined values on FreeBSD 8.
37843         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37844         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37845         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37846         if HAVE_POSIX_SPAWN is 1.
37847         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37848
37849 2010-03-01  Bruno Haible  <bruno@clisp.org>
37850
37851         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37852         regarding Automake.
37853
37854 2010-02-25  Bruno Haible  <bruno@clisp.org>
37855
37856         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37857         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37858         setting, not afterwards.
37859         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37860
37861 2010-02-24  Eric Blake  <eblake@redhat.com>
37862
37863         bootstrap, git-version-gen: use timestamp
37864         * build-aux/git-version-gen (scriptversion): Force UTC.
37865         * build-aux/bootstrap (scriptversion): New variable.
37866
37867         bootstrap: allow older git
37868         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37869         older than 1.6.4.  Requested by the libvirt project.
37870
37871 2010-02-23  Eric Blake  <eblake@redhat.com>
37872
37873         warn-on-use: work with old autoconf
37874         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37875         AS_VAR semantics of autoconf 2.60.
37876         Reported by Bruno Haible.
37877
37878         bootstrap: improve some comments
37879         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37880         clarification comments.
37881
37882         gettimeofday: provide correct function
37883         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37884         when replacement is declared, otherwise provide gettimeofday.
37885         Reported by Michael Goffioul.
37886
37887 2010-02-23  Jim Meyering  <meyering@redhat.com>
37888
37889         lib-ignore: relax license to "unlimited", not LGPLv2+
37890         * modules/lib-ignore (License): Relax to "unlimited".
37891
37892 2010-02-23  Jim Meyering  <meyering@redhat.com>
37893
37894         lib-ignore: relax license to LGPLv2+
37895         * modules/lib-ignore (License): Relax to LGPLv2+.
37896
37897 2010-02-22  Eric Blake  <eblake@redhat.com>
37898
37899         lseek: avoid bash 3.2 broken pipe bug
37900         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37901         warning from bash 3.2.
37902         Reported by Ben Pfaff, with analysis from Bruno Haible.
37903
37904         bootstrap: support non-FSF copyright holder
37905         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37906         bootstrap.conf override of COPYRIGHT_HOLDER.
37907         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37908
37909         bootstrap: interoperate with gettext 0.14.1
37910         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37911
37912         bootstrap: allow for alternate submodule location
37913         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37914         hardcoding submodule location.
37915         (gnulib_mk): Allow direct use of Makefile.am.
37916
37917         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37918         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37919         rather than reconfiguring where the submodule points.
37920
37921         gettimeofday: restore support for platforms that lack function
37922         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37923         replacement if function is missing.
37924         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37925         * modules/sys_time (Makefile.am): Substitute it.
37926         * lib/sys_time.in.h (gettimeofday): Check it.
37927         Reported by Michael Goffioul.
37928
37929 2010-02-21  Bruno Haible  <bruno@clisp.org>
37930
37931         * lib/stdio.in.h (obstack_printf): Fix typo.
37932
37933 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37934
37935         vc-list-files: use bzr ls's -R option
37936         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37937         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37938
37939 2010-02-21  Jim Meyering  <meyering@redhat.com>
37940
37941         init.sh: fix EXEEXT shims to work also for names like test-prog
37942         * tests/init.sh: Re-exec a better shell, when needed.
37943         If the current shell lacks support for posix $(...), an init.sh-using
37944         test will now try to find a shell that supports that.  If EXEEXT is
37945         nonempty, we also require support for hyphen-in-alias-name and shell
37946         substitutions like ${var#glob}.  Failure to find such a shell results
37947         in a skipped test.
37948
37949 2010-02-21  Bruno Haible  <bruno@clisp.org>
37950
37951         Really work around around "broken pipe" error message from bash 3.2.
37952         * gnulib-tool (func_reset_sigpipe): Remove function.
37953         (echo): In bash 3.2, define to a function that uses printf.
37954         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37955
37956 2010-02-20  Bruno Haible  <bruno@clisp.org>
37957
37958         Restore support for automake 1.9.6 with autoconf 2.61.
37959         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37960         Reported by James Youngman <jay@gnu.org>.
37961
37962 2010-02-20  Bruno Haible  <bruno@clisp.org>
37963
37964         Improve *printf warning condition.
37965         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37966         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37967         and the function is overridden due to SIGPIPE emulation.
37968
37969 2010-02-20  Bruno Haible  <bruno@clisp.org>
37970
37971         * lib/stdio.in.h: Tweak comments.
37972
37973 2010-02-19  Bruno Haible  <bruno@clisp.org>
37974
37975         Make it easier to find modules. New gnulib-tool option '--find'.
37976         * gnulib-tool: New option --find.
37977         (func_usage): Document it.
37978         (func_sanitize_modulelist): New function, extracted from
37979         func_all_modules.
37980         (func_all_modules): Invoke it.
37981         * doc/gnulib-tool.texi (Which modules?): New node.
37982
37983 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37984
37985         * lib/sys_select.in.h: Provide select replacement even if
37986         sys/select.h exists on a system, for Interix.
37987
37988 2010-02-18  Jim Meyering  <meyering@redhat.com>
37989
37990         init.sh: don't use $(...) just yet
37991         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37992         to accommodate e.g., Solaris' /bin/sh.
37993
37994 2010-02-17  Bruno Haible  <bruno@clisp.org>
37995
37996         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37997         Reported by Ludovic Courtès <ludo@gnu.org>.
37998
37999 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38000
38001         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38002         linking with -lintl.
38003
38004 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38005
38006         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38007         if not provided by the system's netdb.h.  Reported by
38008         ludo@gnu.org (Ludovic Courtès).
38009
38010 2010-02-15  Jim Meyering  <meyering@redhat.com>
38011
38012         init.sh: improve portability and efficiency
38013         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38014         "dummy" in a for loop.
38015         Use '!', not '^' to select the complement of a character set used
38016         in a "case" statement.
38017         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38018         Suggestions from Eric Blake.
38019
38020         init.sh: automatically accommodate programs with the .exe suffix
38021         Automatically arrange for an invocation of "prog" to execute the
38022         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38023         may use the simpler "prog", yet still work when built on a system
38024         that requires specifying the added suffix.
38025         Do this by constructing a function named "prog" that invokes
38026         "prog.exe" for each .exe file in selected directories.
38027         * tests/init.sh (find_exe_basenames_): New function.
38028         (create_exe_shim_functions_): New function.
38029         (path_prepend_): Use it.
38030
38031         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38032         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38033         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38034
38035 2010-02-14  Jim Meyering  <meyering@redhat.com>
38036
38037         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38038         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38039         (sc_prohibit_hash_pjw_without_use): New rule.
38040
38041         maint.mk: allow the default upload destination dir to be overridden
38042         * top/maint.mk (upload_dest_dir_): Define with a default that
38043         preserves the status quo.
38044         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38045         Reported by Peter Simons.
38046
38047         maint.mk: prohibit inclusion of "hash.h" without_use
38048         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38049
38050 2010-02-10  Jim Meyering  <meyering@redhat.com>
38051
38052         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38053         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38054
38055 2010-02-09  Eric Blake  <ebb9@byu.net>
38056         and Bruno Haible  <bruno@clisp.org>
38057
38058         obstack-printf-posix: ensure declaration
38059         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38060         extracted from gl_FUNC_OBSTACK_PRINTF.
38061         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38062         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38063         Likewise.
38064         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38065         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38066         0.
38067
38068 2010-02-08  Bruno Haible  <bruno@clisp.org>
38069
38070         gnulib-tool: Fix typo in 2010-02-07 commit.
38071         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38072         Reported by Eric Blake.
38073
38074 2010-02-07  Bruno Haible  <bruno@clisp.org>
38075
38076         gnulib-tool: Fix up caching patches.
38077         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38078         option --no-cache. Use associative arrays when supported by the shell.
38079         (sed_comments): New variable.
38080         (modcache): Renamed from do_cache.
38081         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38082         abbreviate unnecessarily.
38083         (have_associative): New variable.
38084         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38085         way also for ksh and zsh.
38086         (func_init_sed_convert_to_cache_statements): New function, extracted
38087         from func_cache_lookup_module. Add support for associative arrays.
38088         Don't set the c_MODULE_cached variable here. Ignore all lines before
38089         the first field header. Remove only the final newline, not all trailing
38090         newlines. Support empty fields correctly. Limit the use of 'eval' to
38091         assignments.
38092         (func_get_description, func_get_status, func_get_notice,
38093         func_get_applicability, func_get_filelist, func_get_dependencies,
38094         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38095         func_get_automake_snippet, func_get_include_directive,
38096         func_get_link_directive, func_get_license, func_get_maintainer):
38097         Update documentation. List the unoptimized code first. Add support for
38098         associative arrays. Limit the use of 'eval' to assignments.
38099         (func_get_applicability): Undo stylistic pessimisations.
38100         (func_get_automake_snippet, func_get_include_directive): Reduce code
38101         duplication.
38102         (func_modules_transitive_closure, func_modules_add_dummy,
38103         func_modules_notice, func_modules_to_filelist, func_add_file,
38104         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38105         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38106         func_create_testdir, func_create_megatestdir): Update documentation.
38107
38108 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38109
38110         * gnulib-tool (func_cache_lookup_module): Store the module name
38111         belonging to the cache variable; error out if two different
38112         module names map to the same cache variable name.
38113
38114 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38115
38116         gnulib-tool: Make caching optional.
38117         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38118         Update matching short versions of --no-changelog.
38119         (func_usage): Update.
38120         (sed_extract_cache_prog): Renamed from ...
38121         (sed_extract_prog): ... this; revert to old extraction script.
38122         (func_get_description, func_get_status)
38123         (func_get_notice, func_get_applicability, func_get_filelist)
38124         (func_get_dependencies, func_get_autoconf_early_snippet)
38125         (func_get_autoconf_snippet, func_get_automake_snippet)
38126         (func_get_include_directive, func_get_link_directive)
38127         (func_get_license, func_get_maintainer): If $do_cache is false,
38128         use old, non-caching extraction scripts.
38129         Suggestion by Bruno Haible.
38130
38131 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38132
38133         gnulib-tool: cache module metainformation.
38134         * gnulib-tool (sed_extract_prog): Match newline before each
38135         header, and rewrite header to a shell variable suffix.
38136         (func_cache_var, func_cache_lookup_module): New functions,
38137         to turn a module name into a cache variable prefix, and to
38138         look up and cache module metainformation.
38139         (func_get_description, func_get_status)
38140         (func_get_notice, func_get_applicability, func_get_filelist)
38141         (func_get_dependencies, func_get_autoconf_early_snippet)
38142         (func_get_autoconf_snippet, func_get_automake_snippet)
38143         (func_get_include_directive, func_get_link_directive)
38144         (func_get_license, func_get_maintainer): Use
38145         func_cache_lookup_module.
38146
38147 2010-02-07  Bruno Haible  <bruno@clisp.org>
38148
38149         fnctl: Fix missing dependency.
38150         * modules/fcntl (Depends-on): Add getdtablesize.
38151         Reported by John W. Eaton <jwe@gnu.org>.
38152
38153 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38154
38155         Argp: fix recognition of short alias options.
38156
38157         * lib/argp-parse.c (convert_options): Fix improper use of
38158         `|' between character values.
38159         * tests/test-argp.c (group1_option): New alias option
38160         --read (-r).
38161         (group1_parser): Special handling for 'r'.
38162         (test15): New test case.
38163         (test_fun): Add test15.
38164         * tests/test-argp-2.sh: Update expected --help and --usage
38165         outputs.
38166
38167 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38168
38169         * tests/test-argp.c: Fix indentation.
38170
38171 2010-02-04  Eric Blake  <ebb9@byu.net>
38172
38173         gettimeofday: expose type of second argument
38174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38175         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38176         * tests/test-gettimeofday.c: Use it to silence warning.
38177         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38178         the issue.
38179
38180 2010-02-03  Jim Meyering  <meyering@redhat.com>
38181
38182         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38183         * lib/regcomp.c (TYPE_SIGNED): Define.
38184         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38185
38186         regcomp.c: avoid a new -Wshadow warning
38187         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38188
38189 2010-02-01  Jim Meyering  <meyering@redhat.com>
38190
38191         removing useless parentheses in cpp #define directives
38192         For motivation, see commit c0221df4, "define STREQ(a,b)
38193         consistently, removing useless parentheses"
38194         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38195         * lib/mountlist.c (MNT_IGNORE): Likewise.
38196         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38197
38198 2010-02-01  Eric Blake  <ebb9@byu.net>
38199
38200         sys_time: use link-warning
38201         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38202         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38203         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38204         * modules/sys_time (Depends-on): Add warn-on-use.
38205         (Makefile.am): Always build replacement.
38206         (configure.ac): Update substitutions.
38207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38208         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38209         bother with SYS_TIME_H.
38210         * modules/gettimeofday (configure.ac): Declare indicator.
38211         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38212         in use.
38213
38214         closein-tests: silence compiler warning
38215         * tests/test-closein.c (main): Ignore fread result.
38216         * modules/closein-tests (Depends-on): Add ignore-value.
38217
38218         tests: silence warning about system return
38219         * tests/test-areadlink-with-size.c (main): Ignore system result.
38220         * tests/test-areadlink.c (main): Likewise.
38221         * tests/test-areadlinkat-with-size.c (main): Likewise.
38222         * tests/test-areadlinkat.c (main): Likewise.
38223         * tests/test-canonicalize-lgpl.c (main): Likewise.
38224         * tests/test-canonicalize.c (main): Likewise.
38225         * tests/test-chown.c (main): Likewise.
38226         * tests/test-fchownat.c (main): Likewise.
38227         * tests/test-fdutimensat.c (main): Likewise.
38228         * tests/test-fstatat.c (main): Likewise.
38229         * tests/test-futimens.c (main): Likewise.
38230         * tests/test-lchown.c (main): Likewise.
38231         * tests/test-link.c (main): Likewise.
38232         * tests/test-linkat.c (main): Likewise.
38233         * tests/test-lstat.c (main): Likewise.
38234         * tests/test-mkdir.c (main): Likewise.
38235         * tests/test-mkdirat.c (main): Likewise.
38236         * tests/test-mkfifo.c (main): Likewise.
38237         * tests/test-mkfifoat.c (main): Likewise.
38238         * tests/test-mknod.c (main): Likewise.
38239         * tests/test-readlink.c (main): Likewise.
38240         * tests/test-remove.c (main): Likewise.
38241         * tests/test-rename.c (main): Likewise.
38242         * tests/test-renameat.c (main): Likewise.
38243         * tests/test-rmdir.c (main): Likewise.
38244         * tests/test-symlink.c (main): Likewise.
38245         * tests/test-symlinkat.c (main): Likewise.
38246         * tests/test-unlink.c (main): Likewise.
38247         * tests/test-unlinkat.c (main): Likewise.
38248         * tests/test-utimens.c (main): Likewise.
38249         * tests/test-utimensat.c (main): Likewise.
38250         * modules/areadlink-tests (Depends-on): Add ignore-value.
38251         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38252         * modules/areadlinkat-tests (Depends-on): Likewise.
38253         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38254         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38255         * modules/canonicalize-tests (Depends-on): Likewise.
38256         * modules/chown-tests (Depends-on): Likewise.
38257         * modules/fdutimensat-tests (Depends-on): Likewise.
38258         * modules/futimens-tests (Depends-on): Likewise.
38259         * modules/lchown-tests (Depends-on): Likewise.
38260         * modules/link-tests (Depends-on): Likewise.
38261         * modules/linkat-tests (Depends-on): Likewise.
38262         * modules/lstat-tests (Depends-on): Likewise.
38263         * modules/mkdir-tests (Depends-on): Likewise.
38264         * modules/mkfifo-tests (Depends-on): Likewise.
38265         * modules/mkfifoat-tests (Depends-on): Likewise.
38266         * modules/mknod-tests (Depends-on): Likewise.
38267         * modules/openat-tests (Depends-on): Likewise.
38268         * modules/readlink-tests (Depends-on): Likewise.
38269         * modules/remove-tests (Depends-on): Likewise.
38270         * modules/rename-tests (Depends-on): Likewise.
38271         * modules/renameat-tests (Depends-on): Likewise.
38272         * modules/rmdir-tests (Depends-on): Likewise.
38273         * modules/symlink-tests (Depends-on): Likewise.
38274         * modules/symlinkat-tests (Depends-on): Likewise.
38275         * modules/unlink-tests (Depends-on): Likewise.
38276         * modules/utimens-tests (Depends-on): Likewise.
38277         * modules/utimensat-tests (Depends-on): Likewise.
38278
38279 2010-01-31  Bruno Haible  <bruno@clisp.org>
38280
38281         Perform the same test for many <math.h> functions.
38282         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38283         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38284         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38285         of gl_MATHFUNC.
38286         * modules/acos (configure.ac): Likewise.
38287         * modules/asin (configure.ac): Likewise.
38288         * modules/atan (configure.ac): Likewise.
38289         * modules/atan2 (configure.ac): Likewise.
38290         * modules/cbrt (configure.ac): Likewise.
38291         * modules/copysign (configure.ac): Likewise.
38292         * modules/cos (configure.ac): Likewise.
38293         * modules/cosh (configure.ac): Likewise.
38294         * modules/erf (configure.ac): Likewise.
38295         * modules/erfc (configure.ac): Likewise.
38296         * modules/exp (configure.ac): Likewise.
38297         * modules/fmod (configure.ac): Likewise.
38298         * modules/hypot (configure.ac): Likewise.
38299         * modules/j0 (configure.ac): Likewise.
38300         * modules/j1 (configure.ac): Likewise.
38301         * modules/jn (configure.ac): Likewise.
38302         * modules/lgamma (configure.ac): Likewise.
38303         * modules/log (configure.ac): Likewise.
38304         * modules/log10 (configure.ac): Likewise.
38305         * modules/log1p (configure.ac): Likewise.
38306         * modules/pow (configure.ac): Likewise.
38307         * modules/remainder (configure.ac): Likewise.
38308         * modules/sin (configure.ac): Likewise.
38309         * modules/sinh (configure.ac): Likewise.
38310         * modules/tan (configure.ac): Likewise.
38311         * modules/tanh (configure.ac): Likewise.
38312         * modules/y0 (configure.ac): Likewise.
38313         * modules/y1 (configure.ac): Likewise.
38314         * modules/yn (configure.ac): Likewise.
38315         Suggested by Paolo Bonzini.
38316
38317 2010-01-31  Bruno Haible  <bruno@clisp.org>
38318
38319         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38320
38321 2010-01-31  Bruno Haible  <bruno@clisp.org>
38322
38323         Work around getdelim() bug on FreeBSD 8.0.
38324         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38325         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38326         not work.
38327         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38328         is 1.
38329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38330         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38331         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38332         a non-zero size.
38333         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38334
38335 2010-01-31  Bruno Haible  <bruno@clisp.org>
38336
38337         Work around getline() bug on FreeBSD 8.0.
38338         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38339         and a non-zero size.
38340         * tests/test-getline.c (main): Likewise.
38341         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38342         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38343
38344 2010-01-28  Eric Blake  <ebb9@byu.net>
38345
38346         regex: fix build failure
38347         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38348         platforms.
38349
38350 2010-01-28  Jim Meyering  <meyering@redhat.com>
38351
38352         regex: do not ignore memory allocation failure
38353         * lib/regex_internal.c (create_cd_newstate): Detect
38354         re_node_set_init_copy failure.   Extracted from glibc commit
38355         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38356
38357         regex: sync more white-space changes from libc
38358         * lib/regex_internal.c: White-space only changes.
38359         * lib/regexec.c: Likewise.
38360
38361         regex: add many uses of __attribute_warn_unused_result__
38362         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38363         * lib/regexec.c: Likewise.
38364         Extracted from a messy glibc commit.
38365
38366         regcomp.c: spelling and merge-artifact from glibc
38367         * lib/regcomp.c: Merge remainder of glibc's
38368         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38369
38370         regcomp.c: sync white-space changes from glibc
38371         * lib/regcomp.c: Merge to accommodate white space
38372         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38373
38374         regcomp.c: do not ignore internal return values
38375         * lib/regcomp.c: Do not ignore internal return values.
38376         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38377         but without its white-space changes and spelling fixes.
38378
38379         regex_internal.h: define __attribute_warn_unused_result__
38380         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38381
38382         maint: add a syntax-check rule to check for vulnerable Makefile.in
38383         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38384
38385 2010-01-27  Jim Meyering  <meyering@redhat.com>
38386
38387         ncftpput-ftp: clean up spaces
38388         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38389         Remove trailing blanks.
38390
38391 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38392
38393         * build-aux/git-version-gen: Fix copyright statement.
38394         * build-aux/gnupload: Likewise.
38395         * tests/test-arcfour.c: Likewise.
38396         * tests/test-arctwo.c: Likewise.
38397         * tests/test-count-one-bits.c: Likewise.
38398         * tests/test-crc.c: Likewise.
38399         * tests/test-des.c: Likewise.
38400         * tests/test-gc-arcfour.c: Likewise.
38401         * tests/test-gc-arctwo.c: Likewise.
38402         * tests/test-gc-des.c: Likewise.
38403         * tests/test-gc-hmac-md5.c: Likewise.
38404         * tests/test-gc-hmac-sha1.c: Likewise.
38405         * tests/test-gc-md2.c: Likewise.
38406         * tests/test-gc-md4.c: Likewise.
38407         * tests/test-gc-md5.c: Likewise.
38408         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38409         * tests/test-gc-rijndael.c: Likewise.
38410         * tests/test-gc-sha1.c: Likewise.
38411         * tests/test-gc.c: Likewise.
38412         * tests/test-gethostname.c: Likewise.
38413         * tests/test-gettimeofday.c: Likewise.
38414         * tests/test-hash.c: Likewise.
38415         * tests/test-hmac-md5.c: Likewise.
38416         * tests/test-hmac-sha1.c: Likewise.
38417         * tests/test-md2.c: Likewise.
38418         * tests/test-md4.c: Likewise.
38419         * tests/test-md5.c: Likewise.
38420         * tests/test-memchr.c: Likewise.
38421         * tests/test-memchr2.c: Likewise.
38422         * tests/test-memcmp.c: Likewise.
38423         * tests/test-memmem.c: Likewise.
38424         * tests/test-memrchr.c: Likewise.
38425         * tests/test-rawmemchr.c: Likewise.
38426         * tests/test-read-file.c: Likewise.
38427         * tests/test-rijndael.c: Likewise.
38428         * tests/test-sockets.c: Likewise.
38429         * tests/test-strchrnul.c: Likewise.
38430         * tests/test-strstr.c: Likewise.
38431         * tests/test-strtod.c: Likewise.
38432         * build-aux/ncftpput-ftp: Likewise.
38433
38434 2010-01-26  Eric Blake  <ebb9@byu.net>
38435
38436         ignore-value: update recommended header name
38437         * modules/ignore-value (Include): Only use <> for headers that
38438         exist in glibc.
38439
38440 2010-01-26  Jim Meyering  <meyering@redhat.com>
38441
38442         test-userspec.c: avoid compiler warnings
38443         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38444         and "initialization discards qualifiers..." warnings.
38445         Put the first "uid" in its own scope, and make char* members "const".
38446
38447 2010-01-25  Bruno Haible  <bruno@clisp.org>
38448
38449         gnulib-tool: Make warning diagnostics consistent.
38450         * gnulib-tool (func_warning): New function.
38451         Use it everywhere where gnulib-tool produces output to stderr and it is
38452         not a fatal error.
38453
38454 2010-01-25  Bruno Haible  <bruno@clisp.org>
38455
38456         Fix test dependencies.
38457         * modules/xstrtol-tests (Depends-on): Add inttypes.
38458         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38459
38460 2010-01-25 Pádraig Brady <P@draigBrady.com>
38461
38462         syntax-check: detect incorrect boolean macro values in config.h
38463         * modules/maintainer-makefile (configure.ac): Parameterize the location
38464         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38465         The logic is from Eric Blake and the location indicated by Jim Meyering.
38466         Note the more natural CONFIG_HEADER name is prohibited by automake
38467         for backwards compatibility reasons.
38468         * top/maint.mk (sc_Wundef_boolean): New rule.
38469
38470 2010-01-25  Jim Meyering  <meyering@redhat.com>
38471
38472         bootstrap: detect MacOS 10.6's shasum, too
38473         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38474         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38475
38476 2010-01-23  Jim Meyering  <meyering@redhat.com>
38477
38478         xstrtoll: new module
38479         * modules/xstrtoll: New file.
38480         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38481         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38482         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38483         ./configure fails if you use this module and lack "long long".
38484         * modules/xstrtoll-tests: New module.
38485         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38486         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38487         new init.sh-based test framework.
38488
38489 2010-01-24  Bruno Haible  <bruno@clisp.org>
38490
38491         Tests for module 'yn'.
38492         * modules/yn-tests: New file.
38493         * tests/test-yn.c: New file.
38494
38495         Tests for module 'y1'.
38496         * modules/y1-tests: New file.
38497         * tests/test-y1.c: New file.
38498
38499         Tests for module 'y0'.
38500         * modules/y0-tests: New file.
38501         * tests/test-y0.c: New file.
38502
38503         Tests for module 'tanh'.
38504         * modules/tanh-tests: New file.
38505         * tests/test-tanh.c: New file.
38506
38507         Tests for module 'tan'.
38508         * modules/tan-tests: New file.
38509         * tests/test-tan.c: New file.
38510
38511         Tests for module 'sqrt'.
38512         * modules/sqrt-tests: New file.
38513         * tests/test-sqrt.c: New file.
38514
38515         Tests for module 'sinh'.
38516         * modules/sinh-tests: New file.
38517         * tests/test-sinh.c: New file.
38518
38519         Tests for module 'sin'.
38520         * modules/sin-tests: New file.
38521         * tests/test-sin.c: New file.
38522
38523         Tests for module 'rint'.
38524         * modules/rint-tests: New file.
38525         * tests/test-rint.c: New file.
38526
38527         Tests for module 'remainder'.
38528         * modules/remainder-tests: New file.
38529         * tests/test-remainder.c: New file.
38530
38531         Tests for module 'pow'.
38532         * modules/pow-tests: New file.
38533         * tests/test-pow.c: New file.
38534
38535         Tests for module 'nextafter'.
38536         * modules/nextafter-tests: New file.
38537         * tests/test-nextafter.c: New file.
38538
38539         Tests for module 'modf'.
38540         * modules/modf-tests: New file.
38541         * tests/test-modf.c: New file.
38542
38543         Tests for module 'logb'.
38544         * modules/logb-tests: New file.
38545         * tests/test-logb.c: New file.
38546
38547         Tests for module 'log1p'.
38548         * modules/log1p-tests: New file.
38549         * tests/test-log1p.c: New file.
38550
38551         Tests for module 'log10'.
38552         * modules/log10-tests: New file.
38553         * tests/test-log10.c: New file.
38554
38555         Tests for module 'log'.
38556         * modules/log-tests: New file.
38557         * tests/test-log.c: New file.
38558
38559         Tests for module 'lgamma'.
38560         * modules/lgamma-tests: New file.
38561         * tests/test-lgamma.c: New file.
38562
38563         Tests for module 'ldexp'.
38564         * modules/ldexp-tests: New file.
38565         * tests/test-ldexp.c: New file.
38566
38567         Tests for module 'jn'.
38568         * modules/jn-tests: New file.
38569         * tests/test-jn.c: New file.
38570
38571         Tests for module 'j1'.
38572         * modules/j1-tests: New file.
38573         * tests/test-j1.c: New file.
38574
38575         Tests for module 'j0'.
38576         * modules/j0-tests: New file.
38577         * tests/test-j0.c: New file.
38578
38579         Tests for module 'hypot'.
38580         * modules/hypot-tests: New file.
38581         * tests/test-hypot.c: New file.
38582
38583         Tests for module 'fmod'.
38584         * modules/fmod-tests: New file.
38585         * tests/test-fmod.c: New file.
38586
38587         Tests for module 'fabs'.
38588         * modules/fabs-tests: New file.
38589         * tests/test-fabs.c: New file.
38590
38591         Tests for module 'exp'.
38592         * modules/exp-tests: New file.
38593         * tests/test-exp.c: New file.
38594
38595         Tests for module 'erfc'.
38596         * modules/erfc-tests: New file.
38597         * tests/test-erfc.c: New file.
38598
38599         Tests for module 'erf'.
38600         * modules/erf-tests: New file.
38601         * tests/test-erf.c: New file.
38602
38603         Tests for module 'cosh'.
38604         * modules/cosh-tests: New file.
38605         * tests/test-cosh.c: New file.
38606
38607         Tests for module 'cos'.
38608         * modules/cos-tests: New file.
38609         * tests/test-cos.c: New file.
38610
38611         Tests for module 'copysign'.
38612         * modules/copysign-tests: New file.
38613         * tests/test-copysign.c: New file.
38614
38615         Tests for module 'cbrt'.
38616         * modules/cbrt-tests: New file.
38617         * tests/test-cbrt.c: New file.
38618
38619         Tests for module 'atan2'.
38620         * modules/atan2-tests: New file.
38621         * tests/test-atan2.c: New file.
38622
38623         Tests for module 'atan'.
38624         * modules/atan-tests: New file.
38625         * tests/test-atan.c: New file.
38626
38627         Tests for module 'asin'.
38628         * modules/asin-tests: New file.
38629         * tests/test-asin.c: New file.
38630
38631         Tests for module 'acos'.
38632         * modules/acos-tests: New file.
38633         * tests/test-acos.c: New file.
38634
38635 2010-01-24  Bruno Haible  <bruno@clisp.org>
38636
38637         Fix tests for common <math.h> functions.
38638         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38639         code snippet that references the function pointer, rather than merely
38640         calling the function. Substitute the FUNC_LIBM variable.
38641         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38642         * modules/acos (configure.ac): Likewise.
38643         * modules/asin (configure.ac): Likewise.
38644         * modules/atan (configure.ac): Likewise.
38645         * modules/atan2 (configure.ac): Likewise.
38646         * modules/cbrt (configure.ac): Likewise.
38647         * modules/copysign (configure.ac): Likewise.
38648         * modules/cos (configure.ac): Likewise.
38649         * modules/cosh (configure.ac): Likewise.
38650         * modules/erf (configure.ac): Likewise.
38651         * modules/erfc (configure.ac): Likewise.
38652         * modules/exp (configure.ac): Likewise.
38653         * modules/fabs (configure.ac): Likewise.
38654         * modules/fmod (configure.ac): Likewise.
38655         * modules/hypot (configure.ac): Likewise.
38656         * modules/j0 (configure.ac): Likewise.
38657         * modules/j1 (configure.ac): Likewise.
38658         * modules/jn (configure.ac): Likewise.
38659         * modules/ldexp (configure.ac): Likewise.
38660         * modules/lgamma (configure.ac): Likewise.
38661         * modules/log (configure.ac): Likewise.
38662         * modules/log10 (configure.ac): Likewise.
38663         * modules/log1p (configure.ac): Likewise.
38664         * modules/logb (configure.ac): Likewise.
38665         * modules/modf (configure.ac): Likewise.
38666         * modules/nextafter (configure.ac): Likewise.
38667         * modules/pow (configure.ac): Likewise.
38668         * modules/remainder (configure.ac): Likewise.
38669         * modules/rint (configure.ac): Likewise.
38670         * modules/sin (configure.ac): Likewise.
38671         * modules/sinh (configure.ac): Likewise.
38672         * modules/tan (configure.ac): Likewise.
38673         * modules/tanh (configure.ac): Likewise.
38674         * modules/y0 (configure.ac): Likewise.
38675         * modules/y1 (configure.ac): Likewise.
38676         * modules/yn (configure.ac): Likewise.
38677
38678 2010-01-24  Bruno Haible  <bruno@clisp.org>
38679
38680         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38681         * tests/test-acosl.c (x): New variable.
38682         (main): Store argument in x and fetch it from x.
38683         * tests/test-asinl.c (x): New variable.
38684         (main): Store argument in x and fetch it from x.
38685         * tests/test-atanl.c (x): New variable.
38686         (main): Store argument in x and fetch it from x.
38687         * tests/test-cosl.c (x): New variable.
38688         (main): Store argument in x and fetch it from x.
38689         * tests/test-expl.c (x): New variable.
38690         (main): Store argument in x and fetch it from x.
38691         * tests/test-logl.c (x): New variable.
38692         (main): Store argument in x and fetch it from x.
38693         * tests/test-sinl.c (x): New variable.
38694         (main): Store argument in x and fetch it from x.
38695         * tests/test-sqrtl.c (x): New variable.
38696         (main): Store argument in x and fetch it from x.
38697         * tests/test-tanl.c (x): New variable.
38698         (main): Store argument in x and fetch it from x.
38699
38700 2010-01-24  Bruno Haible  <bruno@clisp.org>
38701
38702         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38703         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38704         assignments to the initial TESTS_ENVIRONMENT.
38705         * doc/gnulib.texi (Unit test modules): Document it.
38706         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38707         TESTS_ENVIRONMENT.
38708         * modules/btowc-tests (Makefile.am): Likewise.
38709         * modules/c-stack-tests (Makefile.am): Likewise.
38710         * modules/c-strcase-tests (Makefile.am): Likewise.
38711         * modules/copy-file-tests (Makefile.am): Likewise.
38712         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38713         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38714         * modules/mbrtowc-tests (Makefile.am): Likewise.
38715         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38716         * modules/mbscasestr-tests (Makefile.am): Likewise.
38717         * modules/mbschr-tests (Makefile.am): Likewise.
38718         * modules/mbscspn-tests (Makefile.am): Likewise.
38719         * modules/mbsinit-tests (Makefile.am): Likewise.
38720         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38721         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38722         * modules/mbspbrk-tests (Makefile.am): Likewise.
38723         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38724         * modules/mbsrchr-tests (Makefile.am): Likewise.
38725         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38726         * modules/mbsspn-tests (Makefile.am): Likewise.
38727         * modules/mbsstr-tests (Makefile.am): Likewise.
38728         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38729         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38730         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38731         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38732         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38733         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38734         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38735         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38736         * modules/wcrtomb-tests (Makefile.am): Likewise.
38737         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38738         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38739         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38740         assignments from TESTS_ENVIRONMENT.
38741         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38742         augmentation.
38743         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38744         * modules/atexit-tests (Makefile.am): Likewise.
38745         * modules/binary-io-tests (Makefile.am): Likewise.
38746         * modules/closein-tests (Makefile.am): Likewise.
38747         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38748         * modules/exclude-tests (Makefile.am): Likewise.
38749         * modules/fflush-tests (Makefile.am): Likewise.
38750         * modules/fpending-tests (Makefile.am): Likewise.
38751         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38752         * modules/freadahead-tests (Makefile.am): Likewise.
38753         * modules/freadptr-tests (Makefile.am): Likewise.
38754         * modules/freadseek-tests (Makefile.am): Likewise.
38755         * modules/fseek-tests (Makefile.am): Likewise.
38756         * modules/fseeko-tests (Makefile.am): Likewise.
38757         * modules/ftell-tests (Makefile.am): Likewise.
38758         * modules/ftello-tests (Makefile.am): Likewise.
38759         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38760         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38761         * modules/lseek-tests (Makefile.am): Likewise.
38762         * modules/parse-duration-tests (Makefile.am): Likewise.
38763         * modules/perror-tests (Makefile.am): Likewise.
38764         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38765         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38766         * modules/pipe-tests (Makefile.am): Likewise.
38767         * modules/pread-tests (Makefile.am): Likewise.
38768         * modules/printf-posix-tests (Makefile.am): Likewise.
38769         * modules/select-tests (Makefile.am): Likewise.
38770         * modules/sigpipe-tests (Makefile.am): Likewise.
38771         * modules/tsearch-tests (Makefile.am): Likewise.
38772         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38773         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38774         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38775         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38776         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38777         * modules/version-etc-tests (Makefile.am): Likewise.
38778         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38779         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38780         * modules/xalloc-die-tests (Makefile.am): Likewise.
38781         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38782         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38783         * modules/xstrtol-tests (Makefile.am): Likewise.
38784         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38785         * modules/yesno-tests (Makefile.am): Likewise.
38786         Suggested by Jim Meyering.
38787
38788 2010-01-24  Bruno Haible  <bruno@clisp.org>
38789
38790         More documentation.
38791         * doc/gnulib.texi (Writing modules): New chapter.
38792         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38793         the new chapter.
38794
38795 2010-01-24  Jim Meyering  <meyering@redhat.com>
38796
38797         maint.mk: do not prepend "./" after filtering
38798         * top/maint.mk (_prepend_srcdir_prefix): New variable
38799         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38800         "./" when $(srcdir) is ".".
38801
38802         define STREQ(a,b) consistently, removing useless parentheses
38803         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38804         since the only risk is that "a" or "b" contains an unparenthesized
38805         comma, but if either did that, STREQ would have 3 or more arguments.
38806         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38807         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38808         * lib/hash-triple.c (STREQ): Likewise.
38809         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38810         * lib/getugroups.c (STREQ): Likewise.
38811
38812 2010-01-23  Jim Meyering  <meyering@redhat.com>
38813
38814         maint.mk: fix syntax-check in a non-srcdir build directory
38815         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38816         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38817
38818 2010-01-22  Jim Meyering  <meyering@redhat.com>
38819
38820         userspec: add unit tests
38821         * tests/test-userspec.c: New file.
38822         * modules/userspec-tests: Likewise.
38823
38824 2010-01-21  Jim Meyering  <meyering@redhat.com>
38825
38826         maint.mk: handle source file names containing "." robustly
38827         * top/maint.mk (_dot_escaped_srcdir): Define.
38828         (VC_LIST): Use it in LHS of sed substitution.
38829
38830 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38831
38832         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38833         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38834         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38835         from a non-srcdir build.
38836
38837 2010-01-20  Eric Blake  <ebb9@byu.net>
38838
38839         warn-on-use: use instead of link-warning
38840         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38841         * modules/unistd (Depends-on, Makefile.am): Likewise.
38842         * modules/arpa_inet (Depends-on): Replace link-warning with
38843         warn-on-use.
38844         (Makefile.am): Update rules accordingly.
38845         * modules/ctype (Depends-on, Makefile.am): Likewise.
38846         * modules/dirent (Depends-on, Makefile.am): Likewise.
38847         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38848         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38849         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38850         * modules/locale (Depends-on, Makefile.am): Likewise.
38851         * modules/math (Depends-on, Makefile.am): Likewise.
38852         * modules/search (Depends-on, Makefile.am): Likewise.
38853         * modules/signal (Depends-on, Makefile.am): Likewise.
38854         * modules/spawn (Depends-on, Makefile.am): Likewise.
38855         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38856         * modules/string (Depends-on, Makefile.am): Likewise.
38857         * modules/strings (Depends-on, Makefile.am): Likewise.
38858         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38859         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38860         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38861         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38862         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38863         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38864         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38865         * modules/wchar (Depends-on, Makefile.am): Likewise.
38866         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38867         should be poisoned.
38868         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38869         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38870         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38871         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38872         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38873         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38874         * m4/math_h.m4 (gl_MATH_H): Likewise.
38875         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38876         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38877         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38878         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38879         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38880         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38881         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38882         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38883         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38884         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38887         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38888         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38889         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38890         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38891         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38892         GL_LINK_WARNING.
38893         * lib/ctype.in.h: Likewise.
38894         * lib/dirent.in.h: Likewise.
38895         * lib/fcntl.in.h: Likewise.
38896         * lib/inttypes.in.h: Likewise.
38897         * lib/langinfo.in.h: Likewise.
38898         * lib/locale.in.h: Likewise.
38899         * lib/math.in.h: Likewise.
38900         * lib/search.in.h: Likewise.
38901         * lib/signal.in.h: Likewise.
38902         * lib/spawn.in.h: Likewise.
38903         * lib/stdio.in.h: Likewise.
38904         * lib/stdlib.in.h: Likewise.
38905         * lib/string.in.h: Likewise.
38906         * lib/strings.in.h: Likewise.
38907         * lib/sys_file.in.h: Likewise.
38908         * lib/sys_ioctl.in.h: Likewise.
38909         * lib/sys_select.in.h: Likewise.
38910         * lib/sys_socket.in.h: Likewise.
38911         * lib/sys_stat.in.h: Likewise.
38912         * lib/sys_times.in.h: Likewise.
38913         * lib/sys_utsname.in.h: Likewise.
38914         * lib/unistd.in.h: Likewise.
38915         * lib/wchar.in.h: Likewise.
38916
38917 2010-01-20  Bruno Haible  <bruno@clisp.org>
38918
38919         Avoid duplicate -lm.
38920         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38921         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38922         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38923         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38924         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38925         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38926         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38927         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38928         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38929         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38930         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38931         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38932         Reported by Paolo Bonzini.
38933
38934 2010-01-19  Bruno Haible  <bruno@clisp.org>
38935
38936         langinfo, nl_langinfo: Relicense under LGPLv2+.
38937         * modules/langinfo (License): Change to LGPLv2+.
38938         * modules/nl_langinfo (License): Likewise.
38939         Patch by David Lutterkort <lutter@redhat.com>.
38940
38941 2010-01-19  Bruno Haible  <bruno@clisp.org>
38942
38943         Avoid compilation error with cc on OSF/1 5.1.
38944         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38945         statement, not before.
38946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38947
38948 2010-01-18  Bruno Haible  <bruno@clisp.org>
38949
38950         Avoid a link error due to the __printf__ symbol.
38951         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38952         and 2.6.x.
38953         (__format__, __printf__): Remove definitions.
38954         * lib/argp-fmtstream.h: Likewise.
38955         * lib/argp.h: Likewise.
38956         * lib/error.h: Likewise.
38957         * lib/vasnprintf.h: Likewise.
38958         * lib/xprintf.h: Likewise.
38959         * lib/xvasprintf.h: Likewise.
38960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38961
38962 2010-01-18  Bruno Haible  <bruno@clisp.org>
38963
38964         Tests for module 'tanl'.
38965         * modules/tanl-tests: New file.
38966         * tests/test-tanl.c: New file.
38967
38968         Tests for module 'sqrtl'.
38969         * modules/sqrtl-tests: New file.
38970         * tests/test-sqrtl.c: New file.
38971
38972         Tests for module 'sinl'.
38973         * modules/sinl-tests: New file.
38974         * tests/test-sinl.c: New file.
38975
38976         Tests for module 'logl'.
38977         * modules/logl-tests: New file.
38978         * tests/test-logl.c: New file.
38979
38980         Tests for module 'expl'.
38981         * modules/expl-tests: New file.
38982         * tests/test-expl.c: New file.
38983
38984         Tests for module 'cosl'.
38985         * modules/cosl-tests: New file.
38986         * tests/test-cosl.c: New file.
38987
38988         Tests for module 'atanl'.
38989         * modules/atanl-tests: New file.
38990         * tests/test-atanl.c: New file.
38991
38992         Tests for module 'asinl'.
38993         * modules/asinl-tests: New file.
38994         * tests/test-asinl.c: New file.
38995
38996         Tests for module 'acosl'.
38997         * modules/acosl-tests: New file.
38998         * tests/test-acosl.c: New file.
38999
39000         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39001         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39002         tanl): Use the standard gnulib idiom.
39003         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39004         * lib/sinl.c: Likewise.
39005         * lib/tanl.c: Don't include trigl.c.
39006         (kernel_tanl): Make static.
39007         * lib/sincosl.c: Include trigl.h first.
39008         * lib/trigl.c: Likewise.
39009         * m4/acosl.m4: New file.
39010         * m4/asinl.m4: New file.
39011         * m4/atanl.m4: New file.
39012         * m4/cosl.m4: New file.
39013         * m4/expl.m4: New file.
39014         * m4/logl.m4: New file.
39015         * m4/sinl.m4: New file.
39016         * m4/sqrtl.m4: New file.
39017         * m4/tanl.m4: New file.
39018         * m4/mathl.m4: Remove file.
39019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39020         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39021         Don't initialize GNULIB_MATHL.
39022         * modules/acosl: New file.
39023         * modules/asinl: New file.
39024         * modules/atanl: New file.
39025         * modules/cosl: New file.
39026         * modules/expl: New file.
39027         * modules/logl: New file.
39028         * modules/sinl: New file.
39029         * modules/sqrtl: New file.
39030         * modules/tanl: New file.
39031         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39032         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39033         substitute GNULIB_MATHL.
39034         * modules/mathl: Rewritten.
39035         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39036         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39037         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39038         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39039         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39040         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39041         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39042         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39043         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39044
39045 2010-01-18  Bruno Haible  <bruno@clisp.org>
39046
39047         sqrt: Make gl_FUNC_SQRT requirable.
39048         * m4/sqrt.m4: New file.
39049         * modules/sqrt (Files): Add it.
39050         (configure.ac): Invoke gl_FUNC_SQRT.
39051
39052 2010-01-18  Bruno Haible  <bruno@clisp.org>
39053
39054         New modules for common <math.h> functions.
39055         * m4/mathfunc.m4: New file.
39056         * modules/acos: New file.
39057         * modules/asin: New file.
39058         * modules/atan: New file.
39059         * modules/atan2: New file.
39060         * modules/cbrt: New file.
39061         * modules/copysign: New file.
39062         * modules/cos: New file.
39063         * modules/cosh: New file.
39064         * modules/erf: New file.
39065         * modules/erfc: New file.
39066         * modules/exp: New file.
39067         * modules/fabs: New file.
39068         * modules/fmod: New file.
39069         * modules/hypot: New file.
39070         * modules/j0: New file.
39071         * modules/j1: New file.
39072         * modules/jn: New file.
39073         * modules/ldexp: New file.
39074         * modules/lgamma: New file.
39075         * modules/log: New file.
39076         * modules/log10: New file.
39077         * modules/log1p: New file.
39078         * modules/logb: New file.
39079         * modules/modf: New file.
39080         * modules/nextafter: New file.
39081         * modules/pow: New file.
39082         * modules/remainder: New file.
39083         * modules/rint: New file.
39084         * modules/sin: New file.
39085         * modules/sinh: New file.
39086         * modules/sqrt: New file.
39087         * modules/tan: New file.
39088         * modules/tanh: New file.
39089         * modules/y0: New file.
39090         * modules/y1: New file.
39091         * modules/yn: New file.
39092         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39093         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39094         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39095         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39096         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39097         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39098         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39099         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39100         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39101         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39102         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39103         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39104         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39105         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39106         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39107         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39108         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39109         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39110         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39111         * doc/posix-functions/log.texi: Mention the 'log' module.
39112         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39113         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39114         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39115         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39116         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39117         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39118         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39119         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39120         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39121         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39122         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39123         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39124         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39125         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39126         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39127         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39128
39129 2010-01-18  Jim Meyering  <meyering@redhat.com>
39130
39131         ignore-value: relax license to LGPLv2+
39132         * modules/ignore-value (License): Relax to LGPLv2+.
39133
39134         getdate: don't leak when TZ contains two or more '"'s
39135         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39136         double quote in TZ after the first one.
39137
39138         readtokens: do not leak internal token_lengths buffer
39139         * lib/readtokens.c (readtokens): Free the local, lengths,
39140         when the supplied "token_lengths" parameter is NULL.
39141
39142 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39143
39144         Fix a couple of missing LIBTHREAD link failures on AIX.
39145         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39146         $(LIBTHREAD).
39147         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39148
39149         Link test-poll against INET_PTON_LIB.
39150         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39151         for inet_pton on Solaris 10.
39152
39153 2010-01-17  Bruno Haible  <bruno@clisp.org>
39154
39155         unistdio/*-sprintf: Fix typo in module description.
39156         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39157         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39158         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39159         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39160         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39161         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39162         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39163         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39164
39165 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39166
39167         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39168         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39169         variables in shell case patterns, for AIX and HP-UX ksh.
39170
39171         Split large sed scripts, for HP-UX sed.
39172         * modules/stdio: Split sed scripts around 50 sed commands,
39173         to avoid HP-UX limit of 99 commands, in the near future.
39174         * modules/string: Likewise.
39175         * modules/unistd: Likewise.
39176
39177         gnulib-tool: avoid writing in the current directory.
39178         * gnulib-tool (func_emit_lib_Makefile_am)
39179         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39180         not in the current directory, so concurrent gnulib-tool
39181         instances do not interfere.
39182
39183 2010-01-16  Jim Meyering  <meyering@redhat.com>
39184
39185         doc: update users.txt
39186         * users.txt: Add grep.
39187         (diffutils, gzip): Update URLs.
39188
39189 2010-01-12  Bruno Haible  <bruno@clisp.org>
39190
39191         posix_spawn: Avoid test failure on Cygwin.
39192         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39193         characters.
39194         Reported by Simon Josefsson.
39195
39196 2010-01-12  Bruno Haible  <bruno@clisp.org>
39197
39198         * tests/test-cond.c (main): When skipping the test, show the reason.
39199
39200 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39201
39202         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39203
39204 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39205
39206         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39207         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39208
39209 2010-01-12  Eric Blake  <ebb9@byu.net>
39210
39211         build: guarantee AS_VAR_IF
39212         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39213         (gl_AS_VAR_IF): Move...
39214         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39215         Reported by Simon Josefsson.
39216
39217 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39218
39219         * lib/stdio.in.h: Fix typo.
39220
39221 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39222
39223         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39224         libgpg-error.
39225
39226 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39227
39228         * tests/test-xalloc-die.sh: Use $EXEEXT.
39229
39230 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39231             Bruno Haible  <bruno@clisp.org>
39232
39233         getlogin, getlogin_r: Avoid test failure.
39234         * tests/test-getlogin.c: Include <stdio.h>.
39235         (main): Skip the test when the function fails because stdin is not a
39236         tty.
39237         * tests/test-getlogin_r.c: Include <stdio.h>.
39238         (main): Skip the test when the function fails because stdin is not a
39239         tty.
39240
39241 2010-01-11  Eric Blake  <ebb9@byu.net>
39242
39243         tests: avoid more large file warnings
39244         * tests/test-fflush.c: Avoid warning about ftell use.
39245         * tests/test-fseek.c: Avoid warning about fseek use.
39246
39247 2010-01-10  Bruno Haible  <bruno@clisp.org>
39248
39249         nproc: Work better on Linux when /proc and /sys are not mounted.
39250         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39251         as lower bound when, on glibc/Linux systems,
39252         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39253         Suggested by Pádraig Brady <P@draigbrady.com>.
39254         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39255
39256         nproc: Refactor.
39257         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39258         extracted from num_processors.
39259         (num_processors): Call it.
39260
39261 2010-01-11  Jim Meyering  <meyering@redhat.com>
39262
39263         utimecmp: avoid new warning from upcoming gcc-4.5.0
39264         * lib/utimecmp.c (BILLION): Define using #define rather than an
39265         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39266
39267 2010-01-11  Eric Blake  <ebb9@byu.net>
39268
39269         math: add portability warnings for classification macros
39270         * modules/math (Depends-on): Add warn-on-use.
39271         (Makefile.am): Provide new substitutions.
39272         * m4/math_h.m4 (gl_MATH_H): Require inline.
39273         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39274         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39275         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39276         implement warnings.
39277
39278         unistd: warn on use of environ without module
39279         * modules/unistd (Depends-on): Add warn-on-use.
39280         (Makefile.am): Provide new substitutions.
39281         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39282         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39283
39284         stdio: warn on suspicious uses
39285         * modules/stdio (Depends-on): Add warn-on-use.
39286         (Makefile.am): Provide new substitutions.
39287         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39288         fseeko.
39289         * lib/stdio.in.h (gets): Always warn on use.
39290         (fseek, ftell): Adjust when warnings are issued, and honor
39291         _GL_NO_LARGE_FILES as a way to silence the warning.
39292         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39293         any warning about large file offsets.
39294         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39295         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39296         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39297         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39298         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39299         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39300         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39301         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39302
39303         warn-on-use: new module
39304         * modules/warn-on-use: New file.
39305         * build-aux/warn-on-use.h: Likewise.
39306         * m4/warn-on-use.m4: Likewise.
39307         * MODULES.html.sh (Support for building): Mention it.
39308
39309 2010-01-10  Bruno Haible  <bruno@clisp.org>
39310
39311         Tests for module 'unistr/u32-strdup'.
39312         * modules/unistr/u32-strdup-tests: New file.
39313         * tests/unistr/test-u32-strdup.c: New file.
39314
39315         Tests for module 'unistr/u16-strdup'.
39316         * modules/unistr/u16-strdup-tests: New file.
39317         * tests/unistr/test-u16-strdup.c: New file.
39318
39319         Tests for module 'unistr/u8-strdup'.
39320         * modules/unistr/u8-strdup-tests: New file.
39321         * tests/unistr/test-u8-strdup.c: New file.
39322         * tests/unistr/test-strdup.h: New file.
39323
39324         Tests for module 'unistr/u32-strncmp'.
39325         * modules/unistr/u32-strncmp-tests: New file.
39326         * tests/unistr/test-u32-strncmp.c: New file.
39327
39328         Tests for module 'unistr/u16-strncmp'.
39329         * modules/unistr/u16-strncmp-tests: New file.
39330         * tests/unistr/test-u16-strncmp.c: New file.
39331
39332         Tests for module 'unistr/u8-strncmp'.
39333         * modules/unistr/u8-strncmp-tests: New file.
39334         * tests/unistr/test-u8-strncmp.c: New file.
39335         * tests/unistr/test-strncmp.h: New file.
39336
39337         Tests for module 'unistr/u32-strcoll'.
39338         * modules/unistr/u32-strcoll-tests: New file.
39339         * tests/unistr/test-u32-strcoll.c: New file.
39340
39341         Tests for module 'unistr/u16-strcoll'.
39342         * modules/unistr/u16-strcoll-tests: New file.
39343         * tests/unistr/test-u16-strcoll.c: New file.
39344
39345         Tests for module 'unistr/u8-strcoll'.
39346         * modules/unistr/u8-strcoll-tests: New file.
39347         * tests/unistr/test-u8-strcoll.c: New file.
39348
39349         Tests for module 'unistr/u32-strcmp'.
39350         * modules/unistr/u32-strcmp-tests: New file.
39351         * tests/unistr/test-u32-strcmp.c: New file.
39352         * tests/unistr/test-u32-strcmp.h: New file.
39353
39354         Tests for module 'unistr/u16-strcmp'.
39355         * modules/unistr/u16-strcmp-tests: New file.
39356         * tests/unistr/test-u16-strcmp.c: New file.
39357         * tests/unistr/test-u16-strcmp.h: New file.
39358
39359         Tests for module 'unistr/u8-strcmp'.
39360         * modules/unistr/u8-strcmp-tests: New file.
39361         * tests/unistr/test-u8-strcmp.c: New file.
39362         * tests/unistr/test-u8-strcmp.h: New file.
39363         * tests/unistr/test-strcmp.h: New file.
39364
39365         Tests for module 'unistr/u32-strncat'.
39366         * modules/unistr/u32-strncat-tests: New file.
39367         * tests/unistr/test-u32-strncat.c: New file.
39368
39369         Tests for module 'unistr/u16-strncat'.
39370         * modules/unistr/u16-strncat-tests: New file.
39371         * tests/unistr/test-u16-strncat.c: New file.
39372
39373         Tests for module 'unistr/u8-strncat'.
39374         * modules/unistr/u8-strncat-tests: New file.
39375         * tests/unistr/test-u8-strncat.c: New file.
39376         * tests/unistr/test-strncat.h: New file.
39377
39378         Tests for module 'unistr/u32-strcat'.
39379         * modules/unistr/u32-strcat-tests: New file.
39380         * tests/unistr/test-u32-strcat.c: New file.
39381
39382         Tests for module 'unistr/u16-strcat'.
39383         * modules/unistr/u16-strcat-tests: New file.
39384         * tests/unistr/test-u16-strcat.c: New file.
39385
39386         Tests for module 'unistr/u8-strcat'.
39387         * modules/unistr/u8-strcat-tests: New file.
39388         * tests/unistr/test-u8-strcat.c: New file.
39389         * tests/unistr/test-strcat.h: New file.
39390
39391         Tests for module 'unistr/u32-stpncpy'.
39392         * modules/unistr/u32-stpncpy-tests: New file.
39393         * tests/unistr/test-u32-stpncpy.c: New file.
39394
39395         Tests for module 'unistr/u16-stpncpy'.
39396         * modules/unistr/u16-stpncpy-tests: New file.
39397         * tests/unistr/test-u16-stpncpy.c: New file.
39398
39399         Tests for module 'unistr/u8-stpncpy'.
39400         * modules/unistr/u8-stpncpy-tests: New file.
39401         * tests/unistr/test-u8-stpncpy.c: New file.
39402         * tests/unistr/test-stpncpy.h: New file.
39403
39404         Tests for module 'unistr/u32-strncpy'.
39405         * modules/unistr/u32-strncpy-tests: New file.
39406         * tests/unistr/test-u32-strncpy.c: New file.
39407
39408         Tests for module 'unistr/u16-strncpy'.
39409         * modules/unistr/u16-strncpy-tests: New file.
39410         * tests/unistr/test-u16-strncpy.c: New file.
39411
39412         Tests for module 'unistr/u8-strncpy'.
39413         * modules/unistr/u8-strncpy-tests: New file.
39414         * tests/unistr/test-u8-strncpy.c: New file.
39415         * tests/unistr/test-strncpy.h: New file.
39416
39417         Tests for module 'unistr/u32-stpcpy'.
39418         * modules/unistr/u32-stpcpy-tests: New file.
39419         * tests/unistr/test-u32-stpcpy.c: New file.
39420
39421         Tests for module 'unistr/u16-stpcpy'.
39422         * modules/unistr/u16-stpcpy-tests: New file.
39423         * tests/unistr/test-u16-stpcpy.c: New file.
39424
39425         Tests for module 'unistr/u8-stpcpy'.
39426         * modules/unistr/u8-stpcpy-tests: New file.
39427         * tests/unistr/test-u8-stpcpy.c: New file.
39428         * tests/unistr/test-stpcpy.h: New file.
39429
39430         Tests for module 'unistr/u32-strcpy'.
39431         * modules/unistr/u32-strcpy-tests: New file.
39432         * tests/unistr/test-u32-strcpy.c: New file.
39433
39434         Tests for module 'unistr/u16-strcpy'.
39435         * modules/unistr/u16-strcpy-tests: New file.
39436         * tests/unistr/test-u16-strcpy.c: New file.
39437
39438         Tests for module 'unistr/u8-strcpy'.
39439         * modules/unistr/u8-strcpy-tests: New file.
39440         * tests/unistr/test-u8-strcpy.c: New file.
39441         * tests/unistr/test-strcpy.h: New file.
39442
39443         Tests for module 'unistr/u32-strnlen'.
39444         * modules/unistr/u32-strnlen-tests: New file.
39445         * tests/unistr/test-u32-strnlen.c: New file.
39446
39447         Tests for module 'unistr/u16-strnlen'.
39448         * modules/unistr/u16-strnlen-tests: New file.
39449         * tests/unistr/test-u16-strnlen.c: New file.
39450
39451         Tests for module 'unistr/u8-strnlen'.
39452         * modules/unistr/u8-strnlen-tests: New file.
39453         * tests/unistr/test-u8-strnlen.c: New file.
39454         * tests/unistr/test-strnlen.h: New file.
39455
39456         Tests for module 'unistr/u32-strlen'.
39457         * modules/unistr/u32-strlen-tests: New file.
39458         * tests/unistr/test-u32-strlen.c: New file.
39459
39460         Tests for module 'unistr/u16-strlen'.
39461         * modules/unistr/u16-strlen-tests: New file.
39462         * tests/unistr/test-u16-strlen.c: New file.
39463
39464         Tests for module 'unistr/u8-strlen'.
39465         * modules/unistr/u8-strlen-tests: New file.
39466         * tests/unistr/test-u8-strlen.c: New file.
39467
39468         Tests for module 'unistr/u32-prev'.
39469         * modules/unistr/u32-prev-tests: New file.
39470         * tests/unistr/test-u32-prev.c: New file.
39471
39472         Tests for module 'unistr/u16-prev'.
39473         * modules/unistr/u16-prev-tests: New file.
39474         * tests/unistr/test-u16-prev.c: New file.
39475
39476         Tests for module 'unistr/u8-prev'.
39477         * modules/unistr/u8-prev-tests: New file.
39478         * tests/unistr/test-u8-prev.c: New file.
39479
39480         Tests for module 'unistr/u32-next'.
39481         * modules/unistr/u32-next-tests: New file.
39482         * tests/unistr/test-u32-next.c: New file.
39483
39484         Tests for module 'unistr/u16-next'.
39485         * modules/unistr/u16-next-tests: New file.
39486         * tests/unistr/test-u16-next.c: New file.
39487
39488         Tests for module 'unistr/u8-next'.
39489         * modules/unistr/u8-next-tests: New file.
39490         * tests/unistr/test-u8-next.c: New file.
39491
39492         Tests for module 'unistr/u32-strmbtouc'.
39493         * modules/unistr/u32-strmbtouc-tests: New file.
39494         * tests/unistr/test-u32-strmbtouc.c: New file.
39495
39496         Tests for module 'unistr/u16-strmbtouc'.
39497         * modules/unistr/u16-strmbtouc-tests: New file.
39498         * tests/unistr/test-u16-strmbtouc.c: New file.
39499
39500         Tests for module 'unistr/u8-strmbtouc'.
39501         * modules/unistr/u8-strmbtouc-tests: New file.
39502         * tests/unistr/test-u8-strmbtouc.c: New file.
39503
39504         Tests for module 'unistr/u32-strmblen'.
39505         * modules/unistr/u32-strmblen-tests: New file.
39506         * tests/unistr/test-u32-strmblen.c: New file.
39507
39508         Tests for module 'unistr/u16-strmblen'.
39509         * modules/unistr/u16-strmblen-tests: New file.
39510         * tests/unistr/test-u16-strmblen.c: New file.
39511
39512         Tests for module 'unistr/u8-strmblen'.
39513         * modules/unistr/u8-strmblen-tests: New file.
39514         * tests/unistr/test-u8-strmblen.c: New file.
39515
39516         Tests for module 'unistr/u32-cpy-alloc'.
39517         * modules/unistr/u32-cpy-alloc-tests: New file.
39518         * tests/unistr/test-u32-cpy-alloc.c: New file.
39519
39520         Tests for module 'unistr/u16-cpy-alloc'.
39521         * modules/unistr/u16-cpy-alloc-tests: New file.
39522         * tests/unistr/test-u16-cpy-alloc.c: New file.
39523
39524         Tests for module 'unistr/u8-cpy-alloc'.
39525         * modules/unistr/u8-cpy-alloc-tests: New file.
39526         * tests/unistr/test-u8-cpy-alloc.c: New file.
39527         * tests/unistr/test-cpy-alloc.h: New file.
39528
39529         Tests for module 'unistr/u32-mbsnlen'.
39530         * modules/unistr/u32-mbsnlen-tests: New file.
39531         * tests/unistr/test-u32-mbsnlen.c: New file.
39532
39533         Tests for module 'unistr/u16-mbsnlen'.
39534         * modules/unistr/u16-mbsnlen-tests: New file.
39535         * tests/unistr/test-u16-mbsnlen.c: New file.
39536
39537         Tests for module 'unistr/u8-mbsnlen'.
39538         * modules/unistr/u8-mbsnlen-tests: New file.
39539         * tests/unistr/test-u8-mbsnlen.c: New file.
39540
39541         Tests for module 'unistr/u32-chr'.
39542         * modules/unistr/u32-chr-tests: New file.
39543         * tests/unistr/test-u32-chr.c: New file.
39544
39545         Tests for module 'unistr/u16-chr'.
39546         * modules/unistr/u16-chr-tests: New file.
39547         * tests/unistr/test-u16-chr.c: New file.
39548
39549         Tests for module 'unistr/u8-chr'.
39550         * modules/unistr/u8-chr-tests: New file.
39551         * tests/unistr/test-u8-chr.c: New file.
39552         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39553
39554         Tests for module 'unistr/u32-cmp2'.
39555         * modules/unistr/u32-cmp2-tests: New file.
39556         * tests/unistr/test-u32-cmp2.c: New file.
39557
39558         Tests for module 'unistr/u16-cmp2'.
39559         * modules/unistr/u16-cmp2-tests: New file.
39560         * tests/unistr/test-u16-cmp2.c: New file.
39561
39562         Tests for module 'unistr/u8-cmp2'.
39563         * modules/unistr/u8-cmp2-tests: New file.
39564         * tests/unistr/test-u8-cmp2.c: New file.
39565         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39566
39567         Tests for module 'unistr/u32-cmp'.
39568         * modules/unistr/u32-cmp-tests: New file.
39569         * tests/unistr/test-u32-cmp.c: New file.
39570
39571         Tests for module 'unistr/u16-cmp'.
39572         * modules/unistr/u16-cmp-tests: New file.
39573         * tests/unistr/test-u16-cmp.c: New file.
39574
39575         Tests for module 'unistr/u8-cmp'.
39576         * modules/unistr/u8-cmp-tests: New file.
39577         * tests/unistr/test-u8-cmp.c: New file.
39578         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39579
39580         Tests for module 'unistr/u32-set'.
39581         * modules/unistr/u32-set-tests: New file.
39582         * tests/unistr/test-u32-set.c: New file.
39583
39584         Tests for module 'unistr/u16-set'.
39585         * modules/unistr/u16-set-tests: New file.
39586         * tests/unistr/test-u16-set.c: New file.
39587
39588         Tests for module 'unistr/u8-set'.
39589         * modules/unistr/u8-set-tests: New file.
39590         * tests/unistr/test-u8-set.c: New file.
39591         * tests/unistr/test-set.h: New file.
39592
39593         Tests for module 'unistr/u32-move'.
39594         * modules/unistr/u32-move-tests: New file.
39595         * tests/unistr/test-u32-move.c: New file.
39596
39597         Tests for module 'unistr/u16-move'.
39598         * modules/unistr/u16-move-tests: New file.
39599         * tests/unistr/test-u16-move.c: New file.
39600
39601         Tests for module 'unistr/u8-move'.
39602         * modules/unistr/u8-move-tests: New file.
39603         * tests/unistr/test-u8-move.c: New file.
39604         * tests/unistr/test-move.h: New file.
39605
39606         Tests for module 'unistr/u32-cpy'.
39607         * modules/unistr/u32-cpy-tests: New file.
39608         * tests/unistr/test-u32-cpy.c: New file.
39609
39610         Tests for module 'unistr/u16-cpy'.
39611         * modules/unistr/u16-cpy-tests: New file.
39612         * tests/unistr/test-u16-cpy.c: New file.
39613
39614         Tests for module 'unistr/u8-cpy'.
39615         * modules/unistr/u8-cpy-tests: New file.
39616         * tests/unistr/test-u8-cpy.c: New file.
39617         * tests/unistr/test-cpy.h: New file.
39618
39619 2010-01-09  Bruno Haible  <bruno@clisp.org>
39620
39621         Tests for module 'unistr/u32-uctomb'.
39622         * modules/unistr/u32-uctomb-tests: New file.
39623         * tests/unistr/test-u32-uctomb.c: New file.
39624
39625         Tests for module 'unistr/u16-uctomb'.
39626         * modules/unistr/u16-uctomb-tests: New file.
39627         * tests/unistr/test-u16-uctomb.c: New file.
39628
39629         Tests for module 'unistr/u8-uctomb'.
39630         * modules/unistr/u8-uctomb-tests: New file.
39631         * tests/unistr/test-u8-uctomb.c: New file.
39632
39633         Tests for module 'unistr/u32-mbtoucr'.
39634         * modules/unistr/u32-mbtoucr-tests: New file.
39635         * tests/unistr/test-u32-mbtoucr.c: New file.
39636
39637         Tests for module 'unistr/u16-mbtoucr'.
39638         * modules/unistr/u16-mbtoucr-tests: New file.
39639         * tests/unistr/test-u16-mbtoucr.c: New file.
39640
39641         Tests for module 'unistr/u8-mbtoucr'.
39642         * modules/unistr/u8-mbtoucr-tests: New file.
39643         * tests/unistr/test-u8-mbtoucr.c: New file.
39644
39645         Tests for module 'unistr/u32-mbtouc'.
39646         * modules/unistr/u32-mbtouc-tests: New file.
39647         * tests/unistr/test-u32-mbtouc.c: New file.
39648
39649         Tests for module 'unistr/u16-mbtouc'.
39650         * modules/unistr/u16-mbtouc-tests: New file.
39651         * tests/unistr/test-u16-mbtouc.c: New file.
39652
39653         Tests for module 'unistr/u8-mbtouc'.
39654         * modules/unistr/u8-mbtouc-tests: New file.
39655         * tests/unistr/test-u8-mbtouc.c: New file.
39656
39657         Tests for module 'unistr/u32-mbtouc-unsafe'.
39658         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39659         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39660         * tests/unistr/test-u32-mbtouc.h: New file.
39661
39662         Tests for module 'unistr/u16-mbtouc-unsafe'.
39663         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39664         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39665         * tests/unistr/test-u16-mbtouc.h: New file.
39666
39667         Tests for module 'unistr/u8-mbtouc-unsafe'.
39668         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39669         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39670         * tests/unistr/test-u8-mbtouc.h: New file.
39671
39672         Tests for module 'unistr/u32-mblen'.
39673         * modules/unistr/u32-mblen-tests: New file.
39674         * tests/unistr/test-u32-mblen.c: New file.
39675
39676         Tests for module 'unistr/u16-mblen'.
39677         * modules/unistr/u16-mblen-tests: New file.
39678         * tests/unistr/test-u16-mblen.c: New file.
39679
39680         Tests for module 'unistr/u8-mblen'.
39681         * modules/unistr/u8-mblen-tests: New file.
39682         * tests/unistr/test-u8-mblen.c: New file.
39683
39684         Tests for module 'unistr/u32-to-u16'.
39685         * modules/unistr/u32-to-u16-tests: New file.
39686         * tests/unistr/test-u32-to-u16.c: New file.
39687
39688         Tests for module 'unistr/u32-to-u8'.
39689         * modules/unistr/u32-to-u8-tests: New file.
39690         * tests/unistr/test-u32-to-u8.c: New file.
39691
39692         Tests for module 'unistr/u16-to-u32'.
39693         * modules/unistr/u16-to-u32-tests: New file.
39694         * tests/unistr/test-u16-to-u32.c: New file.
39695
39696         Tests for module 'unistr/u16-to-u8'.
39697         * modules/unistr/u16-to-u8-tests: New file.
39698         * tests/unistr/test-u16-to-u8.c: New file.
39699
39700         Tests for module 'unistr/u8-to-u32'.
39701         * modules/unistr/u8-to-u32-tests: New file.
39702         * tests/unistr/test-u8-to-u32.c: New file.
39703
39704         Tests for module 'unistr/u8-to-u16'.
39705         * modules/unistr/u8-to-u16-tests: New file.
39706         * tests/unistr/test-u8-to-u16.c: New file.
39707
39708         Tests for module 'unistr/u32-check'.
39709         * modules/unistr/u32-check-tests: New file.
39710         * tests/unistr/test-u32-check.c: New file.
39711
39712         Tests for module 'unistr/u16-check'.
39713         * modules/unistr/u16-check-tests: New file.
39714         * tests/unistr/test-u16-check.c: New file.
39715
39716         Tests for module 'unistr/u8-check'.
39717         * modules/unistr/u8-check-tests: New file.
39718         * tests/unistr/test-u8-check.c: New file.
39719
39720         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39721         (category_equals): New function.
39722         (main): Add more tests.
39723         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39724
39725         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39726
39727 2010-01-10  Bruno Haible  <bruno@clisp.org>
39728
39729         unistr/u*-strcoll: Try harder to distinguish different strings.
39730         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39731         compare s1 and s2 to see if they are different.
39732
39733 2010-01-10  Bruno Haible  <bruno@clisp.org>
39734
39735         unistr/u*-stpncpy: Fix the return value.
39736         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39737         description of the return value consistent with stpncpy in glibc.
39738         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39739         written non-NUL unit.
39740
39741 2010-01-10  Bruno Haible  <bruno@clisp.org>
39742
39743         unistr/u*-next: Add missing dependencies.
39744         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39745         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39746         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39747
39748 2010-01-10  Bruno Haible  <bruno@clisp.org>
39749
39750         unistr/u8-mbsnlen: Fix return value for incomplete character.
39751         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39752         u8_mblen.
39753         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39754         Remove unistr/u8-mblen.
39755         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39756         u16_mblen.
39757         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39758         Remove unistr/u16-mblen.
39759
39760 2010-01-10  Bruno Haible  <bruno@clisp.org>
39761
39762         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39763         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39764         Reported by Brian Gough <bjg@gnu.org> and
39765         Chris Clayton <chris2553@googlemail.com> via
39766         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39767
39768 2010-01-09  Bruno Haible  <bruno@clisp.org>
39769
39770         unistr/u16-to-u32: Reject invalid input.
39771         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39772         u16_mbtouc.
39773         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39774         Remove unistr/u16-mbtouc.
39775
39776         unistr/u16-to-u8: Reject invalid input.
39777         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39778         u16_mbtouc.
39779         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39780         Remove unistr/u16-mbtouc.
39781
39782         unistr/u8-to-u32: Reject invalid input.
39783         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39784         u8_mbtouc.
39785         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39786         Remove unistr/u8-mbtouc.
39787
39788         unistr/u8-to-u16: Reject invalid input.
39789         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39790         u8_mbtouc.
39791         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39792         Remove unistr/u8-mbtouc.
39793
39794 2010-01-09  Bruno Haible  <bruno@clisp.org>
39795
39796         Tests for module 'getlogin'.
39797         * modules/getlogin-tests: New file.
39798         * tests/test-getlogin.c: New file.
39799
39800         New module 'getlogin'.
39801         * lib/unistd.in.h (getlogin): New declaration.
39802         * lib/getlogin.c: New file.
39803         * m4/getlogin.m4: New file.
39804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39805         HAVE_GETLOGIN.
39806         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39807         HAVE_GETLOGIN.
39808         * modules/getlogin: New file.
39809         * doc/posix-functions/getlogin.texi: Mention the new module.
39810         Reported by John W. Eaton <jwe@gnu.org>.
39811
39812 2010-01-09  Bruno Haible  <bruno@clisp.org>
39813
39814         getlogin_r: Support for native Windows.
39815         * lib/getlogin_r.c: Include <windows.h>
39816         (getlogin_r): Implement for native Windows.
39817         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39818         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39819         via John W. Eaton <jwe@gnu.org>.
39820
39821 2010-01-09  Bruno Haible  <bruno@clisp.org>
39822
39823         getlogin_r: Small fixes.
39824         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39825         succeeds.
39826         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39827         before testing whether getlogin_r is declared. No need to set
39828         HAVE_DECL_GETLOGIN_R to 1.
39829         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39830
39831 2010-01-09  Bruno Haible  <bruno@clisp.org>
39832
39833         * lib/unistd.in.h (getlogin_r): Add comment.
39834
39835 2010-01-09  Bruno Haible  <bruno@clisp.org>
39836
39837         Tests for module 'getlogin_r'.
39838         * modules/getlogin_r-tests: New file.
39839         * tests/test-getlogin_r.c: New file.
39840
39841 2010-01-09  Jim Meyering  <meyering@redhat.com>
39842
39843         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39844         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39845         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39846
39847 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39848
39849         * lib/dup2.c (rpl_dup2): Improve comment.
39850
39851 2010-01-08  Eric Blake  <ebb9@byu.net>
39852
39853         maint.mk: allow packages to add makefile @@ exceptions
39854         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39855         (sc_makefile_check): Rename...
39856         (sc_makefile_at_at_check): ...to this, and use hook.
39857
39858         dup2: work around mingw bug
39859         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39860         Reported by Simon Josefsson.
39861
39862 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39863
39864         glob: Fix C++ compilation.
39865         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39866         C++.
39867
39868 2010-01-07  Bruno Haible  <bruno@clisp.org>
39869
39870         Fix indentation of wctype.in.h, broken since 2007-01-06.
39871         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39872
39873 2010-01-07  Bruno Haible  <bruno@clisp.org>
39874
39875         mbslen: Avoid collision with system function.
39876         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39877         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39878         * m4/mbslen.m4: New file.
39879         * modules/mbslen (Files): Add it.
39880         (configure.ac): Invoke gl_MBSLEN.
39881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39882         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39883         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39884         via Ian Beckwith <ianb@erislabs.net>.
39885
39886 2010-01-07  Bruno Haible  <bruno@clisp.org>
39887
39888         dirent: Document the last fix.
39889         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39890
39891 2010-01-07  Bruno Haible  <bruno@clisp.org>
39892
39893         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39894         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39895         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39896         va_list are defined.
39897         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39898         Reported by Eric Blake.
39899
39900 2010-01-07  Bruno Haible  <bruno@clisp.org>
39901
39902         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39903         * modules/xlist (Depends-on): Add 'list',
39904         * modules/xoset (Depends-on): Add 'oset'.
39905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39906
39907 2010-01-07  Bruno Haible  <bruno@clisp.org>
39908
39909         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39910         * doc/posix-functions/strncasecmp.texi: Likewise.
39911
39912 2010-01-07  Bruno Haible  <bruno@clisp.org>
39913
39914         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39915
39916 2010-01-07  John W. Eaton  <jwe@octave.org>
39917
39918         wctype: allow C++ use
39919         * lib/wctype.in.h: Add extern "C" block for C++.
39920
39921 2010-01-06  Eric Blake  <ebb9@byu.net>
39922
39923         maint.mk: detect incorrect GFDL usage
39924         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39925
39926 2010-01-06  Jim Meyering  <meyering@redhat.com>
39927         and Eric Blake  <ebb9@byu.net>
39928
39929         maint.mk: ignore multi-line copyright in NEWS
39930         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39931
39932 2010-01-06  Eric Blake  <ebb9@byu.net>
39933
39934         select: add missing dependency
39935         * modules/select-tests (Depends-on): Move sockets dependency...
39936         * modules/select (Depends-on): ...here.
39937         Reported by Ian Beckwith.
39938
39939         doc: regenerate INSTALL
39940         * doc/INSTALL: Reflect recent autoconf update.
39941         * doc/INSTALL.ISO: Likewise.
39942         * doc/INSTALL.UTF-8: Likewise.
39943
39944         pread: fix compilation on glibc
39945         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39946         Reported by Ralf Wildenhues.
39947
39948         dirent: fix test failure
39949         * lib/dirent.in.h (includes): Guarantee ino_t.
39950         Reported by Ralf Wildenhues.
39951
39952 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39953
39954         linkat, renameat: avoid bad free
39955         * lib/at-func2.c (at_func2): Fix typo.
39956         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39957
39958 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39959
39960         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39961         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39962         to avoid failure of symlink test later.
39963
39964 2010-01-06  Eric Blake  <ebb9@byu.net>
39965
39966         stdio, unistd: guarantee ssize_t
39967         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39968         2008 are exposed when needed.
39969         * lib/stdio.in.h (includes): Likewise.
39970         Reported by Ralf Wildenhues.
39971
39972 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39973
39974         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39975         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39976         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39977
39978 2010-01-06  Jim Meyering  <meyering@redhat.com>
39979
39980         readtokens: this module *does* require xalloc.h
39981         It uses only functions that were omitted by the old syntax-check rule.
39982         * lib/readtokens.c: Include "xalloc.h" once again.
39983         * modules/readtokens (Depends-on): Add xalloc.
39984         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39985
39986 2010-01-05  Eric Blake  <ebb9@byu.net>
39987
39988         maint: support 'make announcement' from a VPATH build
39989         * top/maint.mk (announcement): Look for correct NEWS file.
39990
39991 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39992
39993         utimens (fdutimens): ignore a negative FD, per contract
39994         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39995         when we have a valid file descriptor.  Otherwise, using a brand
39996         new glibc (with just-patched futimens that now fails with EBADF)
39997         would cause this function to fail with ENOSYS.
39998         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39999         See also http://bugzilla.redhat.com/552320.
40000
40001 2010-01-05  Eric Blake  <ebb9@byu.net>
40002
40003         strcase: document what it provides
40004         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40005         gnulib module.
40006         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40007         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40008
40009 2010-01-05  Jim Meyering  <meyering@redhat.com>
40010
40011         maint: remove useless inclusions of "xalloc.h"
40012         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40013         * lib/readtokens.c: Likewise.
40014         * lib/same.c: Likewise.
40015         * modules/getloadavg (Depends-on): Remove xalloc.
40016         * modules/readtokens: Likewise.
40017         * modules/same: Likewise.
40018
40019         maint.mk: include 4 more function names in alloca.h-checking regexp
40020         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40021         regexp.  Before, we would give a false-positive (saying alloca.h
40022         is included unnecessarily) when the only uses involved omitted symbols.
40023
40024         xalloc.h: use consistent formatting
40025         * lib/xalloc.h: Move declarations to start in the first column.
40026
40027 2010-01-05  Eric Blake  <ebb9@byu.net>
40028
40029         mkdir: avoid xalloc
40030         * lib/mkdir.c (includes): Drop unused header.
40031         Reported by John W. Eaton.
40032
40033 2010-01-04  Jim Meyering  <meyering@redhat.com>
40034
40035         nl_langinfo: avoid configure-time syntax error
40036         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40037         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40038         the empty string.  Don't let that provoke a shell syntax error.
40039
40040         regcomp, regexec, fnmatch: avoid array bounds read error
40041         * lib/regcomp.c (build_equiv_class): From glibc:
40042         Use only the low 24 bits of a findidx return value as an index
40043         into the weights array.  Patch by Ulrich Drepper:
40044         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40045         * lib/regexec.c (check_node_accept_bytes): Likewise.
40046         * lib/fnmatch_loop.c (FCT): Likewise.
40047
40048         regcomp: skip collseq lookup when there are no rules
40049         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40050         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40051
40052         regcomp: recognize ill-formed { } expressions
40053         * lib/regcomp.c (parse_dup_op): From glibc:
40054         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40055
40056         regcomp: fix typo in comment
40057         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40058         s/satisfy/satisfies/.
40059
40060         regcomp: sync from glibc: remove dead store
40061         * lib/regcomp.c (duplicate_node_closure): Remove useless
40062         search_duplicated_node call and dead store.
40063
40064         regcomp: sync from glibc; always use nl_langinfo
40065         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40066         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40067         * modules/regex (Depends-on): Add nl_langinfo.
40068
40069 2010-01-04  Eric Blake  <ebb9@byu.net>
40070
40071         fdopendir: fix configure test
40072         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40073
40074 2010-01-01  Bruno Haible  <bruno@clisp.org>
40075
40076         wchar: Remove unused configure check.
40077         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40078
40079 2010-01-01  Eric Blake  <ebb9@byu.net>
40080
40081         headers: make check of system header explicit
40082         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40083         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40084         ourselves.
40085         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40086         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40087         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40088         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40089         internals.
40090         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40091         missing.
40092         Suggested by Bruno Haible.
40093
40094 2010-01-01  Jim Meyering  <meyering@redhat.com>
40095
40096         ChangeLog: tweak to eliminate unnecessary copyright line
40097         * ChangeLog: Remove a copyright line that was mistakenly updated
40098         by today's update-copyright run.  Reported by Eric Blake.
40099
40100         test-update-copyright: don't let envvar setting cause test failure
40101         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40102
40103 2010-01-01  Bruno Haible  <bruno@clisp.org>
40104
40105         localename: Avoid gcc warning.
40106         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40107         function if it is not used.
40108
40109 2010-01-01  Jim Meyering  <meyering@redhat.com>
40110
40111         update nearly all FSF copyright year lists to include 2010
40112         Use the same procedure as for 2009, outlined in
40113         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40114
40115         version-etc: set COPYRIGHT_YEAR to 2010
40116         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40117
40118 2009-12-31  Eric Blake  <ebb9@byu.net>
40119
40120         doc: correct availability of cygwin 1.5.x getopt
40121         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40122         variables.
40123         * doc/posix-functions/opterr.texi (opterr): Likewise.
40124         * doc/posix-functions/optind.texi (optind): Likewise.
40125         * doc/posix-functions/optopt.texi (optopt): Likewise.
40126         * doc/posix-functions/tzname.texi (tzname): Likewise.
40127
40128         openat: update maintainer
40129         * modules/openat (Maintainer): Add myself.
40130
40131         utimens: avoid shadowing warning
40132         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40133         buffers into one, to avoid shadowing, as well as avoiding a
40134         redundant stat.
40135         Reported by Jim Meyering.
40136
40137         test-dup2: avoid compiler warning
40138         * tests/test-dup2.c (is_inheritable): Only define if used.
40139
40140 2010-01-01  Bruno Haible  <bruno@clisp.org>
40141
40142         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40143         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40144         defined, use wctomb instead of wcrtomb.
40145
40146 2010-01-01  Bruno Haible  <bruno@clisp.org>
40147
40148         iconv: Reject native Solaris iconv.
40149         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40150         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40151
40152 2009-12-31  Bruno Haible  <bruno@clisp.org>
40153
40154         * tests/test-signal.c (main): Remove test of 'SIG'.
40155
40156 2009-12-31  Bruno Haible  <bruno@clisp.org>
40157
40158         spawn: Fix incomplete fix.
40159         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40160         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40161         warnings for GNULIB_POSIXCHECK again.
40162         Reported by Eric Blake.
40163
40164 2009-12-31  Bruno Haible  <bruno@clisp.org>
40165
40166         Avoid namespace pollution on glibc systems.
40167         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40168         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40169         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40170         glibc systems.
40171
40172 2009-12-31  Bruno Haible  <bruno@clisp.org>
40173
40174         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40175         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40176         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40177         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40178         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40179         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40180         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40181
40182 2009-12-31  Bruno Haible  <bruno@clisp.org>
40183
40184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40185         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40186         afterwards.
40187
40188 2009-12-31  Bruno Haible  <bruno@clisp.org>
40189
40190         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40191         SYS_UTSNAME_H.
40192
40193 2009-12-31  Bruno Haible  <bruno@clisp.org>
40194
40195         spawn: Fix misapplied patch.
40196         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40197         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40198         warnings for GNULIB_POSIXCHECK.
40199
40200 2009-12-31  Bruno Haible  <bruno@clisp.org>
40201
40202         times: Update after sys_times changed.
40203         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40204         * modules/times (Files): Add it.
40205         (configure.ac): Invoke gl_FUNC_TIMES.
40206
40207 2009-12-31  Bruno Haible  <bruno@clisp.org>
40208
40209         Use AC_C_INLINE where necessary.
40210         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40211         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40212         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40213         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40214         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40215         * m4/mbiter.m4 (gl_MBITER): Likewise.
40216         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40217         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40218         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40219         * modules/u64 (configure.ac): Likewise.
40220
40221 2009-12-31  Bruno Haible  <bruno@clisp.org>
40222
40223         Use AC_C_INLINE instead of module 'inline' where possible.
40224         * modules/inline (Description): Clarify purpose.
40225         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40226         * modules/count-one-bits (Depends-on): Remove inline.
40227         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40228         * modules/openat (Depends-on): Remove inline.
40229         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40230         instead of depending on module 'inline'.
40231         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40232         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40233         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40234         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40235         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40236         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40237         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40238         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40239         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40240         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40241         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40242         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40243         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40244         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40245         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40246         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40247         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40248         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40249         Likewise.
40250         * modules/unictype/property-ascii-hex-digit (Depends-on,
40251         configure.ac): Likewise.
40252         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40253         configure.ac): Likewise.
40254         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40255         configure.ac): Likewise.
40256         * modules/unictype/property-bidi-block-separator (Depends-on,
40257         configure.ac): Likewise.
40258         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40259         configure.ac): Likewise.
40260         * modules/unictype/property-bidi-common-separator (Depends-on,
40261         configure.ac): Likewise.
40262         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40263         Likewise.
40264         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40265         configure.ac): Likewise.
40266         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40267         configure.ac): Likewise.
40268         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40269         configure.ac): Likewise.
40270         * modules/unictype/property-bidi-european-digit (Depends-on,
40271         configure.ac): Likewise.
40272         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40273         configure.ac): Likewise.
40274         * modules/unictype/property-bidi-left-to-right (Depends-on,
40275         configure.ac): Likewise.
40276         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40277         configure.ac): Likewise.
40278         * modules/unictype/property-bidi-other-neutral (Depends-on,
40279         configure.ac): Likewise.
40280         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40281         Likewise.
40282         * modules/unictype/property-bidi-segment-separator (Depends-on,
40283         configure.ac): Likewise.
40284         * modules/unictype/property-bidi-whitespace (Depends-on,
40285         configure.ac): Likewise.
40286         * modules/unictype/property-combining (Depends-on, configure.ac):
40287         Likewise.
40288         * modules/unictype/property-composite (Depends-on, configure.ac):
40289         Likewise.
40290         * modules/unictype/property-currency-symbol (Depends-on,
40291         configure.ac): Likewise.
40292         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40293         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40294         Likewise.
40295         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40296         configure.ac): Likewise.
40297         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40298         Likewise.
40299         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40300         Likewise.
40301         * modules/unictype/property-extender (Depends-on, configure.ac):
40302         Likewise.
40303         * modules/unictype/property-format-control (Depends-on, configure.ac):
40304         Likewise.
40305         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40306         Likewise.
40307         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40308         Likewise.
40309         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40310         Likewise.
40311         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40312         Likewise.
40313         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40314         Likewise.
40315         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40316         Likewise.
40317         * modules/unictype/property-id-start (Depends-on, configure.ac):
40318         Likewise.
40319         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40320         Likewise.
40321         * modules/unictype/property-ids-binary-operator (Depends-on,
40322         configure.ac): Likewise.
40323         * modules/unictype/property-ids-trinary-operator (Depends-on,
40324         configure.ac): Likewise.
40325         * modules/unictype/property-ignorable-control (Depends-on,
40326         configure.ac): Likewise.
40327         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40328         Likewise.
40329         * modules/unictype/property-join-control (Depends-on, configure.ac):
40330         Likewise.
40331         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40332         Likewise.
40333         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40334         Likewise.
40335         * modules/unictype/property-logical-order-exception (Depends-on,
40336         configure.ac): Likewise.
40337         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40338         Likewise.
40339         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40340         * modules/unictype/property-non-break (Depends-on, configure.ac):
40341         Likewise.
40342         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40343         Likewise.
40344         * modules/unictype/property-numeric (Depends-on, configure.ac):
40345         Likewise.
40346         * modules/unictype/property-other-alphabetic (Depends-on,
40347         configure.ac): Likewise.
40348         * modules/unictype/property-other-default-ignorable-code-point
40349         (Depends-on, configure.ac): Likewise.
40350         * modules/unictype/property-other-grapheme-extend (Depends-on,
40351         configure.ac): Likewise.
40352         * modules/unictype/property-other-id-continue (Depends-on,
40353         configure.ac): Likewise.
40354         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40355         Likewise.
40356         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40357         Likewise.
40358         * modules/unictype/property-other-math (Depends-on, configure.ac):
40359         Likewise.
40360         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40361         Likewise.
40362         * modules/unictype/property-paired-punctuation (Depends-on,
40363         configure.ac): Likewise.
40364         * modules/unictype/property-paragraph-separator (Depends-on,
40365         configure.ac): Likewise.
40366         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40367         Likewise.
40368         * modules/unictype/property-pattern-white-space (Depends-on,
40369         configure.ac): Likewise.
40370         * modules/unictype/property-private-use (Depends-on, configure.ac):
40371         Likewise.
40372         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40373         Likewise.
40374         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40375         Likewise.
40376         * modules/unictype/property-radical (Depends-on, configure.ac):
40377         Likewise.
40378         * modules/unictype/property-sentence-terminal (Depends-on,
40379         configure.ac): Likewise.
40380         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40381         Likewise.
40382         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40383         * modules/unictype/property-terminal-punctuation (Depends-on,
40384         configure.ac): Likewise.
40385         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40386         Likewise.
40387         * modules/unictype/property-unassigned-code-value (Depends-on,
40388         configure.ac): Likewise.
40389         * modules/unictype/property-unified-ideograph (Depends-on,
40390         configure.ac): Likewise.
40391         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40392         Likewise.
40393         * modules/unictype/property-variation-selector (Depends-on,
40394         configure.ac): Likewise.
40395         * modules/unictype/property-white-space (Depends-on, configure.ac):
40396         Likewise.
40397         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40398         Likewise.
40399         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40400         Likewise.
40401         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40402         Likewise.
40403         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40404         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40405         Likewise.
40406
40407 2009-12-31  Bruno Haible  <bruno@clisp.org>
40408
40409         Remove unnecessary AC_C_INLINE invocation.
40410         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40411         since 2009-08-21.
40412
40413 2009-12-31  Jim Meyering  <meyering@redhat.com>
40414
40415         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40416         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40417         With this change, we can all remove the gpg_key_ID = ... definition
40418         from our respective cfg.mk files.
40419
40420         maint.mk: create announcement template in ~/, not in /tmp
40421         * top/maint.mk (emit_upload_commands): Adjust.
40422         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40423         Remove temporary file, .ci-msg.
40424
40425 2009-12-31  Eric Blake  <ebb9@byu.net>
40426
40427         link-warning: always build headers with link warnings
40428         * modules/arpa_inet (Makefile.am): Always build replacement
40429         header.
40430         * modules/ctype (Makefile.am): Likewise.
40431         * modules/dirent (Makefile.am): Likewise.
40432         * modules/inttypes (Makefile.am): Likewise.
40433         * modules/langinfo (Makefile.am): Likewise.
40434         * modules/locale (Makefile.am): Likewise.
40435         * modules/spawn (Makefile.am): Likewise.
40436         * modules/sys_file (Makefile.am): Likewise.
40437         * modules/sys_ioctl (Makefile.am): Likewise.
40438         * modules/sys_select (Makefile.am): Likewise.
40439         * modules/sys_socket (Makefile.am): Likewise.
40440         * modules/sys_times (Makefile.am): Likewise.
40441         * modules/sys_utsname (Makefile.am): Likewise.
40442         * modules/sys_wait (Makefile.am): Likewise.
40443         * modules/wchar (Makefile.am): Likewise.
40444         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40445         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40446         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40447         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40448         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40449         Likewise.
40450         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40451         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40452         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40453         Likewise.
40454         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40455         Likewise.
40456         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40457         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40458         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40460         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40461         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40462         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40463         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40464         (gl_WCHAR_H_DEFAULTS): Likewise.
40465
40466 2009-12-31  Eric Blake  <ebb9@byu.net>
40467
40468         signal, spawn: use link warnings
40469         * lib/signal.in.h (sigset_t): Make unconditional.
40470         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40471         (sigpending, sigprocmask, sigaction): Add link warnings.
40472         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40473         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40474         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40475         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40476         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40477         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40478         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40479         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40480         (posix_spawn_file_actions_destroy)
40481         (posix_spawn_file_actions_addopen)
40482         (posix_spawn_file_actions_addclose)
40483         (posix_spawn_file_actions_adddup2): Likewise.
40484         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40485         * tests/test-signal.c (main): Enhance test.
40486
40487         spawn: improve wrapper support
40488         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40489         (gl_SPAWN_H_DEFAULTS): New defaults.
40490         * modules/spawn (Makefile.am): Substitute them.
40491         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40492         Only declare if missing or broken.
40493
40494         sys_times, sys_utsname: use include_next
40495         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40496         header.
40497         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40498         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40499         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40500         * modules/sys_times (Depends-on): Add include_next.
40501         (Makefile.am): Substitute additional values.
40502         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40503         * lib/sys_times.in.h (includes): Include native header, if
40504         available.
40505         * lib/sys_utsname.in.h (includes): Likewise.
40506         * tests/test-sys_times.c (main): Enhance test.
40507
40508         fdutimensat: revert prior patch
40509         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40510         utimens.h.
40511         Reported by Bruno Haible.
40512
40513 2009-12-30  Eric Blake  <ebb9@byu.net>
40514
40515         sys_wait: drop link-warning dependency
40516         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40517         link-warning efforts.
40518         * lib/sys_wait.in.h: Likewise.
40519
40520         fdutimensat: remove bogus dependency
40521         * modules/fdutimensat (Depends-on): Drop inline.
40522
40523         unistd: fix typo
40524         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40525
40526 2009-12-30  Bruno Haible  <bruno@clisp.org>
40527
40528         Fix compilation error with Solaris cc.
40529         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40530         * lib/unicase/u16-is-invariant.c: Likewise.
40531         * lib/unicase/u32-is-invariant.c: Likewise.
40532         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40533
40534 2009-12-30  Bruno Haible  <bruno@clisp.org>
40535
40536         Fix test crash.
40537         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40538         locales.
40539         Reported by Simon Josefsson <simon@josefsson.org>.
40540
40541 2009-12-30  Bruno Haible  <bruno@clisp.org>
40542
40543         Fix compilation error on most platforms.
40544         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40545         Reported by Simon Josefsson <simon@josefsson.org>
40546         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40547
40548 2009-12-30  Eric Blake  <ebb9@byu.net>
40549
40550         futimens, utimensat: work around ntfs-3g bug
40551         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40552         a ctime bug is present, and expand workaround to cover ntfs-3g.
40553         * lib/utimens.c (fdutimens, lutimens): Likewise.
40554         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40555         (validate_timespec): Adjust return value.
40556         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40557         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40558         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40559
40560 2009-12-29  Eric Blake  <ebb9@byu.net>
40561
40562         link-warning: make usage consistent
40563         * modules/ctype (Depends-on): Add link-warning.
40564         (Makefile.am): Update rules accordingly.
40565         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40566         * modules/locale (Depends-on, Makefile.am): Likewise.
40567         * modules/sys_file (Makefile.am): Likewise.
40568         * modules/getopt-posix (Makefile.am): Delete unused link warning
40569         efforts.
40570         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40571         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40572         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40573         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40574
40575         stdio: remove unused variables
40576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40577         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40578         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40579
40580         tests: test more substitute headers
40581         * modules/ctype-tests: New file.
40582         * modules/dirent-tests: Likewise.
40583         * modules/spawn-tests: Likewise.
40584         * modules/sys_file-tests: Likewise.
40585         * modules/sys_ioctl-tests: Likewise.
40586         * modules/sys_wait-tests: Likewise.
40587         * tests/test-ctype.c: Likewise.
40588         * tests/test-dirent.c: Likewise.
40589         * tests/test-spawn.c: Likewise.
40590         * tests/test-sys_file.c: Likewise.
40591         * tests/test-sys_ioctl.c: Likewise.
40592         * tests/test-sys_wait.c: Likewise.
40593         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40594         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40595         whether or not flock is in use.
40596
40597         tests: remove License section from module
40598         * modules/arpa_inet-tests: Remove unneeded section.
40599         * modules/byteswap-tests: Likewise.
40600         * modules/ceilf-tests: Likewise.
40601         * modules/ceill-tests: Likewise.
40602         * modules/crypto/des-tests: Likewise.
40603         * modules/crypto/gc-arcfour-tests: Likewise.
40604         * modules/crypto/gc-arctwo-tests: Likewise.
40605         * modules/crypto/gc-des-tests: Likewise.
40606         * modules/crypto/gc-hmac-md5-tests: Likewise.
40607         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40608         * modules/crypto/gc-md2-tests: Likewise.
40609         * modules/crypto/gc-md4-tests: Likewise.
40610         * modules/crypto/gc-md5-tests: Likewise.
40611         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40612         * modules/crypto/gc-rijndael-tests: Likewise.
40613         * modules/crypto/gc-sha1-tests: Likewise.
40614         * modules/crypto/gc-tests: Likewise.
40615         * modules/crypto/md2-tests: Likewise.
40616         * modules/crypto/md4-tests: Likewise.
40617         * modules/fcntl-h-tests: Likewise.
40618         * modules/floorf-tests: Likewise.
40619         * modules/floorl-tests: Likewise.
40620         * modules/frexp-nolibm-tests: Likewise.
40621         * modules/frexp-tests: Likewise.
40622         * modules/frexpl-nolibm-tests: Likewise.
40623         * modules/frexpl-tests: Likewise.
40624         * modules/getaddrinfo-tests: Likewise.
40625         * modules/inttypes-tests: Likewise.
40626         * modules/isfinite-tests: Likewise.
40627         * modules/isinf-tests: Likewise.
40628         * modules/ldexpl-tests: Likewise.
40629         * modules/locale-tests: Likewise.
40630         * modules/math-tests: Likewise.
40631         * modules/netdb-tests: Likewise.
40632         * modules/netinet_in-tests: Likewise.
40633         * modules/printf-frexp-tests: Likewise.
40634         * modules/printf-frexpl-tests: Likewise.
40635         * modules/priv-set-tests: Likewise.
40636         * modules/random_r-tests: Likewise.
40637         * modules/round-tests: Likewise.
40638         * modules/roundf-tests: Likewise.
40639         * modules/roundl-tests: Likewise.
40640         * modules/search-tests: Likewise.
40641         * modules/select-tests: Likewise.
40642         * modules/signal-tests: Likewise.
40643         * modules/stdbool-tests: Likewise.
40644         * modules/stddef-tests: Likewise.
40645         * modules/stdint-tests: Likewise.
40646         * modules/stdio-tests: Likewise.
40647         * modules/stdlib-tests: Likewise.
40648         * modules/string-tests: Likewise.
40649         * modules/strings-tests: Likewise.
40650         * modules/sys_select-tests: Likewise.
40651         * modules/sys_socket-tests: Likewise.
40652         * modules/sys_stat-tests: Likewise.
40653         * modules/sys_time-tests: Likewise.
40654         * modules/sys_utsname-tests: Likewise.
40655         * modules/sysexits-tests: Likewise.
40656         * modules/time-tests: Likewise.
40657         * modules/trunc-tests: Likewise.
40658         * modules/truncf-tests: Likewise.
40659         * modules/truncl-tests: Likewise.
40660         * modules/tsearch-tests: Likewise.
40661         * modules/unistd-tests: Likewise.
40662         * modules/wchar-tests: Likewise.
40663         * modules/wctype-tests: Likewise.
40664
40665         tests: fix license on several tests
40666         * tests/test-des.c: Update to GPLv3+.
40667         * tests/test-flock.c: Likewise.
40668         * tests/test-fsync.c: Likewise.
40669         * tests/test-futimens.h: Likewise.
40670         * tests/test-gc-arcfour.c: Likewise.
40671         * tests/test-gc-arctwo.c: Likewise.
40672         * tests/test-gc-des.c: Likewise.
40673         * tests/test-gc-hmac-md5.c: Likewise.
40674         * tests/test-gc-hmac-sha1.c: Likewise.
40675         * tests/test-gc-md2.c: Likewise.
40676         * tests/test-gc-md4.c: Likewise.
40677         * tests/test-gc-md5.c: Likewise.
40678         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40679         * tests/test-gc-rijndael.c: Likewise.
40680         * tests/test-gc-sha1.c: Likewise.
40681         * tests/test-gc.c: Likewise.
40682         * tests/test-getcwd.c: Likewise.
40683         * tests/test-link.c: Likewise.
40684         * tests/test-link.h: Likewise.
40685         * tests/test-lutimens.h: Likewise.
40686         * tests/test-md2.c: Likewise.
40687         * tests/test-md4.c: Likewise.
40688         * tests/test-mkdir.h: Likewise.
40689         * tests/test-rename.c: Likewise.
40690         * tests/test-rename.h: Likewise.
40691         * tests/test-safe-alloc.c: Likewise.
40692         * tests/test-utimens-common.h: Likewise.
40693         * tests/test-utimens.h: Likewise.
40694
40695         maint: sync license texts
40696         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40697         * doc/gpl-3.0.texi: Revert copyright year update.
40698         * doc/lgpl-3.0.texi: Likewise.
40699
40700 2009-12-29  Jim Meyering  <meyering@redhat.com>
40701
40702         update nearly all FSF copyright year lists to include 2009
40703         The files named by the following are exempted:
40704             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40705               test -f "$dst" && { echo "$dst"; continue; }
40706               test -d "$dst" || continue
40707               echo "$dst"/$(basename "$src")
40708             done > exempt
40709             git ls-files tests/unictype >> exempt
40710         In the remaining files, convert to all-interval notation if
40711         - there is already at least one year interval like 2000-2003
40712         - the file is maintained by me
40713         - the file is in lib/uni*/, where that style already prevails
40714         Otherwise, use update-copyright's default.
40715
40716 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40717         and Eric Blake  <ebb9@byu.net>
40718
40719         tests: don't require debug system() to pass
40720         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40721         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40722         * tests/test-unlink.h (test_unlink_func): Likewise.
40723         * tests/test-fstatat.c (main): ...into callers.
40724         * tests/test-lstat.c (main): Likewise.
40725         * tests/test-rmdir.c (main): Likewise.
40726         * tests/test-unlink.c (main): Likewise.
40727         * tests/test-unlinkat.c (main): Likewise.
40728         * tests/test-areadlink-with-size.c (main): Don't require a
40729         debug-only system call to pass, aiding cross-testing to mingw.
40730         * tests/test-areadlink.c (main): Likewise.
40731         * tests/test-areadlinkat-with-size.c (main): Likewise.
40732         * tests/test-areadlinkat.c (main): Likewise.
40733         * tests/test-canonicalize-lgpl.c (main): Likewise.
40734         * tests/test-canonicalize.c (main): Likewise.
40735         * tests/test-chown.c (main): Likewise.
40736         * tests/test-fchownat.c (main): Likewise.
40737         * tests/test-lchown.c (main): Likewise.
40738         * tests/test-fdutimensat.c (main): Likewise.
40739         * tests/test-futimens.c (main): Likewise.
40740         * tests/test-link.c (main): Likewise.
40741         * tests/test-linkat.c (main): Likewise.
40742         * tests/test-mkdir.c (main): Likewise.
40743         * tests/test-mkdirat.c (main): Likewise.
40744         * tests/test-mkfifo.c (main): Likewise.
40745         * tests/test-mkfifoat.c (main): Likewise.
40746         * tests/test-mknod.c (main): Likewise.
40747         * tests/test-readlink.c (main): Likewise.
40748         * tests/test-remove.c (main): Likewise.
40749         * tests/test-rename.c (main): Likewise.
40750         * tests/test-renameat.c (main): Likewise.
40751         * tests/test-symlink.c (main): Likewise.
40752         * tests/test-symlinkat.c (main): Likewise.
40753         * tests/test-utimens.c (main): Likewise.
40754         * tests/test-utimensat.c (main): Likewise.
40755
40756 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40757
40758         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40759         on $(UNUSED_PARAMETER_H) to avoid build failure.
40760
40761 2009-12-28  Jim Meyering  <meyering@redhat.com>
40762
40763         update-copyright: you may specify a max. line length other than 72
40764         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40765
40766         maint: use consistent FSF copyright line syntax
40767         * lib/posixtm.c: Add missing comma in FSF copyright line.
40768         * lib/posixtm.h: Likewise.
40769         * lib/getugroups.c: Add missing ", Inc.".
40770
40771         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40772         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40773         FSF copyright line.  Remove trailing blanks.
40774
40775 2009-12-28  Eric Blake  <ebb9@byu.net>
40776
40777         test-dup2: reduce dependencies
40778         * modules/cloexec (Configure.ac): Set witness.
40779         * modules/dup2-tests (Depends-on): Drop cloexec.
40780         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40781         not present.
40782         Suggested by Bruno Haible.
40783
40784 2009-12-26  Bruno Haible  <bruno@clisp.org>
40785
40786         Remove an unneeded dependency.
40787         * modules/fseterr (Depends-on): Remove dup2.
40788
40789 2009-12-26  Eric Blake  <ebb9@byu.net>
40790
40791         tests: use macros.h in more places
40792         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40793         (ASSERT_STREAM): Provide default of stderr.
40794         * tests/test-dirent-safer.c: Include macros.h, using alternate
40795         stream for assertions.
40796         * tests/test-dup-safer.c: Likewise.
40797         * tests/test-freopen-safer.c: Likewise.
40798         * tests/test-getopt.c: Likewise.
40799         * tests/test-openat-safer.c: Likewise.
40800         * tests/test-pipe.c: Likewise.
40801         * tests/test-popen-safer.c: Likewise.
40802         * modules/dirent-safer-tests (Files): Include macros.h.
40803         * modules/unistd-safer-tests (Files): Likewise.
40804         * modules/freopen-safer-tests (Files): Likewise.
40805         * modules/getopt-posix-tests (Files): Likewise.
40806         * modules/openat-safer-tests (Files): Likewise.
40807         * modules/pipe-tests (Files): Likewise.
40808
40809 2009-12-26  Bruno Haible  <bruno@clisp.org>
40810
40811         javacomp: Portability fix.
40812         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40813         that it also works on Solaris.
40814
40815 2009-12-26  Bruno Haible  <bruno@clisp.org>
40816
40817         localename: Fix storage allocation of gl_locale_name_thread's result.
40818         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40819         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40820         all platforms that have 'uselocale'.
40821         (gl_locale_name_thread_unsafe): New function, extracted from
40822         gl_locale_name_thread.
40823         (gl_locale_name_thread): Call struniq on all platforms that have
40824         'uselocale'.
40825         * tests/test-localename.c (test_locale_name_thread): Check that the
40826         resulting strings are permanently allocated.
40827         * modules/localename-tests (Depends-on): Add strdup.
40828
40829 2009-12-26  Bruno Haible  <bruno@clisp.org>
40830
40831         * tests/test-localename.c (categories): Fill in the strings.
40832
40833 2009-12-26  Jim Meyering  <meyering@redhat.com>
40834
40835         isdir: complete the removal of m4/isdir.m4
40836         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40837
40838         isdir: clean up, since at least grep still uses it
40839         * lib/isdir.c: Include "isdir.h".
40840         (S_ISDIR): Remove now-unneeded definition.
40841         * modules/isdir (Files): Add lib/isdir.h.
40842         * lib/isdir.h: New file, with declaration.
40843         * m4/isdir.m4: Remove file -- unneeded.
40844
40845 2009-12-25  Bruno Haible  <bruno@clisp.org>
40846
40847         selinux-h: Make generated .h files standalone.
40848         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40849         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40850         * lib/se-selinux.in.h: Likewise.
40851         * modules/selinux-h (Depends-on): Add unused-parameter.
40852         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40853         selinux/selinux.h and selinux/context.h.
40854         Suggested by Eric Blake.
40855
40856 2009-12-25  Bruno Haible  <bruno@clisp.org>
40857
40858         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40859         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40860         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40861         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40862         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40863
40864 2009-12-24  Bruno Haible  <bruno@clisp.org>
40865
40866         openat: Fix warning.
40867         * lib/openat-proc.c: Include <unistd.h>.
40868
40869 2009-12-24  Bruno Haible  <bruno@clisp.org>
40870
40871         New module 'unused-parameter'.
40872         * build-aux/unused-parameter.h: New file, extracted from earlier
40873         gnulib-common.m4.
40874         * modules/unused-parameter: New file.
40875         * lib/unistr.h: Include unused-parameter.h.
40876         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40877         _GL_UNUSED.
40878         * modules/unistr/base (Depends-on): Add unused-parameter.
40879
40880 2009-12-24  Bruno Haible  <bruno@clisp.org>
40881
40882         Add missing dependencies to 'extensions' module.
40883         * m4/extensions.m4: Add comment.
40884         * modules/accept4 (Depends-on): Add extensions.
40885         * modules/dup3 (Depends-on): Likewise.
40886         * modules/fcntl (Depends-on): Likewise.
40887         * modules/futimens (Depends-on): Likewise.
40888         * modules/mknod (Depends-on): Likewise.
40889         * modules/pipe2 (Depends-on): Likewise.
40890         * modules/stat-time (Depends-on): Likewise.
40891         * modules/strcasestr-simple (Depends-on): Likewise.
40892         * modules/strsignal (Depends-on): Likewise.
40893         * modules/utimensat (Depends-on): Likewise.
40894         * modules/localcharset (Depends-on): Likewise. Needed because of
40895         gl_FCNTL_O_FLAGS.
40896         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40897         AC_TYPE_MBSTATE_T.
40898         * modules/wcsnrtombs (Depends-on): Likewise.
40899         * modules/wcsrtombs (Depends-on): Likewise.
40900
40901 2009-12-24  Bruno Haible  <bruno@clisp.org>
40902
40903         binary-io: Avoid gcc warning due to SET_BINARY.
40904         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40905         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40906
40907 2009-12-24  Bruno Haible  <bruno@clisp.org>
40908
40909         Avoid future namespace pollution on glibc systems.
40910         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40911         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40912         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40913         glibc systems.
40914
40915 2009-12-24  Bruno Haible  <bruno@clisp.org>
40916
40917         Refactor common macros used in tests.
40918         * tests/macros.h: New file.
40919         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40920         and/or <stdlib.h>, if appropriate.
40921         (ASSERT, SIZEOF): Remove macros.
40922         * tests/test-areadlink-with-size.c: Likewise.
40923         * tests/test-areadlinkat.c: Likewise.
40924         * tests/test-areadlinkat-with-size.c: Likewise.
40925         * tests/test-argmatch.c: Likewise.
40926         * tests/test-argv-iter.c: Likewise.
40927         * tests/test-array-mergesort.c: Likewise.
40928         * tests/test-array_list.c: Likewise.
40929         * tests/test-array_oset.c: Likewise.
40930         * tests/test-avltree_list.c: Likewise.
40931         * tests/test-avltree_oset.c: Likewise.
40932         * tests/test-avltreehash_list.c: Likewise.
40933         * tests/test-base64.c: Likewise.
40934         * tests/test-binary-io.c: Likewise.
40935         * tests/test-bitrotate.c: Likewise.
40936         * tests/test-btowc.c: Likewise.
40937         * tests/test-byteswap.c: Likewise.
40938         * tests/test-c-ctype.c: Likewise.
40939         * tests/test-c-stack.c: Likewise.
40940         * tests/test-c-strcasecmp.c: Likewise.
40941         * tests/test-c-strcasestr.c: Likewise.
40942         * tests/test-c-strncasecmp.c: Likewise.
40943         * tests/test-c-strstr.c: Likewise.
40944         * tests/test-canonicalize-lgpl.c: Likewise.
40945         * tests/test-canonicalize.c: Likewise.
40946         * tests/test-carray_list.c: Likewise.
40947         * tests/test-ceilf1.c: Likewise.
40948         * tests/test-ceilf2.c: Likewise.
40949         * tests/test-ceill.c: Likewise.
40950         * tests/test-chown.c: Likewise.
40951         * tests/test-cloexec.c: Likewise.
40952         * tests/test-copy-acl.c: Likewise.
40953         * tests/test-copy-file.c: Likewise.
40954         * tests/test-count-one-bits.c: Likewise.
40955         * tests/test-dprintf-posix.c: Likewise.
40956         * tests/test-dup2.c: Likewise.
40957         * tests/test-dup3.c: Likewise.
40958         * tests/test-duplocale.c: Likewise.
40959         * tests/test-fbufmode.c: Likewise.
40960         * tests/test-fchdir.c: Likewise.
40961         * tests/test-fchownat.c: Likewise.
40962         * tests/test-fcntl-safer.c: Likewise.
40963         * tests/test-fcntl.c: Likewise.
40964         * tests/test-fdopendir.c: Likewise.
40965         * tests/test-fdutimensat.c: Likewise.
40966         * tests/test-fflush2.c: Likewise.
40967         * tests/test-file-has-acl.c: Likewise.
40968         * tests/test-filevercmp.c: Likewise.
40969         * tests/test-flock.c: Likewise.
40970         * tests/test-floorf1.c: Likewise.
40971         * tests/test-floorf2.c: Likewise.
40972         * tests/test-floorl.c: Likewise.
40973         * tests/test-fnmatch.c: Likewise.
40974         * tests/test-fopen.h: Likewise.
40975         * tests/test-fpending.c: Likewise.
40976         * tests/test-fprintf-posix.c: Likewise.
40977         * tests/test-fpurge.c: Likewise.
40978         * tests/test-freadable.c: Likewise.
40979         * tests/test-freadahead.c: Likewise.
40980         * tests/test-freading.c: Likewise.
40981         * tests/test-freadptr.c: Likewise.
40982         * tests/test-freadptr2.c: Likewise.
40983         * tests/test-freadseek.c: Likewise.
40984         * tests/test-freopen.c: Likewise.
40985         * tests/test-frexp.c: Likewise.
40986         * tests/test-frexpl.c: Likewise.
40987         * tests/test-fseek.c: Likewise.
40988         * tests/test-fseeko.c: Likewise.
40989         * tests/test-fstatat.c: Likewise.
40990         * tests/test-fstrcmp.c: Likewise.
40991         * tests/test-fsync.c: Likewise.
40992         * tests/test-ftell.c: Likewise.
40993         * tests/test-ftello.c: Likewise.
40994         * tests/test-func.c: Likewise.
40995         * tests/test-futimens.c: Likewise.
40996         * tests/test-fwritable.c: Likewise.
40997         * tests/test-fwriting.c: Likewise.
40998         * tests/test-getcwd.c: Likewise.
40999         * tests/test-getdate.c: Likewise.
41000         * tests/test-getdelim.c: Likewise.
41001         * tests/test-getdtablesize.c: Likewise.
41002         * tests/test-getgroups.c: Likewise.
41003         * tests/test-getline.c: Likewise.
41004         * tests/test-getndelim2.c: Likewise.
41005         * tests/test-glob.c: Likewise.
41006         * tests/test-hash.c: Likewise.
41007         * tests/test-i-ring.c: Likewise.
41008         * tests/test-iconv-utf.c: Likewise.
41009         * tests/test-iconv.c: Likewise.
41010         * tests/test-idpriv-drop.c: Likewise.
41011         * tests/test-idpriv-droptemp.c: Likewise.
41012         * tests/test-inet_ntop.c: Likewise.
41013         * tests/test-inet_pton.c: Likewise.
41014         * tests/test-isblank.c: Likewise.
41015         * tests/test-isfinite.c: Likewise.
41016         * tests/test-isinf.c: Likewise.
41017         * tests/test-isnan.c: Likewise.
41018         * tests/test-isnand.h: Likewise.
41019         * tests/test-isnanf.h: Likewise.
41020         * tests/test-isnanl.h: Likewise.
41021         * tests/test-lchown.c: Likewise.
41022         * tests/test-ldexpl.c: Likewise.
41023         * tests/test-link.c: Likewise.
41024         * tests/test-linkat.c: Likewise.
41025         * tests/test-linked_list.c: Likewise.
41026         * tests/test-linkedhash_list.c: Likewise.
41027         * tests/test-localename.c: Likewise.
41028         * tests/test-lseek.c: Likewise.
41029         * tests/test-lstat.c: Likewise.
41030         * tests/test-mbmemcasecmp.c: Likewise.
41031         * tests/test-mbmemcasecoll.c: Likewise.
41032         * tests/test-mbrtowc.c: Likewise.
41033         * tests/test-mbscasecmp.c: Likewise.
41034         * tests/test-mbscasestr1.c: Likewise.
41035         * tests/test-mbscasestr2.c: Likewise.
41036         * tests/test-mbscasestr3.c: Likewise.
41037         * tests/test-mbscasestr4.c: Likewise.
41038         * tests/test-mbschr.c: Likewise.
41039         * tests/test-mbscspn.c: Likewise.
41040         * tests/test-mbsinit.c: Likewise.
41041         * tests/test-mbsncasecmp.c: Likewise.
41042         * tests/test-mbsnrtowcs.c: Likewise.
41043         * tests/test-mbspbrk.c: Likewise.
41044         * tests/test-mbspcasecmp.c: Likewise.
41045         * tests/test-mbsrchr.c: Likewise.
41046         * tests/test-mbsrtowcs.c: Likewise.
41047         * tests/test-mbsspn.c: Likewise.
41048         * tests/test-mbsstr1.c: Likewise.
41049         * tests/test-mbsstr2.c: Likewise.
41050         * tests/test-mbsstr3.c: Likewise.
41051         * tests/test-memchr.c: Likewise.
41052         * tests/test-memchr2.c: Likewise.
41053         * tests/test-memcmp.c: Likewise.
41054         * tests/test-memmem.c: Likewise.
41055         * tests/test-memrchr.c: Likewise.
41056         * tests/test-mkdir.c: Likewise.
41057         * tests/test-mkdirat.c: Likewise.
41058         * tests/test-mkfifo.c: Likewise.
41059         * tests/test-mkfifoat.c: Likewise.
41060         * tests/test-mknod.c: Likewise.
41061         * tests/test-nanosleep.c: Likewise.
41062         * tests/test-nl_langinfo.c: Likewise.
41063         * tests/test-obstack-printf.c: Likewise.
41064         * tests/test-open.c: Likewise.
41065         * tests/test-openat.c: Likewise.
41066         * tests/test-pipe-filter-gi1.c: Likewise.
41067         * tests/test-pipe-filter-gi2-main.c: Likewise.
41068         * tests/test-pipe-filter-ii1.c: Likewise.
41069         * tests/test-pipe-filter-ii2-main.c: Likewise.
41070         * tests/test-pipe2.c: Likewise.
41071         * tests/test-popen.h: Likewise.
41072         * tests/test-posixtm.c: Likewise.
41073         * tests/test-pread.c: Likewise.
41074         * tests/test-printf-frexp.c: Likewise.
41075         * tests/test-printf-frexpl.c: Likewise.
41076         * tests/test-printf-posix.c: Likewise.
41077         * tests/test-priv-set.c: Likewise.
41078         * tests/test-quotearg.c: Likewise.
41079         * tests/test-random_r.c: Likewise.
41080         * tests/test-rawmemchr.c: Likewise.
41081         * tests/test-rbtree_list.c: Likewise.
41082         * tests/test-rbtree_oset.c: Likewise.
41083         * tests/test-rbtreehash_list.c: Likewise.
41084         * tests/test-readlink.c: Likewise.
41085         * tests/test-remove.c: Likewise.
41086         * tests/test-rename.c: Likewise.
41087         * tests/test-renameat.c: Likewise.
41088         * tests/test-rmdir.c: Likewise.
41089         * tests/test-round1.c: Likewise.
41090         * tests/test-roundf1.c: Likewise.
41091         * tests/test-roundl.c: Likewise.
41092         * tests/test-safe-alloc.c: Likewise.
41093         * tests/test-sameacls.c: Likewise.
41094         * tests/test-set-mode-acl.c: Likewise.
41095         * tests/test-setenv.c: Likewise.
41096         * tests/test-sigaction.c: Likewise.
41097         * tests/test-signbit.c: Likewise.
41098         * tests/test-sleep.c: Likewise.
41099         * tests/test-snprintf-posix.c: Likewise.
41100         * tests/test-snprintf.c: Likewise.
41101         * tests/test-sprintf-posix.c: Likewise.
41102         * tests/test-stat-time.c: Likewise.
41103         * tests/test-stat.c: Likewise.
41104         * tests/test-strcasestr.c: Likewise.
41105         * tests/test-strchrnul.c: Likewise.
41106         * tests/test-strerror.c: Likewise.
41107         * tests/test-striconv.c: Likewise.
41108         * tests/test-striconveh.c: Likewise.
41109         * tests/test-striconveha.c: Likewise.
41110         * tests/test-strsignal.c: Likewise.
41111         * tests/test-strstr.c: Likewise.
41112         * tests/test-strtod.c: Likewise.
41113         * tests/test-strverscmp.c: Likewise.
41114         * tests/test-symlink.c: Likewise.
41115         * tests/test-symlinkat.c: Likewise.
41116         * tests/test-trunc1.c: Likewise.
41117         * tests/test-trunc2.c: Likewise.
41118         * tests/test-truncf1.c: Likewise.
41119         * tests/test-truncf2.c: Likewise.
41120         * tests/test-truncl.c: Likewise.
41121         * tests/test-uname.c: Likewise.
41122         * tests/test-unlink.c: Likewise.
41123         * tests/test-unlinkat.c: Likewise.
41124         * tests/test-unsetenv.c: Likewise.
41125         * tests/test-usleep.c: Likewise.
41126         * tests/test-utimens.c: Likewise.
41127         * tests/test-utimensat.c: Likewise.
41128         * tests/test-vasnprintf-posix.c: Likewise.
41129         * tests/test-vasnprintf-posix2.c: Likewise.
41130         * tests/test-vasnprintf.c: Likewise.
41131         * tests/test-vasprintf-posix.c: Likewise.
41132         * tests/test-vasprintf.c: Likewise.
41133         * tests/test-vdprintf-posix.c: Likewise.
41134         * tests/test-vfprintf-posix.c: Likewise.
41135         * tests/test-vprintf-posix.c: Likewise.
41136         * tests/test-vsnprintf-posix.c: Likewise.
41137         * tests/test-vsnprintf.c: Likewise.
41138         * tests/test-vsprintf-posix.c: Likewise.
41139         * tests/test-wcrtomb.c: Likewise.
41140         * tests/test-wcsnrtombs.c: Likewise.
41141         * tests/test-wcsrtombs.c: Likewise.
41142         * tests/test-wctype.c: Likewise.
41143         * tests/test-wcwidth.c: Likewise.
41144         * tests/test-xfprintf-posix.c: Likewise.
41145         * tests/test-xmemdup0.c: Likewise.
41146         * tests/test-xprintf-posix.c: Likewise.
41147         * tests/test-xvasprintf.c: Likewise.
41148         * tests/unicase/test-locale-language.c: Likewise.
41149         * tests/unicase/test-mapping-part1.h: Likewise.
41150         * tests/unicase/test-predicate-part1.h: Likewise.
41151         * tests/unicase/test-u8-casecmp.c: Likewise.
41152         * tests/unicase/test-u8-casecoll.c: Likewise.
41153         * tests/unicase/test-u8-casefold.c: Likewise.
41154         * tests/unicase/test-u8-is-cased.c: Likewise.
41155         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41156         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41157         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41158         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41159         * tests/unicase/test-u8-tolower.c: Likewise.
41160         * tests/unicase/test-u8-totitle.c: Likewise.
41161         * tests/unicase/test-u8-toupper.c: Likewise.
41162         * tests/unicase/test-u16-casecmp.c: Likewise.
41163         * tests/unicase/test-u16-casecoll.c: Likewise.
41164         * tests/unicase/test-u16-casefold.c: Likewise.
41165         * tests/unicase/test-u16-is-cased.c: Likewise.
41166         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41167         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41168         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41169         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41170         * tests/unicase/test-u16-tolower.c: Likewise.
41171         * tests/unicase/test-u16-totitle.c: Likewise.
41172         * tests/unicase/test-u16-toupper.c: Likewise.
41173         * tests/unicase/test-u32-casecmp.c: Likewise.
41174         * tests/unicase/test-u32-casecoll.c: Likewise.
41175         * tests/unicase/test-u32-casefold.c: Likewise.
41176         * tests/unicase/test-u32-is-cased.c: Likewise.
41177         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41178         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41179         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41180         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41181         * tests/unicase/test-u32-tolower.c: Likewise.
41182         * tests/unicase/test-u32-totitle.c: Likewise.
41183         * tests/unicase/test-u32-toupper.c: Likewise.
41184         * tests/unicase/test-ulc-casecmp.c: Likewise.
41185         * tests/unicase/test-ulc-casecoll.c: Likewise.
41186         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41187         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41188         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41189         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41190         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41191         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41192         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41193         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41194         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41195         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41196         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41197         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41198         * tests/unictype/test-bidi_byname.c: Likewise.
41199         * tests/unictype/test-bidi_name.c: Likewise.
41200         * tests/unictype/test-bidi_of.c: Likewise.
41201         * tests/unictype/test-bidi_test.c: Likewise.
41202         * tests/unictype/test-block_list.c: Likewise.
41203         * tests/unictype/test-block_of.c: Likewise.
41204         * tests/unictype/test-block_test.c: Likewise.
41205         * tests/unictype/test-categ_and.c: Likewise.
41206         * tests/unictype/test-categ_and_not.c: Likewise.
41207         * tests/unictype/test-categ_byname.c: Likewise.
41208         * tests/unictype/test-categ_name.c: Likewise.
41209         * tests/unictype/test-categ_none.c: Likewise.
41210         * tests/unictype/test-categ_of.c: Likewise.
41211         * tests/unictype/test-categ_or.c: Likewise.
41212         * tests/unictype/test-categ_test_withtable.c: Likewise.
41213         * tests/unictype/test-combining.c: Likewise.
41214         * tests/unictype/test-decdigit.c: Likewise.
41215         * tests/unictype/test-digit.c: Likewise.
41216         * tests/unictype/test-mirror.c: Likewise.
41217         * tests/unictype/test-numeric.c: Likewise.
41218         * tests/unictype/test-pr_byname.c: Likewise.
41219         * tests/unictype/test-pr_test.c: Likewise.
41220         * tests/unictype/test-predicate-part1.h: Likewise.
41221         * tests/unictype/test-scripts.c: Likewise.
41222         * tests/unictype/test-sy_c_ident.c: Likewise.
41223         * tests/unictype/test-sy_java_ident.c: Likewise.
41224         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41225         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41226         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41227         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41228         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41229         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41230         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41231         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41232         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41233         * tests/uninorm/test-compat-decomposition.c: Likewise.
41234         * tests/uninorm/test-composition.c: Likewise.
41235         * tests/uninorm/test-decomposing-form.c: Likewise.
41236         * tests/uninorm/test-decomposition.c: Likewise.
41237         * tests/uninorm/test-u8-nfc.c: Likewise.
41238         * tests/uninorm/test-u8-nfd.c: Likewise.
41239         * tests/uninorm/test-u8-nfkc.c: Likewise.
41240         * tests/uninorm/test-u8-nfkd.c: Likewise.
41241         * tests/uninorm/test-u8-normcmp.c: Likewise.
41242         * tests/uninorm/test-u8-normcoll.c: Likewise.
41243         * tests/uninorm/test-u16-nfc.c: Likewise.
41244         * tests/uninorm/test-u16-nfd.c: Likewise.
41245         * tests/uninorm/test-u16-nfkc.c: Likewise.
41246         * tests/uninorm/test-u16-nfkd.c: Likewise.
41247         * tests/uninorm/test-u16-normcmp.c: Likewise.
41248         * tests/uninorm/test-u16-normcoll.c: Likewise.
41249         * tests/uninorm/test-u32-nfc.c: Likewise.
41250         * tests/uninorm/test-u32-nfd.c: Likewise.
41251         * tests/uninorm/test-u32-nfkc.c: Likewise.
41252         * tests/uninorm/test-u32-nfkd.c: Likewise.
41253         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41254         * tests/uninorm/test-u32-normcmp.c: Likewise.
41255         * tests/uninorm/test-u32-normcoll.c: Likewise.
41256         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41257         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41258         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41259         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41260         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41261         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41262         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41263         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41264         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41265         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41266         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41267         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41268         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41269         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41270         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41271         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41272         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41273         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41274         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41275         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41276         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41277         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41278         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41279         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41280         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41281         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41282         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41283         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41284         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41285         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41286         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41287         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41288         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41289         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41290         * tests/uniwidth/test-u8-width.c: Likewise.
41291         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41292         * tests/uniwidth/test-u16-width.c: Likewise.
41293         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41294         * tests/uniwidth/test-u32-width.c: Likewise.
41295         * tests/uniwidth/test-uc_width.c: Likewise.
41296         * tests/uniwidth/test-uc_width2.c: Likewise.
41297         * modules/acl-tests (Files): Add tests/macros.h.
41298         * modules/areadlink-tests (Files): Likewise.
41299         * modules/areadlink-with-size-tests (Files): Likewise.
41300         * modules/areadlinkat-tests (Files): Likewise.
41301         * modules/areadlinkat-with-size-tests (Files): Likewise.
41302         * modules/argmatch-tests (Files): Likewise.
41303         * modules/argv-iter-tests (Files): Likewise.
41304         * modules/array-list-tests (Files): Likewise.
41305         * modules/array-mergesort-tests (Files): Likewise.
41306         * modules/array-oset-tests (Files): Likewise.
41307         * modules/avltree-list-tests (Files): Likewise.
41308         * modules/avltree-oset-tests (Files): Likewise.
41309         * modules/avltreehash-list-tests (Files): Likewise.
41310         * modules/base64-tests (Files): Likewise.
41311         * modules/binary-io-tests (Files): Likewise.
41312         * modules/bitrotate-tests (Files): Likewise.
41313         * modules/btowc-tests (Files): Likewise.
41314         * modules/byteswap-tests (Files): Likewise.
41315         * modules/c-ctype-tests (Files): Likewise.
41316         * modules/c-stack-tests (Files): Likewise.
41317         * modules/c-strcase-tests (Files): Likewise.
41318         * modules/c-strcasestr-tests (Files): Likewise.
41319         * modules/c-strstr-tests (Files): Likewise.
41320         * modules/canonicalize-lgpl-tests (Files): Likewise.
41321         * modules/canonicalize-tests (Files): Likewise.
41322         * modules/carray-list-tests (Files): Likewise.
41323         * modules/ceilf-tests (Files): Likewise.
41324         * modules/ceill-tests (Files): Likewise.
41325         * modules/chown-tests (Files): Likewise.
41326         * modules/cloexec-tests (Files): Likewise.
41327         * modules/copy-file-tests (Files): Likewise.
41328         * modules/count-one-bits-tests (Files): Likewise.
41329         * modules/dprintf-posix-tests (Files): Likewise.
41330         * modules/dup2-tests (Files): Likewise.
41331         * modules/dup3-tests (Files): Likewise.
41332         * modules/duplocale-tests (Files): Likewise.
41333         * modules/fbufmode-tests (Files): Likewise.
41334         * modules/fchdir-tests (Files): Likewise.
41335         * modules/fcntl-safer-tests (Files): Likewise.
41336         * modules/fcntl-tests (Files): Likewise.
41337         * modules/fdopendir-tests (Files): Likewise.
41338         * modules/fdutimensat-tests (Files): Likewise.
41339         * modules/fflush-tests (Files): Likewise.
41340         * modules/filevercmp-tests (Files): Likewise.
41341         * modules/flock-tests (Files): Likewise.
41342         * modules/floorf-tests (Files): Likewise.
41343         * modules/floorl-tests (Files): Likewise.
41344         * modules/fnmatch-tests (Files): Likewise.
41345         * modules/fopen-safer-tests (Files): Likewise.
41346         * modules/fopen-tests (Files): Likewise.
41347         * modules/fpending-tests (Files): Likewise.
41348         * modules/fprintf-posix-tests (Files): Likewise.
41349         * modules/fpurge-tests (Files): Likewise.
41350         * modules/freadable-tests (Files): Likewise.
41351         * modules/freadahead-tests (Files): Likewise.
41352         * modules/freading-tests (Files): Likewise.
41353         * modules/freadptr-tests (Files): Likewise.
41354         * modules/freadseek-tests (Files): Likewise.
41355         * modules/freopen-tests (Files): Likewise.
41356         * modules/frexp-nolibm-tests (Files): Likewise.
41357         * modules/frexp-tests (Files): Likewise.
41358         * modules/frexpl-nolibm-tests (Files): Likewise.
41359         * modules/frexpl-tests (Files): Likewise.
41360         * modules/fseek-tests (Files): Likewise.
41361         * modules/fseeko-tests (Files): Likewise.
41362         * modules/fstrcmp-tests (Files): Likewise.
41363         * modules/fsync-tests (Files): Likewise.
41364         * modules/ftell-tests (Files): Likewise.
41365         * modules/ftello-tests (Files): Likewise.
41366         * modules/func-tests (Files): Likewise.
41367         * modules/futimens-tests (Files): Likewise.
41368         * modules/fwritable-tests (Files): Likewise.
41369         * modules/fwriting-tests (Files): Likewise.
41370         * modules/getcwd-tests (Files): Likewise.
41371         * modules/getdate-tests (Files): Likewise.
41372         * modules/getdelim-tests (Files): Likewise.
41373         * modules/getdtablesize-tests (Files): Likewise.
41374         * modules/getgroups-tests (Files): Likewise.
41375         * modules/getline-tests (Files): Likewise.
41376         * modules/getndelim2-tests (Files): Likewise.
41377         * modules/glob-tests (Files): Likewise.
41378         * modules/hash-tests (Files): Likewise.
41379         * modules/i-ring-tests (Files): Likewise.
41380         * modules/iconv-tests (Files): Likewise.
41381         * modules/iconv_open-utf-tests (Files): Likewise.
41382         * modules/idpriv-drop-tests (Files): Likewise.
41383         * modules/idpriv-droptemp-tests (Files): Likewise.
41384         * modules/inet_ntop-tests (Files): Likewise.
41385         * modules/inet_pton-tests (Files): Likewise.
41386         * modules/isblank-tests (Files): Likewise.
41387         * modules/isfinite-tests (Files): Likewise.
41388         * modules/isinf-tests (Files): Likewise.
41389         * modules/isnan-tests (Files): Likewise.
41390         * modules/isnand-nolibm-tests (Files): Likewise.
41391         * modules/isnand-tests (Files): Likewise.
41392         * modules/isnanf-nolibm-tests (Files): Likewise.
41393         * modules/isnanf-tests (Files): Likewise.
41394         * modules/isnanl-nolibm-tests (Files): Likewise.
41395         * modules/isnanl-tests (Files): Likewise.
41396         * modules/lchown-tests (Files): Likewise.
41397         * modules/ldexpl-tests (Files): Likewise.
41398         * modules/link-tests (Files): Likewise.
41399         * modules/linkat-tests (Files): Likewise.
41400         * modules/linked-list-tests (Files): Likewise.
41401         * modules/linkedhash-list-tests (Files): Likewise.
41402         * modules/localename-tests (Files): Likewise.
41403         * modules/lseek-tests (Files): Likewise.
41404         * modules/lstat-tests (Files): Likewise.
41405         * modules/mbmemcasecmp-tests (Files): Likewise.
41406         * modules/mbmemcasecoll-tests (Files): Likewise.
41407         * modules/mbrtowc-tests (Files): Likewise.
41408         * modules/mbscasecmp-tests (Files): Likewise.
41409         * modules/mbscasestr-tests (Files): Likewise.
41410         * modules/mbschr-tests (Files): Likewise.
41411         * modules/mbscspn-tests (Files): Likewise.
41412         * modules/mbsinit-tests (Files): Likewise.
41413         * modules/mbsncasecmp-tests (Files): Likewise.
41414         * modules/mbsnrtowcs-tests (Files): Likewise.
41415         * modules/mbspbrk-tests (Files): Likewise.
41416         * modules/mbspcasecmp-tests (Files): Likewise.
41417         * modules/mbsrchr-tests (Files): Likewise.
41418         * modules/mbsrtowcs-tests (Files): Likewise.
41419         * modules/mbsspn-tests (Files): Likewise.
41420         * modules/mbsstr-tests (Files): Likewise.
41421         * modules/memchr-tests (Files): Likewise.
41422         * modules/memchr2-tests (Files): Likewise.
41423         * modules/memcmp-tests (Files): Likewise.
41424         * modules/memmem-tests (Files): Likewise.
41425         * modules/memrchr-tests (Files): Likewise.
41426         * modules/mkdir-tests (Files): Likewise.
41427         * modules/mkfifo-tests (Files): Likewise.
41428         * modules/mkfifoat-tests (Files): Likewise.
41429         * modules/mknod-tests (Files): Likewise.
41430         * modules/nanosleep-tests (Files): Likewise.
41431         * modules/nl_langinfo-tests (Files): Likewise.
41432         * modules/obstack-printf-tests (Files): Likewise.
41433         * modules/open-tests (Files): Likewise.
41434         * modules/openat-tests (Files): Likewise.
41435         * modules/pipe-filter-gi-tests (Files): Likewise.
41436         * modules/pipe-filter-ii-tests (Files): Likewise.
41437         * modules/pipe2-tests (Files): Likewise.
41438         * modules/popen-safer-tests (Files): Likewise.
41439         * modules/popen-tests (Files): Likewise.
41440         * modules/posixtm-tests (Files): Likewise.
41441         * modules/pread-tests (Files): Likewise.
41442         * modules/printf-frexp-tests (Files): Likewise.
41443         * modules/printf-frexpl-tests (Files): Likewise.
41444         * modules/printf-posix-tests (Files): Likewise.
41445         * modules/priv-set-tests (Files): Likewise.
41446         * modules/quotearg-tests (Files): Likewise.
41447         * modules/random_r-tests (Files): Likewise.
41448         * modules/rawmemchr-tests (Files): Likewise.
41449         * modules/rbtree-list-tests (Files): Likewise.
41450         * modules/rbtree-oset-tests (Files): Likewise.
41451         * modules/rbtreehash-list-tests (Files): Likewise.
41452         * modules/readlink-tests (Files): Likewise.
41453         * modules/remove-tests (Files): Likewise.
41454         * modules/rename-tests (Files): Likewise.
41455         * modules/renameat-tests (Files): Likewise.
41456         * modules/rmdir-tests (Files): Likewise.
41457         * modules/round-tests (Files): Likewise.
41458         * modules/roundf-tests (Files): Likewise.
41459         * modules/roundl-tests (Files): Likewise.
41460         * modules/safe-alloc-tests (Files): Likewise.
41461         * modules/setenv-tests (Files): Likewise.
41462         * modules/sigaction-tests (Files): Likewise.
41463         * modules/signbit-tests (Files): Likewise.
41464         * modules/sleep-tests (Files): Likewise.
41465         * modules/snprintf-posix-tests (Files): Likewise.
41466         * modules/snprintf-tests (Files): Likewise.
41467         * modules/sprintf-posix-tests (Files): Likewise.
41468         * modules/stat-tests (Files): Likewise.
41469         * modules/stat-time-tests (Files): Likewise.
41470         * modules/strcasestr-tests (Files): Likewise.
41471         * modules/strchrnul-tests (Files): Likewise.
41472         * modules/strerror-tests (Files): Likewise.
41473         * modules/striconv-tests (Files): Likewise.
41474         * modules/striconveh-tests (Files): Likewise.
41475         * modules/striconveha-tests (Files): Likewise.
41476         * modules/strsignal-tests (Files): Likewise.
41477         * modules/strstr-tests (Files): Likewise.
41478         * modules/strtod-tests (Files): Likewise.
41479         * modules/strverscmp-tests (Files): Likewise.
41480         * modules/symlink-tests (Files): Likewise.
41481         * modules/symlinkat-tests (Files): Likewise.
41482         * modules/trunc-tests (Files): Likewise.
41483         * modules/truncf-tests (Files): Likewise.
41484         * modules/truncl-tests (Files): Likewise.
41485         * modules/uname-tests (Files): Likewise.
41486         * modules/unicase/cased-tests (Files): Likewise.
41487         * modules/unicase/ignorable-tests (Files): Likewise.
41488         * modules/unicase/locale-language-tests (Files): Likewise.
41489         * modules/unicase/tolower-tests (Files): Likewise.
41490         * modules/unicase/totitle-tests (Files): Likewise.
41491         * modules/unicase/toupper-tests (Files): Likewise.
41492         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41493         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41494         * modules/unicase/u8-casefold-tests (Files): Likewise.
41495         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41496         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41497         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41498         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41499         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41500         * modules/unicase/u8-tolower-tests (Files): Likewise.
41501         * modules/unicase/u8-totitle-tests (Files): Likewise.
41502         * modules/unicase/u8-toupper-tests (Files): Likewise.
41503         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41504         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41505         * modules/unicase/u16-casefold-tests (Files): Likewise.
41506         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41507         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41508         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41509         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41510         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41511         * modules/unicase/u16-tolower-tests (Files): Likewise.
41512         * modules/unicase/u16-totitle-tests (Files): Likewise.
41513         * modules/unicase/u16-toupper-tests (Files): Likewise.
41514         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41515         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41516         * modules/unicase/u32-casefold-tests (Files): Likewise.
41517         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41518         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41519         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41520         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41521         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41522         * modules/unicase/u32-tolower-tests (Files): Likewise.
41523         * modules/unicase/u32-totitle-tests (Files): Likewise.
41524         * modules/unicase/u32-toupper-tests (Files): Likewise.
41525         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41526         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41527         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41528         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41529         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41530         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41531         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41532         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41533         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41534         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41535         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41536         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41537         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41538         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41539         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41540         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41541         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41542         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41543         * modules/unictype/block-list-tests (Files): Likewise.
41544         * modules/unictype/block-of-tests (Files): Likewise.
41545         * modules/unictype/block-test-tests (Files): Likewise.
41546         * modules/unictype/category-C-tests (Files): Likewise.
41547         * modules/unictype/category-Cc-tests (Files): Likewise.
41548         * modules/unictype/category-Cf-tests (Files): Likewise.
41549         * modules/unictype/category-Cn-tests (Files): Likewise.
41550         * modules/unictype/category-Co-tests (Files): Likewise.
41551         * modules/unictype/category-Cs-tests (Files): Likewise.
41552         * modules/unictype/category-L-tests (Files): Likewise.
41553         * modules/unictype/category-Ll-tests (Files): Likewise.
41554         * modules/unictype/category-Lm-tests (Files): Likewise.
41555         * modules/unictype/category-Lo-tests (Files): Likewise.
41556         * modules/unictype/category-Lt-tests (Files): Likewise.
41557         * modules/unictype/category-Lu-tests (Files): Likewise.
41558         * modules/unictype/category-M-tests (Files): Likewise.
41559         * modules/unictype/category-Mc-tests (Files): Likewise.
41560         * modules/unictype/category-Me-tests (Files): Likewise.
41561         * modules/unictype/category-Mn-tests (Files): Likewise.
41562         * modules/unictype/category-N-tests (Files): Likewise.
41563         * modules/unictype/category-Nd-tests (Files): Likewise.
41564         * modules/unictype/category-Nl-tests (Files): Likewise.
41565         * modules/unictype/category-No-tests (Files): Likewise.
41566         * modules/unictype/category-P-tests (Files): Likewise.
41567         * modules/unictype/category-Pc-tests (Files): Likewise.
41568         * modules/unictype/category-Pd-tests (Files): Likewise.
41569         * modules/unictype/category-Pe-tests (Files): Likewise.
41570         * modules/unictype/category-Pf-tests (Files): Likewise.
41571         * modules/unictype/category-Pi-tests (Files): Likewise.
41572         * modules/unictype/category-Po-tests (Files): Likewise.
41573         * modules/unictype/category-Ps-tests (Files): Likewise.
41574         * modules/unictype/category-S-tests (Files): Likewise.
41575         * modules/unictype/category-Sc-tests (Files): Likewise.
41576         * modules/unictype/category-Sk-tests (Files): Likewise.
41577         * modules/unictype/category-Sm-tests (Files): Likewise.
41578         * modules/unictype/category-So-tests (Files): Likewise.
41579         * modules/unictype/category-Z-tests (Files): Likewise.
41580         * modules/unictype/category-Zl-tests (Files): Likewise.
41581         * modules/unictype/category-Zp-tests (Files): Likewise.
41582         * modules/unictype/category-Zs-tests (Files): Likewise.
41583         * modules/unictype/category-and-not-tests (Files): Likewise.
41584         * modules/unictype/category-and-tests (Files): Likewise.
41585         * modules/unictype/category-byname-tests (Files): Likewise.
41586         * modules/unictype/category-name-tests (Files): Likewise.
41587         * modules/unictype/category-none-tests (Files): Likewise.
41588         * modules/unictype/category-of-tests (Files): Likewise.
41589         * modules/unictype/category-or-tests (Files): Likewise.
41590         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41591         * modules/unictype/combining-class-tests (Files): Likewise.
41592         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41593         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41594         * modules/unictype/ctype-blank-tests (Files): Likewise.
41595         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41596         * modules/unictype/ctype-digit-tests (Files): Likewise.
41597         * modules/unictype/ctype-graph-tests (Files): Likewise.
41598         * modules/unictype/ctype-lower-tests (Files): Likewise.
41599         * modules/unictype/ctype-print-tests (Files): Likewise.
41600         * modules/unictype/ctype-punct-tests (Files): Likewise.
41601         * modules/unictype/ctype-space-tests (Files): Likewise.
41602         * modules/unictype/ctype-upper-tests (Files): Likewise.
41603         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41604         * modules/unictype/decimal-digit-tests (Files): Likewise.
41605         * modules/unictype/digit-tests (Files): Likewise.
41606         * modules/unictype/mirror-tests (Files): Likewise.
41607         * modules/unictype/numeric-tests (Files): Likewise.
41608         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41609         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41610         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41611         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41612         Likewise.
41613         * modules/unictype/property-bidi-block-separator-tests (Files):
41614         Likewise.
41615         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41616         Likewise.
41617         * modules/unictype/property-bidi-common-separator-tests (Files):
41618         Likewise.
41619         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41620         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41621         Likewise.
41622         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41623         Likewise.
41624         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41625         Likewise.
41626         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41627         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41628         Likewise.
41629         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41630         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41631         Likewise.
41632         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41633         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41634         * modules/unictype/property-bidi-segment-separator-tests (Files):
41635         Likewise.
41636         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41637         * modules/unictype/property-byname-tests (Files): Likewise.
41638         * modules/unictype/property-combining-tests (Files): Likewise.
41639         * modules/unictype/property-composite-tests (Files): Likewise.
41640         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41641         * modules/unictype/property-dash-tests (Files): Likewise.
41642         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41643         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41644         Likewise.
41645         * modules/unictype/property-deprecated-tests (Files): Likewise.
41646         * modules/unictype/property-diacritic-tests (Files): Likewise.
41647         * modules/unictype/property-extender-tests (Files): Likewise.
41648         * modules/unictype/property-format-control-tests (Files): Likewise.
41649         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41650         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41651         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41652         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41653         * modules/unictype/property-hyphen-tests (Files): Likewise.
41654         * modules/unictype/property-id-continue-tests (Files): Likewise.
41655         * modules/unictype/property-id-start-tests (Files): Likewise.
41656         * modules/unictype/property-ideographic-tests (Files): Likewise.
41657         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41658         * modules/unictype/property-ids-trinary-operator-tests (Files):
41659         Likewise.
41660         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41661         * modules/unictype/property-iso-control-tests (Files): Likewise.
41662         * modules/unictype/property-join-control-tests (Files): Likewise.
41663         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41664         * modules/unictype/property-line-separator-tests (Files): Likewise.
41665         * modules/unictype/property-logical-order-exception-tests (Files):
41666         Likewise.
41667         * modules/unictype/property-lowercase-tests (Files): Likewise.
41668         * modules/unictype/property-math-tests (Files): Likewise.
41669         * modules/unictype/property-non-break-tests (Files): Likewise.
41670         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41671         * modules/unictype/property-numeric-tests (Files): Likewise.
41672         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41673         * modules/unictype/property-other-default-ignorable-code-point-tests
41674         (Files): Likewise.
41675         * modules/unictype/property-other-grapheme-extend-tests (Files):
41676         Likewise.
41677         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41678         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41679         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41680         * modules/unictype/property-other-math-tests (Files): Likewise.
41681         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41682         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41683         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41684         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41685         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41686         * modules/unictype/property-private-use-tests (Files): Likewise.
41687         * modules/unictype/property-punctuation-tests (Files): Likewise.
41688         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41689         * modules/unictype/property-radical-tests (Files): Likewise.
41690         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41691         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41692         * modules/unictype/property-space-tests (Files): Likewise.
41693         * modules/unictype/property-terminal-punctuation-tests (Files):
41694         Likewise.
41695         * modules/unictype/property-test-tests (Files): Likewise.
41696         * modules/unictype/property-titlecase-tests (Files): Likewise.
41697         * modules/unictype/property-unassigned-code-value-tests (Files):
41698         Likewise.
41699         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41700         * modules/unictype/property-uppercase-tests (Files): Likewise.
41701         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41702         * modules/unictype/property-white-space-tests (Files): Likewise.
41703         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41704         * modules/unictype/property-xid-start-tests (Files): Likewise.
41705         * modules/unictype/property-zero-width-tests (Files): Likewise.
41706         * modules/unictype/scripts-tests (Files): Likewise.
41707         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41708         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41709         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41710         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41711         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41712         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41713         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41714         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41715         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41716         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41717         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41718         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41719         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41720         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41721         * modules/uninorm/composition-tests (Files): Likewise.
41722         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41723         * modules/uninorm/decomposition-tests (Files): Likewise.
41724         * modules/uninorm/filter-tests (Files): Likewise.
41725         * modules/uninorm/nfc-tests (Files): Likewise.
41726         * modules/uninorm/nfd-tests (Files): Likewise.
41727         * modules/uninorm/nfkc-tests (Files): Likewise.
41728         * modules/uninorm/nfkd-tests (Files): Likewise.
41729         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41730         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41731         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41732         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41733         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41734         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41735         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41736         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41737         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41738         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41739         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41740         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41741         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41742         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41743         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41744         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41745         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41746         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41747         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41748         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41749         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41750         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41751         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41752         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41753         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41754         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41755         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41756         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41757         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41758         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41759         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41760         * modules/uniwidth/u8-width-tests (Files): Likewise.
41761         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41762         * modules/uniwidth/u16-width-tests (Files): Likewise.
41763         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41764         * modules/uniwidth/u32-width-tests (Files): Likewise.
41765         * modules/uniwidth/width-tests (Files): Likewise.
41766         * modules/unlink-tests (Files): Likewise.
41767         * modules/unsetenv-tests (Files): Likewise.
41768         * modules/usleep-tests (Files): Likewise.
41769         * modules/utimens-tests (Files): Likewise.
41770         * modules/utimensat-tests (Files): Likewise.
41771         * modules/vasnprintf-posix-tests (Files): Likewise.
41772         * modules/vasnprintf-tests (Files): Likewise.
41773         * modules/vasprintf-posix-tests (Files): Likewise.
41774         * modules/vasprintf-tests (Files): Likewise.
41775         * modules/vdprintf-posix-tests (Files): Likewise.
41776         * modules/vfprintf-posix-tests (Files): Likewise.
41777         * modules/vprintf-posix-tests (Files): Likewise.
41778         * modules/vsnprintf-posix-tests (Files): Likewise.
41779         * modules/vsnprintf-tests (Files): Likewise.
41780         * modules/vsprintf-posix-tests (Files): Likewise.
41781         * modules/wcrtomb-tests (Files): Likewise.
41782         * modules/wcsnrtombs-tests (Files): Likewise.
41783         * modules/wcsrtombs-tests (Files): Likewise.
41784         * modules/wctype-tests (Files): Likewise.
41785         * modules/wcwidth-tests (Files): Likewise.
41786         * modules/xmemdup0-tests (Files): Likewise.
41787         * modules/xprintf-posix-tests (Files): Likewise.
41788         * modules/xvasprintf-tests (Files): Likewise.
41789
41790 2009-12-24  Eric Blake  <ebb9@byu.net>
41791
41792         test-nanosleep: fix typo
41793         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41794         patch.
41795         Reported by Bruno Haible.
41796
41797 2009-12-24  Bruno Haible  <bruno@clisp.org>
41798
41799         Reduce namespace pollution on glibc systems.
41800         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41801         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41802         systems.
41803         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41804         <getopt.h> on glibc systems.
41805         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41806         systems.
41807         * lib/fcntl.c: Include <unistd.h> here instead.
41808
41809 2009-12-24  Bruno Haible  <bruno@clisp.org>
41810
41811         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41812
41813 2009-12-24  Eric Blake  <ebb9@byu.net>
41814
41815         tests: add signature checks
41816         * tests/signature.h (SIGNATURE_CHECK): New file.
41817         * modules/atexit-tests (Files): Use it.
41818         * modules/btowc-tests (Files): Likewise.
41819         * modules/canonicalize-lgpl-tests (Files): Likewise.
41820         * modules/ceilf-tests (Files): Likewise.
41821         * modules/ceill-tests (Files): Likewise.
41822         * modules/chown-tests (Files): Likewise.
41823         * modules/dprintf-posix-tests (Files): Likewise.
41824         * modules/dup2-tests (Files): Likewise.
41825         * modules/dup3-tests (Files): Likewise.
41826         * modules/duplocale-tests (Files): Likewise.
41827         * modules/fchdir-tests (Files): Likewise.
41828         * modules/fcntl-tests (Files): Likewise.
41829         * modules/fdopendir-tests (Files): Likewise.
41830         * modules/fflush-tests (Files): Likewise.
41831         * modules/flock-tests (Files): Likewise.
41832         * modules/floorf-tests (Files): Likewise.
41833         * modules/floorl-tests (Files): Likewise.
41834         * modules/fnmatch-tests (Files): Likewise.
41835         * modules/fopen-tests (Files): Likewise.
41836         * modules/fprintf-posix-tests (Files): Likewise.
41837         * modules/freopen-tests (Files): Likewise.
41838         * modules/frexp-nolibm-tests (Files): Likewise.
41839         * modules/frexp-tests (Files): Likewise.
41840         * modules/frexpl-nolibm-tests (Files): Likewise.
41841         * modules/frexpl-tests (Files): Likewise.
41842         * modules/fseek-tests (Files): Likewise.
41843         * modules/fseeko-tests (Files): Likewise.
41844         * modules/fsync-tests (Files): Likewise.
41845         * modules/ftell-tests (Files): Likewise.
41846         * modules/ftello-tests (Files): Likewise.
41847         * modules/futimens-tests (Files): Likewise.
41848         * modules/getaddrinfo-tests (Files): Likewise.
41849         * modules/getcwd-tests (Files): Likewise.
41850         * modules/getdelim-tests (Files): Likewise.
41851         * modules/getdtablesize-tests (Files): Likewise.
41852         * modules/getgroups-tests (Files): Likewise.
41853         * modules/gethostname-tests (Files): Likewise.
41854         * modules/getline-tests (Files): Likewise.
41855         * modules/getopt-posix-tests (Files): Likewise.
41856         * modules/gettimeofday-tests (Files): Likewise.
41857         * modules/glob-tests (Files): Likewise.
41858         * modules/iconv-tests (Files): Likewise.
41859         * modules/inet_ntop-tests (Files): Likewise.
41860         * modules/inet_pton-tests (Files): Likewise.
41861         * modules/isblank-tests (Files): Likewise.
41862         * modules/lchown-tests (Files): Likewise.
41863         * modules/ldexpl-tests (Files): Likewise.
41864         * modules/link-tests (Files): Likewise.
41865         * modules/linkat-tests (Files): Likewise.
41866         * modules/lseek-tests (Files): Likewise.
41867         * modules/lstat-tests (Files): Likewise.
41868         * modules/mbrtowc-tests (Files): Likewise.
41869         * modules/mbsinit-tests (Files): Likewise.
41870         * modules/mbsnrtowcs-tests (Files): Likewise.
41871         * modules/mbsrtowcs-tests (Files): Likewise.
41872         * modules/memchr-tests (Files): Likewise.
41873         * modules/memcmp-tests (Files): Likewise.
41874         * modules/memmem-tests (Files): Likewise.
41875         * modules/memrchr-tests (Files): Likewise.
41876         * modules/mkdir-tests (Files): Likewise.
41877         * modules/mkfifo-tests (Files): Likewise.
41878         * modules/mkfifoat-tests (Files): Likewise.
41879         * modules/mknod-tests (Files): Likewise.
41880         * modules/nanosleep-tests (Files): Likewise.
41881         * modules/nl_langinfo-tests (Files): Likewise.
41882         * modules/obstack-printf-tests (Files): Likewise.
41883         * modules/open-tests (Files): Likewise.
41884         * modules/openat-tests (Files): Likewise.
41885         * modules/perror-tests (Files): Likewise.
41886         * modules/pipe2-tests (Files): Likewise.
41887         * modules/poll-tests (Files): Likewise.
41888         * modules/popen-tests (Files): Likewise.
41889         * modules/posix_spawn-tests (Files): Likewise.
41890         * modules/posix_spawnp-tests (Files): Likewise.
41891         * modules/pread-tests (Files): Likewise.
41892         * modules/printf-posix-tests (Files): Likewise.
41893         * modules/pty-tests (Files): Likewise.
41894         * modules/random_r-tests (Files): Likewise.
41895         * modules/rawmemchr-tests (Files): Likewise.
41896         * modules/readlink-tests (Files): Likewise.
41897         * modules/remove-tests (Files): Likewise.
41898         * modules/rename-tests (Files): Likewise.
41899         * modules/renameat-tests (Files): Likewise.
41900         * modules/rmdir-tests (Files): Likewise.
41901         * modules/round-tests (Files): Likewise.
41902         * modules/roundf-tests (Files): Likewise.
41903         * modules/roundl-tests (Files): Likewise.
41904         * modules/select-tests (Files): Likewise.
41905         * modules/setenv-tests (Files): Likewise.
41906         * modules/sigaction-tests (Files): Likewise.
41907         * modules/sleep-tests (Files): Likewise.
41908         * modules/snprintf-posix-tests (Files): Likewise.
41909         * modules/snprintf-tests (Files): Likewise.
41910         * modules/sprintf-posix-tests (Files): Likewise.
41911         * modules/stat-tests (Files): Likewise.
41912         * modules/strcasestr-tests (Files): Likewise.
41913         * modules/strchrnul-tests (Files): Likewise.
41914         * modules/strerror-tests (Files): Likewise.
41915         * modules/strsignal-tests (Files): Likewise.
41916         * modules/strstr-tests (Files): Likewise.
41917         * modules/strtod-tests (Files): Likewise.
41918         * modules/strverscmp-tests (Files): Likewise.
41919         * modules/symlink-tests (Files): Likewise.
41920         * modules/symlinkat-tests (Files): Likewise.
41921         * modules/times-tests (Files): Likewise.
41922         * modules/trunc-tests (Files): Likewise.
41923         * modules/truncf-tests (Files): Likewise.
41924         * modules/truncl-tests (Files): Likewise.
41925         * modules/tsearch-tests (Files): Likewise.
41926         * modules/uname-tests (Files): Likewise.
41927         * modules/unlink-tests (Files): Likewise.
41928         * modules/unsetenv-tests (Files): Likewise.
41929         * modules/usleep-tests (Files): Likewise.
41930         * modules/utimensat-tests (Files): Likewise.
41931         * modules/vasprintf-tests (Files): Likewise.
41932         * modules/vdprintf-posix-tests (Files): Likewise.
41933         * modules/vfprintf-posix-tests (Files): Likewise.
41934         * modules/vprintf-posix-tests (Files): Likewise.
41935         * modules/vsnprintf-posix-tests (Files): Likewise.
41936         * modules/vsnprintf-tests (Files): Likewise.
41937         * modules/vsprintf-posix-tests (Files): Likewise.
41938         * modules/wcrtomb-tests (Files): Likewise.
41939         * modules/wcsnrtombs-tests (Files): Likewise.
41940         * modules/wcsrtombs-tests (Files): Likewise.
41941         * modules/wcwidth-tests (Files): Likewise.
41942         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41943         * tests/test-isinf.c (isinf): Likewise.
41944         * tests/test-isnan.c (isnan): Likewise.
41945         * tests/test-signbit.c (signbit): Likewise.
41946         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41947         declaration, either as macro or with correct signature.
41948         (select): Ensure function under test is declared with correct
41949         signature in correct header.
41950         * tests/test-atexit.c (atexit): Likewise.
41951         * tests/test-btowc.c (btowc): Likewise.
41952         * tests/test-canonicalize-lgpl.c (realpath)
41953         (canonicalize_file_name): Likewise.
41954         * tests/test-ceilf1.c (ceilf): Likewise.
41955         * tests/test-ceill.c (ceill): Likewise.
41956         * tests/test-chown.c (chown): Likewise.
41957         * tests/test-dprintf-posix.c (dprintf): Likewise.
41958         * tests/test-dup2.c (dup2): Likewise.
41959         * tests/test-dup3.c (dup3): Likewise.
41960         * tests/test-duplocale.c (duplocale): Likewise.
41961         * tests/test-fchdir.c (fchdir): Likewise.
41962         * tests/test-fchownat.c (fchownat): Likewise.
41963         * tests/test-fcntl.c (fcntl): Likewise.
41964         * tests/test-fdopendir.c (fdopendir): Likewise.
41965         * tests/test-fflush.c (fflush): Likewise.
41966         * tests/test-flock.c (flock): Likewise.
41967         * tests/test-floorf1.c (floorf): Likewise.
41968         * tests/test-floorl.c (floorl): Likewise.
41969         * tests/test-fnmatch.c (fnmatch): Likewise.
41970         * tests/test-fopen.c (fopen): Likewise.
41971         * tests/test-fprintf-posix.c (fprintf): Likewise.
41972         * tests/test-freopen.c (freopen): Likewise.
41973         * tests/test-frexp.c (frexp): Likewise.
41974         * tests/test-frexpl.c (frexpl): Likewise.
41975         * tests/test-fseek.c (fseek): Likewise.
41976         * tests/test-fseeko.c (fseeko): Likewise.
41977         * tests/test-fstatat.c (fstatat): Likewise.
41978         * tests/test-fsync.c (fsync): Likewise.
41979         * tests/test-ftell.c (ftell): Likewise.
41980         * tests/test-ftello.c (ftello): Likewise.
41981         * tests/test-futimens.c (futimens): Likewise.
41982         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41983         (gai_strerror): Likewise.
41984         * tests/test-getcwd.c (getcwd): Likewise.
41985         * tests/test-getdelim.c (getdelim): Likewise.
41986         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41987         * tests/test-getgroups.c (getgroups): Likewise.
41988         * tests/test-gethostname.c (gethostname): Likewise.
41989         * tests/test-getline.c (getline): Likewise.
41990         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41991         Likewise.
41992         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41993         * tests/test-glob.c (glob, globfree): Likewise.
41994         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41995         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41996         * tests/test-inet_pton.c (inet_pton): Likewise.
41997         * tests/test-isblank.c (isblank): Likewise.
41998         * tests/test-lchown.c (lchown): Likewise.
41999         * tests/test-ldexpl.c (ldexpl): Likewise.
42000         * tests/test-link.c (link): Likewise.
42001         * tests/test-linkat.c (linkat): Likewise.
42002         * tests/test-lseek.c (lseek): Likewise.
42003         * tests/test-lstat.c (lstat): Likewise.
42004         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42005         * tests/test-mbsinit.c (mbsinit): Likewise.
42006         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42007         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42008         * tests/test-memchr.c (memchr): Likewise.
42009         * tests/test-memcmp.c (memcmp): Likewise.
42010         * tests/test-memmem.c (memmem): Likewise.
42011         * tests/test-memrchr.c (memrchr): Likewise.
42012         * tests/test-mkdir.c (mkdir): Likewise.
42013         * tests/test-mkdirat.c (mkdirat): Likewise.
42014         * tests/test-mkfifo.c (mkfifo): Likewise.
42015         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42016         * tests/test-mknod.c (mknod): Likewise.
42017         * tests/test-nanosleep.c (nanosleep): Likewise.
42018         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42019         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42020         Likewise.
42021         * tests/test-open.c (open): Likewise.
42022         * tests/test-openat.c (openat): Likewise.
42023         * tests/test-perror.c (perror): Likewise.
42024         * tests/test-pipe2.c (pipe2): Likewise.
42025         * tests/test-poll.c (poll): Likewise.
42026         * tests/test-popen.c (popen, pclose): Likewise.
42027         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42028         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42029         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42030         (posix_spawn_file_actions_destroy)
42031         (posix_spawn_file_actions_addclose)
42032         (posix_spawn_file_actions_addopen)
42033         (posix_spawn_file_actions_adddup2): Likewise.
42034         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42035         * tests/test-pread.c (pread): Likewise.
42036         * tests/test-printf-posix.c (printf): Likewise.
42037         * tests/test-pty.c (openpty, forkpty): Likewise.
42038         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42039         (random_r): Likewise.
42040         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42041         * tests/test-readlink.c (readlink): Likewise.
42042         * tests/test-remove.c (remove): Likewise.
42043         * tests/test-rename.c (rename): Likewise.
42044         * tests/test-renameat.c (renameat): Likewise.
42045         * tests/test-rmdir.c (rmdir): Likewise.
42046         * tests/test-round1.c (round): Likewise.
42047         * tests/test-roundf1.c (roundf): Likewise.
42048         * tests/test-roundl.c (roundl): Likewise.
42049         * tests/test-setenv.c (setenv): Likewise.
42050         * tests/test-sigaction.c (sigaction): Likewise.
42051         * tests/test-sleep.c (sleep): Likewise.
42052         * tests/test-snprintf.c (snprintf): Likewise.
42053         * tests/test-sprintf-posix.c (sprintf): Likewise.
42054         * tests/test-stat.c (stat): Likewise.
42055         * tests/test-stpncpy.c (stpncpy): Likewise.
42056         * tests/test-strcasestr.c (strcasestr): Likewise.
42057         * tests/test-strchrnul.c (strchrnul): Likewise.
42058         * tests/test-strerror.c (strerror): Likewise.
42059         * tests/test-strsignal.c (strsignal): Likewise.
42060         * tests/test-strstr.c (strstr): Likewise.
42061         * tests/test-strtod.c (strtod): Likewise.
42062         * tests/test-strverscmp.c (strverscmp): Likewise.
42063         * tests/test-symlink.c (symlink): Likewise.
42064         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42065         * tests/test-times.c (times): Likewise.
42066         * tests/test-trunc1.c (trunc): Likewise.
42067         * tests/test-truncf1.c (truncf): Likewise.
42068         * tests/test-truncl.c (truncl): Likewise.
42069         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42070         Likewise.
42071         * tests/test-uname.c (uname): Likewise.
42072         * tests/test-unlink.c (unlink): Likewise.
42073         * tests/test-unlinkat.c (unlinkat): Likewise.
42074         * tests/test-unsetenv.c (unsetenv): Likewise.
42075         * tests/test-usleep.c (usleep): Likewise.
42076         * tests/test-utimensat.c (utimensat): Likewise.
42077         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42078         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42079         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42080         * tests/test-vprintf-posix.c (vprintf): Likewise.
42081         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42082         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42083         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42084         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42085         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42086         * tests/test-wcwidth.c (wcwidth): Likewise.
42087
42088         build: pull in conditional headers during GNULIB_POSIXCHECK
42089         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42090         definitions from any conditionally-included headers.
42091         * lib/stdlib.in.h (includes): Likewise.
42092         * lib/unistd.in.h (includes): Likewise.
42093
42094 2009-12-24  Bruno Haible  <bruno@clisp.org>
42095
42096         * tests/test-argv-iter.c: Include header file being tested immediately
42097         after config.h.
42098         * tests/test-base64.c: Likewise.
42099         * tests/test-flock.c: Likewise.
42100         * tests/test-fsync.c: Likewise.
42101         * tests/test-getdate.c: Likewise.
42102         * tests/test-getndelim2.c: Likewise.
42103         * tests/test-isfinite.c: Likewise.
42104         * tests/test-isinf.c: Likewise.
42105         * tests/test-strerror.c: Likewise.
42106         * tests/test-strsignal.c: Likewise.
42107
42108 2009-12-23  Eric Blake  <ebb9@byu.net>
42109
42110         unistd: work around cygwin bug
42111         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42112         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42113         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42114
42115 2009-12-23  Bruno Haible  <bruno@clisp.org>
42116
42117         localename: More tests.
42118         * tests/test-localename.c (SIZEOF): New macro.
42119         (categories): New variable.
42120         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42121         test_locale_name_default): Add test w.r.t. thread locale.
42122         (test_locale_name_thread): New function.
42123         (main): Invoke it.
42124
42125         localename: Make aware of thread locale.
42126         * lib/localename.h (gl_locale_name_thread): New declaration.
42127         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42128         behaviour with respect to thread locale.
42129         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42130         <langinfo.h>, glthread/lock.h.
42131         (SIZE_BITS): New macro.
42132         (string_hash): New function.
42133         (struct hash_node): New type.
42134         (HASH_TABLE_SIZE): New macro.
42135         (struniq_hash_table, struniq_lock): New variables.
42136         (struniq): New function.
42137         (gl_locale_name_thread): New function.
42138         (gl_locale_name): Invoke it.
42139         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42140         * modules/localename (Depends-on): Add lock.
42141         Reported by Mike Gran <spk121@yahoo.com>.
42142
42143 2009-12-23  Eric Blake  <ebb9@byu.net>
42144
42145         va-args: new module
42146         * modules/va-args: New file.
42147         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42148         * MODULES.html.sh (Core language properties): Mention it.
42149
42150         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42151         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42152         named alias for __attribute__((__unused__)).
42153         * lib/chown.c: Update client.
42154         * lib/fchmodat.c: Likewise.
42155         * lib/fts.c: Likewise.
42156         * lib/getdate.y: Likewise.
42157         * lib/getgroups.c: Likewise.
42158         * lib/getopt.c: Likewise.
42159         * lib/getugroups.c: Likewise.
42160         * lib/mkdir.c: Likewise.
42161         * lib/mkfifo.c: Likewise.
42162         * lib/mkfifoat.c: Likewise.
42163         * lib/mknod.c: Likewise.
42164         * lib/mknodat.c: Likewise.
42165         * lib/readlink.c: Likewise.
42166         * lib/se-context.in.h: Likewise.
42167         * lib/se-selinux.in.h: Likewise.
42168         * lib/sockets.c: Likewise.
42169         * lib/symlink.c: Likewise.
42170         * lib/symlinkat.c: Likewise.
42171         * lib/unicodeio.c: Likewise.
42172         * lib/unistr.h: Likewise.
42173         * tests/test-areadlink.c: Likewise.
42174         * tests/test-areadlinkat.c: Likewise.
42175         * tests/test-filenamecat.c: Likewise.
42176         * tests/test-fseeko.c: Likewise.
42177         * tests/test-ftello.c: Likewise.
42178         * tests/test-getdate.c: Likewise.
42179         * tests/test-getgroups.c: Likewise.
42180         * tests/test-gethostname.c: Likewise.
42181         * tests/test-quotearg.c: Likewise.
42182         * tests/test-version-etc.c: Likewise.
42183         * tests/test-xalloc-die.c: Likewise.
42184         * tests/test-xfprintf-posix.c: Likewise.
42185         * tests/test-xprintf-posix.c: Likewise.
42186         * tests/test-xvasprintf.c: Likewise.
42187
42188         tests: avoid compiler warnings
42189         * tests/test-fcntl.c (main): Delete unused parameters.
42190         * tests/test-freopen-safer.c (main): Likewise.
42191         * tests/test-xalloc-die.c (main): Mark unused parameters.
42192         * tests/test-fseeko.c (main): Likewise.
42193         * tests/test-ftello.c (main): Likewise.
42194         * tests/test-nanosleep.c (main): Avoid declaration warning.
42195         * tests/test-sleep.c (main): Likewise.
42196         * tests/test-unsetenv.c (main): Silence warning about string
42197         literal.
42198         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42199
42200 2009-12-23  Bruno Haible  <bruno@clisp.org>
42201
42202         * tests/test-localename.c (test_locale_name): New function, extracted
42203         from main. Also test mixed situations.
42204         (test_locale_name_posix, test_locale_name_environ,
42205         test_locale_name_default): New functions.
42206         (main): Invoke them all.
42207         * modules/localename-tests (configure.ac): Test for newlocale.
42208
42209 2009-12-23  Bruno Haible  <bruno@clisp.org>
42210
42211         unistd: Ensure getcwd gets declared before being overridden.
42212         * lib/unistd.in.h: Conditionally include <io.h>.
42213
42214 2009-12-22  Bruno Haible  <bruno@clisp.org>
42215
42216         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42217         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42218         (gl_WCHAR_H): Invoke it.
42219         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42220         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42221         Reported by Karl Berry <karl@freefriends.org>.
42222
42223 2009-12-22  Eric Blake  <ebb9@byu.net>
42224
42225         math, unistd: avoid redundant includes
42226         * lib/math.in.h (isnan): No need to re-include <math.h>.
42227         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42228
42229         getsubopt: work around cygwin bug
42230         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42231         avoid conflicting with system getsubopt.
42232         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42233         bug.
42234
42235         getopt: synchronize from glibc
42236         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42237         parameter order.  Adjust all callers.
42238         (_getopt_internal_r, main): Adjust quoting in error messages.
42239         Drop considerations for outdated POSIX 1003.2 error message.
42240         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42241         callers.
42242         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42243
42244         test-getopt: test stderr behavior
42245         * modules/getopt-posix-tests (Depends-on): Add dup2.
42246         * tests/test-getopt.c (ASSERT): Avoid stderr.
42247         (main): Move stderr to a temporary file.
42248         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42249         Instead, add parameter to inform caller if output occurred.
42250         (test_getopt): Adjust all existing tests to expect silence, and
42251         add new tests of leading ":".
42252         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42253         glibc shortcomings with leading "-:" or "+:" in optstring.
42254         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42255         Likewise.
42256         * doc/posix-functions/getopt.texi (getopt): Likewise.
42257
42258         test-getopt: enhance test
42259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42260         supports optind=0.
42261         * tests/test-getopt.c (OPTIND_MIN): Move...
42262         * tests/test-getopt.h (OPTIND_MIN): ...here.
42263         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42264         Require that optind=0 works, since modern BSD supports it in
42265         addition to optreset, and since coreutils expects it.
42266         (test_getopt_long_only): New test.
42267         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42268         glibc shortcomings with 'W;', and enforcement of optind=0.
42269         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42270         Likewise.
42271
42272 2009-12-21  Bruno Haible  <bruno@clisp.org>
42273
42274         localename: Improvements for MacOS X and Cygwin.
42275         * lib/localename.h (gl_locale_name_environ): New declaration.
42276         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42277         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42278         (gl_locale_name_posix): Invoke it.
42279         (gl_locale_name_default): Add comments. Use Windows native API also on
42280         Cygwin.
42281
42282 2009-12-21  Bruno Haible  <bruno@clisp.org>
42283
42284         Update list of Win32 locale ids.
42285         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42286         (LANG_SAMI): Renamed from LANG_SAAMI.
42287         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42288         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42289         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42290         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42291         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42292         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42293         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42294         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42295         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42296         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42297         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42298         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42299         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42300         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42301         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42302         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42303         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42304         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42305         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42306         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42307         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42308         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42309         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42310         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42311         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42312         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42313         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42314         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42315         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42316         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42317         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42318         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42319         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42320         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42321         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42322         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42323         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42324         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42325         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42326         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42327         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42328         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42329         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42330         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42331         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42332         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42333         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42334         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42335         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42336         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42337         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42338         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42339         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42340         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42341         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42342         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42343         Add more languages and countries for Sami, Sorbian. Add more countries
42344         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42345         for Pashto. Change country for Syriac, Tswana.
42346
42347 2009-12-21  Eric Blake  <ebb9@byu.net>
42348
42349         test-utimens: avoid spurious failure
42350         * tests/test-chown.h (nap): Factor...
42351         * tests/nap.h: ...into new file.
42352         * tests/test-lchown.h (nap): Avoid duplication.
42353         * tests/test-utimens-common.h (nap): Use shared implementation,
42354         necessary on file systems with 1-second resolution.
42355         * modules/chown-tests (Files): Include new file.
42356         * modules/fdutimensat-tests (Files): Likewise.
42357         * modules/futimens-tests (Files): Likewise.
42358         * modules/lchown-tests (Files): Likewise.
42359         * modules/openat-tests (Files): Likewise.
42360         * modules/utimens-tests (Files): Likewise.
42361         * modules/utimensat-tests (Files): Likewise.
42362
42363 2009-12-19  Eric Blake  <ebb9@byu.net>
42364
42365         futimens, utimensat: work around Linux bug
42366         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42367         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42368         * lib/utimensat.c (rpl_utimensat): Work around it.
42369         * lib/futimens.c (rpl_futimens): Adjust comment.
42370
42371         utimens: work around Linux ctime bug
42372         * lib/utimens.c (detect_ctime_bug): New helper function.
42373         (update_timespec): Differentiate between workaround needed for
42374         this bug vs. what is needed for systems that lack utimensat.
42375         (fdutimens, lutimens): Work around bug.
42376
42377         utimens: check for ctime update
42378         * tests/test-utimens-common.h (check_ctime): Define.
42379         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42380         * tests/test-futimens.h (test_futimens): Likewise.
42381         * tests/test-lutimens.h (test_lutimens): Likewise.
42382         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42383         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42384
42385 2009-12-19  Bruno Haible  <bruno@clisp.org>
42386
42387         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42388         * tests/test-dprintf-posix2.sh: New file.
42389         * tests/test-dprintf-posix2.c: New file.
42390         * modules/dprintf-posix-tests (Files): Add them.
42391         (configure.ac): Check for getrlimit and setrlimit.
42392         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42393
42394 2009-12-19  Bruno Haible  <bruno@clisp.org>
42395
42396         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42397         * tests/test-fprintf-posix3.sh: New file.
42398         * tests/test-fprintf-posix3.c: New file.
42399         * modules/fprintf-posix-tests (Files): Add them.
42400         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42401
42402 2009-12-19  Eric Blake  <ebb9@byu.net>
42403
42404         dirfd: fix prototype
42405         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42406         * lib/dirfd.c (dirfd): Likewise.
42407
42408         canonicalize: reduce memory usage
42409         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42410         allocation to size.
42411         Reported by Solar Designer <solar@openwall.com>.
42412
42413 2009-12-19  Bruno Haible  <bruno@clisp.org>
42414
42415         New module attribute 'Applicability'.
42416         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42417         * gnulib-tool: New option --extract-applicability.
42418         (func_usage): Document it.
42419         (sed_extract_prog): Recognize it.
42420         (func_get_applicability): New function.
42421         (func_import): Generalize handling of 'link-warning' module.
42422         * modules/link-warning (Applicability): New section.
42423         * modules/arg-nonnull (Applicability): New section.
42424         Repoted by Simon Josefsson <simon@josefsson.org>.
42425
42426 2009-12-19  Bruno Haible  <bruno@clisp.org>
42427
42428         fflush: tweak
42429         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42430         * lib/fseeko.c (rpl_fseeko): Likewise.
42431
42432 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42433
42434         * lib/gl_list.h: Fix typo in comment.
42435
42436 2009-12-16  Eric Blake  <ebb9@byu.net>
42437
42438         fcntl: use to simplify other modules
42439         * modules/cloexec (Depends-on): Add fcntl.
42440         * modules/fchdir (Depends-on): Likewise.
42441         * modules/fd-safer-flag (Depends-on): Likewise.
42442         * modules/unistd-safer (Depends-on): Likewise.
42443         * modules/dup3 (configure.ac): Set module indicator.
42444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42445         missing.
42446         * lib/fchdir.c (_gl_register_dup): Fix comment.
42447         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42448         * lib/dup-safer.c (dup_safer): Likewise.
42449         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42450         * lib/dup3.c (dup3): Likewise.
42451         * tests/test-fchdir.c (main): Enhance test.
42452         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42453
42454         fcntl: port portions of fcntl to mingw
42455         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42456         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42457         replacement for mingw.
42458         * modules/fcntl (Description): Update.
42459         (Depends-on): Add dup2.
42460         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42461         * modules/fcntl-h (Makefile.am): Substitute it.
42462         * lib/fcntl.in.h (fcntl): Update declaration.
42463         (F_DUPFD, F_GETFD): New macros, when needed.
42464         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42465         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42466         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42467         we now guarantee.
42468
42469         fcntl: work around cygwin bug in F_DUPFD
42470         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42471         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42472         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42473         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42474         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42475
42476         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42477         * modules/fcntl (Files): List new files.
42478         (configure.ac): Run a test.
42479         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42480         * lib/fcntl.c (rpl_fcntl): Likewise.
42481         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42482         (gl_FCNTL_H): Always replace fcntl.h.
42483         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42484         * lib/fcntl.in.h (fcntl): Declare replacement.
42485         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42486         needed, plus a witness.
42487         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42488         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42489         * tests/test-fcntl.c: New file.
42490         * modules/fcntl-tests: Likewise.
42491
42492         binary-io: avoid potential compilation warning
42493         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42494         directives.
42495
42496         fflush: avoid compilation error on NetBSD
42497         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42498         between off_t and fpos_t, since the latter is sometimes a struct.
42499         * lib/fseeko.c (rpl_fseeko): Likewise.
42500         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42501
42502 2009-12-15  Eric Blake  <ebb9@byu.net>
42503
42504         fcntl-h, stdio, sys_ioctl: fix declarations
42505         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42506         function must not take arguments.
42507         * lib/sys_ioctl.in.h (ioctl): Likewise.
42508         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42509         (open): Add a link warning.
42510
42511 2009-12-15  Jim Meyering  <meyering@redhat.com>
42512
42513         areadlink, areadlink-with-size: relax license to LGPLv2+
42514         * modules/areadlink (License): Relax to LGPLv2+.
42515         * modules/areadlink-with-size (License): Likewise.
42516
42517 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42518             Bruno Haible  <bruno@clisp.org>
42519
42520         *printf: Fix memory leak.
42521         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42522         * lib/vfprintf.c (vfprintf): Likewise.
42523         * lib/dprintf.c (dprintf): Likewise.
42524         * lib/vdprintf.c (vdprintf): Likewise.
42525
42526 2009-12-14  Eric Blake  <ebb9@byu.net>
42527
42528         accept4: adjust module dependencies
42529         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42530
42531         utimens: one more try at avoiding compiler warning
42532         * lib/utimens.c (lutimens): Lower scope of result.
42533
42534 2009-12-13  Bruno Haible  <bruno@clisp.org>
42535
42536         Move the malloc checking from module 'list' to new module 'xlist'.
42537         * modules/xlist: New file.
42538         * lib/gl_xlist.h: New file.
42539         * lib/gl_xlist.c: New file.
42540         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42541         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42542         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42543         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42544         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42545         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42546         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42547         gl_sortedlist_nx_add): New declarations.
42548         (struct gl_list_implementation): Rename and change methods accordingly.
42549         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42550         (gl_list_nx_create): Renamed from gl_list_create.
42551         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42552         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42553         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42554         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42555         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42556         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42557         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42558         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42559         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42560         gl_list_create_empty.
42561         (gl_list_nx_create): Renamed from gl_list_create.
42562         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42563         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42564         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42565         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42566         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42567         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42568         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42569         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42570         * lib/gl_array_list.c: Don't include xalloc.h.
42571         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42572         NULL upon out-of-memory.
42573         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42574         out-of-memory.
42575         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42576         Change return type to 'int'.
42577         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42578         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42579         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42580         upon out-of-memory.
42581         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42582         upon out-of-memory.
42583         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42584         upon out-of-memory.
42585         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42586         upon out-of-memory.
42587         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42588         out-of-memory.
42589         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42590         Update.
42591         (gl_array_list_implementation): Update.
42592         * lib/gl_carray_list.c: Don't include xalloc.h.
42593         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42594         Return NULL upon out-of-memory.
42595         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42596         out-of-memory.
42597         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42598         Change return type to 'int'.
42599         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42600         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42601         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42602         upon out-of-memory.
42603         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42604         upon out-of-memory.
42605         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42606         out-of-memory.
42607         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42608         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42609         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42610         Update.
42611         (gl_carray_list_implementation): Update.
42612         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42613         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42614         gl_linked_create_empty. Return NULL upon out-of-memory.
42615         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42616         out-of-memory.
42617         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42618         Change return type to 'int'. Return -1 upon out-of-memory.
42619         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42620         out-of-memory.
42621         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42622         upon out-of-memory.
42623         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42624         upon out-of-memory.
42625         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42626         NULL upon out-of-memory.
42627         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42628         upon out-of-memory.
42629         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42630         out-of-memory.
42631         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42632         Update.
42633         * lib/gl_linked_list.c: Don't include xalloc.h.
42634         (gl_linked_list_implementation): Update.
42635         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42636         (add_to_bucket): Change return type to 'int'.
42637         (gl_linkedhash_list_implementation): Update.
42638         * lib/gl_anytree_list1.h (free_subtree): New function.
42639         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42640         gl_tree_create_empty. Return NULL upon out-of-memory.
42641         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42642         Change return type to 'int'. Return -1 upon out-of-memory.
42643         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42644         out-of-memory.
42645         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42646         (gl_tree_remove_node): New function, moved here from
42647         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42648         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42649         Update.
42650         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42651         malloc, not xmalloc. Return NULL upon out-of-memory.
42652         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42653         out-of-memory.
42654         (gl_tree_remove_node_from_tree): New function, extracted from
42655         gl_tree_remove_node.
42656         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42657         upon out-of-memory.
42658         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42659         out-of-memory.
42660         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42661         upon out-of-memory.
42662         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42663         upon out-of-memory.
42664         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42665         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42666         not xmalloc. Return NULL upon out-of-memory.
42667         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42668         out-of-memory.
42669         (gl_tree_remove_node_from_tree): New function, extracted from
42670         gl_tree_remove_node.
42671         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42672         upon out-of-memory.
42673         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42674         out-of-memory.
42675         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42676         upon out-of-memory.
42677         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42678         upon out-of-memory.
42679         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42680         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42681         gl_anytree_list1.h before gl_anyavltree_list2.h.
42682         (gl_avltree_list_implementation): Update.
42683         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42684         gl_anytree_list1.h before gl_anyavltree_list2.h.
42685         (gl_rbtree_list_implementation): Update.
42686         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42687         Change return type to 'int'. Return -1 upon out-of-memory. Use
42688         __builtin_expect.
42689         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42690         (gl_avltreehash_list_implementation): Update.
42691         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42692         (gl_rbtreehash_list_implementation): Update.
42693         * modules/array-list (Depends-on): Remove xalloc.
42694         * modules/carray-list (Depends-on): Likewise.
42695         * modules/linked-list (Depends-on): Likewise.
42696         * modules/linkedhash-list (Depends-on): Likewise.
42697         * modules/avltree-list (Depends-on): Likewise.
42698         * modules/rbtree-list (Depends-on): Likewise.
42699         * modules/avltreehash-list (Depends-on): Likewise.
42700         * modules/rbtreehash-list (Depends-on): Likewise.
42701
42702         * modules/xsublist: New file.
42703         * lib/gl_xsublist.h: New file.
42704         * lib/gl_xsublist.c: New file.
42705         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42706         (gl_sublist_nx_create): New declaration.
42707         * lib/gl_sublist.c: Don't include xalloc.h.
42708         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42709         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42710         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42711         Change return type to 'int'. Return -1 upon out-of-memory.
42712         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42713         upon out-of-memory.
42714         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42715         NULL upon out-of-memory.
42716         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42717         upon out-of-memory.
42718         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42719         NULL upon out-of-memory.
42720         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42721         NULL upon out-of-memory.
42722         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42723         upon out-of-memory.
42724         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42725         (gl_sublist_list_implementation): Update.
42726         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42727         upon out-of-memory.
42728         * modules/sublist (Depends-on): Remove xalloc.
42729
42730         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42731         * tests/test-carray_list.c: Likewise.
42732         * tests/test-linked_list.c: Likewise.
42733         * tests/test-linkedhash_list.c: Likewise.
42734         * tests/test-avltree_list.c: Likewise.
42735         * tests/test-rbtree_list.c: Likewise.
42736         * tests/test-avltreehash_list.c: Likewise.
42737         * tests/test-rbtreehash_list.c: Likewise.
42738         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42739         * modules/carray-list-tests (Makefile.am): Likewise.
42740         * modules/linked-list-tests (Makefile.am): Likewise.
42741         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42742         * modules/avltree-list-tests (Makefile.am): Likewise.
42743         * modules/rbtree-list-tests (Makefile.am): Likewise.
42744         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42745         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42746
42747         * NEWS: Mention the changes.
42748
42749         * lib/clean-temp.c: Include gl_xlist.h.
42750         * modules/clean-temp (Depends-on): Add xlist.
42751
42752         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42753         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42754
42755         * tests/test-array_oset.c: Include gl_xlist.h.
42756         * modules/array-oset-tests (Depends-on): Add xlist.
42757
42758         Reported by José E. Marchesi <jemarch@gnu.org>.
42759
42760 2009-12-13  Bruno Haible  <bruno@clisp.org>
42761
42762         Move the malloc checking from module 'oset' to new module 'xoset'.
42763         * modules/xoset: New file.
42764         * lib/gl_xoset.h: New file.
42765         * lib/gl_xoset.c: New file.
42766         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42767         declarations.
42768         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42769         (struct gl_oset_implementation): Rename and change methods accordingly.
42770         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42771         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42772         'int'. Mark as __warn_unused_result__.
42773         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42774         gl_oset_create_empty.
42775         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42776         'int'.
42777         * lib/gl_array_oset.c: Don't include xalloc.h.
42778         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42779         malloc, not xmalloc.
42780         (grow): Change return type to 'int'. Don't call xalloc_die.
42781         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42782         to 'int'.
42783         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42784         'int'.
42785         (gl_array_oset_implementation): Update.
42786         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42787         gl_tree_create_empty.
42788         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42789         'int'.
42790         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42791         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42792         xmalloc.
42793         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42794         not xmalloc.
42795         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42796         xmalloc.
42797         (gl_avltree_oset_implementation): Update.
42798         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42799         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42800         xmalloc.
42801         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42802         not xmalloc.
42803         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42804         xmalloc.
42805         (gl_rbtree_oset_implementation): Update.
42806         * modules/array-oset (Depends-on): Remove xalloc.
42807         * modules/avltree-oset (Depends-on): Likewise.
42808         * modules/rbtree-oset (Depends-on): Likewise.
42809         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42810         * tests/test-avltree_oset.c: Likewise.
42811         * tests/test-rbtree_oset.c: Likewise.
42812         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42813         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42814         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42815         * NEWS: Mention the change.
42816
42817 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42818
42819         maint.mk: allow a project to override release-prep commands
42820         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42821         commands into a new rule.
42822         (release-prep): New rule.
42823         (release-prep-hook): New overridable variable.
42824
42825 2009-12-13  Bruno Haible  <bruno@clisp.org>
42826
42827         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42828
42829 2009-12-13  Jim Meyering  <meyering@redhat.com>
42830
42831         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42832         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42833
42834 2009-12-12  Bruno Haible  <bruno@clisp.org>
42835
42836         duplocale: Tweak.
42837         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42838
42839 2009-12-12  Karl Berry  <karl@gnu.org>
42840
42841         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42842
42843 2009-12-12  Bruno Haible  <bruno@clisp.org>
42844
42845         * m4/po.m4: Undo incorrect untabification.
42846
42847 2009-12-12  Bruno Haible  <bruno@clisp.org>
42848
42849         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42850         * modules/c-strtod (Depends-on): Add locale.
42851         * modules/c-strtold (Depends-on): Likewise.
42852
42853 2009-12-12  Bruno Haible  <bruno@clisp.org>
42854
42855         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42856
42857 2009-12-11  Eric Blake  <ebb9@byu.net>
42858
42859         setenv: relax requirement in light of POSIX ruling
42860         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42861         not NULL.
42862         * tests/test-setenv.c (main): Relax test.
42863         * tests/test-unsetenv.c (main): Likewise.
42864         * doc/posix-functions/setenv.texi (setenv): Document this.
42865         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42866
42867 2009-12-11  Bruno Haible  <bruno@clisp.org>
42868
42869         New module 'fd-safer-flag'.
42870         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42871         * lib/dup-safer.c (dup_safer_flag): Remove function.
42872         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42873         * lib/fd-safer.c (fd_safer_flag): Remove function.
42874         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42875         * modules/cloexec (configure.ac): Drop indicator macro.
42876         * modules/fd-safer-flag: New file.
42877         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42878         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42879         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42880
42881 2009-12-11  Bruno Haible  <bruno@clisp.org>
42882
42883         Tests for module 'nl_langinfo'.
42884         * modules/nl_langinfo-tests: New file.
42885         * tests/test-nl_langinfo.sh: New file.
42886         * tests/test-nl_langinfo.c: New file.
42887
42888         New module 'nl_langinfo'.
42889         * lib/nl_langinfo.c: New file.
42890         * m4/nl_langinfo.m4: New file.
42891         * modules/nl_langinfo: New file.
42892         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42893
42894 2009-12-11  Bruno Haible  <bruno@clisp.org>
42895
42896         Tests for module 'langinfo'.
42897         * modules/langinfo-tests: New file.
42898         * tests/test-langinfo.c: New file.
42899
42900         New module 'langinfo'.
42901         * lib/langinfo.in.h: New file.
42902         * m4/langinfo_h.m4: New file.
42903         * modules/langinfo: New file.
42904         * doc/posix-headers/langinfo.texi: Mention the new module.
42905
42906 2009-12-11  Bruno Haible  <bruno@clisp.org>
42907
42908         * lib/config.charset: Untabify.
42909
42910 2009-12-11  Bruno Haible  <bruno@clisp.org>
42911
42912         * modules/unistd-safer (configure.ac): Drop indicator macro.
42913
42914 2009-12-11  Bruno Haible  <bruno@clisp.org>
42915
42916         Move pipe2-safer code to its own file.
42917         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42918         * lib/pipe-safer.c (pipe2_safer): Remove function.
42919         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42920         (Makefile.am): Add it to lib_SOURCES.
42921
42922 2009-12-10  Bruno Haible  <bruno@clisp.org>
42923
42924         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42925
42926 2009-12-10  Bruno Haible  <bruno@clisp.org>
42927
42928         Declare which arguments expect non-NULL values, for GCC and clang.
42929         * build-aux/arg-nonnull.h: New file.
42930         * modules/arg-nonnull: New file.
42931         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42932         (inet_ntop, inet_pton): Use it.
42933         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42934         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42935         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42936         (open, openat): Use it.
42937         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42938         (fnmatch): Use it.
42939         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42940         (getopt, getopt_long, getopt_long_only): Use it.
42941         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42942         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42943         Use it.
42944         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42945         (iconv_open): Use it.
42946         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42947         (strtoimax, strtoumax): Use it.
42948         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42949         (duplocale): Use it.
42950         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42951         (frexp, frexpl): Use it.
42952         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42953         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42954         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42955         (tsearch, tfind, tdelete, twalk): Use it.
42956         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42957         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42958         sigpending): Use it.
42959         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42960         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42961         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42962         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42963         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42964         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42965         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42966         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42967         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42968         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42969         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42970         Use it.
42971         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42972         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42973         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42974         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42975         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42976         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42977         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42978         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42979         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42980         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42981         strtoull, unsetenv): Use it.
42982         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42983         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42984         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42985         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42986         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42987         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42988         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42989         (strcasecmp, strncasecmp): Use it.
42990         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42991         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42992         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42993         rpl_setsockopt): Use it.
42994         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42995         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42996         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42997         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42998         (gettimeofday): Use it.
42999         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43000         (times): Use it.
43001         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43002         (uname): Use it.
43003         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43004         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43005         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43006         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43007         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43008         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43009         unlinkat, write): Use it.
43010         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43011         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43012         * lib/argv-iter.h: Include arg-nonnull.h.
43013         (_ATTRIBUTE_NONNULL_): Remove macro.
43014         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43015         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43016         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43017         optimization.
43018         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43019         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43020         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43021         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43022         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43023         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43024         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43025         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43026         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43027         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43028         * modules/dirent (Depends-on): Add arg-nonnull.
43029         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43030         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43031         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43032         * modules/fnmatch (Depends-on): Add arg-nonnull.
43033         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43034         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43035         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43036         * modules/glob (Depends-on): Add arg-nonnull.
43037         (Makefile.am): Insert arg-nonnull.h into glob.h.
43038         * modules/iconv_open (Depends-on): Add arg-nonnull.
43039         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43040         * modules/inttypes (Depends-on): Add arg-nonnull.
43041         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43042         * modules/locale (Depends-on): Add arg-nonnull.
43043         (Makefile.am): Insert arg-nonnull.h into locale.h.
43044         * modules/math (Depends-on): Add arg-nonnull.
43045         (Makefile.am): Insert arg-nonnull.h into math.h.
43046         * modules/netdb (Depends-on): Add arg-nonnull.
43047         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43048         * modules/search (Depends-on): Add arg-nonnull.
43049         (Makefile.am): Insert arg-nonnull.h into search.h.
43050         * modules/signal (Depends-on): Add arg-nonnull.
43051         (Makefile.am): Insert arg-nonnull.h into signal.h.
43052         * modules/spawn (Depends-on): Add arg-nonnull.
43053         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43054         * modules/stdio (Depends-on): Add arg-nonnull.
43055         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43056         * modules/stdlib (Depends-on): Add arg-nonnull.
43057         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43058         * modules/string (Depends-on): Add arg-nonnull.
43059         (Makefile.am): Insert arg-nonnull.h into string.h.
43060         * modules/strings (Depends-on): Add arg-nonnull.
43061         (Makefile.am): Insert arg-nonnull.h into strings.h.
43062         * modules/sys_socket (Depends-on): Add arg-nonnull.
43063         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43064         * modules/sys_stat (Depends-on): Add arg-nonnull.
43065         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43066         * modules/sys_time (Depends-on): Add arg-nonnull.
43067         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43068         * modules/sys_times (Depends-on): Add arg-nonnull.
43069         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43070         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43071         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43072         * modules/time (Depends-on): Add arg-nonnull.
43073         (Makefile.am): Insert arg-nonnull.h into time.h.
43074         * modules/unistd (Depends-on): Add arg-nonnull.
43075         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43076         * modules/wchar (Depends-on): Add arg-nonnull.
43077         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43078         * modules/argv-iter (Depends-on): Add arg-nonnull.
43079         * tests/test-canonicalize.c (null_ptr): New function.
43080         (main): Use it.
43081         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43082         (main): Use it.
43083         * tests/test-memmem.c (null_ptr): New function.
43084         (main): Use it.
43085         Reported by Jim Meyering.
43086
43087 2009-12-10  Bruno Haible  <bruno@clisp.org>
43088
43089         Use spaces for indentation, not tabs.
43090         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43091         * m4/*.m4: Untabify.
43092         * build-aux/*.h: Untabify.
43093         * tests/**/*.[hc]: Untabify.
43094         * README: New section "Indent with spaces, not TABs", based on
43095         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43096         * NEWS: Mention the change.
43097
43098 2009-12-10  Bruno Haible  <bruno@clisp.org>
43099
43100         pty test: Fix link error.
43101         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43102         test_pty_LDADD.
43103
43104 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43105
43106         * modules/pty: New file.
43107         * modules/pty-tests: New file.
43108         * m4/pty.m4: New file.
43109         * tests/test-pty.c: New file.
43110         * doc/glibc-headers/pty.texi: Modified.
43111         * doc/glibc-functions/forkpty.texi: Modified.
43112         * doc/glibc-functions/openpty.texi: Modified.
43113
43114 2009-12-10  Bruno Haible  <bruno@clisp.org>
43115
43116         Avoid syntax error in C++ mode.
43117         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43118
43119 2009-12-10  Bruno Haible  <bruno@clisp.org>
43120
43121         Use sed with option -e.
43122         * gnulib-tool (func_version, func_emit_copyright_notice,
43123         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43124         option -e to sed.
43125         * modules/link-warning (Makefile.am): Likewise.
43126
43127 2009-12-10  Jim Meyering  <meyering@redhat.com>
43128
43129         mgetgroups: do not write bytes beyond end of malloc'd buffer
43130         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43131         username, we call getgroups with a one-element-shorter buffer,
43132         but still told it the length was original, max_n_groups.
43133
43134 2009-12-09  Eric Blake  <ebb9@byu.net>
43135
43136         cloexec: relax license
43137         * modules/cloexec (Maintainer): Add myself.
43138         (License): Use LGPL, not GPL.
43139
43140         link-warning: optimize generation
43141         * modules/link-warning (Makefile.am): Reduce process usage.
43142
43143 2009-12-09  Bruno Haible  <bruno@clisp.org>
43144
43145         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43146         workaround was added on 2009-11-17.
43147
43148 2009-12-09  Jim Meyering  <meyering@redhat.com>
43149             Bruno Haible  <bruno@clisp.org>
43150
43151         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43152         * modules/link-warning (Makefile.am): Make the comment-removing sed
43153         command more robust in the face of bootstrap-prepended comment lines.
43154
43155 2009-12-09  Bruno Haible  <bruno@clisp.org>
43156
43157         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43158         most one group.
43159
43160 2009-12-09  Simon Josefsson <simon@josefsson.org>
43161             Bruno Haible  <bruno@clisp.org>
43162
43163         * build-aux/link-warning.h: Add copyright notice.
43164         * modules/link-warning (Makefile.am): Generate link-warning.h from
43165         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43166         * NEWS: Mention change in link-warning module.
43167         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43168         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43169         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43170         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43171         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43172         * modules/math (Makefile.am): Add dependency to math.h.
43173         * modules/search (Makefile.am): Add dependency to search.h.
43174         * modules/signal (Makefile.am): Add dependency to signal.h.
43175         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43176         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43177         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43178         * modules/string (Makefile.am): Add dependency to string.h.
43179         * modules/strings (Makefile.am): Add dependency to strings.h.
43180         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43181         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43182         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43183         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43184         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43185         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43186         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43187         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43188         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43189
43190 2009-12-09  Bruno Haible  <bruno@clisp.org>
43191
43192         fchdir: Optimize away rpl_fstat when possible.
43193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43194         REPLACE_OPEN_DIRECTORY.
43195         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43196
43197 2009-12-09  Bruno Haible  <bruno@clisp.org>
43198
43199         * lib/fchdir.c: Update comment.
43200
43201 2009-12-09  Bruno Haible  <bruno@clisp.org>
43202
43203         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43204
43205 2009-12-08  Eric Blake  <ebb9@byu.net>
43206
43207         fchdir: avoid memory leak on re-registration.
43208         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43209
43210 2009-12-08  Jim Meyering  <meyering@redhat.com>
43211
43212         init.sh: avoid Solaris 10 /bin/sh portability problem
43213         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43214         sourced script:
43215           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43216           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43217           bar
43218         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43219         and two tests used that idiom.
43220         * tests/init.sh: Update suggested usage comments.
43221         (path_prepend_): New function, to be used in place
43222         of the --src-path=DIR option.
43223         (setup_): Move PATH-prepending code into path_prepend_.
43224         * tests/test-pread.sh: Adapt to new usage.
43225         * tests/test-xalloc-die.sh: Likewise.
43226
43227 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43228
43229         * doc/gnulib.texi (Glibc pty.h): Add.
43230         * doc/glibc-functions/forkpty.texi: Add.
43231         * doc/glibc-functions/openpty.texi: Add.
43232         Suggested by Bruno Haible.
43233
43234 2009-12-08  Eric Blake  <ebb9@byu.net>
43235
43236         fchdir: fix logic bugs
43237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43238         * tests/test-fchdir.c (main): Enhance test.
43239         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43240         is in use.
43241
43242         dup2: fix logic bugs
43243         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43244         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43245         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43246         exists.
43247         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43248
43249 2009-12-07  Eric Blake  <ebb9@byu.net>
43250
43251         unlink: fix m4 detection
43252         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43253
43254         unistd-safer: add unit test
43255         * modules/unistd-safer-tests: New file.
43256         * tests/test-dup-safer.c: Likewise.
43257         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43258         * tests/test-dup2.c (setmode): Likewise.
43259         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43260
43261         cloexec: preserve text vs. binary across dup_cloexec
43262         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43263         mode.
43264         * modules/dup2-tests (Depends-on): Add binary-io.
43265         * modules/cloexec-tests (Depends-on): Likewise.
43266         * tests/test-dup2.c (setmode, is_mode): New helpers.
43267         (main): Add tests that translation mode is preserved.
43268         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43269         Reported by Bruno Haible.
43270
43271         mgetgroups: reduce duplicate listings
43272         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43273         resulting array.
43274         * tests/test-chown.h (test_chown): Simplify client.
43275         * tests/test-lchown.h (test_lchown): Likewise.
43276
43277 2009-12-06  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43280         value.
43281
43282 2009-12-06  Bruno Haible  <bruno@clisp.org>
43283
43284         * lib/progname.c: Include stdio.h, stdlib.h.
43285         (set_program_name): Reject a NULL argument.
43286
43287 2009-12-05  Eric Blake  <ebb9@byu.net>
43288
43289         pipe2-safer: new module
43290         * modules/pipe2-safer: New file.
43291         * lib/unistd-safer.h (pipe2_safer): New prototype.
43292         * lib/unistd--.h (pipe2): New wrapper.
43293         * lib/pipe-safer.c (pipe2_safer): New function.
43294         * modules/pipe (Depends-on): Add pipe2-safer.
43295         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43296
43297         stdlib-safer: preserve cloexec flag for mkostemp[s]
43298         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43299         fd_safer_flag.
43300
43301         unistd-safer: allow preservation of cloexec status via flag
43302         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43303         prototypes.
43304         * lib/dup-safer.c (dup_safer_flag): New function.
43305         * lib/fd-safer.c (fd_safer_flag): Likewise.
43306         * modules/cloexec (configure.ac): Set witness.
43307
43308         test-dup2: enhance test
43309         * modules/dup2-tests (Depends-on): Add cloexec.
43310         * tests/test-dup2.c (main): Enhance test.
43311
43312         cloexec: add dup_cloexec
43313         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43314         header and comments.
43315         * lib/cloexec.c (set_cloexec_flag): Add comments.
43316         (dup_cloexec): New function, with mingw implementation borrowed
43317         from...
43318         * lib/w32spawn.h (dup_noinherit): ...here.
43319         * modules/execute (Depends-on): Add cloexec.
43320         * modules/pipe (Depends-on): Likewise.
43321         * modules/cloexec (Depends-on): Add dup2.
43322         * modules/cloexec-tests (Files): New file.
43323         * tests/test-cloexec.c: Likewise.
43324
43325         test-xalloc-die: fix test for mingw
43326         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43327         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43328         directory and .exe suffix off argv[0] output.
43329
43330         test-fseeko: fix test for mingw
43331         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43332         than undefining fseek, so test will pass on mingw.
43333
43334 2009-12-05  Bruno Haible  <bruno@clisp.org>
43335
43336         * lib/progname.h (set_program_name): Clarify specification.
43337         * lib/progname.c (set_program_name): Likewise.
43338         Reported by Jim Meyering.
43339
43340 2009-12-05  Jim Meyering  <meyering@redhat.com>
43341
43342         maint.mk: backslash-escape parens in default regexp
43343         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43344         backslash-escape the literal parentheses.
43345
43346         maint.mk: news-date-check: use grep -E
43347         * top/maint.mk (today): Define a Make variable, not a...
43348         (news-date-check): ...shell variable.
43349         (news-date-regexp): Use the Make variable.
43350         Use grep's -E option.  Change the failing diagnostic to mention
43351         the variable, $(news-date-regexp).
43352
43353 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43354
43355         maintainer-makefile: allow customization of NEWS entry format
43356         * top/maint.mk (news-date-regexp): New overridable variable.
43357         (news-date-check): Use it.
43358
43359 2009-12-04  Eric Blake  <ebb9@byu.net>
43360
43361         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43362         * lib/mgetgroups.h (xgetgroups): New prototype.
43363         * lib/mgetgroups.c (xgetgroups): New wrapper.
43364         (mgetgroups): Handle ENOSYS.
43365         * modules/mgetgroups (Depends-on): Add realloc.
43366         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43367
43368         mgetgroups: avoid argument promotion issues with -1
43369         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43370         for invalid gid_t.
43371         * tests/test-chown.h (getegid, test_chown): Likewise.
43372         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43373
43374 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43375
43376         exclude: Fix header file problems.
43377         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43378
43379 2009-12-01  Jim Meyering  <meyering@redhat.com>
43380
43381         fts: fts_open: do not let an empty string cause immediate failure
43382         This is required in support of GNU rm, for which the command
43383         "rm A '' B" must process and remove both A and B, in spite of
43384         the empty string argument.
43385         * lib/fts.c (fts_open): Do not let the presence of an empty string
43386         cause fts_open to fail immediately.  Most fts-using tools must be
43387         able to process all arguments, in order, and can be expected to
43388         diagnose such arguments themselves.
43389
43390 2009-11-30  Eric Blake  <ebb9@byu.net>
43391
43392         utimens: fix compilation error
43393         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43394         Declare variable at right scope.
43395
43396 2009-11-29  Jim Meyering  <meyering@redhat.com>
43397
43398         bootstrap: handle perl-5.11's changed --version output
43399         * build-aux/bootstrap (get_version): Handle perl separately,
43400         since perl-5.11's --version output is different.
43401
43402 2009-11-28  Jim Meyering  <meyering@redhat.com>
43403
43404         userspec: depend on the inttostr module, too
43405         * modules/userspec (Depends-on): Add inttostr.
43406
43407         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43408         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43409         number of MAXUID when it evaluates to (uid_t) -1.
43410         Likewise for group ID.  Reported by Matt McCutchen in
43411         <http://savannah.gnu.org/bugs/?28113>
43412
43413         userspec: reformat to use spaces, not TABs
43414         * lib/userspec.c: Expand TABs to spaces.
43415         Add Emacs' "indent-tabs-mode: nil" hint.
43416
43417 2009-11-27  Eric Blake  <ebb9@byu.net>
43418
43419         getopt-gnu: flush out another BSD bug
43420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43421         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43422         flush out BSD bug.
43423         * tests/test-getopt.h (test_getopt): End lists with NULL.
43424         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43425         (test_getopt_long_posix): Enhance test.
43426         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43427         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43428         getopt-gnu.
43429         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43430         Likewise.
43431
43432 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43433
43434         * modules/idpriv-droptemp-tests (Notice): Fix text.
43435
43436 2009-11-27  Jim Meyering  <meyering@redhat.com>
43437
43438         test-xalloc-die: avoid spurious failure due to libtool argv difference
43439         In a libtool-enabled project, this test would fail due to a difference
43440         in the emitted program name, e.g.,
43441         -test-xalloc-die: memory exhausted
43442         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43443         Use program to avoid that.
43444         * modules/xalloc-die-tests (Depends-on): Add progname.
43445         * tests/test-xalloc-die.c: Include progname.h".
43446         (program_name): Remove decl.
43447         (main): Call set_program_name.
43448         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43449
43450 2009-11-26  Richard Jones  <rjones@redhat.com>
43451
43452         w32sock: leave win32 error in place.
43453         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43454
43455 2009-11-26  Eric Blake  <ebb9@byu.net>
43456
43457         init.sh: suggest to use skip_ and fail_ functions in comments
43458         * tests/init.sh: Add a sentence.
43459
43460 2009-11-25  Bruno Haible  <bruno@clisp.org>
43461
43462         init.sh: add documentation in comments
43463         * tests/init.sh: Add some developer and user documentation.
43464
43465 2009-11-26  Jim Meyering  <meyering@redhat.com>
43466
43467         init.sh: accommodate even those who specify bogus srcdir manually
43468         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43469         configure-time tests to be sanitized, so that there is no need to
43470         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43471         (with no double quotes) suffices.  However, since tests may be
43472         invoked manually, and since you may explicitly set srcdir to the
43473         name of a directory containing spaces, do quote its uses here.
43474         * tests/test-pread.sh: Likewise.
43475         Suggested by Bruno Haible.
43476
43477         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43478         * tests/test-pread.sh: Write no data into the pipe, because
43479         test-pread actually reads none.  This avoids a diagnostic,
43480         "bash: echo: write error: Broken pipe", that arises in the unusual
43481         event something is ignoring SIGPIPE, and might be interpreted
43482         as some sort of failure.  Reported by Bruno Haible.
43483
43484 2009-11-25  Jim Meyering  <meyering@redhat.com>
43485
43486         test-pread: cover failure with ESPIPE and EINVAL
43487         * tests/test-pread.c (main): Test for failure, too.
43488         * tests/test-pread.sh: Invoke with stdin on a pipe.
43489         Suggested by Eric Blake.
43490
43491         pread: improvement and fix
43492         * modules/pread (Depends-on): Depend on lseek, for portability to
43493         e.g., mingw.  Suggested by Eric Blake.
43494         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43495
43496         unistd.in.h: correct declaration of pread
43497         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43498         Reported by Richard W.M. Jones.
43499
43500         test-pread.sh: distribute the test script
43501         * modules/pread-tests (Files): Include test-pread.sh.
43502
43503         test-pread.sh: clean up
43504         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43505         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43506         That is unnecessary, since it's always ".".
43507         Suggestion from Eric Blake.
43508
43509         test-pread.sh: make executable
43510         * tests/test-pread.sh: Set executable bit.
43511         Reported by Eric Blake.
43512
43513         correct typo in test-pread.sh
43514         * tests/test-pread.sh: Add #! line.
43515
43516         test pread
43517         * tests/test-pread.c: New file.
43518         * tests/test-pread.sh: Likewise.
43519         * modules/pread-tests: Likewise.
43520
43521         pread: new module
43522         * modules/pread: New file.
43523         * lib/unistd.in.h (pread): Define/declare.
43524         * lib/pread.c (pread): New file.
43525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43526         * modules/unistd (Makefile.am): Substitute witnesses.
43527         * doc/posix-functions/pread.texi (pread): Update.
43528         * MODULES.html.sh: Add pread.
43529
43530 2009-11-25  Jim Meyering  <meyering@redhat.com>
43531
43532         tests/init.sh: new file to be used via most *.sh tests
43533         * tests/init.sh: New file.
43534
43535 2009-11-25  Eric Blake  <ebb9@byu.net>
43536
43537         utimens: work around older Linux failure with symlinks
43538         * lib/utimens.c (lutimensat_works_really): New variable.
43539         (fdutimens, lutimens): Use it to manage kernels that support
43540         nanosecond times on files, but not on symlinks.
43541         Reported by Ondřej Vašík.
43542
43543         utimes: fix configure grammar
43544         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43545
43546 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43547
43548         regex: Fix fastmap for multibyte character ranges.
43549         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43550         characters when a multibyte character range is included.
43551
43552 2009-11-22  Andy Wingo  <wingo@pobox.com>
43553
43554         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43555         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43556
43557 2009-11-24  Bruno Haible  <bruno@clisp.org>
43558
43559         doc: Most *_l functions exist in MacOS X 10.5.
43560         * doc/posix-functions/duplocale.texi: Update platforms list.
43561         * doc/posix-functions/freelocale.texi: Likewise.
43562         * doc/posix-functions/newlocale.texi: Likewise.
43563         * doc/posix-functions/uselocale.texi: Likewise.
43564         * doc/posix-functions/isalnum_l.texi: Likewise.
43565         * doc/posix-functions/isalpha_l.texi: Likewise.
43566         * doc/posix-functions/isblank_l.texi: Likewise.
43567         * doc/posix-functions/iscntrl_l.texi: Likewise.
43568         * doc/posix-functions/isdigit_l.texi: Likewise.
43569         * doc/posix-functions/isgraph_l.texi: Likewise.
43570         * doc/posix-functions/islower_l.texi: Likewise.
43571         * doc/posix-functions/isprint_l.texi: Likewise.
43572         * doc/posix-functions/ispunct_l.texi: Likewise.
43573         * doc/posix-functions/isspace_l.texi: Likewise.
43574         * doc/posix-functions/isupper_l.texi: Likewise.
43575         * doc/posix-functions/iswalnum_l.texi: Likewise.
43576         * doc/posix-functions/iswalpha_l.texi: Likewise.
43577         * doc/posix-functions/iswblank_l.texi: Likewise.
43578         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43579         * doc/posix-functions/iswctype_l.texi: Likewise.
43580         * doc/posix-functions/iswdigit_l.texi: Likewise.
43581         * doc/posix-functions/iswgraph_l.texi: Likewise.
43582         * doc/posix-functions/iswlower_l.texi: Likewise.
43583         * doc/posix-functions/iswprint_l.texi: Likewise.
43584         * doc/posix-functions/iswpunct_l.texi: Likewise.
43585         * doc/posix-functions/iswspace_l.texi: Likewise.
43586         * doc/posix-functions/iswupper_l.texi: Likewise.
43587         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43588         * doc/posix-functions/isxdigit_l.texi: Likewise.
43589         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43590         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43591         * doc/posix-functions/strcoll_l.texi: Likewise.
43592         * doc/posix-functions/strfmon_l.texi: Likewise.
43593         * doc/posix-functions/strftime_l.texi: Likewise.
43594         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43595         * doc/posix-functions/strxfrm_l.texi: Likewise.
43596         * doc/posix-functions/tolower_l.texi: Likewise.
43597         * doc/posix-functions/toupper_l.texi: Likewise.
43598         * doc/posix-functions/towctrans_l.texi: Likewise.
43599         * doc/posix-functions/towlower_l.texi: Likewise.
43600         * doc/posix-functions/towupper_l.texi: Likewise.
43601         * doc/posix-functions/wcscoll_l.texi: Likewise.
43602         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43603         * doc/posix-functions/wctrans_l.texi: Likewise.
43604         * doc/posix-functions/wctype_l.texi: Likewise.
43605         * doc/glibc-functions/strptime_l.texi: Likewise.
43606         * doc/glibc-functions/strtod_l.texi: Likewise.
43607         * doc/glibc-functions/strtof_l.texi: Likewise.
43608         * doc/glibc-functions/strtol_l.texi: Likewise.
43609         * doc/glibc-functions/strtold_l.texi: Likewise.
43610         * doc/glibc-functions/strtoll_l.texi: Likewise.
43611         * doc/glibc-functions/strtoul_l.texi: Likewise.
43612         * doc/glibc-functions/strtoull_l.texi: Likewise.
43613         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43614         * doc/glibc-functions/wcstod_l.texi: Likewise.
43615         * doc/glibc-functions/wcstof_l.texi: Likewise.
43616         * doc/glibc-functions/wcstol_l.texi: Likewise.
43617         * doc/glibc-functions/wcstold_l.texi: Likewise.
43618         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43619         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43620         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43621
43622 2009-11-24  Bruno Haible  <bruno@clisp.org>
43623
43624         duplocale: Fix logic bug.
43625         * lib/duplocale.c: Don't include <langinfo.h>.
43626         (_NL_LOCALE_NAME): Remove macro.
43627         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43628         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43629
43630 2009-11-23  Jim Meyering  <meyering@redhat.com>
43631
43632         test-update-copyright: don't hard-code /usr/bin/perl
43633         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43634         perl to print the current year.  Gilles Espinasse reported that
43635         the replaced use of perl was hard-coded as /usr/bin/perl.
43636
43637 2009-11-23  Bruno Haible  <bruno@clisp.org>
43638
43639         duplocale: Add support for glibc 2.3.x.
43640         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43641
43642 2009-11-22  Bruno Haible  <bruno@clisp.org>
43643
43644         vasnprintf: Tiny optimization.
43645         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43646         MacOS X.
43647
43648 2009-11-22  Bruno Haible  <bruno@clisp.org>
43649
43650         Tests for module 'duplocale'.
43651         * modules/duplocale-tests: New file.
43652         * tests/test-duplocale.c: New file.
43653
43654         New module 'duplocale'.
43655         * m4/duplocale.m4: New file.
43656         * lib/locale.in.h (duplocale): New declaration.
43657         * lib/duplocale.c: New file.
43658         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43659         gl_LOCALE_H_DEFAULTS): New macros.
43660         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43661         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43662         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43663         REPLACE_DUPLOCALE.
43664         * modules/duplocale: New file.
43665         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43666
43667 2009-11-22  Bruno Haible  <bruno@clisp.org>
43668
43669         * modules/locale-tests (configure.ac): Test for newlocale function.
43670         * tests/test-locale.c: When the system has extended locale functions,
43671         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43672
43673         locale: Make locale_t available when possible.
43674         * lib/locale.in.h: Include <xlocale.h> when it exists.
43675         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43676         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43677         * modules/locale (Depends-on): Add extensions.
43678         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43679         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43680
43681 2009-11-22  Bruno Haible  <bruno@clisp.org>
43682
43683         Add comments.
43684         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43685         invocation.
43686         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43687         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43688         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43689
43690 2009-11-22  Bruno Haible  <bruno@clisp.org>
43691
43692         error: account for the possibility of freopen (stdout).
43693         * lib/error.c: Include <unistd.h>.
43694         (flush_stdout): New function, extracted from error and error_at_line.
43695         Determine stdout's fd dynamically.
43696         (error, error_at_line): Invoke flush_stdout.
43697         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43698         * modules/error (Depends-on): Add unistd.
43699
43700 2009-11-22  Bruno Haible  <bruno@clisp.org>
43701
43702         diffseq: Add comment.
43703         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43704
43705 2009-11-22  Jim Meyering  <meyering@redhat.com>
43706
43707         c-stack: avoid defining an unused static function
43708         * lib/c-stack.c (find_stack_direction): Do not define this function
43709         when it will not be used.
43710
43711         diffseq: avoid spurious gcc warnings
43712         * lib/diffseq.h (IF_LINT2): Define.
43713         (compareseq): Use it to initialize two members of "part".
43714         This avoids two used-uninitialized warnings.
43715
43716 2009-11-21  Jim Meyering  <meyering@redhat.com>
43717
43718         c-stack: avoid "ignoring return value of `write'" warning
43719         * lib/c-stack.c: Include "ignore-value.h".
43720         (die): Explicitly ignore each write return value.
43721         * modules/c-stack (Depends-on): Add ignore-value.
43722
43723 2009-11-21  Bruno Haible  <bruno@clisp.org>
43724
43725         diffseq: reduce scope of variable 'best'.
43726         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43727         variable, earlier used for two different purposes.
43728
43729 2009-11-21  Jim Meyering  <meyering@redhat.com>
43730
43731         diffseq: remove useless assignment to "best"
43732         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43733         assignment.  At that point "best" is already guaranteed to be zero.
43734
43735 2009-11-20  Eric Blake  <ebb9@byu.net>
43736
43737         build: mention ftp redirector in release announcements
43738         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43739         values that used to come from cfg.mk; mention FTP redirect URL.
43740         * build-aux/announce-gen: Mention the mirror list.
43741         Suggested by Karl Berry.
43742
43743         nanosleep: improve port to mingw
43744         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43746         LIB_NANOSLEEP, but only when needed.
43747         * modules/select (Link): Document LIBSOCKET.
43748         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43749         enough.
43750
43751         nanosleep: work around cygwin bug
43752         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43753         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43754         bug.
43755         (getnow): Delete, not needed.
43756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43757         LIB_CLOCK_GETTIME.
43758         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43759         clock-time, gettime.
43760         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43761         bug.
43762         * modules/nanosleep-tests: New test.
43763         * tests/test-nanosleep.c: New file.
43764
43765         sleep: work around cygwin bug
43766         * lib/sleep.c (rpl_sleep): Work around the bug.
43767         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43768         (gl_PREREQ_SLEEP): Delete unused macro.
43769         * modules/sleep (Depends-on): Add verify.
43770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43771         * modules/unistd (Makefile.am): Substitute witness.
43772         * lib/unistd.in.h (sleep): Update prototype.
43773         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43774         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43775         * modules/sleep-tests (Depends-on): Check for alarm.
43776
43777 2009-11-20  Jim Meyering  <meyering@redhat.com>
43778
43779         maint.mk: improve sc_prohibit_magic_number_exit
43780         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43781         so it does not match uses like System.exit(1).
43782         Add comments showing how to correct all offenders.
43783
43784 2009-11-19  Eric Blake  <ebb9@byu.net>
43785
43786         xalloc-die-tests: add missing library
43787         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43788
43789         test-xvasprintf: silence compiler warnings
43790         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43791         empty string from gcc.
43792
43793 2009-11-19  Jim Meyering  <meyering@redhat.com>
43794
43795         xfreopen: new module, from coreutils
43796         * modules/xfreopen: New module.
43797         * lib/xfreopen.c: New file.
43798         * lib/xfreopen.h: New file.
43799         * MODULES.html.sh (File stream based Input/Output"): Add it.
43800
43801 2009-11-19  Eric Blake  <ebb9@byu.net>
43802
43803         manywarnings: depend on warnings
43804         * modules/manywarnings (Depends-on): Add warnings.
43805
43806         build: avoid compiler warnings
43807         * lib/select.c (rpl_select): Delete unused variable.
43808         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43809
43810 2009-11-18  Eric Blake  <ebb9@byu.net>
43811
43812         tests: avoid false negative with --with-packager
43813         * tests/test-version-etc.sh: Discard packager information.
43814         * tests/test-argp-version-etc-1.sh: Likewise.
43815         Reported by Mike Frysinger.
43816
43817         utimens: fix regression on Solaris
43818         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43819         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43820         can only change fd timestamps via futimesat.  Instead, use an
43821         additional witness macro to avoid BSD bug.
43822         Reported by Jim Meyering.
43823
43824 2009-11-17  Eric Blake  <ebb9@byu.net>
43825
43826         usleep: use it to simplify tests
43827         * modules/stat-time-tests (Depends-on): Add usleep.
43828         (configure.ac): Drop usleep check.
43829         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43830         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43831         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43832         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43833         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43834         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43835         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43836         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43837         Likewise.
43838         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43839         * tests/test-lchown.h (nap): Likewise.
43840         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43841         * tests/test-stat-time.c (nap): Likewise.
43842         * tests/test-utimens-common.h (nap): Update comments.
43843
43844         usleep: new module
43845         * modules/usleep: New file.
43846         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43847         * lib/usleep.c (usleep): Likewise.
43848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43849         * modules/unistd (Makefile.am): Substitute witnesses.
43850         * lib/unistd.in.h (usleep): Add declaration.
43851         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43852         * MODULES.html.sh (Date and time): Likewise.
43853         * modules/usleep-tests (Depends-on): New test.
43854         * tests/test-usleep.c: New file.
43855
43856         chown: work around OpenBSD bug
43857         * lib/chown.c (rpl_chown): Work around the bug.
43858         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43859         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43860         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43861         * modules/chown (Depends-on): Add stdbool.
43862         * modules/lchown (Depends-on): Likewise.
43863         * doc/posix-functions/chown.texi (chown): Document the bug.
43864         * doc/posix-functions/lchown.texi (lchown): Likewise.
43865         * tests/test-lchown.h (test_chown): Relax test.
43866
43867         mkstemp: avoid conflict with C++ keyword template
43868         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43869         * lib/mkostemp.c (mkostemp): Likewise.
43870         * lib/mkostemps.c (mkostemps): Likewise.
43871         * lib/mkstemp.c (mkstemp): Likewise.
43872         * lib/mkstemps.c (mkstemps): Likewise.
43873
43874         xalloc-die-tests: optimize
43875         * tests/test-xalloc-die.sh: Reduce number of processes.
43876
43877 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43878
43879         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43880         patch from ludo@gnu.org (Ludovic Courtès).
43881
43882 2009-11-17  Jim Meyering  <meyering@redhat.com>
43883
43884         version-etc: use proper license string
43885         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43886         * modules/version-etc-fsf: Likewise.
43887
43888 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43889
43890         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43891         printed to stdout.  Deal with EOL differences.
43892
43893 2009-11-17  Eric Blake  <ebb9@byu.net>
43894
43895         unsetenv: work around Solaris bug
43896         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43897         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43898         Reported by Jim Meyering.
43899
43900         vasnprintf: avoid compiler warnings
43901         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43902         variables.
43903         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43904
43905 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43906
43907         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43908         settings since xalloc-die is no longer the self test,
43909         xalloc-die.sh is.
43910
43911 2009-11-17  Jim Meyering  <meyering@redhat.com>
43912
43913         test-xalloc-die.sh: make the code agree with the commit log
43914         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43915         at the end, just in case you happen to have a test-xalloc-die
43916         program in some other PATH directory.
43917
43918         test-xalloc-die.sh: fix a portability bug
43919         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43920         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43921         Otherwise, argv[0] (as often seen in diagnostics) would be too
43922         system-dependent, sometimes with, and sometimes without the leading "./".
43923
43924         version-etc-fsf: relax license to LGPLv3+
43925         * modules/version-etc-fsf (License): Relax license.
43926
43927 2009-11-16  Eric Blake  <ebb9@byu.net>
43928
43929         xalloc-die-tests: avoid printing null pointer
43930         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43931         shell script.
43932         * tests/test-xalloc-die.c (program_name): Declare.
43933         * tests/test-xalloc-die.sh (tmpfiles): New file.
43934
43935         setenv, unsetenv: work around various bugs
43936         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43937         (setenv) [HAVE_SETENV]: Work around bugs.
43938         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43939         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43940         for bugs.
43941         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43942         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43944         * modules/stdlib (Makefile.am): Update substitutions.
43945         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43946         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43947         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43948         * modules/setenv-tests: New test.
43949         * modules/unsetenv-tests: Likewise.
43950         * tests/test-setenv.c: New file.
43951         * tests/test-unsetenv.c: Likewise.
43952
43953 2009-11-16  Jim Meyering  <meyering@redhat.com>
43954
43955         version-etc: relax license to LGPLv3+
43956         * modules/version-etc (License): Relax license.
43957
43958         better AC_REQUIRE expanded-before-required-warning avoidance
43959         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43960         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43961         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43962         which is no longer needed.
43963
43964 2009-11-16  Eric Blake  <ebb9@byu.net>
43965
43966         test-freading: clean up temporary file
43967         * tests/test-freading.c (main): Remove file on success, and use
43968         ASSERT more liberally.
43969         Reported by Jim Meyering.
43970
43971 2009-11-16  Jim Meyering  <meyering@redhat.com>
43972
43973         avoid new AC_REQUIRE expanded-before-required warnings
43974         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43975         merely using it.
43976         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43977         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43978
43979 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43980
43981         * tests/test-xalloc-die.c: New file.
43982         * modules/xalloc-die-tests: New file.
43983         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43984         XFAIL_TESTS so it can be appended by modules.
43985
43986 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43987
43988         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43989         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43990
43991 2009-11-14  Eric Blake  <ebb9@byu.net>
43992
43993         fnmatch: avoid compiler warning
43994         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43995         to silence compiler warning about mismatch signedness in ?:.
43996         Reported by Robert Millan.
43997
43998         intprops: add double-inclusion guard
43999         * lib/intprops.h: Allow idempotent includes.
44000         Suggested by Bruce Korb.
44001
44002         openat: detect Solaris fchownat bug
44003         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44004         penalizing glibc chownat when only lchownat is broken.
44005         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44006         trailing slash bugs.
44007         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44008         * modules/openat-tests (Files): Include more files.
44009         (Depends-on): Add mgetgroups, sleep, stat-time.
44010         (configure.ac): Add additional checks.
44011         (Makefile.am): Build new test.
44012         * tests/test-fchownat.c: New file.
44013
44014         lchown: detect Solaris and FreeBSD bug
44015         * lib/lchown.c (rpl_lchown): Work around bug.
44016         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44018         * modules/unistd (Makefile.am): Populate it.
44019         * lib/unistd.in.h (lchown): Update declaration.
44020         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44021         * modules/lchown-tests: New file.
44022         * tests/test-lchown.h (test_lchown): Likewise.
44023         * tests/test-lchown.c (main): Likewise.
44024
44025         chown: detect Solaris and FreeBSD bug
44026         * lib/chown.c (rpl_chown): Work around bug.
44027         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44028         (gl_PREREQ_CHOWN): Delete.
44029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44030         * modules/unistd (Makefile.am): Populate it.
44031         * lib/unistd.in.h (chown): Update declaration.
44032         * lib/lchown.c (chown): Update client.
44033         * modules/lchown (Depends-on): Add lstat.
44034         * doc/posix-functions/chown.texi (chown): Document the bug.
44035         * doc/posix-functions/getgroups.texi (getgroups): Document
44036         getgroups pitfall.
44037         * modules/chown-tests: New file.
44038         * tests/test-chown.h (test_chown): Likewise.
44039         * tests/test-chown.c (main): Likewise.
44040
44041 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44042
44043         gnulib-tool: correctly detect absence of m4 directories
44044         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44045
44046 2009-11-14  Jim Meyering  <meyering@redhat.com>
44047
44048         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44049         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44050
44051 2009-11-14  John W. Eaton  <jwe@gnu.org>
44052
44053         strftime.h: wrap function declaration in extern "C" block
44054         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44055
44056 2009-11-13  Eric Blake  <ebb9@byu.net>
44057
44058         getgroups: avoid compiler warning
44059         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44060
44061         getgroups: work around FreeBSD bug
44062         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44063         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44064         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44065         * tests/test-getgroups.c (main): Fix buffer overrun.
44066
44067         getgroups: avoid compilation failure
44068         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44069         * modules/getgroups (Depends-on): Add stdint.
44070
44071 2009-11-13  Jim Meyering  <meyering@redhat.com>
44072
44073         test-getgroups: avoid compilation failure
44074         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44075
44076 2009-11-13  Eric Blake  <ebb9@byu.net>
44077
44078         mgetgroups: new module, taken from coreutils
44079         * modules/mgetgroups: New file.
44080         * lib/mgetgroups.h: Likewise.
44081         * lib/mgetgroups.c (mgetgroups): Likewise.
44082         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44083         * MODULES.html.sh (Users and groups): Mention it.
44084
44085         getgroups: don't expose GETGROUPS_T to user
44086         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44087         an element at a time if GETGROUPS_T is wrong size.
44088         * lib/getugroups.h (getugroups): Change signature.
44089         * lib/unistd.in.h (getgroups): Likewise.
44090         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44091         signature needs fixing.
44092         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44093         AC_TYPE_GETGROUPS.
44094         * modules/group-member (Depends-on): Add getgroups.
44095         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44096         (group_member): Rely on getgroups replacement.
44097         * lib/getugroups.c (getugroups): Use gid_t.
44098         * tests/test-getgroups.c (main): Likewise.
44099         * NEWS: Mention the signature change.
44100         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44101         problem with signature.
44102         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44103         GETGROUPS_T is still useful for setgroups.
44104
44105         getgroups, getugroups: provide stubs for mingw
44106         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44107         * lib/getugroups.c (getugroups): Likewise.
44108         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44109         function.  Modernize replacement scheme.
44110         (gl_PREREQ_GETGROUPS): Delete.
44111         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44112         * modules/getgroups (configure.ac): Declare witness.
44113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44114         * modules/unistd (Depends-on): Substitute witness.
44115         * lib/unistd.in.h (getgroups): Declare replacement.
44116
44117         getgroups: avoid calling exit
44118         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44119         drop xalloc.
44120         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44121         dependencies.
44122         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44123         exiting, in the rare case of malloc failure.
44124
44125         getgroups: fix logic error
44126         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44127         has more than 20 groups.
44128         * modules/getgroups-tests: New test.
44129         * tests/test-getgroups.c: New file.
44130
44131 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44132
44133         * tests/test-base64.c: Improve.
44134
44135 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44136
44137         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44138         Blake <ebb9@byu.net>.
44139
44140 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44141
44142         * tests/test-xvasprintf.c: Add %s%s related checks.
44143
44144 2009-11-12  Eric Blake  <ebb9@byu.net>
44145
44146         version-etc: match standards.texi style
44147         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44148         and use <> only for URLs.
44149
44150 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44151
44152         fts: do not fail on a submount during traversal
44153         * lib/fts.c (fts_build): Read the stat info again after opening
44154         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44155         Original report at http://bugzilla.redhat.com/501848.
44156
44157 2009-11-12  Jim Meyering  <meyering@redhat.com>
44158
44159         bootstrap: sync from coreutils
44160         * build-aux/bootstrap (bootstrap_epilogue): New function.
44161         Use git_modules_config in one more place.  This make bootstrap's
44162         --gnulib-srcdir option more useful for testing.
44163
44164         bootstrap: generalize autoheader check
44165         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44166         AC_CONFIG_HEADERS.
44167
44168 2009-11-11  Eric Blake  <ebb9@byu.net>
44169
44170         mkfifoat: use new modules for Solaris and BSD bugs
44171         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44172         * lib/mkfifoat.c (mknodat): Split...
44173         * lib/mknodat.c (mknodat): ...into new file.
44174         * modules/mkfifoat (Files): Ship new file.
44175         (Depends-on): Add mkfifo, mknod.
44176         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44177         (Depends-on): Add symlink.
44178         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44179         redundant with test_mkfifo.h.
44180         (do_mkfifoat, do_mknodat): New helpers.
44181
44182         mknod: new module
44183         * modules/mknod: New file.
44184         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44185         * lib/mknod.c (mknod): Likewise.
44186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44187         defaults.
44188         * modules/sys_stat (Makefile.am): Substitute them.
44189         * lib/sys_stat.in.h (mknod): Declare replacement.
44190         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44191         Document it.
44192         * doc/posix-functions/mknod.texi (mknod): Likewise.
44193         * modules/mknod-tests: New test.
44194         * tests/test-mknod.c: Likewise.
44195
44196         mkfifo: new module
44197         * modules/mkfifo: New file.
44198         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44199         * lib/mkfifo.c (mkfifo): Likewise.
44200         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44201         defaults.
44202         * modules/sys_stat (Makefile.am): Substitute them.
44203         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44204         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44205         Document it.
44206         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44207         * modules/mkfifo-tests: New test.
44208         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44209         from test-mkfifoat.c.
44210         * tests/test-mkfifo.c: New file.
44211
44212         readlink: detect FreeBSD bug
44213         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44214         slash on symlink.
44215         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44216         * tests/test-readlink.h (test_readlink): Enhance test.
44217
44218         symlink: detect FreeBSD bug
44219         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44220         slash on symlink.
44221         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44222         * tests/test-symlink.h (test_symlink): Enhance test.
44223
44224 2009-11-10  Eric Blake  <ebb9@byu.net>
44225
44226         link: detect FreeBSD bug
44227         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44228         symlink.
44229         * doc/posix-functions/link.texi (link): Document the bug.
44230         * tests/test-link.h (test_link): Enhance test.
44231         * tests/test-linkat.c (main): Update caller.
44232
44233         unlink, remove: detect FreeBSD bug
44234         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44235         slash on symlink.
44236         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44237         * doc/posix-functions/remove.texi (remove): Likewise.
44238         * tests/test-unlink.h (test_unlink): Enhance test.
44239         * tests/test-remove.c (main): Likewise.
44240
44241 2009-11-09  Eric Blake  <ebb9@byu.net>
44242
44243         rename: detect FreeBSD bug
44244         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44245         slash on symlink.
44246         * modules/renameat-tests (Depends-on): Add filenamecat.
44247         * tests/test-rename.h (test_rename): Allow one more errno.
44248         * tests/test-renameat.c (main): Likewise.
44249         * doc/posix-functions/rename.texi (rename): Document the bug.
44250
44251         open: detect FreeBSD bug
44252         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44253         symlink.
44254         * doc/posix-functions/open.texi (open): Document the bug.
44255         * doc/posix-functions/utimes.texi (utimes): Likewise.
44256         * tests/test-open.h (test_open): Add parameters, and test symlink
44257         handling.
44258         * tests/test-open.c (main): Adjust caller.
44259         * tests/test-fcntl-safer.c (main): Likewise.
44260         * modules/open-tests (Depends-on): Add stdbool, symlink.
44261         * modules/fcntl-safer-tests (Depends-on): Likewise.
44262         * tests/test-openat.c (main): Add test-open tests.
44263
44264         stat: detect FreeBSD bug
44265         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44266         symlink.
44267         * doc/posix-functions/stat.texi (stat): Document the bug.
44268         * tests/test-stat.h (test_stat_func): Add argument.
44269         * tests/test-stat.c (main): Adjust caller.
44270         * tests/test-fstatat.c (main): Likewise.
44271         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44272         Reported by Jim Meyering.
44273
44274 2009-11-09  James Youngman  <jay@gnu.org>
44275
44276         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44277         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44278
44279 2009-11-08  Jim Meyering  <meyering@redhat.com>
44280
44281         utimens: remove invalid futimesat call
44282         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44283         It used the file descriptor of the target file as the DIR_FD
44284         parameter and NULL as the file name.  That caused failure with
44285         errno == EFAULT on FreeBSD-8.0-rc2
44286
44287 2009-11-07  Eric Blake  <ebb9@byu.net>
44288
44289         fflush, freadseek: use fseeko, not fseek
44290         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44291         (clear_ungetc_buffer): Avoid potential problems on large files.
44292         * lib/freadseek.c (freadseek): Likewise.
44293         * modules/freadseek (Depends-on): Add fseeko.
44294         * modules/fseek (configure.ac): Set a witness.
44295         * tests/test-fflush.c (main): Use fseeko.
44296         * tests/test-fpurge.c (fseek): Disable link warning.
44297         * tests/test-freadable.c (fseek): Likewise.
44298         * tests/test-freading.c (fseek): Likewise.
44299         * tests/test-fseeko.c (fseek): Likewise.
44300         * tests/test-ftell.c (fseek): Likewise.
44301         * tests/test-ftello.c (fseek): Likewise.
44302         * tests/test-fwritable.c (fseek): Likewise.
44303         * tests/test-fwriting.c (fseek): Likewise.
44304
44305 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44306
44307         * modules/memchr (Depends-on): Drop getpagesize dependency.
44308
44309 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44310
44311         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44312         Reported by Ludovic Courtès.
44313         * build-aux/pmccabe2html: Improve example usage.
44314         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44315
44316 2009-11-06  Jim Meyering  <meyering@redhat.com>
44317
44318         do-release-commit-and-tag: New module.
44319         Automate the release-commit and tag process.
44320         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44321         * modules/do-release-commit-and-tag: New file.
44322         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44323
44324 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44325
44326         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44327         because test-select.c uses inet_pton.
44328
44329 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44330
44331         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44332         GETADDRINFO_LIB.  Bump serial number.
44333         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44334         Suggested by Eric Blake <ebb9@byu.net>.
44335
44336 2009-11-05  Eric Blake  <ebb9@byu.net>
44337
44338         strtod: detect darwin bug
44339         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44340         Reported by Leo Davis.
44341
44342         freopen-safer: new module
44343         * modules/freopen-safer: New module.
44344         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44345         * lib/freopen-safer.c (freopen_safer): New file.
44346         * lib/stdio-safer.h (freopen_safer): New declaration.
44347         * lib/stdio--.h (freopen): New override.
44348         * MODULES.html.sh (File stream based Input/Output): Mention it.
44349         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44350         freopen-safer module.
44351         * doc/posix-functions/stderr.texi (stderr): Likewise.
44352         * doc/posix-functions/stdin.texi (stdin): Likewise.
44353         * doc/posix-functions/stdout.texi (stdout): Likewise.
44354         * modules/freopen-safer-tests: New test.
44355         * tests/test-reopen-safer.c: New file.
44356
44357 2009-11-05  Jim Meyering  <meyering@redhat.com>
44358
44359         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44360         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44361
44362 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44363
44364         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44365
44366 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44367
44368         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44369
44370 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44371
44372         Fix link error.
44373         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44374         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44375
44376 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44377
44378         * tests/test-func.c: Also test value of __func__.
44379
44380 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44381
44382         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44383         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44384
44385 2009-11-05  Bruno Haible  <bruno@clisp.org>
44386
44387         Fix link error.
44388         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44389         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44390         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44391
44392 2009-11-05  Bruno Haible  <bruno@clisp.org>
44393
44394         Tests for module 'inet_pton'.
44395         * modules/inet_pton-tests: New file.
44396         * tests/test-inet_pton.c: New file.
44397
44398 2009-11-05  Bruno Haible  <bruno@clisp.org>
44399
44400         Tests for module 'inet_ntop'.
44401         * modules/inet_ntop-tests: New file.
44402         * tests/test-inet_ntop.c: New file.
44403
44404 2009-11-04  Eric Blake  <ebb9@byu.net>
44405
44406         stdlib-safer: wrap all mkstemp variants
44407         * modules/mkostemp (configure.ac): Set witness.
44408         * modules/mkostemps (configure.ac): Likewise.
44409         * modules/mkstemps (configure.ac): Likewise.
44410         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44411         (mkstemps_safer): Wrap more functions.
44412         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44413         wrapping.
44414         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44415         (mkstemps_safer): Implement the wrappers.
44416
44417         mkstemps, mkostemps: new modules
44418         * modules/mkostemps: New module.
44419         * modules/mkstemps: Likewise.
44420         * lib/mkostemps.c (mkostemps): New file.
44421         * lib/mkstemps.c (mkstemps): Likewise.
44422         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44423         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44425         * modules/stdlib (Makefile.am): Substitute them.
44426         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44427         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44428         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44429         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44430         * MODULES.html.sh (File system functions): Mention them.
44431
44432         tempname: resync from glibc
44433         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44434         same values for __GT_FILE as glibc.  Abort even when assertions
44435         are disabled.
44436         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44437         match its value otherwise.  Allow idempotent inclusion.
44438         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44439         * lib/mkostemp.c (mkostemp): Likewise.
44440         * lib/mkstemp.c (mkstemp): Likewise.
44441         * lib/tmpfile.c (tmpfile): Likewise.
44442         * NEWS: Document this.
44443
44444         utimens: fix use of futimens on older Linux
44445         * lib/utimens.c (fdutimens): Use updated, rather than original,
44446         timespec to avoid bug in older Linux kernel.
44447         Reported by Simon Josefsson.
44448
44449 2009-11-04  Bruno Haible  <bruno@clisp.org>
44450
44451         Make num_processors more flexible and consistent.
44452         * lib/nproc.h (enum nproc_query): New type.
44453         (num_processors): Add a 'query' argument.
44454         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44455         (num_processors): Add a 'query' argument. Test the value of the
44456         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44457         mingw, count the number of CPUs available for the current process.
44458         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44459         Check for sched_getaffinity and sched_getaffinity_np.
44460         * modules/nproc (Depends-on): Add c-ctype, extensions.
44461         * NEWS: Mention the change.
44462
44463 2009-11-03  Bruno Haible  <bruno@clisp.org>
44464
44465         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44466
44467 2009-11-03  Jim Meyering  <meyering@redhat.com>
44468
44469         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44470         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44471         if it is defined.
44472
44473 2009-11-02  Eric Blake  <ebb9@byu.net>
44474
44475         mktime, timegm: share common declaration
44476         * lib/mktime-internal.h: New file.
44477         * lib/mktime.c: Use it rather than open-coding a declaration.
44478         * lib/timegm.c: Likewise.
44479         * modules/mktime (Files): Ship it.
44480         * modules/timegm (Files): Likewise.
44481         Suggested by Bruno Haible.
44482
44483         test-update-copyright: update test to match script changes
44484         * tests/test-update-copyright.sh: Avoid hard-coding perl
44485         location.  Don't update *.bak created by earlier runs.
44486
44487 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44488             Simon Josefsson  <simon@josefsson.org>
44489             Bruno Haible  <bruno@clisp.org>
44490
44491         Fix link error on Solaris 8.
44492         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44493         also in libnsl. Define also INET_PTON_LIB.
44494         * modules/inet_pton (Link): New section.
44495
44496 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44497             Bruno Haible  <bruno@clisp.org>
44498
44499         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44500         * modules/inet_ntop (Link): New section.
44501         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44502
44503 2009-11-02  Eric Blake  <ebb9@byu.net>
44504
44505         maint: avoid compiler warnings in m4 macros
44506         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44507         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44508
44509 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44510
44511         * m4/pmccabe2html.m4: Remove file.
44512         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44513         function.  Change maintainer.
44514         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44515         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44516         Courtès).
44517
44518 2009-10-31  Eric Blake  <ebb9@byu.net>
44519
44520         fseeko: fix m4 regression
44521         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44522         regression from 2009-10-27.
44523         Reported by Ralf Wildenhues.
44524
44525 2009-10-31  Jim Meyering  <meyering@redhat.com>
44526
44527         inttostr: aesthetics and improved (compile-time) safety
44528         Define inttype_is_signed rather than inttype_is_unsigned,
44529         since the sole use is via "#if inttype_is_signed".
44530         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44531         inttype_is_unsigned.
44532         * lib/offtostr.c (inttype_is_signed): Likewise.
44533         * lib/uinttostr.c (inttype_is_signed): Likewise.
44534         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44535         * lib/inttostr.c (inttostr): Use verify to cross-check the
44536         inttype_is_signed value and the signedness of the actual type.
44537         * modules/inttostr (Depends-on): Add verify.
44538
44539 2009-10-30  Eric Blake  <ebb9@byu.net>
44540
44541         build: avoid compiler warnings
44542         * lib/fchmodat.c (lchmod): Mark unused variables.
44543         * lib/getopt.c (_getopt_initialize): Likewise.
44544         * lib/mktime.c (__mktime_internal): Provide prototype.
44545         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44546         older gcc that do not understand #pragma GCC diagnostic.
44547         * lib/uinttostr.c (inttype_is_unsigned): Define.
44548         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44549
44550 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44551
44552         stat: fix compilation on AIX
44553         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44554         only see struct stat64.
44555
44556 2009-10-30  Eric Blake  <ebb9@byu.net>
44557
44558         exclude: make more robust
44559         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44560         rather than masking a coding bug.
44561         Suggested by Bruno Haible.
44562
44563 2009-10-30  Jim Meyering  <meyering@redhat.com>
44564
44565         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44566         Rather than putting #!/usr/bin/perl on the first line,
44567         start with a variant of what's recommended by "man perlrun" that
44568         invokes the first "perl" program from your shell's search path.
44569         * build-aux/gitlog-to-changelog: Replace #!... as above.
44570         Add a "Local Variables" perl mode setting.
44571         Prompted by a patch from Ludovic Courtès.
44572         Improved by Eric Blake.
44573         * build-aux/useless-if-before-free: Likewise.
44574         * build-aux/announce-gen: Likewise.
44575         * build-aux/update-copyright: Likewise.
44576
44577 2009-10-29  Eric Blake  <ebb9@byu.net>
44578
44579         filenamecat-lgpl: adjust clients
44580         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44581         filenamecat.
44582         * modules/renameat (Depends-on): Likewise.
44583
44584         filenamecat: split into filenamecat-lgpl
44585         * modules/filenamecat-lgpl: New module.
44586         * modules/filenamecat (Files): Move library-safe files into
44587         filenamecat-lgpl.
44588         (Depends-on): Add filenamecat-lgpl.
44589         (configure.ac): Declare witness.
44590         * lib/filenamecat.h (file_name_concat): Only declare when using
44591         GPL module.
44592         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44593         Move...
44594         * lib/filenamecat-lgpl.c: ...into new file.
44595         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44596         (gl_FILE_NAME_CONCAT): Use it.
44597         * MODULES.html.sh (File system functions): Mention new module.
44598
44599         argp: avoid memory leak
44600         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44601         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44602         base_name, since the latter malloc()s and can call exit().
44603         Leak introduced 2006-07-03.
44604
44605         dirname-lgpl: adjust clients that don't need full dirname
44606         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44607         * modules/filenamecat (Depends-on): Likewise.
44608         * modules/linkat (Depends-on): Likewise.
44609         * modules/mkancesdirs (Depends-on): Likewise.
44610         * modules/mkdir (Depends-on): Likewise.
44611         * modules/openat (Depends-on): Likewise.
44612         * modules/savewd (Depends-on): Likewise.
44613         * modules/rename (Depends-on): Likewise.
44614         (License): Relax license.
44615         * modules/mkdir-tests (Depends-on): Drop progname.
44616         (Makefile.am): Delete unneeded LDADD.
44617         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44618
44619         dirname: split into dirname-lgpl
44620         * modules/dirname-lgpl: New module.
44621         * modules/dirname (Files): Move library-safe files into
44622         dirname-lgpl.
44623         (Depends-on): Add dirname-lgpl.
44624         (configure.ac): Declare witness.
44625         * modules/double-slash-root (License): Relax license.
44626         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44627         module.
44628         * lib/dirname.c (dir_len, mdir_name): Move...
44629         * lib/dirname-lgpl.c: ...into new file.
44630         * lib/basename.c (last_component, base_len): Move...
44631         * lib/basename-lgpl.c: ...into new file.
44632         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44633         (gl_DIRNAME): Use it.
44634         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44635         Mention new module.
44636         * modules/dirname-tests (Depends-on): Add progname.
44637         * tests/test-dirname.c (program_name): Delete.
44638
44639         mkdir: make safe for libraries
44640         * modules/mkdir (Depends-on): Drop xalloc.
44641         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44642         exit.
44643
44644         tests: avoid some compiler warnings
44645         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44646         literals.
44647         * tests/test-memchr.c (main): Avoid type mismatch.
44648         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44649         * tests/test-base64.c (main): Likewise.
44650         * tests/test-getdelim.c (main): Likewise.
44651         * tests/test-gethostname.c (main): Likewise.
44652         * tests/test-getline.c (main): Likewise.
44653         * tests/test-netinet_in.c (main): Likewise.
44654         * tests/test-select.c (open_server_socket, main): Likewise.
44655         * tests/test-select-stdin.c (main): Likewise.
44656         * tests/test-sockets.c (main): Likewise.
44657         * tests/test-strsignal.c (main): Likewise.
44658         * tests/test-sys_select.c (main): Likewise.
44659         * tests/test-sys_socket.c (main): Likewise.
44660         * tests/test-u64.c (main): Likewise.
44661         * tests/test-xfprintf-posix.c (main): Likewise.
44662         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44663
44664         sockets: avoid compiler warning
44665         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44666
44667         maint: detect usage(1) and other suspicious exits
44668         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44669
44670 2009-10-29  Jim Meyering  <meyering@redhat.com>
44671
44672         timespec: long-to-int truncation could make timespec_cmp malfunction
44673         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44674         a multiple of 2^32 nanoseconds as no difference.
44675
44676 2009-10-28  Jim Meyering  <meyering@redhat.com>
44677
44678         fprintftime: wrap macro code argument in "do {...} while(0)"
44679         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44680         cpy macro must be a statement that can be followed by a semicolon.
44681         Now that the else clause contains a comment and is hence longer
44682         than one line, I require curly braces.  That in turn requires
44683         that we wrap this code block in the standard do...while(0).
44684
44685         fprintftime: remove stray semicolon from previous change
44686         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44687
44688         fprintftime: avoid a warning about ignored fwrite return value
44689         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44690         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44691         that is unsafe.
44692         * modules/fprintftime (Depends-on): Add ignore-value.
44693
44694         exclude: avoid an unwarranted warning
44695         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44696
44697 2009-10-27  Eric Blake  <ebb9@byu.net>
44698
44699         fseek: avoid compilation failure when fflush is replaced
44700         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44701         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44702         module is in use.
44703         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44704         module is not in use; since REPLACE_FSEEK worked otherwise.
44705         (GNULIB_FTELLO): Likewise for ftell.
44706         Reported by Ian Beckwith and others.
44707
44708 2009-10-27  Bruno Haible  <bruno@clisp.org>
44709
44710         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44711         Reported by Jim Meyering.
44712
44713 2009-10-27  Jim Meyering  <jim@meyering.net>
44714             Bruno Haible  <bruno@clisp.org>
44715
44716         Avoid warning despite dropping the return value of fwrite.
44717         * lib/unicodeio.c: Include ignore-value.h.
44718         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44719         * modules/unicodeio (Depends-on): Add ignore-value.
44720
44721 2009-10-26  Eric Blake  <ebb9@byu.net>
44722
44723         areadlinkat: fix fallback path
44724         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44725         pointer and zero.
44726
44727 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44728
44729         Use a better IO block size for modern systems
44730         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44731         * lib/md2.c: Likewise.
44732         * lib/md4.c: Likewise.
44733         * lib/md5.c: Likewise.
44734         * lib/sha1.c: Likewise.
44735         * lib/sha256.c: Likewise.
44736         * lib/sha512.c: Likewise.
44737
44738 2009-10-22  Eric Blake  <ebb9@byu.net>
44739
44740         tests: avoid several compiler warnings
44741         * tests/test-getcwd.c (main): Avoid buffer underflow.
44742         * tests/test-getdate.c (main): String literals are not safe with
44743         putenv, so use setenv.  Declare unused argument.
44744         * modules/getdate-tests (Depends-on): Add setenv.
44745         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44746         problems with string literals in char *.
44747         * tests/test-hash.c (main): Avoid shadowing declaration.
44748         (insert_new): Treat string literals as char const *.
44749         * tests/test-getopt.h (test_getopt): Likewise.
44750         (getopt_loop): Alter types to minimize casting elsewhere.
44751         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44752         (test_getopt_long_posix): Likewise.
44753         (do_getopt_long): Add wrapper to minimize casting.
44754         * tests/test-atexit.c (clear_temp_file): Use void.
44755         * tests/test-areadlink-with-size.c (main): Declare unused
44756         arguments.
44757         * tests/test-areadlink.c (main): Likewise.
44758         * tests/test-areadlinkat-with-size.c (main): Likewise.
44759         * tests/test-areadlinkat.c (main): Likewise.
44760         * tests/test-canonicalize-lgpl.c (main): Likewise.
44761         * tests/test-canonicalize.c (main): Likewise.
44762         * tests/test-dirent-safer.c (main): Likewise.
44763         * tests/test-dirname.c (main): Likewise.
44764         * tests/test-dup2.c (main): Likewise.
44765         * tests/test-fchdir.c (main): Likewise.
44766         * tests/test-fcntl-h.c (main): Likewise.
44767         * tests/test-fcntl-safer.c (main): Likewise.
44768         * tests/test-fdopendir.c (main): Likewise.
44769         * tests/test-fdutimensat.c (main): Likewise.
44770         * tests/test-fflush.c (main): Likewise.
44771         * tests/test-filenamecat.c (main): Likewise.
44772         * tests/test-filevercmp.c (main): Likewise.
44773         * tests/test-fopen-safer.c (main): Likewise.
44774         * tests/test-fopen.c (main): Likewise.
44775         * tests/test-fpending.c (main): Likewise.
44776         * tests/test-fpurge.c (main): Likewise.
44777         * tests/test-freading.c (main): Likewise.
44778         * tests/test-fstatat.c (main): Likewise.
44779         * tests/test-fsync.c (main): Likewise.
44780         * tests/test-futimens.c (main): Likewise.
44781         * tests/test-getndelim2.c (main): Likewise.
44782         * tests/test-gettimeofday.c (main): Likewise.
44783         * tests/test-getopt.c (main): Likewise.
44784         * tests/test-i-ring.c (main): Likewise.
44785         * tests/test-inttypes.c (main): Likewise.
44786         * tests/test-link.c (main): Likewise.
44787         * tests/test-lstat.c (main): Likewise.
44788         * tests/test-math.c (main): Likewise.
44789         * tests/test-md5.c (main): Likewise.
44790         * tests/test-memchr2.c (main): Likewise.
44791         * tests/test-memrchr.c (main): Likewise.
44792         * tests/test-mkdir.c (main): Likewise.
44793         * tests/test-mkdirat.c (main): Likewise.
44794         * tests/test-mkfifoat.c (main): Likewise.
44795         * tests/test-open.c (main): Likewise.
44796         * tests/test-openat-safer.c (main): Likewise.
44797         * tests/test-openat.c (main): Likewise.
44798         * tests/test-quotearg.c (main): Likewise.
44799         * tests/test-rawmemchr.c (main): Likewise.
44800         * tests/test-readlink.c (main): Likewise.
44801         * tests/test-remove.c (main): Likewise.
44802         * tests/test-rename.c (main): Likewise.
44803         * tests/test-renameat.c (main): Likewise.
44804         * tests/test-rmdir.c (main): Likewise.
44805         * tests/test-sha1.c (main): Likewise.
44806         * tests/test-signal.c (main): Likewise.
44807         * tests/test-sigaction.c (main): Likewise.
44808         * tests/test-stat.c (main): Likewise.
44809         * tests/test-stat-time.c (main): Likewise.
44810         * tests/test-stddef.c (main): Likewise.
44811         * tests/test-stdint.c (main): Likewise.
44812         * tests/test-stdio.c (main): Likewise.
44813         * tests/test-stdlib.c (main): Likewise.
44814         * tests/test-strchrnul.c (main): Likewise.
44815         * tests/test-strerror.c (main): Likewise.
44816         * tests/test-string.c (main): Likewise.
44817         * tests/test-strtod.c (main): Likewise.
44818         * tests/test-strverscmp.c (main): Likewise.
44819         * tests/test-symlink.c (main): Likewise.
44820         * tests/test-symlinkat.c (main): Likewise.
44821         * tests/test-sys_stat.c (main): Likewise.
44822         * tests/test-sys_time.c (main): Likewise.
44823         * tests/test-time.c (main): Likewise.
44824         * tests/test-unistd.c (main): Likewise.
44825         * tests/test-unlink.c (main): Likewise.
44826         * tests/test-unlinkat.c (main): Likewise.
44827         * tests/test-utimens.c (main): Likewise.
44828         * tests/test-utimensat.c (main): Likewise.
44829         * tests/test-version-etc.c (main): Likewise.
44830         * tests/test-wchar.c (main): Likewise.
44831         * tests/test-wctype.c (main): Likewise.
44832         * tests/test-xprintf-posix.c (main): Likewise.
44833         * tests/test-posixtm.c (main): Likewise.
44834         (STREQ): Delete unused macro.
44835         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44836         shadowed variables.
44837         * tests/test-memchr.c (main): Likewise.
44838
44839 2009-10-21  Eric Blake  <ebb9@byu.net>
44840
44841         areadlinkat: avoid failure on older glibc
44842         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44843         rather than mis-comparing 0 against FUNC_RESULT of char*.
44844
44845 2009-10-21  Bruno Haible  <bruno@clisp.org>
44846
44847         * modules/stpncpy (License): Relicense under LGPLv2+.
44848         Reported by David Lutterkort <lutter@redhat.com>.
44849
44850 2009-10-20  Eric Blake  <ebb9@byu.net>
44851
44852         utimensat: work around Solaris 9 bug
44853         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44854         has trailing slash bugs.
44855         * tests/test-lutimens.h (test_lutimens): Enhance test.
44856         * tests/test-utimens.h (test_utimens): Likewise.
44857         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44858         * doc/posix-functions/utimes.texi (utimes): Likewise.
44859         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44860         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44861         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44862         * doc/posix-functions/futimens.texi (futimens): Likewise.
44863
44864         fdutimensat: new module
44865         * modules/fdutimensat: New file.
44866         * lib/fdutimensat.c (fdutimensat): Likewise.
44867         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44868         * MODULES.html.sh (File system functions): Mention module.
44869         * modules/fdutimensat-tests: New test.
44870         * tests/test-fdutimensat.c: Likewise.
44871
44872         doc: regenerate INSTALL
44873         * doc/INSTALL: Reflect recent autoconf update.
44874         * doc/INSTALL.ISO: Likewise.
44875         * doc/INSTALL.UTF-8: Likewise.
44876
44877 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44878
44879         acl: warn if ACL support is not detected
44880         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44881
44882 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44883
44884         * lib/nproc.h: Add extern "C" block for C++.
44885
44886 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44887             Bruno Haible  <bruno@clisp.org>
44888
44889         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44890         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44891         * doc/posix-functions/isalpha.texi: Likewise.
44892         * doc/posix-functions/isblank.texi: Likewise.
44893         * doc/posix-functions/iscntrl.texi: Likewise.
44894         * doc/posix-functions/isdigit.texi: Likewise.
44895         * doc/posix-functions/isgraph.texi: Likewise.
44896         * doc/posix-functions/islower.texi: Likewise.
44897         * doc/posix-functions/isprint.texi: Likewise.
44898         * doc/posix-functions/ispunct.texi: Likewise.
44899         * doc/posix-functions/isspace.texi: Likewise.
44900         * doc/posix-functions/isupper.texi: Likewise.
44901         * doc/posix-functions/isxdigit.texi: Likewise.
44902
44903 2009-10-18  Bruno Haible  <bruno@clisp.org>
44904
44905         Tests for module 'isblank'.
44906         * modules/isblank-tests: New file.
44907         * tests/test-isblank.c: New file.
44908
44909         New module 'isblank'.
44910         * lib/isblank.c: New file.
44911         * m4/isblank.m4: New file.
44912         * modules/isblank: New file.
44913         * doc/posix-functions/isblank.texi: Mention the new module.
44914
44915 2009-10-18  Bruno Haible  <bruno@clisp.org>
44916
44917         New module 'ctype'.
44918         * lib/ctype.in.h: New file.
44919         * m4/ctype.m4: New file.
44920         * modules/ctype: New file.
44921         * doc/posix-headers/ctype.texi: Mention the new module.
44922
44923 2009-10-18  Jim Meyering  <meyering@redhat.com>
44924
44925         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44926         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44927         right after its initialization, rather than farther down.
44928         Keeping these in close proximity makes it easier to ensure
44929         that each such variable is initialized.  E.g.,
44930
44931             LIB_CLOCK_GETTIME=
44932             AC_SUBST([LIB_CLOCK_GETTIME])
44933
44934         This change also increments these serial numbers.
44935         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44936         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44938
44939 2009-10-18  Bruno Haible  <bruno@clisp.org>
44940
44941         Don't let environment variables perturb build.
44942         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44943         (gl_PREREQ_GETHRXTIME): ... not here.
44944
44945 2009-10-18  Bruno Haible  <bruno@clisp.org>
44946
44947         Avoid symlink attack in localcharset module.
44948         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44949         (O_NOFOLLOW): Define fallback.
44950         (get_charset_aliases): Don't open the file if it is a symbolic link.
44951         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44952         gl_FCNTL_H.
44953         (gl_FCNTL_H): Require it.
44954         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44955         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44956         Reported by Fergal Glynn <fglynn@veracode.com>.
44957
44958 2009-10-18  Bruno Haible  <bruno@clisp.org>
44959
44960         Implement nproc for mingw.
44961         * lib/nproc.c: Include <windows.h>
44962         (num_processors): On native Windows platforms, try GetSystemInfo.
44963
44964 2009-10-18  Bruno Haible  <bruno@clisp.org>
44965
44966         Implement nproc for IRIX.
44967         * lib/nproc.c: Include <sys/sysmp.h>.
44968         (num_processors): On IRIX systems, try sysmp.
44969         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44970
44971 2009-10-18  Bruno Haible  <bruno@clisp.org>
44972
44973         Implement nproc for HP-UX.
44974         * lib/nproc.c: Include <sys/pstat.h>
44975         (num_processors): On HP-UX systems, try pstat_getdynamic.
44976         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44977         pstat_getdynamic.
44978
44979 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44980             Bruno Haible  <bruno@clisp.org>
44981
44982         Implement nproc for NetBSD, OpenBSD.
44983         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44984         (ARRAY_SIZE): New macro.
44985         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44986         * m4/nproc.m4: New file.
44987         * modules/nproc (Files): Add m4/nproc.m4.
44988         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44989         (Makefile.am): Instead, augment lib_SOURCES.
44990
44991 2009-10-18  Bruno Haible  <bruno@clisp.org>
44992
44993         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44994         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44995         sys/param.h.
44996
44997 2009-10-16  Eric Blake  <ebb9@byu.net>
44998
44999         utimensat: new module
45000         * modules/utimensat: New file.
45001         * lib/utimensat.c (utimensat): Likewise.
45002         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45003         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45004         so we can work around Linux bugs.
45005         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45006         * modules/sys_stat (Makefile.am): Substitute them.
45007         * lib/sys_stat.in.h (utimensat): Declare it.
45008         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45009         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45010         * modules/utimensat-tests: New test.
45011         * tests/test-utimensat.c: Likewise.
45012
45013         utimens: let lutimens work on non-symlinks
45014         * lib/utimens.c (lutimens): Fall back to utimens rather than
45015         failing with ENOSYS, when file is not a symlink.
45016         (utimens): Reduce redirection.
45017         * tests/test-lutimens.h (test_lutimens): Update test to cover
45018         non-symlinks.
45019         * tests/test-utimens.h (test_utimens): Update test to cover
45020         symlinks.
45021         * tests/test-utimens.c (main): Update caller.
45022
45023         utimens: cache whether utimensat syscall works
45024         * lib/utimens.c (utimensat_works_really): New cache variable.
45025         (fdutimens, lutimens): Use it to avoid failing syscall.
45026
45027         test-stat-time, test-utimens: improve portability
45028         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45029         ext4 on alpha, and for cygwin.
45030         * tests/test-utimens-common.h: New file.
45031         (nap): Factor delays into single function.
45032         * tests/test-lutimens.h (test_lutimens): Use new header.
45033         * tests/test-futimens.h (test_futimens): Likewise.
45034         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45035         timestamps to occur from same machine, as was done previously for
45036         test_utimens.
45037         * modules/utimens-tests (Files): Ship new file.
45038         * modules/futimens-tests (Files): Likewise.
45039         Reported in part by Jim Meyering.
45040
45041         sys_stat: sort replacement declarations
45042         * lib/sys_stat.in.h: Sort declarations.
45043         * lib/futimens.c (futimens): Fix typo.
45044
45045 2009-10-15  Jim Meyering  <meyering@redhat.com>
45046
45047         don't let environment settings perturb build
45048         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45049         could cause a configure-time and/or build-time malfunction.
45050         Typically, a configure-time function-in-library test is performed
45051         via code like this:
45052
45053           LIB_VAR=
45054           AC_SUBST([LIB_VAR])
45055           prefix_saved_LIBS=$LIBS
45056             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45057                        [test "$ac_cv_search_FUNC" = "none required" ||
45058                         LIB_VAR=$ac_cv_search_FUNC])
45059           LIBS=$prefix_saved_LIBS
45060
45061         However, in each of the files affected by this change, the LIB_VAR=
45062         initialization was omitted.  Thus, when set in the environment, its
45063         value would propagate into generated Makefiles when FUNC is not found
45064         in LIB_NAME.
45065         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45066         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45068
45069 2009-10-14  Eric Blake  <ebb9@byu.net>
45070
45071         fchdir: avoid infinite recursion in mingw
45072         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45073         recursing.
45074
45075         test-stat-time: port to mingw
45076         * tests/test-stat-time.c (force_unlink): Return a value.
45077         (test_ctime) [W32]: Fix compilation error.
45078         (nap): Don't call usleep with too large an argument.  Use
45079         force_unlink.
45080         * doc/pastposix-functions/usleep.texi (usleep): Document the
45081         portability issue.
45082
45083 2009-10-13  Jim Meyering  <meyering@redhat.com>
45084
45085         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45086         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45087         * modules/pipe-filter-ii: Likewise.
45088         * modules/sys_socket-tests: Likewise.
45089         * modules/tsearch-tests: Likewise.
45090         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45091         (check): Depend on it.
45092
45093 2009-10-12  Eric Blake  <ebb9@byu.net>
45094
45095         utimens-tests: port to NFS file systems
45096         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45097         comparisons to avoid spurious failures from timestamp drift
45098         between NFS machines.
45099
45100 2009-10-12  Eric Blake  <ebb9@byu.net>
45101
45102         stat-time-tests: minor cleanups
45103         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45104         * tests/test-stat-time.c (nap): Separate assignment from call.
45105         Suggested by Paolo Bonzini and Bruno Haible.
45106
45107         sys_stat: guarantee struct timespec
45108         * lib/sys_stat.in.h (includes): Always include <time.h>
45109         * modules/sys_stat (Depends-on): Add time.
45110         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45111         mode_t permission values.
45112         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45113         get at subsecond timestamps.
45114
45115 2009-10-10  Eric Blake  <ebb9@byu.net>
45116
45117         futimens: new module
45118         * modules/futimens: New file.
45119         * lib/futimens.c (futimens): Likewise.
45120         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45121         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45122         we can work around Linux bugs.
45123         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45124         * modules/sys_stat (Makefile.am): Substitute them.
45125         * lib/sys_stat.in.h (futimens): Declare it.
45126         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45127         * doc/posix-functions/futimens.texi (futimens): Likewise.
45128         * modules/futimens-tests: New test.
45129         * tests/test-futimens.c: Likewise.
45130
45131         utimens: introduce fdutimens
45132         * lib/utimens.h (fdutimens): New prototype.
45133         * lib/utimens.c (gl_futimens): Move guts...
45134         (fdutimens): ...to new interface.
45135         * tests/test-utimens.c (do_fdutimens): Use it.
45136
45137         utimens: add UTIME_NOW and UTIME_OMIT support
45138         * lib/utimens.c (validate_timespec, update_timespec): New helper
45139         functions.
45140         (gl_futimens, lutimens): Use them.
45141         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45142         stdbool, sys_stat.
45143         (Link): Mention resulting library dependency.
45144         * modules/utimecmp (Link): Likewise.
45145         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45146         (Makefile.am): Pick up library dependency.
45147         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45148         definition.
45149         * tests/test-sys_stat.c: Test the definitions.
45150         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45151         * NEWS: Document library dependency.
45152
45153         utimecmp: support symlink timestamps
45154         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45155         hashing when possible.  Use pathconf when available.
45156         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45157         * modules/utimecmp (Depends-on): Add lstat.
45158
45159         utimens: add lutimens interface
45160         * lib/utimens.c (lutimens): New function.
45161         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45162         * lib/utimens.h (lutimens): Declare new interface.
45163         * tests/test-utimens.c (main): Enhance test.
45164         * tests/test-lutimens.h (test_lutimens): New file.
45165         * modules/utimens-tests (Files): Distribute it.
45166         (Depends-on): Add symlink.
45167         (configure.ac): Check for usleep.
45168
45169         utimens: validate futimens usage
45170         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45171         fewer syscalls on failure later on.  Avoid compiler warning on
45172         mingw.
45173         * modules/utimens (Depends-on): Add dup2.
45174
45175         utimens: add test
45176         * modules/utimens-tests: New test.
45177         * tests/test-utimens.h: New file.
45178         * tests/test-futimens.h: Likewise.
45179         * tests/test-utimens.c: Likewise.
45180
45181         doc: mention timestamp portability issues
45182         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45183         instead.
45184         * doc/posix-functions/utime.texi (utime): Likewise.
45185         * doc/posix-functions/utimes.texi (utimes): Likewise.
45186         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45187         instead.
45188         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45189         module.
45190         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45191         Mention weakness with symlink timestamps.
45192         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45193         to utimensat/futimens instead.
45194         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45195
45196         test-dup2: enhance test
45197         * tests/test-dup2.c (main): Also check AT_FDCWD.
45198
45199         test-stat-time: avoid more spurious failures
45200         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45201         xfs; and avoid race if the two timestamps cross quantization edge.
45202
45203         relocatable: prefer 'file system' over 'filesystem'
45204         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45205         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45206         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45207         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45208         * lib/relocatable.c (compute_curr_prefix): Likewise.
45209
45210 2009-10-10  Jim Meyering  <meyering@redhat.com>
45211
45212         stat-time-tests: check for the usleep function
45213         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45214
45215 2009-10-10  Bruno Haible  <bruno@clisp.org>
45216
45217         * modules/xnanosleep: Put the Link section after the Include section.
45218
45219 2009-10-09  Eric Blake  <ebb9@byu.net>
45220
45221         dup2: work around FreeBSD 6.1 bug
45222         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45223         * doc/posix-functions/dup2.texi (dup2): Document it.
45224         Reported by Nelson H. F. Beebe and Jim Meyering.
45225
45226         test-stat-time: port to buggy NFS clients
45227         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45228         (test_ctime): Also skip test if mtime and ctime are skewed.
45229
45230         maint: prefer 'file system' over 'filesystem'
45231         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45232         * doc/posix-functions/lstat.texi (lstat): Likewise.
45233         * lib/file-has-acl.c (file_has_acl): Likewise.
45234         * lib/fwriteerror.c [TEST]: Likewise.
45235         * tests/test-areadlink.h (test_areadlink): Likewise.
45236         * tests/test-areadlinkat-with-size.c (main): Likewise.
45237         * tests/test-areadlinkat.c (main): Likewise.
45238         * tests/test-canonicalize-lgpl.c (main): Likewise.
45239         * tests/test-canonicalize.c (main): Likewise.
45240         * tests/test-fstatat.c (main): Likewise.
45241         * tests/test-linkat.c (main): Likewise.
45242         * tests/test-lstat.h (test_lstat_func): Likewise.
45243         * tests/test-mkdir.h (test_mkdir): Likewise.
45244         * tests/test-readlink.h (test_readlink): Likewise.
45245         * tests/test-remove.c (main): Likewise.
45246         * tests/test-rename.h (test_rename): Likewise.
45247         * tests/test-renameat.c (main): Likewise.
45248         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45249         * tests/test-symlink.h (test_symlink): Likewise.
45250         * tests/test-symlinkat.c (main): Likewise.
45251         * tests/test-unlink.h (test_unlink_func): Likewise.
45252         * tests/test-unlinkat.c (main): Likewise.
45253
45254         maint: make realtime library usage explicit
45255         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45256         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45257         * modules/settime (Link): Likewise.
45258         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45259
45260         test-stat-time: speed up execution
45261         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45262         warning on mingw.
45263         (nap): New helper function.
45264         (prepare_test): Use it to reduce sleep time.
45265         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45266         execution.
45267         * modules/stat-time-tests (configure.ac): Check for usleep.
45268
45269 2009-10-09  Jim Meyering  <meyering@redhat.com>
45270
45271         selinux-h: always use getfilecon wrappers
45272         * lib/getfilecon.c: New file.
45273         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45274         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45275         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45276         (fgetfilecon): Provide a stub.
45277         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45278         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45279         file unconditionally.
45280         When <selinux/selinux.h> is found, arrange to use wrappers.
45281         * modules/selinux-h (Files): Add getfilecon.c.
45282         (Makefile.am): Substitute include-next-related bits
45283         into the now-always-generated selinux/selinux.h file.
45284         * doc/glibc-functions/lgetfilecon.texi: New file.
45285         * doc/glibc-functions/fgetfilecon.texi: New file.
45286         * doc/glibc-functions/getfilecon.texi: New file.
45287         * doc/glibc-functions/getfilecon-desc.texi: New file.
45288         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45289         which to pull in the new files.
45290         * MODULES.html.sh (Misc): Add selinux-h.
45291
45292 2009-10-08  Jim Meyering  <meyering@redhat.com>
45293
45294         unistd: fix comment typo
45295         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45296
45297 2009-10-08  Eric Blake  <ebb9@byu.net>
45298
45299         areadlink: use SIZE_MAX consistently
45300         * modules/areadlink (Depends-on): Add stdint.
45301         * modules/areadlink-with-size (Depends-on): Likewise.
45302         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45303         gives NULL; drop sys/types, since unistd gives size_t; and add
45304         stdint for SIZE_MAX.
45305         (SIZE_MAX): Rely on headers.
45306         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45307         and add stdint.
45308         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45309         (SIZE_MAX): Likewise.
45310         (INITIAL_BUF_SIZE): Turn into enum.
45311         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45312
45313 2009-10-08  Jim Meyering  <meyering@redhat.com>
45314
45315         areadlinkat: avoid compilation failure
45316         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45317         Fix typo in comment.
45318
45319 2009-10-07  Eric Blake  <ebb9@byu.net>
45320
45321         areadlinkat-with-size: new module
45322         * modules/areadlinkat-with-size: New module.
45323         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45324         * lib/areadlink.h (areadlinkat): Declare it.
45325         * MODULES.html.sh (File system functions): Mention it.
45326         * modules/areadlinkat-with-size-tests: New test.
45327         * tests/test-areadlinkat-with-size.c: New file.
45328
45329         xreadlinkat: new module
45330         * modules/xreadlinkat: New module.
45331         * lib/xreadlinkat.c (xreadlinkat): New file.
45332         * lib/xreadlink.h (xreadlinkat): Declare it.
45333         * MODULES.html.sh (File system functions): Mention it.
45334
45335         areadlinkat: new module
45336         * lib/at-func.c (FUNC_FAIL): New define.
45337         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45338         * modules/areadlinkat: New module.
45339         * lib/linkat.c (areadlinkat): Move...
45340         * lib/areadlinkat.c (areadlinkat): ...to new file.
45341         * lib/areadlink.h (areadlinkat): Declare it.
45342         * modules/linkat (Depends-on): Add areadlinkat.
45343         * MODULES.html.sh (File system functions): Mention it.
45344         * modules/areadlinkat-tests: New test.
45345         * tests/test-areadlinkat.c: New file.
45346
45347         areadlink, areadlink-with-size: add tests
45348         * modules/areadlink-tests: New test.
45349         * modules/areadlink-with-size-tests: Likewise.
45350         * tests/test-areadlink.h: New file.
45351         * tests/test-areadlink.c: Likewise.
45352         * tests/test-areadlink-with-size.c: Likewise.
45353
45354         maint: minor cleanups
45355         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45356         _UNUSED_PARAMETER_ instead.
45357         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45358         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45359         * modules/linkat-tests (Files): Distribute test-link.h.
45360
45361         openat, utimens: whitespace cleanup
45362         * lib/openat.c: Prefer space throughout, rather than mix of 8
45363         spaces vs. tabs.
45364         * lib/at-func.c: Likewise.
45365         * lib/utimens.c: Likewise.
45366
45367         openat: avoid using wrong fd
45368         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45369         working directory chooses same fd.
45370         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45371
45372         mkdir, mkdirat: fix cygwin 1.5.x bug
45373         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45374         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45375         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45376         bug.
45377         (gl_PREREQ_MKDIR): Delete unused macro.
45378         * modules/mkdir (Files): Track file rename.
45379         (configure.ac): Update macro name.
45380         * modules/openat (Depends-on): Add mkdir.
45381         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45382
45383         mkdir, mkdirat: add tests
45384         * modules/mkdir-tests: New test.
45385         * tests/test-mkdir.h: New file.
45386         * tests/test-mkdir.c: Likewise.
45387         * tests/test-mkdirat.c: Likewise.
45388         * modules/openat-tests (Files): Add new files.
45389         (Makefile.am): Run new test.
45390
45391 2009-10-06  Eric Blake  <ebb9@byu.net>
45392
45393         doc: tweak *at function documentation
45394         * doc/posix-functions/faccessat.texi (faccessat): Mention
45395         known issue with replacement.
45396         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45397         * doc/posix-functions/linkat.texi (linkat): Likewise.
45398         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45399         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45400         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45401         * doc/posix-functions/renameat.texi (renameat): Likewise.
45402         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45403
45404         openat: fix GNU/Hurd bug in unlinkat
45405         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45406         broken.
45407         * doc/posix-functions/unlink.texi (unlink): Document this.
45408         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45409
45410         fdopendir: fix GNU/Hurd bug
45411         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45412         allowing non-directory fds.
45413         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45414         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45415         * modules/dirent (Makefile.am): Substitute it.
45416         * lib/dirent.in.h (fdopendir): Declare replacement.
45417         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45418         * tests/test-fdopendir.c (main): Test something other than
45419         /dev/null, since on Hurd that behaves like a directory.
45420
45421         test-symlink: port to GNU/Hurd
45422         * tests/test-symlink.h (test_symlink): Relax expected errno.
45423
45424         doc: tweak more cygwin information
45425         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45426         now compatible with glibc.
45427         * doc/posix-functions/getopt.texi (getopt): Likewise.
45428
45429         getopt-gnu: add another test
45430         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45431         guarantee behavior relied on by m4.
45432         * tests/test-getopt.c (main): Use it.
45433         * modules/getopt-posix-tests (Depends-on): Add setenv.
45434         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45435
45436         getopt: fix compilation on darwin
45437         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45438         include.
45439         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45440         Reported by Ludovic Courtès.
45441
45442 2009-10-06  Bruno Haible  <bruno@clisp.org>
45443
45444         * modules/size_max (Description): Discourage its use.
45445         Reported by Simon Josefsson.
45446
45447 2009-10-06  Jim Meyering  <meyering@redhat.com>
45448
45449         linkat: avoid compilation failure
45450         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45451
45452 2009-10-05  Eric Blake  <ebb9@byu.net>
45453
45454         linkat: support Linux 2.6.17
45455         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45456         linkat on Linux, but allow cache variable override.
45457         * lib/linkat.c (rpl_linkat): Define override.
45458         * modules/linkat (Depends-on): Add symlinkat.
45459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45460         * modules/unistd (Makefile.am): Substitute it.
45461         * lib/unistd.in.h (linkat): Declare replacement.
45462         Reported by Pádraig Brady.
45463
45464         quotearg: port test to systems with C.UTF-8 locale
45465         * tests/test-quotearg.c (struct result_strings): Add another
45466         member, differentiating between C.ASCII and C.UTF-8 handling.
45467         (compare_strings): Add parameter.
45468         (main): Adjust all callers.
45469
45470         getopt: avoid clash with FreeBSD _getopt_internal
45471         * lib/getopt.in.h (_getopt_internal): Override the name.
45472         * lib/getopt_int.h (includes): Pick up any overrides.
45473         Reported by Reuben Thomas.
45474
45475         hash: allow C89 compilation
45476         * lib/hash.c (check_tuning): Move declaration before statement.
45477         Reported by Reuben Thomas.
45478
45479 2009-10-05  Karl Berry  <karl@gnu.org>
45480
45481         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45482
45483 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45484             Bruno Haible  <bruno@clisp.org>
45485
45486         * lib/uname.c (uname): Use a table-driven algorithm to compute
45487         Windows NT versions.
45488
45489 2009-10-04  Bruno Haible  <bruno@clisp.org>
45490
45491         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45492         program_invocation_short_name.
45493         * modules/progname (configure.ac): Test for presence of
45494         program_invocation_short_name.
45495         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45496
45497 2009-10-04  Bruno Haible  <bruno@clisp.org>
45498
45499         * lib/progname.c (set_program_name): Fix comment.
45500         Reported by Jim Meyering.
45501
45502 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45503             Bruno Haible  <bruno@clisp.org>
45504
45505         * lib/uname.c: Include <string.h>.
45506         (uname): Do only one call to GetVersionEx in the common case.
45507
45508 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45509             Bruno Haible  <bruno@clisp.org>
45510
45511         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45512         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45513         (uname): Add support for Windows CE and various non-x86 CPU types.
45514
45515 2009-10-03  Bruno Haible  <bruno@clisp.org>
45516
45517         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45518         invocation to tests/configure.ac.
45519         Reported by Ian Beckwith <ianb@erislabs.net>.
45520
45521 2009-10-02  Eric Blake  <ebb9@byu.net>
45522
45523         fchdir: avoid compiler warning
45524         * lib/fchdir.c (canonicalize_file_name)
45525         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45526
45527         test-open: support mingw errno values
45528         * tests/test-open.h (test_open): Relax test.
45529         * tests/test-fopen.h (test_fopen): Likewise.
45530         * tests/test-openat-safer.c (main): Likewise.
45531
45532         open: fix opening directory on mingw
45533         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45534
45535         test-open: on GNU/Hurd, /dev/null is a directory
45536         * tests/test-fopen.h (main): Rename...
45537         (test_fopen): ...to this.  Use a guaranteed non-directory when
45538         confirming open behavior on trailing slash.
45539         * tests/test-openat-safer.c (main): Likewise.
45540         * tests/test-open.h (main): Likewise....
45541         (test_open): ...to this.
45542         * tests/test-fopen.c (main): Adjust caller.
45543         * tests/test-fopen-safer.c (main): Likewise.
45544         * tests/test-open.c (main): Likewise.
45545         * tests/test-fcntl-safer.c (main): Likewise.
45546         Reported by Samuel Thibault.
45547
45548         rename, fchdir: don't ignore chdir failure
45549         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45550         * lib/rename.c (rpl_rename) [W32]: Likewise.
45551         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45552         an empty destination directory if source cannot be renamed,
45553         although there is still possibility for failure.
45554         * doc/posix-functions/rename.texi (rename): Document the race.
45555         Reported by Jim Meyering.
45556
45557         maint: cleanup whitespace in recent commits
45558         * lib/rename.c (rpl_rename): Remove tabs.
45559         * tests/test-link.h (test_link): Likewise.
45560         * lib/fchdir.c (get_name): Likewise.
45561         Reported by Jim Meyering.
45562
45563 2009-10-02  Ben Pfaff  <blp@gnu.org>
45564
45565         relocatable-prog-wrapper: Add missing dependency on
45566         double-slash-root.
45567         * modules/relocatable-prog-wrapper: Add dependency.
45568         Reported by Ian Beckwith <ianb@erislabs.net>.
45569
45570 2009-10-02  Eric Blake  <ebb9@byu.net>
45571
45572         renameat: fix Solaris bugs
45573         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45574         needed fixing.
45575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45576         * modules/stdio (Makefile.am): Substitute it.
45577         * lib/stdio.in.h (renameat): Declare replacement.
45578         * lib/renameat.c (rpl_renameat): Implement fix.
45579
45580         renameat: new module
45581         * modules/renameat: New file.
45582         * lib/renameat.c (renameat): Likewise.
45583         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45585         * modules/stdio (Makefile.am): Substitute them.
45586         * lib/stdio.in.h (renameat): Declare it.
45587         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45588         * doc/posix-functions/renameat.texi (renameat): Likewise.
45589         * modules/renameat-tests: New test.
45590         * tests/test-renameat.c: Likewise.
45591
45592         rename: fix mingw bugs
45593         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45594         directory overwrite bugs.
45595
45596         rename: fix another cygwin 1.5 bug
45597         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45598         checks.
45599         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45600         unnecessary cygwin workarounds.  Also work around bug with moving
45601         full directory onto an empty one.
45602         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45603
45604         rename-dest-slash: merge into rename module
45605         * modules/rename-dest-slash (Status): Mark obsolete.
45606         (Depends-on): Add rename.
45607         (Files): Let rename do it all.
45608         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45609         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45610         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45611         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45612         * lib/rename.c (rpl_rename): Update comments.
45613
45614         rename: fix cygwin 1.5.x bugs
45615         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45616         * lib/rename.c (rpl_rename): Work around them.
45617         * modules/rename (Depends-on): Add same-inode.
45618
45619         rename: fix Solaris 10 bug
45620         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45621         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45622         was the only bug.
45623
45624         rename: fix Solaris 9 bug
45625         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45626         on non-directory.  Avoid calling exit.
45627         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45628         strdup.
45629         * modules/rename-tests (Depends-on): Drop lstat.
45630         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45631         (gl_PREREQ_RENAME): Delete unused macro.
45632
45633         rename-dest-slash: fix NetBSD bug
45634         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45635         links.
45636         * modules/rename-dest-slash (Depends-on): Add same-inode.
45637
45638         rename-tests: new test, exposes several platform bugs
45639         * modules/rename-tests: New file.
45640         * tests/test-rename.h: Likewise.
45641         * tests/test-rename.c: Likewise.
45642         * doc/posix-functions/rename.texi (rename): Improve documentation,
45643         including bugs that will eventually be fixed in gnulib.
45644
45645 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45646
45647         * lib/uname.c: Include <stdlib.h>
45648         (uname): Assume version info is available.
45649
45650 2009-10-02  Jim Meyering  <meyering@redhat.com>
45651
45652         gnu-web-doc-update: correct --help output
45653         * build-aux/gnu-web-doc-update: Make --help output relevant.
45654
45655         gnu-web-doc-update: add standard options
45656         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45657
45658         gnu-web-doc-update: New module.
45659         Use this script to automatically update the on-line web documentation
45660         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45661         * modules/gnu-web-doc-update: New file, from coreutils.
45662         * build-aux/gnu-web-doc-update: New script.
45663
45664 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45665
45666         link: LoadLibrary is not needed.
45667         * lib/link.c: Use GetModuleHandle.
45668
45669 2009-10-01  Eric Blake  <ebb9@byu.net>
45670
45671         getopt: bump serial number
45672         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45673         change.
45674
45675         tests: tighten link, rmdir, and remove tests
45676         * tests/test-link.h (includes): No need to use <config.h> here.
45677         Clean up if directory hard link was created, otherwise test for
45678         trailing '.'.
45679         * tests/test-linkat.c (main): Simplify.
45680         * tests/test-remove.c (main): Enhance test for trailing '.'.
45681         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45682
45683 2009-10-01  Jim Meyering  <meyering@redhat.com>
45684
45685         maint.mk: requiring "make major" was annoying, for a "minor" release.
45686         What is intended is "stable", to contrast with alpha and beta,
45687         so require "make stable", not "make major".
45688         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45689         (get_tool_versions): Likewise.
45690         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45691
45692 2009-09-30  Ben Pfaff  <blp@gnu.org>
45693
45694         Fix broken build of replacement for Windows tmpfile().
45695         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45696         flags argument added along with the 'mkostemp' module.
45697
45698 2009-09-28  Bruno Haible  <bruno@clisp.org>
45699
45700         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45701         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45702         to 'remove_elt'.
45703         (gl_list_remove): Update.
45704         * lib/gl_list.c (gl_list_remove): Update.
45705         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45706         to 'remove_elt'.
45707         (gl_oset_remove): Update.
45708         * lib/gl_list.c (gl_oset_remove): Update.
45709         Reported by Eric Blake.
45710
45711 2009-09-28  Eric Blake  <ebb9@byu.net>
45712
45713         doc: mention yet more cygwin 1.7 status
45714         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45715         cygwin.
45716         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45717         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45718
45719         argp: fix test failure
45720         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45721         that are not upper-case.  Pass correct range to tolower.
45722
45723 2009-09-27  Jim Meyering  <meyering@redhat.com>
45724
45725         test-yesno: work around sparc-dash here-document infelicity
45726         Without this change, the literal \177 byte in a here document
45727         would make dash 0.5.5.1-3 access uninitialized memory.
45728         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45729         Instead, use a marker, "@", and filter through tr to create the desired
45730         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45731
45732 2009-09-27  Bruno Haible  <bruno@clisp.org>
45733
45734         Disable untested support for new flavours of ACLs on AIX.
45735         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45736         progress.
45737         * lib/set-mode-acl.c (qset_acl): Likewise.
45738
45739 2008-12-07  Bruno Haible  <bruno@clisp.org>
45740
45741         Add support for new flavours of ACLs on AIX. (Untested.)
45742         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45743         (file_has_acl): Add support for newer AIX.
45744         * lib/set-mode-acl.c (qset_acl): Likewise.
45745         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45746         Rainer Tammer <tammer@tammer.net>.
45747
45748 2009-09-26  Eric Blake  <ebb9@byu.net>
45749
45750         argp: fix compilation of getopt
45751         * lib/getopt.in.h (includes): Use different guard than glibc.
45752         Reported by Sergey Poznyakoff.
45753
45754         doc: mention more cygwin 1.7 status
45755         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45756         bug.
45757         * doc/posix-functions/execl.texi (execl): Likewise.
45758         * doc/posix-functions/execle.texi (execle): Likewise.
45759         * doc/posix-functions/execlp.texi (execlp): Likewise.
45760         * doc/posix-functions/execv.texi (execv): Likewise.
45761         * doc/posix-functions/execve.texi (execve): Likewise.
45762         * doc/posix-functions/execvp.texi (execvp): Likewise.
45763         * doc/glibc-functions/canonicalize_file_name.texi
45764         (canonicalize_file_name): Cygwin 1.7 now provides this.
45765         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45766         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45767         on AT_SYMLINK_NOFOLLOW.
45768
45769 2009-09-24  Eric Blake  <ebb9@byu.net>
45770
45771         test-linkat: make test more robust
45772         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45773
45774         getopt: fix inclusion guards for cygwin
45775         * modules/getopt-posix (Depends-on): Add include-next.
45776         (Makefile.am): Substitute more items in replacement header.
45777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45778         <getopt.h>.
45779         * lib/getopt.in.h (includes): Use split inclusion guard, and
45780         prefer <getopt.h> over include <unistd.h> when one is present.
45781         (option): Also override name of 'struct option'.
45782
45783         same-inode: revert prior change; it is not yet ready
45784         * NEWS: Undo mention of this change.
45785         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45786         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45787         * lib/cycle-check.c (cycle_check): Likewise.
45788         * lib/same.c (same_name): Likewise.
45789         * lib/at-func2.c (at_func2): Likewise.
45790
45791 2009-09-23  Eric Blake  <ebb9@byu.net>
45792
45793         linkat: new module
45794         * modules/linkat: New file.
45795         * lib/at-func2.c (at_func2): Likewise.
45796         * lib/linkat.c (linkat): Likewise.
45797         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45798         * lib/openat-priv.h (at_func2): Add declaration.
45799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45800         * modules/unistd (Makefile.am): Substitute them.
45801         * lib/unistd.in.h (linkat): Declare it.
45802         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45803         * doc/posix-functions/linkat.texi (linkat): Likewise.
45804         * doc/posix-functions/link.texi (link): Tweak wording.
45805         * tests/test-link.c (main): Move guts...
45806         * tests/test-link.h (test_link): ...into new file.
45807         * modules/linkat-tests: New test.
45808         * tests/test-linkat.c: Likewise.
45809         * modules/link-tests (Files): Ship new file.
45810         (Depends-on): Add stdbool.
45811
45812         dirname: add library-safe mdir_name
45813         * lib/dirname.h (mdir_name): New prototype.
45814         * lib/dirname.c (dir_name): Move guts...
45815         (mdir_name): ...to new function that avoids xalloc_die.
45816
45817         fchdir: another mingw fix
45818         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45819         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45820         on mingw (where it has not yet been ported), and make it optional
45821         elsewhere.
45822         (_gl_register_fd): Use it.
45823
45824         same-inode: make SAME_INODE tri-state, to port to mingw
45825         * NEWS: Mention this change.
45826         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45827         st_ino always being 0.
45828         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45829         * lib/cycle-check.c (cycle_check): Likewise.
45830         * lib/same.c (same_name): Likewise.
45831
45832         lstat: avoid mingw compilation error
45833         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45834         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45835         lstat ourselves.
45836         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45837         was adequate.
45838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45839         the checks for lstat.
45840         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45841
45842         link: fix test failure on Solaris 9
45843         * lib/link.c (rpl_link): Don't assume link will catch bogus
45844         trailing slash on source.
45845
45846         test-symlinkat: enhance test
45847         * tests/test-readlink.c (main): Move guts...
45848         * tests/test-readlink.h (test_readlink): ...into new file.
45849         * tests/test-symlink.c (main): Move guts...
45850         * tests/test-symlink.h (test_symlink): ...into new file.
45851         * tests/test-symlinkat.c (main): Use new files for further
45852         coverage.
45853         (do_symlink, do_readlink): New helper functions.
45854         * modules/symlink-tests (Files): Ship new file.
45855         (Depends-on): Add stdbool.
45856         * modules/readlink-tests (Files): Ship new file.
45857         (Depends-on): Add stdbool.
45858         * modules/symlinkat-tests (Files): Use new files.
45859
45860 2009-09-23  Eric Blake  <ebb9@byu.net>
45861
45862         readlink: document portability issue with symlink length
45863         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45864         systems have bogus st_size on symlinks, and mention the
45865         areadlink-with-size module.
45866         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45867         * doc/posix-functions/readlink.texi (readlink): Mention the
45868         areadlink module, and ERANGE failure.
45869         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45870         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45871
45872         readlink: fix Solaris 9 bug with trailing slash
45873         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45874         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45875         * doc/posix-functions/readlink.texi (readlink): Document this.
45876         * modules/readlink-tests: New test.
45877         * tests/test-readlink.c: Likewise.
45878
45879         readlink: fix cygwin 1.5.x bug with return type
45880         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45881         * lib/unistd.in.h (readlink): Use ssize_t.
45882         * lib/readlink.c (readlink): Likewise.
45883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45884         * modules/unistd (Makefile.am): Substitute it.
45885         * lib/unistd.in.h (readlink): Declare replacement.
45886         * doc/posix-functions/readlink.texi (readlink): Document this.
45887
45888         symlink: use throughout gnulib
45889         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45890         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45891         symlink is not used.
45892         * modules/symlinkat (Depends-on): Add symlink.
45893         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45894         * modules/canonicalize-tests (Depends-on): Likewise.
45895         * modules/lstat-tests (Depends-on): Likewise.
45896         * modules/openat-tests (Depends-on): Likewise.
45897         * modules/remove-tests (Depends-on): Likewise.
45898         * modules/rmdir-tests (Depends-on): Likewise.
45899         * modules/unlink-tests (Depends-on): Likewise.
45900         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45901         * tests/test-canonicalize.c (symlink): Likewise.
45902         * tests/test-fstatat.c (symlink): Likewise.
45903         * tests/test-lstat.c (symlink): Likewise.
45904         * tests/test-remove.c (symlink): Likewise.
45905         * tests/test-rmdir.c (symlink): Likewise.
45906         * tests/test-unlink.c (symlink): Likewise.
45907         * tests/test-unlinkat.c (symlink): Likewise.
45908
45909         symlink: new module, for Solaris 9 bug
45910         * modules/symlink: New file.
45911         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45912         * lib/symlink.c: Likewise.
45913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45914         * modules/unistd (Makefile.am): Substitute them.
45915         * lib/unistd.in.h (symlink): Declare replacement.
45916         * MODULES.html.sh (File system functions): Mention it.
45917         * doc/posix-functions/symlink.texi (symlink): Likewise.
45918         * modules/symlink-tests: New test.
45919         * tests/test-symlink.c: Likewise.
45920
45921 2009-09-23  Bruno Haible  <bruno@clisp.org>
45922
45923         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45924         when needed.
45925         Test case: gnulib-tool --import --with-tests atexit inttypes.
45926         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45927
45928 2009-09-23  Bruno Haible  <bruno@clisp.org>
45929
45930         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45931         subcommand, not in a subshell.
45932
45933 2009-09-22  Eric Blake  <ebb9@byu.net>
45934
45935         unistd: sort replacement declarations
45936         * lib/unistd.in.h: Sort declarations.
45937
45938         open, openat: minor optimization
45939         * lib/open.c (open): If open succeeded, len is non-zero.
45940         * lib/openat.c (rpl_openat): Likewise.
45941
45942         link-follow: ensure correct result
45943         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45944         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45945         distinguish between possible failures.
45946
45947 2009-09-21  Eric Blake  <ebb9@byu.net>
45948
45949         fts: avoid compiler warning
45950         * lib/fts.c (dirent_inode_sort_may_be_useful)
45951         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45952
45953 2009-09-19  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/progreloc.c (canonicalize_file_name): New declaration.
45956
45957 2009-09-19  Eric Blake  <ebb9@byu.net>
45958
45959         link: fix quoting
45960         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45961
45962         openat: fix openat bugs on Solaris 9
45963         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45964         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45965         * modules/openat (Depends-on): Add open.
45966         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45967         * modules/fcntl-h (Makefile.am): Substitute it.
45968         * lib/fcntl.in.h (openat): Declare replacement.
45969         * doc/posix-functions/openat.texi (openat): Document this.
45970
45971         openat: move fstatat and unlinkat into correct files
45972         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45973         compiled.
45974         * lib/openat.c (fstatat, unlinkat): Move...
45975         * lib/fstatat.c (fstatat): ...into correct files.
45976         * lib/unlinkat.c (unlinkat): Likewise.
45977
45978         openat: fix unlinkat bugs on Solaris 9
45979         * lib/unlinkat.c (unlinkat): New file.
45980         * modules/openat (Depends-on): Add unlink.
45981         (Files): Distribute it.
45982         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45983         trailing slash behavior is broken.
45984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45985         * modules/unistd (Makefile.am): Substitute it.
45986         * lib/unistd.in.h (unlinkat): Declare replacement.
45987         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45988
45989         openat: fix fstatat bugs on Solaris 9
45990         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45991         stat.
45992         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45993
45994         test-unlinkat: enhance test, to expose Solaris 9 bug
45995         * tests/test-unlink.c (main): Factor guts...
45996         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45997         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45998         * tests/test-rmdir.c (main): Adjust caller.
45999         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46000         (unlinker): New helper function.
46001         (rmdirat): Enhance check.
46002         * modules/rmdir-tests (Depends-on): Add stdbool.
46003         * modules/unlink-tests (Depends-on): Likewise.
46004         (Files): Add test-unlink.h.
46005         * modules/openat-tests (Files): Likewise.
46006         (Depends-on): Add unlinkdir.
46007
46008         test-fstatat: new test, to expose Solaris 9 bugs
46009         * tests/test-stat.c (main): Factor guts...
46010         * tests/test-stat.h (test_stat_func): ...into new file.
46011         * tests/test-lstat.c (main): Factor guts...
46012         * tests/test-lstat.h (test_lstat_func): ...into new file.
46013         * tests/test-fstatat.c: New file.
46014         * modules/stat-tests (Files): Add test-stat.h.
46015         * modules/lstat-tests (Files): Add test-lstat.h.
46016         (Depends-on): Add stdbool.
46017         * modules/openat-tests (Depends-on): Add pathmax.
46018         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46019         (Makefile.am): Run new test.
46020
46021         remove: new module, for mingw and Solaris 9 bugs
46022         * modules/remove: New file.
46023         * lib/remove.c: Likewise.
46024         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46026         * modules/stdio (Makefile.am): Use them.
46027         * lib/stdio.in.h (remove): Declare replacement.
46028         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46029         * doc/posix-functions/remove.texi (remove): Likewise.
46030         * modules/remove-tests: New test.
46031         * tests/test-remove.c: Likewise.
46032
46033         unlink: new module, for Solaris 9 bug
46034         * modules/unlink: New file.
46035         * lib/unlink.c: Likewise.
46036         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46038         * modules/unistd (Makefile.am): Use them.
46039         * lib/unistd.in.h (stat): Declare replacement.
46040         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46041         * doc/posix-functions/unlink.texi (unlink): Likewise.
46042         * modules/unlink-tests: New test.
46043         * tests/test-unlink.c: Likewise.
46044
46045         lstat: fix Solaris 9 bug
46046         * lib/lstat.c (lstat): Also check for trailing slash on
46047         non-symlink, non-directories.  Use stat module to simplify logic.
46048         * doc/posix-functions/lstat.texi (lstat): Document it.
46049         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46050         (configure.ac): Check for symlink.
46051         * tests/test-lstat.c (main): Add more tests.
46052
46053         stat: add as dependency to other modules
46054         * modules/chown (Depends-on): Add stat.
46055         * modules/euidaccess (Depends-on): Likewise.
46056         * modules/fchdir (Depends-on): Likewise.
46057         * modules/isdir (Depends-on): Likewise.
46058         * modules/link (Depends-on): Likewise.
46059         * modules/lstat (Depends-on): Likewise.
46060         * modules/mkdir-p (Depends-on): Likewise.
46061         * modules/modechange (Depends-on): Likewise.
46062         * modules/open (Depends-on): Likewise.
46063         * modules/readlink (Depends-on): Likewise.
46064         * modules/same (Depends-on): Likewise.
46065
46066         stat: fix Solaris 9 bug
46067         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46068         slash.
46069         * lib/stat.c (rpl_stat): Work around it.
46070         * doc/posix-functions/stat.texi (stat): Update documentation.
46071
46072         stat: new module, for mingw bug
46073         * modules/stat: New file.
46074         * lib/stat.c: Likewise.
46075         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46076         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46077         * modules/sys_stat (Makefile.am): Use them.
46078         * lib/sys_stat.in.h (stat): Declare replacement.
46079         * lib/openat.c (fstatat): Deal with lstat and stat being function
46080         macros.
46081         * modules/openat (Depends-on): Add inline.
46082         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46083         * doc/posix-functions/stat.texi (stat): Likewise.
46084         * modules/stat-tests: New test.
46085         * tests/test-stat.c: Likewise.
46086
46087 2009-09-19  Jim Meyering  <meyering@redhat.com>
46088
46089         syntax-check: detect unnecessary inclusion of canonicalize.h
46090         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46091
46092 2009-09-19  Eric Blake  <ebb9@byu.net>
46093
46094         canonicalize-lgpl: adjust clients to use correct header
46095         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46096         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46097         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46098         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46099         * lib/progreloc.c (includes): Likewise.
46100
46101 2009-09-19  Jim Meyering  <meyering@redhat.com>
46102
46103         test-posixtm.c: correct a comment
46104         * tests/test-posixtm.c: Correct first-line comment.
46105         Spotted by Eric Blake.
46106
46107 2009-09-16  Jim Meyering  <meyering@redhat.com>
46108
46109         posixtm-tests: make T const-correct; add a test case
46110         * tests/test-posixtm.c (T): Declare const.
46111         Add a test for -(2^31+1).
46112         Remove useless can-succeed-only-in-2002 test.
46113
46114         posixtm-tests: adjust the sole failing test
46115         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46116         expected output matches what mktime now produces.  Cross-checked via
46117         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46118
46119         posixtm: move #ifdef'd tests into a new module
46120         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46121         * tests/test-posixtm.c: ... this new file.
46122         * modules/posixtm-tests: New module.
46123
46124 2009-09-19  Eric Blake  <ebb9@byu.net>
46125
46126         openat: simplify use of at-func.c
46127         * lib/at-func.c (includes): Include prerequisites here, to
46128         simplify requirements on client files.
46129         * lib/openat-priv.h: Add double-inclusion guard.
46130         * lib/faccessat.c (includes): Simplify.
46131         * lib/fchmodat.c (includes): Likewise.
46132         * lib/fchownat.c (includes): Likewise.
46133         * lib/mkdirat.c (includes): Likewise.
46134         * lib/mkfifoat.c (includes): Likewise.
46135         * lib/symlinkat.c (includes): Likewise.
46136
46137         openat: allow return of fd 0
46138         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46139         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46140         unistd-safer.
46141         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46142         <fcntl.h>; this module does not leak fds.
46143         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46144         must be allowed to return 0, leaving openat_safer to add the
46145         safety.
46146         (openat_permissive): Avoid writing to just-opened fd 2 if
46147         restoring the current directory fails.
46148         * lib/openat-die.c (openat_restore_fail): Add comment.
46149         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46150         (save_cwd): Guarantee safe fd, but without use of open_safer.
46151         * tests/test-openat.c: New test.
46152         * modules/openat-tests (Files, Makefile.am): Distribute and build
46153         new file.
46154
46155         relocatable-prog-wrapper: fix build
46156         * modules/relocatable-prog-wrapper (Files): Update name of
46157         canonicalize m4 file, broken on 2009-09-17.
46158         Reported by emad hajjar <aleppos@hotmail.com>.
46159
46160 2009-09-19  Bruno Haible  <bruno@clisp.org>
46161
46162         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46163         * lib/safe-alloc.c: Likewise.
46164         Reported by Ian Beckwith <ianb@erislabs.net>.
46165
46166 2009-09-18  Bruno Haible  <bruno@clisp.org>
46167
46168         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46169         Reported by <erobles@sensacd.com.mx>.
46170
46171 2009-09-17  Eric Blake  <ebb9@byu.net>
46172
46173         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46174         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46175         slashes when checking if last component is missing.
46176         * tests/test-canonicalize.c (main): Test this.
46177
46178         canonicalize, canonicalize-lgpl: honor // if distinct from /
46179         * modules/canonicalize (Files): Add double-slash-root.m4.
46180         * modules/canonicalize-lgpl (Files): Likewise.
46181         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46182         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46183         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46184         fallback definition.
46185         (canonicalize_filename_mode): Use it to protect //.
46186         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46187         (__realpath): Likewise.
46188         * tests/test-canonicalize.c (main): Test this.
46189         * tests/test-canonicalize-lgpl.c (main): Likewise.
46190         * modules/canonicalize-tests (Depends-on): Add same-inode.
46191         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46192
46193         canonicalize-lgpl: fix glibc bug with trailing slash
46194         * m4/canonicalize-lgpl.m4: Move contents...
46195         * m4/canonicalize.m4: ...here.
46196         (gl_CANONICALIZE_LGPL): Factor realpath check...
46197         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46198         glibc 2.3.5 bug, fixed 2005-04-27.
46199         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46200         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46201         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46202         * modules/canonicalize-lgpl (Files): Manage file rename.
46203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46204         * modules/stdlib (Makefile.am): Substitute witness.
46205         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46206         is needed.
46207         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46208         replacement is required.
46209         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46210         * doc/glibc-functions/canonicalize_file_name.texi
46211         (canonicalize_file_name): Document this.
46212         * doc/posix-functions/realpath.texi (realpath): Likewise.
46213
46214         canonicalize-lgpl: reject non-directory with trailing slash
46215         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46216         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46217         catches failures in glibc 2.3.5.
46218         * tests/test-canonicalize.c (main): Likewise.
46219
46220         canonicalize-lgpl: use native realpath if it works
46221         * lib/canonicalize-lgpl.c (realpath): Guard with
46222         FUNC_REALPATH_WORKS.
46223         * lib/stdlib.in.h (realpath): Make declaration optional based on
46224         HAVE_REALPATH.
46225         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46226         native realpath works.
46227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46228         * modules/stdlib (Makefile.am): Substitute witness.
46229
46230         canonicalize, canonicalize-lgpl: use <stdlib.h>
46231         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46232         (Include): Mention <stdlib.h>.
46233         (configure.ac): Mention functions we provide.
46234         * modules/canonicalize (configure.ac): Likewise.
46235         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46236         realpath if canonicalize_file_name is missing.
46237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46238         * modules/stdlib (Makefile.am): Substitute witnesses.
46239         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46240         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46241         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46242         * NEWS: Document this.
46243         * doc/glibc-functions/canonicalize_file_name.texi
46244         (canonicalize_file_name): Likewise.
46245         * doc/posix-functions/realpath.texi (realpath): Likewise.
46246         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46247
46248         test-canonicalize: consolidate into single C program
46249         * tests/test-canonicalize.sh: Delete; move setup into...
46250         * tests/test-canonicalize.c (main): ...the program, making it
46251         easier to run in debugger.  Add some tests.
46252         * modules/canonicalize-tests (Files): Remove unused file.
46253         (Depends-on): Add progname.
46254         (configure.ac, Makefile.am): Simplify.
46255
46256         test-canonicalize-lgpl: consolidate into single C program
46257         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46258         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46259         easier to run in debugger.  Add some tests.
46260         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46261         (configure.ac, Makefile.am): Simplify.
46262
46263         canonicalize: avoid resolvepath
46264         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46265         unnecessary checks.
46266         * lib/canonicalize.c (includes): Simplify.
46267         (canonicalize_file_name): Drop resolvepath implementation.
46268         * modules/canonicalize (Depends-on): Drop filenamecat.
46269
46270         canonicalize: don't lose errno
46271         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46272         over calls to free.
46273
46274         canonicalize: simplify errno handling
46275         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46276         assignment.
46277
46278         canonicalize, canonicalize-lgpl: update module dependencies
46279         * modules/canonicalize (Depends-on): Add extensions, lstat,
46280         pathmax, stdlib.
46281         (Files): Drop pathmax.h.
46282         (configure.ac): Adjust macro name.
46283         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46284         lstat, stdlib, sys_stat.
46285         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46286         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46287         extensions.
46288         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46289         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46290         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46291         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46292         declaration, if available.
46293         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46294         we can rely on the readlink module.
46295         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46296         (includes): Use <unistd.h> unconditionally.
46297
46298 2009-09-17  Eric Blake  <ebb9@byu.net>
46299
46300         maint: make Include sections of modules consistent
46301         * modules/alloca: Use only header name; no need to list #include.
46302         * modules/alloca-opt: Likewise.
46303         * modules/arpa_inet: Likewise.
46304         * modules/canon-host: Likewise.
46305         * modules/configmake: Likewise.
46306         * modules/dirent: Likewise.
46307         * modules/eealloc: Likewise.
46308         * modules/environ: Likewise.
46309         * modules/fchdir: Likewise.
46310         * modules/fcntl: Likewise.
46311         * modules/fcntl-h: Likewise.
46312         * modules/gethrxtime: Likewise.
46313         * modules/gettime: Likewise.
46314         * modules/ignore-value: Likewise.
46315         * modules/inet_ntop: Likewise.
46316         * modules/inet_pton: Likewise.
46317         * modules/inttypes: Likewise.
46318         * modules/isnand-nolibm: Likewise.
46319         * modules/isnanf-nolibm: Likewise.
46320         * modules/mbchar: Likewise.
46321         * modules/mbfile: Likewise.
46322         * modules/mbiter: Likewise.
46323         * modules/mbuiter: Likewise.
46324         * modules/netdb: Likewise.
46325         * modules/netinet_in: Likewise.
46326         * modules/nproc: Likewise.
46327         * modules/pagealign_alloc: Likewise.
46328         * modules/poll: Likewise.
46329         * modules/printf-frexp: Likewise.
46330         * modules/pthread: Likewise.
46331         * modules/putenv: Likewise.
46332         * modules/random_r: Likewise.
46333         * modules/relocatable-prog: Likewise.
46334         * modules/search: Likewise.
46335         * modules/select: Likewise.
46336         * modules/selinux-h: Likewise.
46337         * modules/settime: Likewise.
46338         * modules/signal: Likewise.
46339         * modules/size_max: Likewise.
46340         * modules/socklen: Likewise.
46341         * modules/ssize_t: Likewise.
46342         * modules/stdarg: Likewise.
46343         * modules/stdbool: Likewise.
46344         * modules/stddef: Likewise.
46345         * modules/stdint: Likewise.
46346         * modules/stdio: Likewise.
46347         * modules/stdlib: Likewise.
46348         * modules/string: Likewise.
46349         * modules/strings: Likewise.
46350         * modules/sys_file: Likewise.
46351         * modules/sys_ioctl: Likewise.
46352         * modules/sys_select: Likewise.
46353         * modules/sys_socket: Likewise.
46354         * modules/sys_stat: Likewise.
46355         * modules/sys_time: Likewise.
46356         * modules/sys_times: Likewise.
46357         * modules/sys_utsname: Likewise.
46358         * modules/sys_wait: Likewise.
46359         * modules/sysexits: Likewise.
46360         * modules/time: Likewise.
46361         * modules/times: Likewise.
46362         * modules/tmpfile: Likewise.
46363         * modules/trim: Likewise.
46364         * modules/unistd: Likewise.
46365         * modules/wchar: Likewise.
46366         * modules/wctype: Likewise.
46367
46368 2009-09-17  Bruno Haible  <bruno@clisp.org>
46369
46370         Make getdate.y compile on QNX and NetBSD 5 / i386.
46371         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46372         TIME_T_FITS_IN_LONG_INT.
46373         * lib/getdate.y (long_time_t): New type.
46374         (relative_time): Change type of 'seconds' field to long_time_t.
46375         (get_date): Update types of local variables. Check against overflow
46376         during conversion from long_time_t to time_t.
46377         Reported by Matt Kraai <kraai@ftbfs.org>
46378         and Hasso Tepper <hasso@netbsd.org>.
46379
46380 2009-09-17  Bruno Haible  <bruno@clisp.org>
46381
46382         * modules/COPYING: Update copyright years.
46383         * modules/README: Likeiwse.
46384         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46385         Reported by Ian Beckwith <ianb@erislabs.net>.
46386
46387 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46388
46389         * users.txt: Update references for gnuit package.
46390
46391 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46392
46393         * m4/getdelim.m4: Fix typo in copyright line.
46394
46395 2009-09-17  Bruno Haible  <bruno@clisp.org>
46396
46397         * lib/atoll.c: Use the standard header with GPL copyright.
46398         * lib/argz.in.h: Likewise.
46399         * lib/glob.c: Likewise.
46400         * lib/glob-libc.h: Likewise.
46401         * lib/random_r.c: Likewise.
46402         * lib/siglist.h: Likewise.
46403         * lib/strsignal.c: Likewise.
46404         Reported by Ian Beckwith <ianb@erislabs.net>.
46405
46406 2009-09-17  Eric Blake  <ebb9@byu.net>
46407
46408         rmdir: ensure correct dependency order
46409         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46410
46411 2009-09-17  Bruno Haible  <bruno@clisp.org>
46412
46413         Disable assertion that fails on NetBSD 5 / i386.
46414         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46415         Reported by Sam Steingold <sds@gnu.org>
46416         and Hasso Tepper <hasso@netbsd.org>.
46417
46418 2009-09-16  Eric Blake  <ebb9@byu.net>
46419
46420         unlinkdir: port to mingw
46421         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46422         on which no one can unlink a directory.
46423
46424         stdlib: sort witness names
46425         * modules/stdlib (Makefile.am): Sort replacements.
46426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46427         * lib/stdlib.in.h: Likewise.
46428
46429         parse-duration-tests: avoid link failure
46430         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46431         LIBINTL.
46432         Reported by Tom G. Christensen.
46433
46434         openat-tests: ensure unlinkat behaves like rmdir
46435         * tests/test-rmdir.c (main): Factor guts...
46436         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46437         * modules/rmdir-tests (Files): Ship new file.
46438         * modules/openat-tests: New test.
46439         * tests/test-unlinkat.c: Likewise.
46440
46441         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46442         * modules/rmdir-errno (Status, Notice): Now obsolete.
46443
46444         rmdir: work around cygwin 1.5.x and mingw bugs
46445         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46446         * lib/rmdir.c (rmdir): Work around it.
46447         * modules/rmdir (Status, Notice): No longer obsolete.
46448         (Files): Add dos.m4.
46449         (Depends-on): Add unistd.
46450         (configure.ac): Set witnesses.
46451         (License): Relax to LGPLv2+.
46452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46453         * modules/unistd (Makefile.am): Substitute witnesses.
46454         * lib/unistd.in.h (rmdir): Declare replacement.
46455         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46456         * modules/rmdir-tests: New tests.
46457         * tests/test-rmdir.c: Likewise.
46458
46459 2009-09-15  Eric Blake  <ebb9@byu.net>
46460
46461         fchdir: improve use of replacement functions
46462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46463         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46464         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46465         REPLACE_CLOSEDIR.
46466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46467         * modules/sys_stat (Makefile.am): Substitute correct witness.
46468         * modules/dirent (Makefile.am): Likewise.
46469         * modules/unistd (Makefile.am): Likewise.
46470         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46471         * lib/unistd.in.h (dup): Likewise.
46472         * lib/sys_stat.in.h (fstat): Likewise.
46473
46474         maint: ignore gnulib-tool temp files
46475         * .gitignore: Ignore files created during gnulib-tool --test.
46476
46477 2009-09-13  Jim Meyering  <meyering@redhat.com>
46478
46479         posixtm: don't reject a time that specify "60" as the number of seconds
46480         * lib/posixtm.c (posixtime): The code to reject invalid dates
46481         would also reject a time specified with the .60 suffix.
46482         But POSIX allows that, in order to accommodate leap seconds.
46483         So don't reject it.
46484         (main): Adjust tests accordingly.
46485         * modules/posixtm (Depends-on): Add stpcpy.
46486
46487 2009-09-11  Jim Meyering  <meyering@redhat.com>
46488
46489         announce-gen: include [$release_type] in emitted Subject:
46490         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46491         e.g., [stable] in the emitted Subject: line.
46492
46493 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46494
46495         Remove obsolete macros from several modules.
46496         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46497         obsolete Autoconf macros with their modern counterparts.
46498         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46499         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46501         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46502         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46503         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46505         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46506         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46507         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46508         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46509         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46510         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46511         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46512         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46513         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46514         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46515         * m4/time_r.m4 (gl_TIME_R): Likewise.
46516         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46517         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46518         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46519
46520         Fix copyright header in build-aux scripts.
46521         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46522         recommendation.
46523         * build-aux/ncftpput-ftp: Likewise.
46524         * build-aux/update-copyright: Likewise.
46525
46526 2009-09-09  Eric Blake  <ebb9@byu.net>
46527
46528         test-link: allow Linux choice of errno
46529         * tests/test-link.c (main): Relax test for alternate error.
46530
46531         strndup: fix improper m4 caching
46532         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46533         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46534         (gl_PREREQ_STRNDUP): Delete.
46535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46536         * modules/string (Makefile.am): Substitute it.
46537         * lib/string.in.h (strndup): Modernize prototype.
46538
46539         getcwd: port to mingw
46540         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46541         different from the POSIX assumptions made throughout the getcwd
46542         module; fortunately, the mingw getcwd does not need replacement.
46543         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46544         * modules/getcwd-tests: New test.
46545         * tests/test-getcwd.c: Likewise.
46546
46547         link: fix platform bugs
46548         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46549         * lib/link.c (link): Work around them.  Fix related mingw bug.
46550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46551         * modules/unistd (Makefile.am): Substitute it.
46552         * lib/unistd.in.h (link): Declare replacement.
46553         * doc/posix-functions/link.texi (link): Document this.
46554         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46555
46556         test-link: consolidate into single C program, test more cases
46557         * tests/test-link.sh: Delete.
46558         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46559         at least Cygwin and Solaris.
46560         * modules/link-tests (Files): Remove unused file.
46561         (Depends-on): Add errno, sys_stat.
46562         (Makefile.am): Simplify.
46563
46564 2009-09-08  Bruno Haible  <bruno@clisp.org>
46565
46566         Work around towlower, towupper bug on mingw.
46567         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46568         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46569         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46570         * doc/posix-functions/towupper.texi: Likewise.
46571         Reported by Eric Blake.
46572
46573 2009-09-08  Jim Meyering  <meyering@redhat.com>
46574
46575         build: don't try to run autoheader if we don't use it
46576         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46577         is not used in configure.ac.
46578
46579 2009-09-08  Eric Blake  <ebb9@byu.net>
46580
46581         euidaccess: fix compilation error
46582         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46583
46584         rawmemchr: relax license
46585         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46586         okay.
46587         Reported by Jim Meyering.
46588
46589         mkfifoat: new module
46590         * modules/mkfifoat: New file.
46591         * lib/mkfifoat.c: Likewise.
46592         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46593         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46594         * modules/sys_stat (Makefile.am): Use them.
46595         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46596         * MODULES.html.sh (File system functions): Mention module.
46597         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46598         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46599         * modules/mkfifoat-tests: New test.
46600         * tests/test-mkfifoat.c: Likewise.
46601
46602         strchrnul: relax license
46603         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46604         okay.
46605         Reported by Jim Meyering.
46606
46607 2009-09-08  Eric Blake  <ebb9@byu.net>
46608
46609         fstatat: fix compilation on Solaris
46610         * lib/fstatat.c (includes): Add fcntl.h.
46611         Reported by Pádraig Brady.
46612
46613 2009-09-07  Eric Blake  <ebb9@byu.net>
46614
46615         rename: modernize replacement
46616         * modules/rename (Depends-on): Add stdio.
46617         (configure.ac): Declare witness.
46618         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46619         stdio take care of replacement.
46620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46621         * modules/stdio (Makefile.am): Substitute them.
46622         * lib/stdio.in.h (rename): Declare replacement.
46623         * lib/rename.c (includes): Allow cross-compilation to non-windows
46624         machines.
46625         * doc/posix-functions/rename.texi (rename): Improve
46626         documentation.
46627
46628         stdio: sort witness names
46629         * modules/stdio (Makefile.am): Sort replacements.
46630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46631         * lib/stdio.in.h: Likewise.
46632
46633         getcwd: minor cleanups
46634         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46635         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46636
46637         openat: provide more convenience names
46638         * modules/faccessat (configure.ac): Add C witness.
46639         * lib/unistd.in.h (readlinkat): Fix typo.
46640         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46641         convenience wrappers.
46642         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46643         wrappers in syntax checks.
46644
46645 2009-09-06  Eric Blake  <ebb9@byu.net>
46646
46647         doc: fix comments in recent patches
46648         * lib/faccessat.c: Mention correct function.
46649         * lib/fchmodat.c: Likewise.
46650         * lib/fchownat.c: Likewise.
46651         * lib/symlinkat.c: Likewise.
46652         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46653         constants.
46654
46655         faccessat, symlinkat: continue cleanup of previous patch
46656         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46657         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46658         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46660         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46661         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46662         set.
46663
46664 2009-09-06  Bruno Haible  <bruno@clisp.org>
46665
46666         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46667         (fstatat): Declare if GNULIB_FSTATAT is set.
46668         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46669         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46670         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46671         * modules/fcntl-h (Files): Remove m4/openat.m4.
46672         * modules/sys_stat (Files): Remove m4/openat.m4.
46673         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46674         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46675         * modules/unistd (Files): Remove m4/openat.m4.
46676         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46677         GNULIB_OPENAT.
46678         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46679         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46680         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46681         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46682         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46683         gl_OPENAT_DEFAULTS.
46684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46685         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46686         Don't require gl_OPENAT_DEFAULTS.
46687         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46688         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46689         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46690         (gl_OPENAT_DEFAULTS): Remove macro.
46691
46692 2009-09-06  Bruno Haible  <bruno@clisp.org>
46693
46694         * modules/openat (configure.ac): Remove unneeded witness.
46695
46696 2009-09-06  Bruno Haible  <bruno@clisp.org>
46697
46698         Set errno to ENOSYS when a function is entirely unsupported.
46699         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46700         EOPNOTSUPP.
46701         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46702         * modules/chown (Depends-on): Remove errno.
46703
46704 2009-09-06  Bruno Haible  <bruno@clisp.org>
46705
46706         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46707
46708 2009-09-06  Bruno Haible  <bruno@clisp.org>
46709
46710         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46711
46712 2009-09-06  Ben Pfaff  <blp@gnu.org>
46713             Bruno Haible  <bruno@clisp.org>
46714
46715         Work around a glibc bug in strtok_r.
46716         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46717         Undefine if UNDEFINE_STRTOK_R is set.
46718         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46720         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46721         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46722         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46723         UNDEFINE_STRTOK_R.
46724         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46725
46726 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46727
46728         exclude: minor fix
46729         * lib/exclude.c: Include wctype.h
46730
46731 2009-09-06  Akim Demaille  <demaille@gostai.com>
46732
46733         bootstrap: improve error message
46734         * build-aux/bootstrap (find_tool): Upon failure, report the list
46735         of candidates.
46736         Honor the initial value of the envvar.
46737
46738 2009-09-05  Eric Blake  <ebb9@byu.net>
46739
46740         symlinkat: new module
46741         * modules/symlinkat: New file.
46742         * lib/symlinkat.c: Likewise.
46743         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46745         * modules/unistd (Makefile.am): Use them.
46746         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46747         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46748         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46749         * MODULES.html.sh (File system functions): Mention module.
46750         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46751         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46752         * modules/symlinkat-tests: New test.
46753         * tests/test-symlinkat.c: Likewise.
46754
46755         test-openat-safer: add more checks
46756         * tests/test-openat-safer.c (main): Check more code paths.
46757
46758 2009-09-05  Jim Meyering  <meyering@redhat.com>
46759
46760         syntax-check: detect unnecessary inclusion of openat.h
46761         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46762
46763 2009-09-05  Bruno Haible  <bruno@clisp.org>
46764
46765         Support towlower, towupper.
46766         * doc/posix-functions/towlower.texi: Mention module wctype.
46767         * doc/posix-functions/towupper.texi: Likewise.
46768         * lib/wctype.in.h (towlower, towupper): New functions.
46769         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46770         (ASSERT): New macro.
46771         (e): New variable.
46772         (main): Test also towlower, towupper. Test WEOF argument.
46773         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46774
46775 2009-09-05  Bruno Haible  <bruno@clisp.org>
46776
46777         Fix conversion behaviour when the input is invalid.
46778         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46779         mark occurring in first pass of indirect conversion.
46780         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46781         input.
46782         Found by clang's static analyzer.
46783
46784 2009-09-05  Bruno Haible  <bruno@clisp.org>
46785
46786         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46787         where direct conversion is possible.
46788
46789 2009-09-04  Eric Blake  <ebb9@byu.net>
46790
46791         openat: fail with ENOENT on empty name
46792         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46793         buffer.
46794
46795         link-follow: fix logic bug in prior patch
46796         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46797         reversed sense of yes and no in prior patch.  Avoid confusing
46798         compilation failure with desired semantics.
46799
46800         link-follow: accommodate mingw and cross-compilation
46801         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46802         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46803         cross-compilation results to -1, to make linkat easier to
46804         implement when cross-compiling.  Trivially support mingw.
46805         * modules/link-follow (configure.ac): Call new name.
46806         * NEWS: Mention this.
46807
46808 2009-09-03  Eric Blake  <ebb9@byu.net>
46809
46810         faccessat: compile replacement
46811         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46812         needed.
46813
46814         fts: fix compilation error
46815         * lib/fts.c (includes): Re-add "openat.h", for
46816         openat_needs_fchdir.
46817
46818         faccessat: new module
46819         * modules/faccessat: New file.
46820         * lib/faccessat.c: Likewise.
46821         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46823         * modules/unistd (Makefile.am): Use it.
46824         * lib/unistd.in.h (faccessat): Declare it.
46825         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46826         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46827         * MODULES.html.sh (File system functions): Mention it.
46828         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46829         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46830
46831         euidaccess: prefer POSIX over non-standard implementation
46832         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46833         * lib/euidaccess.c (euidaccess): Use it if available.
46834
46835         openat: make template easier to use
46836         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46837         AT_FUNC_F2 to be undefined.
46838         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46839         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46840         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46841         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46842         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46843         Likewise.
46844         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46845         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46846         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46847         Likewise.
46848
46849         openat: declare in POSIX headers
46850         * NEWS: Mention this.
46851         * modules/openat (configure.ac): Declare witnesses.
46852         (Depends-on): Add fcntl-h, sys_stat, unistd.
46853         (Include): Mention correct headers.
46854         * modules/fcntl-h (Depends-on): Add link-warning.
46855         (Files): Add openat.m4.
46856         (Makefile.am): Substitute witnesses.
46857         * modules/sys_stat (Files, Makefile.am): Likewise.
46858         * modules/unistd (Files, Makefile.am): Likewise.
46859         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46860         (gl_OPENAT_DEFAULTS): New macro.
46861         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46864         (SYS_STAT_H): Remove unused variable.
46865         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46866         * lib/fcntl--.h (includes): Remove unneeded header.
46867         * lib/openat-safer.c (includes): Likewise.
46868         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46869         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46870         appropriate headers.
46871         (__OPENAT_PREFIX): Delete.
46872         * lib/fcntl.in.h (openat): Provide declaration.
46873         (AT_FDCWD): Fix Solaris bug.
46874         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46875         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46876         * lib/fchmodat.c (includes):  Adjust to find declaration.
46877         * lib/fchownat.c (includes): Likewise.
46878         * lib/mkdirat.c (includes): Likewise.
46879         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46880         still visible.
46881
46882 2009-09-02  Eric Blake  <ebb9@byu.net>
46883
46884         errno: use consistently
46885         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46886         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46887         * lib/canonicalize.c (ELOOP): Likewise.
46888         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46889         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46890         * lib/lchown.c (EOPNOTSUPP): Likewise.
46891         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46892         * lib/savewd.c (ESTALE): Likewise.
46893         * lib/settime.c (ENOSYS): Likewise.
46894         * lib/utimens.c (ENOSYS): Likewise.
46895         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46896         * lib/chdir-safer.c (ELOOP): Likewise.
46897         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46898         * modules/c-stack (Depends-on): Add errno.
46899         * modules/canonicalize (Depends-on): Likewise.
46900         * modules/chdir-safer (Depends-on): Likewise.
46901         * modules/fdopendir (Depends-on): Likewise.
46902         * modules/inet_ntop (Depends-on): Likewise.
46903         * modules/inet_pton (Depends-on): Likewise.
46904         * modules/lchown (Depends-on): Likewise.
46905         * modules/openat (Depends-on): Likewise.
46906         * modules/savewd (Depends-on): Likewise.
46907         * modules/settime (Depends-on): Likewise.
46908         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46909
46910         fts: avoid leaking fds
46911         * modules/fts (Depends-on): Add cloexec.
46912         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46913         flag.
46914
46915         fts: make directory fds more robust
46916         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46917         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46918
46919         backupfile, chdir-long, fts, savedir: make safer
46920         * lib/backupfile.c (includes): Use "dirent--.h", since
46921         numbered_backup can write to stderr during readdir.
46922         * lib/savedir.c (includes): Likewise.
46923         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46924         emulation can write to stderr on failure.
46925         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46926         * lib/getcwd.c: Document why opendir_safer is unused.
46927         * lib/glob.c: Likewise.
46928         * lib/scandir.c: Likewise.
46929         * lib/openat-proc.c: Likewise, for open_safer.
46930         * modules/backupfile (Depends-on): Add dirent-safer.
46931         * modules/savedir (Depends-on): Likewise.
46932         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46933         * modules/chdir-long (Depends-on): Add openat-safer.
46934
46935         openat-safer: new module
46936         * modules/openat-safer: New file.
46937         * lib/openat-safer.c: Likewise.
46938         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46939         * lib/fcntl-safer.h (openat_safer): Declare.
46940         * lib/fcntl--.h (openat): Override.
46941         * MODULES.html.sh (File descriptor based I/O): Mention it.
46942         * lib/openat.h: Add double-inclusion guards.
46943         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46944         "fcntl--.h", so we can implement openat.
46945         * modules/openat-safer-tests: New test.
46946         * tests/test-openat-safer.c: New file.
46947
46948         dirent-safer: new module
46949         * modules/dirent-safer: New file.
46950         * lib/dirent--.h: Likewise.
46951         * lib/dirent-safer.h: Likewise.
46952         * lib/opendir-safer.c: Likewise.
46953         * m4/dirent-safer.m4: Likewise.
46954         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46955         * modules/dirent-safer-tests: New test.
46956         * tests/test-dirent-safer.c: New file.
46957         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46958
46959         fdopendir: optimize on mingw
46960         * lib/unistd.in.h (_gl_directory_name): New prototype.
46961         * lib/fchdir.c (_gl_directory_name): Implement it.
46962         (fchdir): Use it to simplify implementation.
46963         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46964         fchdir, when available, to avoid calling [f]chdir().
46965
46966         fdopendir: split into its own module
46967         * lib/openat.c (fdopendir): Move...
46968         * lib/fdopendir.c: ...into new file.
46969         * modules/fdopendir: New module.
46970         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46971         * modules/openat (Depends-on): Add fdopendir.
46972         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46973         fdopendir here.
46974         * modules/savedir (Depends-on): Only need fdopendir, not full
46975         openat.
46976         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46977         * lib/openat.h (fdopendir): Drop prototype.
46978         * lib/dirent.in.h (fdopendir): Provide prototype.
46979         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46980         * modules/dirent (Makefile.am): Substitute them.
46981         * MODULES.html.sh (File system functions): Mention it.
46982         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46983         * modules/fdopendir-tests: New file.
46984         * tests/test-fdopendir.c: Likewise.
46985
46986         fchdir: use more consistent macro convention
46987         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46988         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46989         REPLACE_FCHDIR, rather than relying on config.h macros.
46990         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46991         inside a single make-time REPLACE_FCHDIR block, rather than using
46992         the config.h FCHDIR_REPLACEMENT.
46993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46994         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46995         Manage fstat replacement.
46996         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46997         REPLACE_FCHDIR.
46998         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46999         (Makefile.am): Substitute REPLACE_FCHDIR.
47000         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47001         FCHDIR_REPLACEMENT.
47002         * lib/dup-safer.c (dup_safer): Likewise.
47003         * lib/dup2.c (rpl_dup2): Likewise.
47004         * lib/dup3.c (rpl_dup3): Likewise.
47005         * lib/open.c (rpl_open): Likewise.
47006
47007         fchdir: simplify error handling, and support dup3
47008         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47009         stdbool, malloc-posix, realloc-posix.
47010         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47011         (ensure_dirs_slot): Return false on allocation failure.
47012         (rpl_dup2): Delete.
47013         (_gl_register_dup): New function.
47014         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47015         (_gl_register_fd): Close fd on allocation failure.
47016         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47017         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47018         prototype.
47019         (rpl_dup2_fchdir): Delete prototype.
47020         * lib/open.c (open): Update caller.
47021         * lib/dup2.c (dup2): Track fchdir metadata.
47022         * lib/dup3.c (dup3): Likewise.
47023         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47025
47026 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47027
47028         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47029         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47030         don't pass arguments to AC_OUTPUT.
47031
47032 2009-09-02  Bruno Haible  <bruno@clisp.org>
47033
47034         * modules/mkdtemp (License): Relicense under LGPLv2+.
47035         Reported by Paolo Bonzini.
47036
47037 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47038
47039         Replace uses of obsolete autoconf macros in Jim's modules.
47040         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47041         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47042         can evoke a warning from autoconf when run with -Wobsolete
47043         enabled.  They were declared obsolete for good reasons (see
47044         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47045         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47046         should not continue using the deprecated macros.
47047         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47048         obsolete Autoconf macros with modern counterparts.
47049         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47050         * m4/dos.m4 (gl_AC_DOS): Likewise.
47051         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47052         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47053         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47054         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47055         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47056         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47057         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47058         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47059         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47060         Likewise.
47061         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47062         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47063         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47064         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47065         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47066         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47067
47068 2009-09-01  Eric Blake  <ebb9@byu.net>
47069
47070         fchdir: fix off-by-one bug in previous patch
47071         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47072         (_gl_unregister_fd): Delete useless if.
47073
47074 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47075
47076         maint.mk: sort the list of syntax-check rules
47077         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47078         easier to get a sense of progress when the rules are run sequentially
47079         and take a long time.
47080
47081 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47082
47083         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47084         * modules/netinet_in: Likewise.
47085         * modules/sys_file: Likewise.
47086         * modules/sys_ioctl: Likewise.
47087         * modules/sys_select: Likewise.
47088         * modules/sys_socket: Likewise.
47089         * modules/sys_stat: Likewise.
47090         * modules/sys_time: Likewise.
47091         * modules/sys_times: Likewise.
47092         * modules/sys_utsname: Likewise.
47093         * modules/sys_wait: Likewise.
47094
47095 2009-09-01  Jim Meyering  <meyering@redhat.com>
47096
47097         fts: help ensure that return values are not ignored
47098         * lib/fts_.h (__GNUC_PREREQ): Define.
47099         (__attribute_warn_unused_result__): Define.
47100         (fts_children, fts_close, fts_open, fts_read): Declare with
47101         __attribute_warn_unused_result__.
47102
47103         fts: fts_close now fails also when closing a dir file descriptor fails
47104         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47105         and propagate to caller, along with errno.
47106
47107         announce-gen: correct formatting in --help output
47108         * build-aux/announce-gen (usage): Move the one-line description in
47109         --help output "up", to where it belongs, just after Usage:.
47110
47111 2009-08-31  Eric Blake  <ebb9@byu.net>
47112
47113         fchdir: port to mingw
47114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47115         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47116         opened, then use a substitute.
47117         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47118         replacement.
47119         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47120         (_gl_register_fd): No need to check stat if open already filters
47121         all directories.
47122         (fchdir): Fix error condition to match POSIX.
47123         * modules/fchdir (Depends-on): Add sys_stat.
47124         * doc/posix-functions/open.texi (open): Document the limitation.
47125         * modules/fchdir-tests: New file.
47126         * tests/test-fchdir.c: Likewise.
47127
47128         canonicalize: allow cross-testing from cygwin to mingw
47129         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47130         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47131         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47132         Likewise.
47133         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47134         target does not support symlinks.
47135         * tests/test-canonicalize-lgpl.sh: Likewise.
47136
47137         chown: avoid compilation warning on mingw
47138         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47139         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47140         mingw.
47141         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47142         * modules/chown (Depends-on): Add errno.
47143
47144 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47145
47146         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47147         command.
47148
47149 2009-08-31  Jim Meyering  <meyering@redhat.com>
47150
47151         canonicalize: remove useless initialization
47152         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47153         initialization of local, "end".
47154
47155 2009-08-30  Bruno Haible  <bruno@clisp.org>
47156
47157         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47158         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47159         ENOSYS.
47160
47161 2009-08-30  Bruno Haible  <bruno@clisp.org>
47162
47163         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47164         /usr/xpg4/bin/tr when it exists.
47165         * tests/test-pipe-filter-gi1.sh: Likewise.
47166
47167 2009-08-30  Bruno Haible  <bruno@clisp.org>
47168
47169         Work around deficient /usr/bin/id program on Solaris.
47170         * tests/test-file-has-acl.sh (ID): New variable.
47171         * tests/test-set-mode-acl.sh (ID): Likewise.
47172         * tests/test-copy-acl.sh (ID): Likewise.
47173         * tests/test-copy-file.sh (ID): Likewise.
47174
47175 2009-08-30  Bruno Haible  <bruno@clisp.org>
47176
47177         New module 'xstriconveh'.
47178         * lib/xstriconveh.h: New file.
47179         * lib/xstriconveh.c: New file.
47180         * modules/xstriconveh: New file.
47181
47182 2009-08-30  Bruno Haible  <bruno@clisp.org>
47183
47184         Make it easier to use mem_cd_iconveh.
47185         * lib/striconveh.h (iconveh_t): New type.
47186         (iconveh_open, iconveh_close): New declarations.
47187         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47188         with a single 'const iconveh_t *' argument.
47189         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47190         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47191         with a single 'const iconveh_t *' argument.
47192         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47193         * tests/test-striconveh.c (main): Update.
47194         * NEWS: Mention the change.
47195
47196 2009-08-30  Bruno Haible  <bruno@clisp.org>
47197
47198         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47199         problem.
47200
47201 2009-08-30  Bruno Haible  <bruno@clisp.org>
47202
47203         Work around iconv_open problem on Solaris.
47204         * lib/iconv_open-solaris.gperf: New file.
47205         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47206         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47207         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47208         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47209         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47210         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47211
47212 2009-08-29  Jim Meyering  <meyering@redhat.com>
47213
47214         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47215         * top/maint.mk (cvs-check): Remove target; it was just an alias
47216         to the better-named vc-diff-check.
47217         (maintainer-distcheck): Remove rule.  It was used only from
47218         the (alpha/beta/major) target, and all of its commands but one
47219         were coreutils-specific.
47220         (vc-dist): Remove rule.
47221         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47222         Run vc-diff-check, not vc-dist.
47223         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47224
47225 2009-08-27  Bruno Haible  <bruno@clisp.org>
47226
47227         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47228         of 0.
47229
47230 2009-08-27  Bruno Haible  <bruno@clisp.org>
47231
47232         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47233         compilers.
47234         * doc/func.texi: Document the SunPRO C bug.
47235
47236 2009-08-27  Bruno Haible  <bruno@clisp.org>
47237
47238         Fix link error on Solaris.
47239         * tests/test-parse-duration.c (xstrdup): Remove function.
47240
47241 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47242
47243         ignore-value: handle pointer types, too
47244         * lib/ignore-value.h (__attribute__): Remove definition.
47245         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47246         of a more concise and more-often effective "(void) i" statement.
47247         (ignore_ptr): New function to suppress warnings from functions that
47248         return pointers, and to make it explicit that one function doesn't
47249         handle all cases.
47250
47251 2009-08-25  Bruno Haible  <bruno@clisp.org>
47252
47253         dup2: work around a Linux bug.
47254         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47255         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47256         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47257         Reported by Simon Josefsson.
47258
47259 2009-08-25  Jim Meyering  <meyering@redhat.com>
47260
47261         libguestfs uses gnulib
47262         * users.txt: Add libguestfs.
47263
47264 2009-08-24  Eric Blake  <ebb9@byu.net>
47265
47266         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47267         * lib/pipe2.c (includes): Add binary-io.h.
47268         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47269
47270 2009-08-24  Bruno Haible  <bruno@clisp.org>
47271
47272         Tolerate declared but missing accept4 syscall.
47273         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47274         available.
47275         * lib/sys_socket.in.h (accept4): If the function is already present,
47276         override it.
47277         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47278         * modules/accept4 (Makefile.am): Compile accept4.c always.
47279         Reported by Paolo Bonzini and Eric Blake.
47280
47281 2009-08-23  Bruno Haible  <bruno@clisp.org>
47282
47283         New module 'accept4'.
47284         * lib/sys_socket.in.h (accept4): New declaration.
47285         * lib/accept4.c: New file.
47286         * m4/accept4.m4: New file.
47287         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47288         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47289         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47290         HAVE_ACCEPT4.
47291         * modules/accept4: New file.
47292         * doc/glibc-functions/accept4.texi: Mention the new module.
47293
47294 2009-08-24  Jim Meyering  <meyering@redhat.com>
47295
47296         progname: also set global program_invocation_name, when possible
47297         Before this change, a libtool-enabled program that calls glibc's
47298         error function would report the program name as
47299         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47300         * modules/progname (configure.ac): Check for a declaration of
47301         program_invocation_name.
47302         * lib/progname.c:  Include <errno.h>.
47303         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47304         Set program_invocation_name.
47305
47306 2009-08-23  Bruno Haible  <bruno@clisp.org>
47307
47308         * lib/dup3.c: Include <string.h>.
47309
47310 2009-08-23  Bruno Haible  <bruno@clisp.org>
47311
47312         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47313         * lib/pipe2.c (pipe2): Likewise.
47314         Suggested by Eric Blake.
47315
47316 2009-08-23  Bruno Haible  <bruno@clisp.org>
47317
47318         Tolerate declared but missing dup3 syscall.
47319         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47320         * lib/unistd.in.h (dup3): If the function is already present,
47321         override it.
47322         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47323         * modules/dup3 (Makefile.am): Compile dup3.c always.
47324         Reported by Paolo Bonzini.
47325
47326 2009-08-23  Bruno Haible  <bruno@clisp.org>
47327
47328         Tolerate declared but missing pipe2 syscall.
47329         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47330         available.
47331         * lib/unistd.in.h (pipe2): If the function is already present,
47332         override it.
47333         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47334         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47335         Reported by Paolo Bonzini.
47336
47337 2009-08-23  Bruno Haible  <bruno@clisp.org>
47338
47339         * lib/pipe2.c (pipe2): Move #ifs inside function.
47340
47341 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47342
47343         quotearg: document limitations of quote_these_too
47344         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47345         those limitations are created.
47346         * lib/quotearg.h (set_char_quoting): Document that digits and
47347         letters that are special after backslash are not permitted.
47348         (quotearg_char): Cross-reference set_char_quoting documentation.
47349
47350 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47351
47352         quotearg: implement custom_quoting_style
47353         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47354         right_quote fields.
47355         (set_custom_quoting): New public function.
47356         (quotearg_buffer_restyled): Add left_quote and right_quote
47357         arguments, handle them very much like locale quoting, and update
47358         all uses.
47359         (quotearg_n_custom): New public function.
47360         (quotearg_n_custom_mem): New public function.
47361         (quotearg_custom): New public function.
47362         (quotearg_custom_mem): New public function.
47363         * lib/quotearg.h: Prototype and document new public functions.
47364         (enum quoting_style): For escape_quoting_style and
47365         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47366         ignored even though they're otherwise like c_quoting_style.
47367         Add custom_quoting_style member and document with comparison to
47368         clocale_quoting_style.
47369         * tests/test-quotearg.c (custom_quotes): New array.
47370         (custom_results): New array.
47371         (main): Extend to test custom quoting.
47372
47373 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47374
47375         quotearg: fix right quote escaping when it's in quote_these_too
47376         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47377         quote, be sure to prepend only one backslash.
47378         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47379         (main): Test it.
47380
47381 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47382
47383         quotearg-tests: test escaping of embedded locale quotes
47384         * tests/test-quotearg.c (struct result_strings): Add member for
47385         new input.
47386         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47387         (inputs): Add new input.
47388         (results_g): Add expected results.
47389         (flag_results): Likewise.
47390         (locale_results): Likewise.
47391         (compare_strings): Check those.
47392
47393 2009-08-23  Bruno Haible  <bruno@clisp.org>
47394
47395         Tests for module 'dup3'.
47396         * modules/dup3-tests: New file.
47397         * tests/test-dup3.c: New file.
47398
47399         New module 'dup3'.
47400         * lib/unistd.in.h (dup3): New declaration.
47401         * lib/dup3.c: New file.
47402         * m4/dup3.m4: New file.
47403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47404         HAVE_DUP3.
47405         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47406         * modules/dup3: New file.
47407         * doc/glibc-functions/dup3.texi: Mention the new module.
47408
47409 2009-08-23  Bruno Haible  <bruno@clisp.org>
47410
47411         Tweak the dup2 test.
47412         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47413         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47414         the test file is still empty. Fix argument order of lseek.
47415
47416 2009-08-23  Bruno Haible  <bruno@clisp.org>
47417
47418         Avoid test link errors when the modules getopt-gnu, gettext are used.
47419         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47421
47422 2009-08-23  Bruno Haible  <bruno@clisp.org>
47423
47424         Fix getdtablesize() on mingw.
47425         * lib/getdtablesize.c (getdtablesize): Implement differently.
47426         * lib/unistd.in.h (getdtablesize): Improve comment.
47427
47428 2009-08-23  Bruno Haible  <bruno@clisp.org>
47429
47430         New module 'mkostemp'.
47431         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47432         * lib/stdlib.in.h (mksotemp): New declaration.
47433         * lib/mkostemp.c: New file, from glibc with modifications.
47434         * lib/tempname.h (GT_FILE): Remove outdated comment.
47435         (gen_tempname): Add flags argument.
47436         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47437         (__GT_FILE): Map to 1.
47438         (small_open, large_open): Remove macros.
47439         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47440         * lib/mkstemp.c (mkstemp): Update.
47441         * lib/mkdtemp.c (mkdtemp): Likewise.
47442         * m4/mkostemp.m4: New file.
47443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47444         HAVE_MKOSTEMP.
47445         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47446         HAVE_MKOSTEMP.
47447         * modules/mkostemp: New file, based on modules/mkstemp.
47448         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47449         * NEWS: Mention the change.
47450
47451 2009-08-23  Bruno Haible  <bruno@clisp.org>
47452
47453         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47454         Reported by Eric Blake.
47455
47456 2009-08-23  Bruno Haible  <bruno@clisp.org>
47457
47458         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47459         Reported by Eric Blake.
47460
47461 2009-08-23  Bruno Haible  <bruno@clisp.org>
47462
47463         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47464         * modules/pipe2 (Depends-on): Likewise.
47465
47466 2009-08-23  Eric Blake  <ebb9@byu.net>
47467
47468         fcntl-h: add O_TTY_INIT support
47469         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47470         * tests/test-fcntl-h.c (o): Test it.
47471         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47472
47473         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47474         * modules/fcntl: Move <fcntl.h> header replacement...
47475         * modules/fcntl-h: ...to new name, so as not to collide with
47476         like-named function.
47477         * tests/test-fcntl.c: Rename...
47478         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47479         * modules/fcntl-tests: Rename...
47480         * modules/fcntl-h-tests: ...to this.  Update test file name.
47481         * modules/chdir-long (Depends-on): Update clients.
47482         * modules/chdir-safer (Depends-on): Likewise.
47483         * modules/fcntl-safer (Depends-on): Likewise.
47484         * modules/fts (Depends-on): Likewise.
47485         * modules/mkancesdirs (Depends-on): Likewise.
47486         * modules/mkdir-p (Depends-on): Likewise.
47487         * modules/open (Depends-on): Likewise.
47488         * modules/savewd (Depends-on): Likewise.
47489         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47490         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47491
47492 2009-08-22  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/binary-io (License): Relicense under LGPL.
47495         * modules/pipe2 (License): Likewise.
47496
47497 2009-08-22  Bruno Haible  <bruno@clisp.org>
47498
47499         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47500         return value.
47501         * lib/pipe-filter-gi.c (filter_init): Likewise.
47502         Reported by Eric Blake.
47503
47504 2009-08-22  Bruno Haible  <bruno@clisp.org>
47505
47506         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47507         * modules/pipe (Depends-on): Add pipe2.
47508
47509 2009-08-22  Bruno Haible  <bruno@clisp.org>
47510
47511         Tests for module 'pipe2'.
47512         * modules/pipe2-tests: New file.
47513         * tests/test-pipe2.c: New file.
47514
47515         New module 'pipe2'.
47516         * lib/unistd.in.h (pipe2): New declaration.
47517         * lib/pipe2.c: New file.
47518         * m4/pipe2.m4: New file.
47519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47520         HAVE_PIPE2.
47521         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47522         * modules/pipe2: New file.
47523         * doc/glibc-functions/pipe2.texi: Mention the new module.
47524
47525 2009-08-22  Bruno Haible  <bruno@clisp.org>
47526
47527         Reference some new glibc functions.
47528         * doc/glibc-functions/accept4.texi: New file.
47529         * doc/glibc-functions/dup3.texi: New file.
47530         * doc/glibc-functions/mkostemp.texi: New file.
47531         * doc/glibc-functions/pipe2.texi: New file.
47532         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47533         (Glibc sys/socket.h): Refer to accept4.
47534         (Glibc unistd.h): Refer to dup3, pipe2.
47535         Reported by Eric Blake.
47536
47537 2009-08-22  Jim Meyering  <meyering@redhat.com>
47538             Bruno Haible  <bruno@clisp.org>
47539
47540         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47541         This makes it so packages using automake-1.11's silent-rules option
47542         can print e.g., a single "GEN    configmake.h" line, rather than
47543         the 30+ statements that perform the job.  If you want to see the
47544         actual commands, you can still run "make V=1".
47545         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47546         so that make output is abbreviated when those variables are defined
47547         appropriately.
47548         * modules/argz: Likewise.
47549         * modules/arpa_inet: Likewise.
47550         * modules/byteswap: Likewise.
47551         * modules/configmake: Likewise.
47552         * modules/dirent: Likewise.
47553         * modules/errno: Likewise.
47554         * modules/fcntl: Likewise.
47555         * modules/float: Likewise.
47556         * modules/fnmatch: Likewise.
47557         * modules/getopt-posix: Likewise.
47558         * modules/glob: Likewise.
47559         * modules/iconv_open: Likewise.
47560         * modules/inttypes: Likewise.
47561         * modules/localcharset: Likewise.
47562         * modules/locale: Likewise.
47563         * modules/math: Likewise.
47564         * modules/netdb: Likewise.
47565         * modules/netinet_in: Likewise.
47566         * modules/poll: Likewise.
47567         * modules/posix_spawnp-tests: Likewise.
47568         * modules/sched: Likewise.
47569         * modules/search: Likewise.
47570         * modules/selinux-h: Likewise.
47571         * modules/signal: Likewise.
47572         * modules/spawn: Likewise.
47573         * modules/stdarg: Likewise.
47574         * modules/stdbool: Likewise.
47575         * modules/stddef: Likewise.
47576         * modules/stdint: Likewise.
47577         * modules/stdio: Likewise.
47578         * modules/stdlib: Likewise.
47579         * modules/string: Likewise.
47580         * modules/strings: Likewise.
47581         * modules/sys_file: Likewise.
47582         * modules/sys_ioctl: Likewise.
47583         * modules/sys_select: Likewise.
47584         * modules/sys_socket: Likewise.
47585         * modules/sys_stat: Likewise.
47586         * modules/sys_time: Likewise.
47587         * modules/sys_times: Likewise.
47588         * modules/sys_utsname: Likewise.
47589         * modules/sys_wait: Likewise.
47590         * modules/sysexits: Likewise.
47591         * modules/time: Likewise.
47592         * modules/unistd: Likewise.
47593         * modules/wchar: Likewise.
47594         * modules/wctype: Likewise.
47595
47596 2009-08-22  Jim Meyering  <meyering@redhat.com>
47597
47598         announce-gen: detect write failure
47599         * build-aux/announce-gen: Add Coda at end.
47600         Remove equivalent-but-more-verbose block at top.
47601
47602 2009-08-19  Akim Demaille  <demaille@gostai.com>
47603
47604         bootstrap: --help to stdout.
47605         * bootstrap (usage): Don't send --help to stderr.
47606         Use a here doc instead of a long string.
47607
47608 2009-08-21  Eric Blake  <ebb9@byu.net>
47609
47610         test-popen-safer: split from test-popen
47611         * tests/test-popen.c (main): Move...
47612         * tests/test-popen.h: ...into new file.
47613         * tests/test-popen-safer2.c: New file.
47614         * modules/popen-tests (Files): Add test-popen.h.
47615         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47616         Suggested by Bruno Haible.
47617
47618         test-fcntl-safer: split from test-open
47619         * tests/test-open.c (main): Move...
47620         * tests/test-open.h: ...into new file.
47621         * tests/test-fcntl-safer.c: New file.
47622         * modules/open-tests (Files): Add test-open.h.
47623         * modules/fcntl-safer-tests: New file.
47624         Suggested by Bruno Haible.
47625
47626         test-fopen-safer: split from test-fopen
47627         * tests/test-fopen.c (main): Move...
47628         * tests/test-fopen.h: ...into new file.
47629         * tests/test-fopen-safer.c: New file.
47630         * modules/fopen-tests (Files): Add test-fopen.h.
47631         * modules/fopen-safer-tests: New file.
47632         Suggested by Bruno Haible.
47633
47634 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47635
47636         popen-safer: test O_CLOEXEC at run-time.
47637         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47638
47639 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47640
47641         fcntl: move more flags to the header
47642         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47643         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47644         * lib/fcntl.in.h: Do both things here.
47645
47646 2009-08-21  Jim Meyering  <meyering@redhat.com>
47647
47648         consistently remove $@-t before redirecting to it
47649         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47650         * modules/alloca-opt: Likewise.
47651         * modules/byteswap: Likewise.
47652         * modules/fnmatch: Likewise.
47653         * modules/getopt-posix: Likewise.
47654         * modules/glob: Likewise.
47655         * modules/poll: Likewise.
47656         * modules/posix_spawnp-tests: Likewise.
47657         * modules/sys_socket: Likewise.
47658         * modules/sysexits: Likewise.
47659
47660 2009-08-21  Eric Blake  <ebb9@byu.net>
47661
47662         popen: simplify access to original popen
47663         * lib/popen.c (rpl_popen): No need to worry about popen being a
47664         macro.
47665         Reported by Bruno Haible.
47666
47667 2009-08-20  Eric Blake  <ebb9@byu.net>
47668
47669         build: avoid some compiler warnings
47670         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47671         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47672         type.
47673         (new_exclude_segment, excluded_file_pattern_p)
47674         (excluded_file_name_p): Reduce scope.
47675         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47676         old-style declaration.
47677
47678 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47679
47680         * tests/test-exclude1.sh: Handle Windows EOL.
47681         * tests/test-exclude2.sh: Likewise.
47682         * tests/test-exclude3.sh: Likewise.
47683         * tests/test-exclude4.sh: Likewise.
47684         * tests/test-exclude5.sh: Likewise.
47685         * tests/test-exclude6.sh: Likewise.
47686         * tests/test-exclude7.sh: Likewise.
47687
47688 2009-08-19  Akim Demaille  <demaille@gostai.com>
47689
47690         bootstrap: find sha1sum when named gsha1sum.
47691         * bootstrap (find_tool): New.
47692         ($SHA1SUM): New.
47693         Use it.
47694
47695 2009-08-20  Jim Meyering  <meyering@redhat.com>
47696
47697         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47698         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47699         expression that converts "." in a file name to "\." in the resulting
47700         regexp.  Start with a dummy statement, so that prior shell variable
47701         definitions are expanded portably.  Reported by Simon Josefsson.
47702
47703 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47704
47705         Fix polling for writeability of a screen buffer.
47706         * lib/poll.c: Distinguish input and screen buffers for the
47707         Win32 implementation.
47708         * lib/select.c: Likewise.
47709
47710 2009-08-19  Eric Blake  <ebb9@byu.net>
47711
47712         popen-safer: prevent popen from clobbering std descriptors
47713         * modules/popen-safer: New file.
47714         * lib/popen-safer.c: Likewise.
47715         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47716         * lib/stdio--.h (popen): Provide override.
47717         * lib/stdio-safer.h (popen_safer): Provide declaration.
47718         * tests/test-popen.c (includes): Partially test this.
47719         * modules/popen-safer-tests: New file, for more tests.
47720         * tests/test-popen-safer.c: Likewise.
47721         * MODULES.html.sh (file stream based Input/Output): Mention it.
47722
47723         tests: test some of the *-safer modules
47724         * modules/fopen-safer (Depends-on): Add fopen.
47725         * modules/fcntl-safer (Depends-on): Add fcntl.
47726         * modules/stdlib-safer (Depends-on): Add stdlib.
47727         (configure.ac): Set indicator.
47728         * modules/unistd-safer (configure.ac): Likewise.
47729         * modules/tmpfile-safer (configure.ac): Likewise.
47730         (Depends-on): Add tmpfile.
47731         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47732         active.
47733         * tests/test-fopen.c (includes): Test safer versions when they are
47734         in use.
47735         * tests/test-open.c (includes): Likewise.
47736
47737         popen: fix cygwin 1.5 bug when stdin closed
47738         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47739         * modules/popen: New file.
47740         * modules/popen-tests: Likewise.
47741         * tests/test-popen.c: Likewise.
47742         * m4/popen.m4: Likewise.
47743         * lib/popen.c: Likewise.
47744         * lib/stdio.in.h (popen): New declaration.
47745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47746         * modules/stdio (Makefile.am): Likewise.
47747         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47748
47749 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47750
47751         maint.mk: give full control over update-copyright exclusions
47752         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47753         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47754         (update-copyright): Don't force inclusion of top-level
47755         ChangeLog.  Don't force exclusion of all COPYING files, but make
47756         them the default exclusion instead.
47757
47758 2009-08-16  Bruno Haible  <bruno@clisp.org>
47759
47760         Fix test failures on Solaris 10.
47761         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47762         tests when Solaris iconv() is used.
47763         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47764         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47765         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47766         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47767         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47768
47769 2009-08-16  Bruno Haible  <bruno@clisp.org>
47770
47771         Fix test failures on Solaris 10.
47772         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47773         'tr' program and pass it as first argument.
47774         * tests/test-pipe-filter-gi1.sh: Likewise.
47775         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47776         program as first argument.
47777         * tests/test-pipe-filter-gi1.c (main): Likewise.
47778
47779 2009-08-16  Eric Blake  <ebb9@byu.net>
47780
47781         fpurge: fix previous commits
47782         * modules/fpurge (Makefile.am): Make replacement conditional,
47783         partially reverting 2007-04-29 change; missed in previous
47784         attempt.
47785         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47786         is missing.
47787
47788 2009-08-16  Bruno Haible  <bruno@clisp.org>
47789
47790         Clarify fpurge's effect on the file position.
47791         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47792         * tests/test-fpurge.c (main): Make a second pass for checking the file
47793         position.
47794
47795 2009-08-16  Bruno Haible  <bruno@clisp.org>
47796
47797         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47798         declaration of fpurge is missing.
47799         * tests/test-fpurge.c (main): Check that the file has not more contents
47800         than expected. Close the file before removing it.
47801
47802 2009-08-15  Eric Blake  <ebb9@byu.net>
47803
47804         fpurge: don't wrap working cygwin implementation
47805         * lib/fpurge.c (fpurge): Fix comment typo.
47806         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47807         1.7 to avoid replacement.
47808         * tests/test-fpurge.c (main): Enhance test.
47809
47810 2009-08-15  Eric Blake  <ebb9@byu.net>
47811         and Jim Meyering  <meyering@redhat.com>
47812
47813         test-update-copyright: skip if perl is insufficient
47814         * tests/test-update-copyright.sh: Failure to run maintainer tool
47815         should not cause testsuite failure on cygwin 1.5.
47816
47817 2009-08-14  Eric Blake  <ebb9@byu.net>
47818
47819         doc: mention more functions added in cygwin 1.7.0
47820         * doc/posix-headers/limits.texi (limits.h): Update for recent
47821         cygwin additions.
47822         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47823         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47824         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47825         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47826         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47827
47828 2009-08-14  Eric Blake  <ebb9@byu.net>
47829
47830         maint.mk: simplify update-copyright rule
47831         * top/maint.mk (update-copyright-local): Delete, and document how
47832         to do it in cfg.mk instead.
47833         (update-copyright-exclude-regexp): Delete, and document how to do
47834         it in .x-update-copyright instead.
47835         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47836         exclude ChangeLog.
47837
47838 2009-08-14  Bruno Haible  <bruno@clisp.org>
47839
47840         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47841
47842 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47843
47844         maint.mk: support update-copyright-env
47845         * top/maint.mk (update-copyright-env): Define place-holder.
47846         (update-copyright): Expand $(update-copyright-env) before
47847         invoking update-copyright.
47848
47849 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47850
47851         update-copyright: implement forced reformatting
47852         * build-aux/update-copyright: Implement and document
47853         UPDATE_COPYRIGHT_FORCE.
47854         * tests/test-update-copyright.sh: Test it.
47855
47856 2009-08-14  Eric Blake  <ebb9@byu.net>
47857         and Bruno Haible  <bruno@clisp.org>
47858
47859         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47860         * tests/test-locale.c: Revert previous patch related to NULL.
47861         * tests/test-stdio.c: Likewise.
47862         * tests/test-stdlib.c: Likewise.
47863         * tests/test-string.c: Likewise.
47864         * tests/test-unistd.c: Likewise.
47865         * modules/time-tests (Depends-on): Add verify.
47866         * modules/wchar-tests (Depends-on): Likewise.
47867         * tests/test-time.c: Test for NULL compliance.
47868         * tests/test-wchar.c: Likewise.
47869         * modules/locale (Depends-on): Add stddef.
47870         * modules/stdio (Depends-on): Likewise.
47871         * modules/stdlib (Depends-on): Likewise.
47872         * modules/string (Depends-on): Likewise.
47873         * modules/time (Depends-on): Likewise.
47874         * modules/unistd (Depends-on): Likewise.
47875         * modules/wchar (Depends-on): Likewise.
47876         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47877         * lib/stdlib.in.h (includes): Likewise.
47878         * lib/string.in.h (includes): Likewise.
47879         * lib/time.in.h (includes): Likewise.
47880         * lib/unistd.in.h (includes): Likewise.
47881         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47882         replaced.
47883         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47884         * m4/stddef_h.m4: New file.
47885         * modules/stddef: Likewise.
47886         * lib/stddef.in.h: Likewise.
47887         * modules/stddef-tests: Likewise.
47888         * tests/test-stddef.c: Likewise.
47889         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47890         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47891         * doc/posix-headers/locale.texi (locale.h): Likewise.
47892         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47893         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47894         * doc/posix-headers/string.texi (string.h): Likewise.
47895         * doc/posix-headers/time.texi (time.h): Likewise.
47896         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47897         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47898
47899 2009-08-14  Eric Blake  <ebb9@byu.net>
47900
47901         doc: improve git diff of texinfo files
47902         * .gitattributes: Add rule for *.texi files, with hint on how to
47903         use it.
47904         Copied from m4, and based on a report by Bruno Haible.
47905
47906 2009-08-14  Bruno Haible  <bruno@clisp.org>
47907
47908         Disable multithread support by default on Cygwin 1.5.x for real.
47909         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47910
47911 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47912
47913         update-copyright: much ado about intervals
47914         * build-aux/update-copyright: Implement and document
47915         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47916         of copyright year intervals.
47917         Also, document UPDATE_COPYRIGHT_YEAR.
47918         * tests/test-update-copyright.sh: Test it.
47919
47920         update-copyright: convert 2-digit to 4-digit years
47921         * build-aux/update-copyright: Implement and document.
47922         * tests/test-update-copyright.sh: Update.
47923
47924 2009-08-14  Jim Meyering  <meyering@redhat.com>
47925
47926         test-exclude: avoid coreutils "make check" failure
47927         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47928         just as in test-argmatch.c.
47929
47930 2009-08-13  Eric Blake  <ebb9@byu.net>
47931
47932         test-dup2: fix bad assumption
47933         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47934         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47935
47936         test-version-etc: fix CRLF portability issue
47937         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47938         recognize \r.
47939         * tests/test-argp-version-etc-1.sh: Likewise.
47940
47941         getopt: update client modules
47942         * modules/argp (Depends-on): Use getopt-gnu.
47943         * modules/git-merge-changelog (Depends-on): Likewise.
47944         * modules/long-options (Depends-on): Likewise.
47945         * modules/xstrtol (Depends-on): Likewise.
47946
47947 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47948
47949         * tests/test-version-etc.sh: Don't fail on different
47950         project/version.  Don't fail on CRLF differences.  Rewrite to use
47951         multiple -e instead of multiple sed forks, suggested by Eric Blake
47952         <ebb9@byu.net>.
47953         * tests/test-argp-version-etc-1.sh: Likewise.
47954
47955 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47956
47957         * tests/test-version-etc.sh: Don't fail on different
47958         project/version.
47959
47960 2009-08-12  Bruno Haible  <bruno@clisp.org>
47961
47962         Tests for modules 'getopt-posix', 'getopt-gnu'.
47963         * modules/getopt-posix-tests: New file.
47964         * tests/test-getopt.c: New file.
47965         * tests/test-getopt.h: New file.
47966         * tests/test-getopt_long.h: New file.
47967
47968         New modules 'getopt-posix', 'getopt-gnu'.
47969         * modules/getopt-gnu: New file, renamed from modules/getopt.
47970         * modules/getopt-posix: New file.
47971         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47972         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47973         (gl_GETOPT): Remove macro.
47974         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47975         Disable the test against BSD systems that declare optreset. Test
47976         against mingw bug. Test against lack of support of optional arguments
47977         on many platforms.
47978         * doc/glibc-headers/getopt.texi: Update module name and list of
47979         relevant platforms.
47980         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47981         'getopt-gnu' and more portability problems.
47982         * NEWS: Mention the changes.
47983
47984 2009-08-12  Bruno Haible  <bruno@clisp.org>
47985
47986         Ensure that optarg etc. get declared by <unistd.h>.
47987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47988         AC_USE_SYSTEM_EXTENSIONS.
47989         * modules/getopt (Depends-on): Add 'extensions'.
47990
47991 2009-08-12  Bruno Haible  <bruno@clisp.org>
47992
47993         Avoid test link errors.
47994         * modules/pipe-filter-ii-tests (Makefile.am): Define
47995         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47996         * modules/pipe-filter-gi-tests (Makefile.am): Define
47997         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47999
48000 2009-08-12  Bruno Haible  <bruno@clisp.org>
48001
48002         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48003         gl_GETOPT_SUBSTITUTE before.
48004         (gl_GETOPT): Use it.
48005         * m4/argp.m4 (gl_ARGP): Update.
48006         Reported by Sergey Poznyakoff.
48007
48008         * m4/getopt.m4: Reorder macros.
48009         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48010         (gl_GETOPT_SUBSTITUTE): Remove macro.
48011
48012 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48013
48014         Minor improvement in gitlog-to-changelog
48015
48016         * build-aux/gitlog-to-changelog: New option `--format' makes
48017         output format string configurable.
48018
48019 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48020
48021         Optimize exclude: use hash tables for non-wildcard patterns.
48022
48023         * lib/exclude.c: Include hash.h and mbuiter.h
48024         (struct exclude_pattern, exclude_segment): New data types.
48025         (struct exclude): Rewrite.
48026         (fnmatch_pattern_has_wildcards): New function.
48027         (new_exclude_segment, free_exclude_segment): New functions.
48028         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48029         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48030         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48031         * modules/exclude: Depend on hash and mbuiter.
48032
48033         * modules/exclude-tests: New file.
48034         * tests/test-exclude.c: New file.
48035         * tests/test-exclude1.sh: New file.
48036         * tests/test-exclude2.sh: New file.
48037         * tests/test-exclude3.sh: New file.
48038         * tests/test-exclude4.sh: New file.
48039         * tests/test-exclude5.sh: New file.
48040         * tests/test-exclude6.sh: New file.
48041         * tests/test-exclude7.sh: New file.
48042
48043 2009-08-12  Bruno Haible  <bruno@clisp.org>
48044
48045         Ensure that getopt() gets declared by <unistd.h>.
48046         * lib/unistd.in.h: Conditionally include getopt.h.
48047         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48048         Set GNULIB_UNISTD_H_GETOPT.
48049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48050         GNULIB_UNISTD_H_GETOPT.
48051         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48052
48053 2009-08-12  Bruno Haible  <bruno@clisp.org>
48054
48055         Clarify logic.
48056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48057         gl_replace_getopt instead of GETOPT_H.
48058
48059 2009-08-12  Bruno Haible  <bruno@clisp.org>
48060
48061         * m4/getopt.m4: Add comments.
48062
48063 2009-08-12  Bruno Haible  <bruno@clisp.org>
48064
48065         Disable multithread support by default on Cygwin 1.5.x.
48066         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48067         set gl_use_threads=no if not specified otherwise.
48068
48069 2009-08-11  Bruno Haible  <bruno@clisp.org>
48070
48071         Avoid compilation error on NetBSD 5.0.
48072         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48073         * tests/test-stdio.c: Likewise.
48074         * tests/test-stdlib.c: Likewise.
48075         * tests/test-string.c: Likewise.
48076         * tests/test-unistd.c: Likewise.
48077         Reported by Greg Troxel <gdt@ir.bbn.com>
48078         at <https://savannah.gnu.org/support/?106973>.
48079
48080 2009-08-11  Bruno Haible  <bruno@clisp.org>
48081
48082         * modules/dup2-tests (Depends-on): Remove close.
48083
48084         Undo 2009-07-19 commit.
48085         * modules/acl-tests (Depends-on): Remove close.
48086         * modules/binary-io-tests (Depends-on): Likewise.
48087         * modules/closein-tests (Depends-on): Likewise.
48088         * modules/flock-tests (Depends-on): Likewise.
48089         * modules/fsync-tests (Depends-on): Likewise.
48090         * modules/lseek-tests (Depends-on): Likewise.
48091         * modules/pipe-tests (Depends-on): Likewise.
48092         * modules/posix_spawn-tests (Depends-on): Likewise.
48093         * modules/posix_spawnp-tests (Depends-on): Likewise.
48094         * modules/stat-time-tests (Depends-on): Likewise.
48095         * modules/yesno-tests (Depends-on): Likewise.
48096
48097 2009-08-10  Bruno Haible  <bruno@clisp.org>
48098
48099         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48100
48101 2009-08-10  Bruno Haible  <bruno@clisp.org>
48102
48103         Fix a gcc warning.
48104         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48105
48106 2009-08-10  Bruno Haible  <bruno@clisp.org>
48107
48108         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48109         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48110         not only the first time.
48111         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48112         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48113         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48114         is 1, not only the the first time.
48115
48116 2009-08-10  Bruno Haible  <bruno@clisp.org>
48117
48118         Make it possible to use module 'gethostname' without module 'close'.
48119         * lib/unistd.in.h (close): Evoke a link error only if
48120         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48122         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48123         * modules/unistd (Makefile.am): Substitute
48124         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48125         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48126         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48127         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48128         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48129         * modules/sys_ioctl (Makefile.am): Substitute
48130         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48131         * modules/socket (configure.ac): On native Windows, set
48132         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48133         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48134         Reported by Sam Steingold <sds@gnu.org>.
48135
48136 2009-08-10  Bruno Haible  <bruno@clisp.org>
48137
48138         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48139         * modules/ioctl (configure.ac): Likewise.
48140
48141 2009-08-10  Bruno Haible  <bruno@clisp.org>
48142
48143         Avoid collision between gnulib wrapper and libintl wrapper.
48144         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48145         already defined in intl/printf.c.
48146         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48147         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48148
48149 2009-08-09  Bruno Haible  <bruno@clisp.org>
48150
48151         Make <sys/select.h> really self-contained, also on Solaris 10.
48152         * lib/sys_select.in.h: Include <string.h>.
48153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48154         Solaris 10 problem.
48155         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48156         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48157         Reported by Jim Meyering.
48158
48159 2009-08-09  Bruno Haible  <bruno@clisp.org>
48160
48161         Avoid warnings from 'aclocal' that are due to a use of macro name
48162         AM_XGETTEXT_OPTION that is not defined in automake.
48163         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48164         automake.
48165         * modules/error (configure.ac): Likewise.
48166         * modules/propername (configure.ac): Likewise.
48167         * modules/vasprintf (configure.ac): Likewise.
48168         * modules/verror (configure.ac): Likewise.
48169         * modules/xprintf (configure.ac): Likewise.
48170         * modules/xvasprintf (configure.ac): Likewise.
48171
48172 2009-08-08  Bruno Haible  <bruno@clisp.org>
48173
48174         Avoid compilation error in C++ mode.
48175         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48176         Reported by Sam Steingold <sds@gnu.org>.
48177
48178 2009-08-08  Bruno Haible  <bruno@clisp.org>
48179
48180         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48181         for the various Unix platforms.
48182         * doc/posix-headers/limits.texi: Update platforms list regarding
48183         HOST_NAME_MAX.
48184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48185
48186 2009-08-07  Jim Meyering  <meyering@redhat.com>
48187
48188         selinux-at: fix typo in a comment
48189         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48190         Spotted by Paolo Bonzini.
48191
48192         selinux-at: remove redundant m4 code, add documentation
48193         * modules/selinux-at (configure.ac): Remove redundant code.
48194         LIB_SELINUX is already set via the dependent module, selinux-h.
48195         (Include): Add quotes around selinux-at.h.
48196         * lib/selinux-at.h: Add documentation.
48197         Reported by Bruno Haible in
48198         http://marc.info/?l=gnulib-bug&m=124958988300749
48199
48200 2009-08-07  Bruno Haible  <bruno@clisp.org>
48201
48202         Avoid link error on MacOS X 10.3 and 10.4.
48203         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48204         on non-ELF systems.
48205         * lib/argp-pv.c (argp_program_version): Likewise.
48206         Reported by Simon Josefsson.
48207
48208 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48209
48210         * tests/test-version-etc.sh: Use $EXEEXT.
48211
48212 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48213
48214         update-copyright: update documentation to point to maint.mk
48215         * build-aux/update-copyright: Here.
48216
48217 2009-08-06  Jim Meyering  <meyering@redhat.com>
48218
48219         maint.mk: support update-copyright-local
48220         * top/maint.mk (update-copyright-local): Define place-holder.
48221         (update-copyright): Depend on $(update-copyright-local).
48222
48223 2009-08-06  Jim Meyering  <meyering@redhat.com>
48224
48225         selinux-at: new module
48226         Initially written for coreutils, this module will soon be
48227         used by findutils, too.
48228         * MODULES.html.sh [Misc]: Add selinux-at.
48229         * lib/selinux-at.h: New file, from coreutils.
48230         * lib/selinux-at.c: Likewise.
48231         * modules/selinux-at: Likewise.
48232         (License): Change from LGPL to GPL, since it depends
48233         on the GPL'd openat module.
48234
48235         doc: update README
48236         * README: Remove references to cogito.
48237         Remove cvs-repo-updating instructions from 2007.
48238         Don't imply that CVS is better if you have limited disk space.
48239
48240 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48241
48242         update-copyright: support C-style comments
48243         * build-aux/update-copyright: Implement and document.
48244         * tests/test-update-copyright.sh: Test.
48245
48246 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48247
48248         update-copyright: support omitted "(C)"
48249         * build-aux/update-copyright: Implement and document.  Also,
48250         allow variable whitespace before "(C)".
48251         * tests/test-update-copyright.sh: Test.
48252
48253 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48254
48255         update-copyright: don't trip on non-FSF copyright statements
48256         * build-aux/update-copyright: Fix so that the first correctly
48257         formatted FSF copyright statement is recognized no matter what
48258         appears before it.  Update documentation.
48259         * tests/test-update-copyright.sh: Test that.
48260
48261 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48262
48263         update-copyright: clean up code a little
48264         * build-aux/update-copyright: Append "_re" to the name of any
48265         variable holding a regular expression.
48266         Replace "old" and "new" with "stmt" in variable names.
48267         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48268         handled correctly.
48269         Format code more consistently.
48270
48271 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48272
48273         update-copyright-tests: improve portability
48274         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48275         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48276
48277 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48278
48279         update-copyright: support @copyright{} and &copy;
48280         * build-aux/update-copyright: Implement and document.
48281         * tests/test-update-copyright.sh: Test.
48282
48283 2009-08-04  Jim Meyering  <meyering@redhat.com>
48284
48285         update-copyright-tests: correctly test EOL=\r\n handling
48286         * tests/test-update-copyright.sh: Put \r at the end of some lines
48287         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48288
48289         maint.mk: make update-copyright exclusion list more configurable
48290         * top/maint.mk (update-copyright): Default to excluding COPYING,
48291         but allow an override, in case someone does want to update that file.
48292
48293         maint.mk: don't update copyright date in COPYING
48294         * top/maint.mk (update-copyright): Exclude COPYING.
48295
48296         maint.mk: add a copyright-updating rule
48297         * top/maint.mk (update-copyright): New rule.
48298         Derived from coreutils/Makefile.am.
48299
48300         update-copyright: rename some variables
48301         * build-aux/update-copyright: Rename a few variables for clarity.
48302         Tweak syntax.  List Joel E. Denny as coauthor.
48303
48304 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48305
48306         update-copyright: fix bug for 2-digit last year and add tests
48307         * build-aux/update-copyright: Fix bug.
48308         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48309         specified.
48310         * modules/update-copyright-tests: New
48311         * tests/test-update-copyright.sh: New.
48312
48313 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48314
48315         update-copyright: handle leading tabs in line prefix
48316         * build-aux/update-copyright: Count leading tabs as 8 spaces
48317         when computing margin.  This helps with the formatting of
48318         ChangeLogs, for example.
48319         Fix documentation a little.
48320
48321 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48322
48323         update-copyright: support EOL=\r\n
48324         * build-aux/update-copyright: Implement that.
48325
48326 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48327
48328         update-copyright: automatically format copyright statements
48329         * build-aux/update-copyright: Implement that.
48330         Also, be a little more predictable and safer by always failing
48331         when the full copyright format is not perfectly recognized as an
48332         unbroken whole.  Discussed at
48333         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48334         Rewrite documentation.
48335
48336 2009-08-03  Bruno Haible  <bruno@clisp.org>
48337
48338         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48339
48340 2009-08-02  Bruno Haible  <bruno@clisp.org>
48341
48342         Tests for module 'uname'.
48343         * modules/uname-tests: New file.
48344         * tests/test-uname.c: New file.
48345
48346         New module 'uname'.
48347         * lib/uname.c: New file.
48348         * m4/uname.m4: New file.
48349         * modules/uname: New file.
48350         * doc/posix-functions/uname.texi: Mention the new module.
48351
48352 2009-08-02  Bruno Haible  <bruno@clisp.org>
48353
48354         Tests for module 'sys_utsname'.
48355         * modules/sys_utsname-tests: New file.
48356         * tests/test-sys_utsname.c: New file.
48357
48358         New module 'sys_utsname'.
48359         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48360         * m4/sys_utsname_h.m4: New file.
48361         * modules/sys_utsname: New file.
48362         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48363
48364 2009-08-02  Bruno Haible  <bruno@clisp.org>
48365
48366         Implicitly initialize the sockets library.
48367         * lib/gethostname.c: Include sockets.h.
48368         (rpl_gethostname): Invoke gl_sockets_startup.
48369         * lib/socket.c: Include sockets.h.
48370         (rpl_socket): Invoke gl_sockets_startup.
48371         * modules/gethostname (Depends-on): Add sockets.
48372         * modules/socket (Depends-on): Likewise.
48373         * tests/test-poll.c: Don't include sockets.h.
48374         (main): Don't invoke gl_sockets_startup.
48375         * tests/test-select.c: Don't include sockets.h.
48376         (main): Don't invoke gl_sockets_startup.
48377
48378 2009-08-02  Bruno Haible  <bruno@clisp.org>
48379
48380         Allow multiple calls to gl_sockets_startup.
48381         * lib/sockets.c (initialized_sockets_version): New variable.
48382         (gl_sockets_startup): Do nothing if already called for this or a higher
48383         version.
48384         (gl_sockets_cleanup): Reset initialized_sockets_version.
48385
48386 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48387
48388         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48389         different project/version.
48390
48391 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48392             Bruno Haible  <bruno@clisp.org>
48393
48394         Tests for module 'pipe-filter-gi'.
48395         * modules/pipe-filter-gi-tests: New file.
48396         * tests/test-pipe-filter-gi1.sh: New file.
48397         * tests/test-pipe-filter-gi1.c: New file.
48398         * tests/test-pipe-filter-gi2.sh: New file.
48399         * tests/test-pipe-filter-gi2-main.c: New file.
48400         * tests/test-pipe-filter-gi2-child.c: New file.
48401
48402         New module 'pipe-filter-gi'.
48403         * lib/pipe-filter-gi.c: New file.
48404         * modules/pipe-filter-gi: New file.
48405
48406 2009-08-02  Bruno Haible  <bruno@clisp.org>
48407             Paolo Bonzini  <bonzini@gnu.org>
48408
48409         Tests for module 'pipe-filter-ii'.
48410         * modules/pipe-filter-ii-tests: New file.
48411         * tests/test-pipe-filter-ii1.sh: New file.
48412         * tests/test-pipe-filter-ii1.c: New file.
48413         * tests/test-pipe-filter-ii2.sh: New file.
48414         * tests/test-pipe-filter-ii2-main.c: New file.
48415         * tests/test-pipe-filter-ii2-child.c: New file.
48416
48417         New module 'pipe-filter-ii'.
48418         * lib/pipe-filter.h: New file.
48419         * lib/pipe-filter-ii.c: New file.
48420         * lib/pipe-filter-aux.h: New file.
48421         * modules/pipe-filter-ii: New file.
48422
48423 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48424
48425         * lib/gc-libgcrypt.c: Change copyright to FSF.
48426         * lib/gc-gnulib.c: Likewise.
48427
48428 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48429
48430         * lib/gethostname.c: Include limits.h.
48431
48432 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48433             Bruno Haible  <bruno@clisp.org>
48434
48435         Ensure HOST_NAME_MAX as part of the gethostname module.
48436         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48437         define also HOST_NAME_MAX.
48438         * tests/test-gethostname.c: Include <limits.h>.
48439         (main): Check also HOST_NAME_MAX.
48440         * doc/posix-headers/limits.texi: Document the mingw problem.
48441
48442 2009-08-02  Bruno Haible  <bruno@clisp.org>
48443
48444         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48445         Add comments.
48446
48447 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48448
48449         * lib/gethostname.c: Add Windows wrapper.
48450         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48451         * modules/gethostname: Depend on sys_socket & errno, for also
48452         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48453         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48454
48455 2009-07-31  Jim Meyering  <meyering@redhat.com>
48456
48457         getloadavg: fix symbol name in comment
48458         * lib/getloadavg.c: Correct a typo I introduced when adding
48459         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48460         Matt Kraai spotted the problem.
48461
48462 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48463
48464         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48465         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48466         code also if ! defined N_NAME_POINTER.
48467         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48468         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48469         but the n_name member is a 12-byte array.
48470
48471 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48472
48473         update-copyright: generalize comment handling
48474         * build-aux/update-copyright: Handle copyright statements
48475         within more comment styles.
48476         Document usage.
48477         Report any file with an external copyright holder or parse failure.
48478
48479 2009-07-29  Jim Meyering  <meyering@redhat.com>
48480
48481         mktime: correct setting of REPLACE_MKTIME
48482         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48483
48484         update-copyright: new module
48485         * modules/update-copyright: New file.
48486         * build-aux/update-copyright: New file.
48487         * MODULES.html.sh (maint+release support): Add update-copyright.
48488
48489 2009-07-27  Bruno Haible  <bruno@clisp.org>
48490
48491         Fix compilation error when <ctime> is used and mktime is replaced.
48492         * lib/time.in.h (mktime): New declaration.
48493         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48494         REPLACE_MKTIME instead of defining mktime in config.h.
48495         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48496         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48497         Reported by Ross McFarland <rwmcfa1@neces.com>.
48498
48499 2009-07-27  Bruno Haible  <bruno@clisp.org>
48500
48501         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48502         Reported by Matt Kraai <mkraai@beckman.com>.
48503
48504 2009-07-25  Jim Meyering  <meyering@redhat.com>
48505
48506         maint.mk: avoid warnings about missing files
48507         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48508         diagnostic when .prev-version does not exist.
48509         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48510         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48511         nonexistent cfg.mk.
48512         Suggestions from Simon Josefsson.
48513
48514 2009-07-25  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48517         defined as macros. Needed on QNX 6.4.1.
48518         Reported by Matt Kraai <mkraai@beckman.com>.
48519
48520 2009-07-23  Jim Meyering  <meyering@redhat.com>
48521
48522         maint.mk: invoke "make dist" with a working value of XZ_OPT
48523         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48524
48525 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48526
48527         Make fseeko.c compile on QNX.
48528         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48529
48530 2009-07-22  Peter Simons  <simons@cryp.to>
48531
48532         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48533         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48534         * lib/md4.h: Likewise.
48535         * lib/md5.h: Likewise.
48536         * lib/sha1.h: Likewise.
48537         * lib/sha256.h: Likewise.
48538         * lib/sha512.h: Likewise.
48539
48540         tests-sha1: don't assign literal string to 'char *' variable
48541         * tests/test-sha1.c (main): Declare locals with "const" to match
48542         attributes of the right hand side.
48543
48544 2009-07-21  Eric Blake  <ebb9@byu.net>
48545
48546         dup2: fix more mingw problems
48547         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48548         fd to itself.
48549         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48550         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48551         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48552         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48553         care of mingw bugs.
48554
48555 2009-07-21  Jim Meyering  <meyering@redhat.com>
48556
48557         vc-list-files: avoid failure when /bin/sh is dash
48558         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48559         On some Debian based systems, /bin/sh is a symlink to dash, and running
48560         this command would omit the "/" following each 'tests' prefix:
48561           dash -x build-aux/vc-list-files -C . tests
48562         That is because bash and dash work differently:
48563           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48564           bash ok
48565           dash odd
48566
48567 2009-07-21  Eric Blake  <ebb9@byu.net>
48568
48569         dup2-tests: test previous patch
48570         * modules/dup2-tests: New file.
48571         * tests/test-dup2.c: Likewise.
48572         * tests/test-open.c (main): Avoid unspecified behavior.
48573         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48574         test.
48575
48576         dup2: work around mingw and cygwin 1.5 bug
48577         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48579         * modules/unistd (Makefile.am): Substitute it.
48580         * lib/unistd.in.h (dup2): Declare the replacement.
48581         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48582         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48583         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48584         * modules/execute (Depends-on): Add dup2.
48585         * modules/fseterr (Depends-on): Likewise.
48586         * modules/pipe (Depends-on): Likewise.
48587         * modules/posix_spawn-internal (Depends-on): Likewise.
48588
48589 2009-07-21  Bruno Haible  <bruno@clisp.org>
48590
48591         * modules/.gitattributes: New file.
48592
48593 2009-07-20  Bruno Haible  <bruno@clisp.org>
48594
48595         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48596         (main): Use it.
48597
48598 2009-07-20  Eric Blake  <ebb9@byu.net>
48599
48600         test-pipe: make a bit more robust.
48601         * tests/test-pipe.c (myerr): Allow error messages regardless of
48602         what we do to stderr.
48603         (test_pipe): Rearrange to avoid deadlock.
48604         (child_main): Try a larger read, to ensure we avoided deadlock.
48605         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48606         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48607         if misused.
48608
48609 2009-07-19  Jim Meyering  <meyering@redhat.com>
48610
48611         fts: avoid false-positive cycle-detection
48612         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48613         for each new command line argument.
48614
48615 2009-07-19  Bruno Haible  <bruno@clisp.org>
48616
48617         Fix build error on mingw with the modules sys_select and unistd.
48618         * modules/acl-tests (Depends-on): Add close.
48619         * modules/binary-io-tests (Depends-on): Likewise.
48620         * modules/closein-tests (Depends-on): Likewise.
48621         * modules/flock-tests (Depends-on): Likewise.
48622         * modules/fsync-tests (Depends-on): Likewise.
48623         * modules/lseek-tests (Depends-on): Likewise.
48624         * modules/pipe-tests (Depends-on): Likewise.
48625         * modules/posix_spawn-tests (Depends-on): Likewise.
48626         * modules/posix_spawnp-tests (Depends-on): Likewise.
48627         * modules/stat-time-tests (Depends-on): Likewise.
48628         * modules/yesno-tests (Depends-on): Likewise.
48629
48630 2009-07-19  Bruno Haible  <bruno@clisp.org>
48631
48632         Unify conditionals.
48633         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48634         macros, not at the compiler macros.
48635         * lib/pipe.c: Likewise.
48636         * lib/execute.c: Likewise.
48637         * lib/spawni.c: Likewise.
48638
48639 2009-07-19  Bruno Haible  <bruno@clisp.org>
48640
48641         Fix handling of closed stdin/stdout/stderr on mingw.
48642         * lib/w32spawn.h: Include unistd.h.
48643         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48644         file descriptor with O_NOINHERIT flag.
48645         (fd_safer_noinherit): New function, based on fd-safer.c.
48646         (dup_safer_noinherit): New function, based on dup-safer.c.
48647         (undup_safer_noinherit): New function.
48648         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48649         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48650         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48651         instead of fd_safer.
48652         * tests/test-pipe.c: Include <windows.h>.
48653         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48654         result.
48655
48656         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48657         from main.
48658         (test_pipe): Pass an extra argument for disambiguation.
48659         (main): Invoke parent_main or child_main.
48660
48661         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48662         consistently.
48663
48664 2009-07-18  Eric Blake  <ebb9@byu.net>
48665
48666         test-pipe: fix mingw build
48667         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48668
48669 2009-07-18  Bruno Haible  <bruno@clisp.org>
48670
48671         * modules/pipe-tests (Makefile.am): Fix typo.
48672
48673 2009-07-18  Eric Blake  <ebb9@byu.net>
48674
48675         error: fix mingw build
48676         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48677         Reported by Bruno Haible.
48678
48679         error: avoid undefined use of stdout
48680         * lib/error.c (error, error_at_line): Check that fd 1 is open
48681         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48682         is handling faults and the close_stdout module wants to report the
48683         detection of closed stdout as an error.
48684
48685 2009-07-17  Eric Blake  <ebb9@byu.net>
48686
48687         pipe: be robust in face of closed fds
48688         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48689         should cause child to misbehave.
48690         * modules/pipe-tests: New module.
48691         * tests/test-pipe.c: New file.
48692         * tests/test-pipe.sh: New file.
48693         Reported by Akim Demaille.
48694
48695 2009-07-14  Bruno Haible  <bruno@clisp.org>
48696
48697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48698         Reported by anonymous kc.
48699
48700 2009-07-07  Jim Meyering  <meyering@redhat.com>
48701
48702         maint.mk: don't look for translatable strings in *.m4 or *.mk
48703         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48704         when searching for translatable strings.
48705
48706 2009-07-05  Jim Meyering  <meyering@redhat.com>
48707
48708         remove superfluous parentheses in STREQ definition
48709         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48710         * lib/getugroups.c (STREQ): Likewise.
48711         * lib/fnmatch.c (STREQ): Likewise.
48712         Spotted by Bruno Haible.
48713
48714 2009-07-04  Jim Meyering  <meyering@redhat.com>
48715
48716         argv-iter: new module
48717         * MODULES.html.sh: Add argv-iter.
48718         * lib/argv-iter.c, lib/argv-iter.h: New files.
48719         * modules/argv-iter: New file.
48720         * modules/argv-iter-tests: New file.
48721         * tests/test-argv-iter.c: Test it.
48722
48723 2009-07-04  Bruno Haible  <bruno@clisp.org>
48724
48725         Fix assertion.
48726         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48727         contains more exact copies of a given entry than file2, leave the extra
48728         copies unpaired rather than aborting.
48729         Reported by Eric Blake.
48730
48731 2009-07-02  Bruno Haible  <bruno@clisp.org>
48732
48733         Speedup git-merge-changelog for git cherry-pick.
48734         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48735         (entries_mapping_get): New function, extracted from compute_mapping.
48736         (entries_mapping_reverse_get): New function.
48737         (compute_mapping): Add a 'full' argument. Return the result in a
48738         'struct entries_mapping'.
48739         (main): Update. Access the mappings through entries_mapping_get.
48740         Reported by Eric Blake.
48741
48742 2009-07-02  Bruno Haible  <bruno@clisp.org>
48743
48744         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48745         best_i.
48746
48747 2009-07-02  Bruno Haible  <bruno@clisp.org>
48748
48749         Speed up approximate search for matching ChangeLog entries.
48750         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48751         argument. Call fstrcmp_bounded instead of fstrcmp.
48752         (compute_mapping, try_split_merged_entry, main): Update callers.
48753
48754 2009-07-02  Bruno Haible  <bruno@clisp.org>
48755
48756         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48757
48758 2009-06-30  Bruno Haible  <bruno@clisp.org>
48759
48760         Reduce the number of uc_is_cased calls.
48761         * lib/unicase.h (casing_suffix_context_t): Add
48762         'first_char_except_ignorable' field.
48763         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48764         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48765         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48766         Update initializer.
48767         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48768         case-ignorable characters.
48769         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48770         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48771         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48772         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48773         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48774
48775 2009-06-30  Bruno Haible  <bruno@clisp.org>
48776
48777         Tests for module 'unicase/ignorable'.
48778         * modules/unicase/ignorable-tests: New file.
48779         * tests/unicase/test-ignorable.c: New file, generated by
48780         gen-uni-tables.
48781
48782         Tests for module 'unicase/cased'.
48783         * modules/unicase/cased-tests: New file.
48784         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48785         * tests/unicase/test-predicate-part1.h: New file, derived from
48786         tests/unictype/test-predicate-part1.h.
48787         * tests/unicase/test-predicate-part2.h: New file, same as
48788         tests/unictype/test-predicate-part2.h.
48789
48790         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48791         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48792         (output_casing_properties): New function.
48793         (main): Call it.
48794         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48795         * lib/unicase/cased.c: Include unictype/bitmap.h.
48796         (uc_is_cased): Define through a bitmap lookup.
48797         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48798         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48799         (uc_is_case_ignorable): Define through a bitmap lookup.
48800         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48801         lib/unictype/bitmap.h.
48802         (Depends-on): Add inline. Clean up.
48803         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48804         lib/unictype/bitmap.h.
48805         (Depends-on): Add inline. Clean up.
48806         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48807         recognition.
48808         * tests/unicase/test-u16-tolower.c (main): Likewise.
48809         * tests/unicase/test-u32-tolower.c (main): Likewise.
48810
48811 2009-06-30  Bruno Haible  <bruno@clisp.org>
48812
48813         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48814         * lib/unicase/u16-casemap.c: Likewise.
48815         * lib/unicase/u32-casemap.c: Likewise.
48816
48817 2009-06-29  Bruno Haible  <bruno@clisp.org>
48818
48819         Define u32_casefold as a wrapper around u32_ct_casefold.
48820         * lib/unicase/u32-casefold.c: Update.
48821         * modules/unicase/u32-casefold (Depends-on): Add
48822         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48823         unicase/empty-suffix-context. Clean up.
48824
48825         Define u16_casefold as a wrapper around u16_ct_casefold.
48826         * lib/unicase/u16-casefold.c: Update.
48827         * modules/unicase/u16-casefold (Depends-on): Add
48828         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48829         unicase/empty-suffix-context. Clean up.
48830
48831         Define u8_casefold as a wrapper around u8_ct_casefold.
48832         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48833         * lib/unicase/u8-casefold.c: Update.
48834         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48835         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48836
48837         Define u32_totitle as a wrapper around u32_ct_totitle.
48838         * lib/unicase/u32-totitle.c: Update.
48839         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48840         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48841
48842         Define u16_totitle as a wrapper around u16_ct_totitle.
48843         * lib/unicase/u16-totitle.c: Update.
48844         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48845         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48846
48847         Define u8_totitle as a wrapper around u8_ct_totitle.
48848         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48849         functions.
48850         (FUNC): Delegate to U_CT_TOTITLE.
48851         * lib/unicase/u8-totitle.c: Update.
48852         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48853         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48854
48855         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48856         invocation.
48857         * modules/unicase/u32-tolower (Depends-on): Add
48858         unicase/empty-prefix-context, unicase/empty-suffix-context.
48859
48860         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48861         invocation.
48862         * modules/unicase/u16-tolower (Depends-on): Add
48863         unicase/empty-prefix-context, unicase/empty-suffix-context.
48864
48865         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48866         * modules/unicase/u8-tolower (Depends-on): Add
48867         unicase/empty-prefix-context, unicase/empty-suffix-context.
48868
48869         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48870         invocation.
48871         * modules/unicase/u32-toupper (Depends-on): Add
48872         unicase/empty-prefix-context, unicase/empty-suffix-context.
48873
48874         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48875         invocation.
48876         * modules/unicase/u16-toupper (Depends-on): Add
48877         unicase/empty-prefix-context, unicase/empty-suffix-context.
48878
48879         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48880         * modules/unicase/u8-toupper (Depends-on): Add
48881         unicase/empty-prefix-context, unicase/empty-suffix-context.
48882
48883         New module 'unicase/u32-ct-casefold'.
48884         * lib/unicase/u32-ct-casefold.c: New file.
48885         * modules/unicase/u32-ct-casefold: New file.
48886
48887         New module 'unicase/u16-ct-casefold'.
48888         * lib/unicase/u16-ct-casefold.c: New file.
48889         * modules/unicase/u16-ct-casefold: New file.
48890
48891         New module 'unicase/u8-ct-casefold'.
48892         * lib/unicase/u8-ct-casefold.c: New file.
48893         * lib/unicase/u-ct-casefold.h: New file, derived from
48894         lib/unicase/u-casefold.h.
48895         * modules/unicase/u8-ct-casefold: New file.
48896
48897         New module 'unicase/u32-ct-totitle'.
48898         * lib/unicase/u32-ct-totitle.c: New file.
48899         * modules/unicase/u32-ct-totitle: New file.
48900
48901         New module 'unicase/u16-ct-totitle'.
48902         * lib/unicase/u16-ct-totitle.c: New file.
48903         * modules/unicase/u16-ct-totitle: New file.
48904
48905         New module 'unicase/u8-ct-totitle'.
48906         * lib/unicase/u8-ct-totitle.c: New file.
48907         * lib/unicase/u-ct-totitle.h: New file, derived from
48908         lib/unicase/u-totitle.h.
48909         * modules/unicase/u8-ct-totitle: New file.
48910
48911         New module 'unicase/u32-ct-tolower'.
48912         * lib/unicase/u32-ct-tolower.c: New file.
48913         * modules/unicase/u32-ct-tolower: New file.
48914
48915         New module 'unicase/u16-ct-tolower'.
48916         * lib/unicase/u16-ct-tolower.c: New file.
48917         * modules/unicase/u16-ct-tolower: New file.
48918
48919         New module 'unicase/u8-ct-tolower'.
48920         * lib/unicase/u8-ct-tolower.c: New file.
48921         * modules/unicase/u8-ct-tolower: New file.
48922
48923         New module 'unicase/u32-ct-toupper'.
48924         * lib/unicase/u32-ct-toupper.c: New file.
48925         * modules/unicase/u32-ct-toupper: New file.
48926
48927         New module 'unicase/u16-ct-toupper'.
48928         * lib/unicase/u16-ct-toupper.c: New file.
48929         * modules/unicase/u16-ct-toupper: New file.
48930
48931         New module 'unicase/u8-ct-toupper'.
48932         * lib/unicase/u8-ct-toupper.c: New file.
48933         * modules/unicase/u8-ct-toupper: New file.
48934
48935         Add context arguments to u*_casemap functions.
48936         * lib/unicase/unicasemap.h: Include unicase.h.
48937         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48938         suffix_context arguments.
48939         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48940         functions.
48941         (FUNC): Add prefix_context and suffix_context arguments. Use
48942         uc_is_cased and uc_is_case_ignorable.
48943         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48944         * lib/unicase/u16-casemap.c: Likewise.
48945         * lib/unicase/u32-casemap.c: Likewise.
48946         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48947         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48948         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48949         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48950         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48951         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48952
48953         New module 'unicase/u32-suffix-context'.
48954         * lib/unicase/u32-suffix-context.c: New file.
48955         * modules/unicase/u32-suffix-context: New file.
48956
48957         New module 'unicase/u16-suffix-context'.
48958         * lib/unicase/u16-suffix-context.c: New file.
48959         * modules/unicase/u16-suffix-context: New file.
48960
48961         New module 'unicase/u8-suffix-context'.
48962         * lib/unicase/u8-suffix-context.c: New file.
48963         * lib/unicase/u-suffix-context.h: New file.
48964         * modules/unicase/u8-suffix-context: New file.
48965
48966         New module 'unicase/empty-suffix-context'.
48967         * lib/unicase/empty-suffix-context.c: New file.
48968         * modules/unicase/empty-suffix-context: New file.
48969
48970         New module 'unicase/u32-prefix-context'.
48971         * lib/unicase/u32-prefix-context.c: New file.
48972         * modules/unicase/u32-prefix-context: New file.
48973
48974         New module 'unicase/u16-prefix-context'.
48975         * lib/unicase/u16-prefix-context.c: New file.
48976         * modules/unicase/u16-prefix-context: New file.
48977
48978         New module 'unicase/u8-prefix-context'.
48979         * lib/unicase/u8-prefix-context.c: New file.
48980         * lib/unicase/u-prefix-context.h: New file.
48981         * lib/unicase/context.h: New file.
48982         * modules/unicase/u8-prefix-context: New file.
48983
48984         New module 'unicase/empty-prefix-context'.
48985         * lib/unicase/empty-prefix-context.c: New file.
48986         * modules/unicase/empty-prefix-context: New file.
48987
48988         New module 'unicase/ignorable'.
48989         * lib/unicase/ignorable.c: New file.
48990         * modules/unicase/ignorable: New file.
48991
48992         New module 'unicase/cased'.
48993         * lib/unicase/caseprop.h: New file.
48994         * lib/unicase/cased.c: New file.
48995         * modules/unicase/cased: New file.
48996
48997         New functions for case mapping of substrings.
48998         * lib/unicase.h (casing_prefix_context_t): New type.
48999         (unicase_empty_prefix_context): New variable.
49000         (u8_casing_prefix_context, u16_casing_prefix_context,
49001         u32_casing_prefix_context, u8_casing_prefixes_context,
49002         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49003         declarations.
49004         (casing_suffix_context_t): New type.
49005         (unicase_empty_suffix_context): New variable.
49006         (u8_casing_suffix_context, u16_casing_suffix_context,
49007         u32_casing_suffix_context, u8_casing_suffixes_context,
49008         u16_casing_suffixes_context, u32_casing_suffixes_context,
49009         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49010         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49011         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49012         declarations.
49013
49014 2009-06-28  Jim Meyering  <meyering@redhat.com>
49015
49016         boostrap: indent only with spaces
49017         * build-aux/bootstrap: Indent only with spaces, never TABs.
49018
49019         bootstrap: split long lines
49020         * build-aux/bootstrap: Keep line length < 80.
49021
49022         bootstrap: sync from coreutils
49023         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49024         just as autoreconf does.  Verify a list of prerequisite
49025         package-name,version-number pairs if defined in bootstrap.conf.
49026         Refer to README-prereq, if prerequisites are not satisfied.
49027
49028 2009-06-27  Eric Blake  <ebb9@byu.net>
49029
49030         tests: add test for bogus NULL definition
49031         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49032         * tests/test-stdlib.c: Likewise.
49033         * tests/test-string.c: Likewise.
49034         * tests/test-locale.c: Likewise.
49035         * tests/test-unistd.c: Likewise.
49036         * modules/stdio-tests (Depends-on): Add verify.
49037         * modules/stdlib-tests (Depends-on): Likewise.
49038         * modules/string-tests (Depends-on): Likewise.
49039         * modules/locale-tests (Depends-on): Likewise.
49040         * modules/unistd-tests (Depends-on): Likewise.
49041
49042 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49043
49044         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49045         self-explaining comment.
49046         * m4/selinux-selinux-h: Update serial.
49047         (gl_LIBSELINUX): New macro, adding a warning for missing development
49048         packages to code extracted from...
49049         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49050         Add warning for missing development packages here, too.
49051
49052 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49053
49054         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49055
49056 2009-06-25  Eric Blake  <ebb9@byu.net>
49057
49058         version-etc: fix regression
49059         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49060         gcc.
49061         (version_etc): Use it, to catch bugs with trailing NULL.
49062         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49063         (version_etc_va): Fix logic bug.
49064         * modules/version-etc-tests: Add test.
49065         * tests/test-version-etc.c: New file.
49066         * tests/test-version-etc.sh: Likewise.
49067
49068 2009-06-25  Sam Steingold  <sds@gnu.org>
49069
49070         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49071         mbtowc declaration.
49072
49073 2009-06-25  Eric Blake  <ebb9@byu.net>
49074
49075         fpurge: migrate into <stdio.h>
49076         * lib/fpurge.h: Delete...
49077         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49078         * lib/fpurge.c (fpurge): Change declaring header.
49079         * modules/fpurge (Files): Drop deleted file.
49080         (Depends-on): Add stdio.
49081         (configure.ac): Set witness.
49082         * modules/stdio (Makefile.am): Support fpurge macros.
49083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49084         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49085         * lib/fflush.c: Update client.
49086         * tests/test-fpurge.c: Likewise.
49087         * NEWS: Mention the change.
49088
49089 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49090
49091         * lib/argp-version-etc.c (program_authors): Add const
49092         qualifier.
49093         * lib/version-etc.c: Fix typos in the comments.
49094         * modules/argp-version-etc: Depends on version-etc.
49095
49096 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49097
49098         argp-version-etc: new module.
49099
49100         * lib/argp-version-etc.c: New file.
49101         * lib/argp-version-etc.h: New file.
49102         * modules/argp-version-etc: New file.
49103         * modules/argp-version-etc-tests: New file.
49104         * tests/test-argp-version-etc.c: New test.
49105         * tests/test-argp-version-etc-1.sh: New test.
49106
49107 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49108
49109         Provide additional interfaces and documentation for version-etc
49110         module.
49111
49112         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49113         interfaces.
49114         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49115         prototypes.
49116
49117 2009-06-24  Bruno Haible  <bruno@clisp.org>
49118
49119         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49120         HAVE_LIB${NAME} macro.
49121         Reported by Sam Steingold <sds@gnu.org>.
49122
49123 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49124
49125         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49126         needed.
49127
49128 2009-06-21  Bruno Haible  <bruno@clisp.org>
49129
49130         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49131         work.
49132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49133         together with LIB${NAME}, LTLIB${NAME}.
49134         Reported by Sam Steingold <sds@gnu.org>.
49135
49136 2009-06-20  Jim Meyering  <meyering@redhat.com>
49137
49138         tests: make sc_require_test_exit_idiom more generic
49139         * top/maint.mk (Exit_witness_file): New overridable variable.
49140         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49141         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49142
49143 2009-06-19  Jim Meyering  <meyering@redhat.com>
49144
49145         hash: reverse order of src/dst parameters in an internal interface
49146         * lib/hash.c (transfer_entries): Reverse order of parameters to
49147         put DST before SRC.  Adjust callers.
49148
49149         tests: test-hash: avoid wholesale duplication
49150         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49151         Instead, use a loop and add a single conditional.
49152
49153         tests: test-hash: allow seed selection via a command line argument
49154         * tests/test-hash.c (get_seed): New function.
49155         (main): Use it.
49156
49157 2009-06-19  Eric Blake  <ebb9@byu.net>
49158
49159         hash: avoid memory leak on allocation failure
49160         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49161         failure.  Factor repeated algorithm...
49162         (transfer_entries): ...into new helper routine.
49163         (hash_delete): React to hash_rehash return value.
49164
49165         hash: reduce memory pressure in hash_rehash no-op case
49166         * lib/hash.c (next_prime): Avoid overflow.
49167         (hash_initialize): Factor bucket size computation...
49168         (compute_bucket_size): ...into new helper function.
49169         (hash_rehash): Use new function and open coding to reduce memory
49170         pressure, and avoid a memory leak in USE_OBSTACK code.
49171         Reported by Jim Meyering.
49172
49173 2009-06-18  Eric Blake  <ebb9@byu.net>
49174
49175         hash: make rotation more obvious
49176         * modules/hash (Depends-on): Add bitrotate and stdint.
49177         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49178         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49179         (SIZE_MAX): Rely on headers for definition.
49180         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49181         (raw_hasher): Use rotr_sz.
49182         Suggested by Jim Meyering.
49183
49184         hash: fix memory leak in last patch
49185         * lib/hash.c (hash_rehash): Avoid memory leak.
49186
49187         hash: avoid no-op rehashing
49188         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49189
49190         hash: provide default callback functions
49191         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49192         (hash_initialize): Use them as defaults.
49193         * tests/test-hash.c (main): Test this.
49194
49195         hash: minor optimization
49196         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49197         when possible.
49198         (hash_initialize): Document this promise.
49199         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49200         * tests/test-hash.c (hash_compare_strings): Test this.
49201
49202 2009-06-18  Bruno Haible  <bruno@clisp.org>
49203
49204         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49205         going to be replaced anyway.
49206
49207 2009-06-18  Bruno Haible  <bruno@clisp.org>
49208
49209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49210         in one place.
49211         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49212         be replaced anyway.
49213
49214 2009-06-18  Eric Blake  <ebb9@byu.net>
49215
49216         hash: check for resize before insertion
49217         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49218         threshold before insertion, so that a pathological hash_rehash
49219         that fills every bucket can still trigger another rehash.
49220
49221 2009-06-18  Jim Meyering  <meyering@redhat.com>
49222
49223         hash-tests: add a loop around the small tests
49224         * tests/test-hash.c (main): Repeat small tests with selected
49225         small initial table sizes.
49226
49227 2009-06-17  Eric Blake  <ebb9@byu.net>
49228
49229         hash: minor cleanups
49230         * lib/hash.h (hash_entry): Make opaque, by moving...
49231         * lib/hash.c (hash_entry): ...here.
49232         (hash_insert): Clarify restrictions on what can be inserted.
49233         (hash_get_next): Clarify when it is safe to remove an element
49234         during traversal.
49235         (check_tuning): Skip verification when tuning is known safe.
49236         (hash_initialize): Clarify restrictions on tuning.
49237
49238 2009-06-17  Jim Meyering  <jim@meyering.net>
49239         and Eric Blake  <ebb9@byu.net>
49240
49241         hash-tests: new module
49242         * modules/hash-tests: New file.
49243         * tests/test-hash.c: New file.
49244
49245 2009-06-17  Eric Blake  <ebb9@byu.net>
49246
49247         strstr-simple: document new module
49248         * MODULES.html.sh: Document new module.
49249
49250         strstr, strcasestr: replace on platforms with broken memchr
49251         * modules/strstr: Split into...
49252         * modules/strstr-simple: ...new module that does not care about
49253         performance, but does care about glibc bug.
49254         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49255         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49256         if platform memchr is broken, per Debian bug 521737.
49257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49258         memchr.
49259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49260         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49261         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49262         * modules/mountlist (Depends-on): Add strstr-simple.
49263         * modules/gen-uni-tables (Depends-on): Likewise.
49264         * modules/argz (Depends-on): Add strstr.
49265
49266 2009-06-17  Bruno Haible  <bruno@clisp.org>
49267
49268         * modules/posix_spawn-internal (Depends-on): Add errno.
49269
49270 2009-06-17  Bruno Haible  <bruno@clisp.org>
49271
49272         Define missing ESTALE on Interix 3.5.
49273         * lib/errno.in.h (ESTALE): Assign a value if missing.
49274         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49275         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49276         missing.
49277         * doc/posix-headers/errno.texi: Mention the Interix bug.
49278         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49279
49280 2009-06-15  Eric Blake  <ebb9@byu.net>
49281
49282         memchr, memchr2: add valgrind exception
49283         * lib/memchr.valgrind: New file.
49284         * lib/memchr2.valgrind: New file.
49285         * modules/memchr (Files): Distribute valgrind file.
49286         * modules/memchr2 (Files): Likewise.
49287
49288         docs: memchr is no longer obsolete
49289         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49290         * lib/string.in.h (memchr): Simplify logic.
49291
49292 2009-06-14  Jim Meyering  <meyering@redhat.com>
49293
49294         link-follow: fix the "checking..." message to not mention trailing slash
49295         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49296         never considered trailing slashes.
49297
49298 2009-06-14  Bruno Haible  <bruno@clisp.org>
49299
49300         * m4/memchr.m4: Mention also the bug on IA-64.
49301         * doc/posix-functions/memchr.texi: Likewise.
49302
49303 2009-06-12  Eric Blake  <ebb9@byu.net>
49304
49305         memchr: detect broken x86_64 and alpha implementations
49306         * modules/memchr-tests (Depends-on): Move mmap detection...
49307         * modules/memchr (Depends-on): ...here.
49308         (configure.ac): Set indicator.
49309         * lib/string.in.h (memchr): Declare replacement.
49310         * modules/string (Makefile.am): Trigger replacement.
49311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49312         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49313         bugs.
49314         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49315         * modules/getpagesize (License): Relax license.
49316
49317 2009-06-11  Bruno Haible  <bruno@clisp.org>
49318
49319         * lib/idpriv.h: Add more references.
49320
49321 2009-06-08  Bruno Haible  <bruno@clisp.org>
49322
49323         Tests for module 'idpriv-droptemp'.
49324         * modules/idpriv-droptemp-tests: New file.
49325         * tests/test-idpriv-droptemp.sh: New file.
49326         * tests/test-idpriv-droptemp.su.sh: New file.
49327         * tests/test-idpriv-droptemp.c: New file.
49328
49329         New module 'idpriv-droptemp'.
49330         * lib/idpriv-droptemp.c: New file.
49331         * modules/idpriv-droptemp: New file.
49332
49333 2009-06-08  Bruno Haible  <bruno@clisp.org>
49334
49335         Tests for module 'idpriv-drop'.
49336         * modules/idpriv-drop-tests: New file.
49337         * tests/test-idpriv-drop.sh: New file.
49338         * tests/test-idpriv-drop.su.sh: New file.
49339         * tests/test-idpriv-drop.c: New file.
49340
49341         New module 'idpriv-drop'.
49342         * lib/idpriv.h: New file.
49343         * lib-idpriv-drop.c: New file.
49344         * m4/idpriv.m4: New file.
49345         * modules/idpriv-drop: New file.
49346
49347 2009-06-08  Bruno Haible  <bruno@clisp.org>
49348
49349         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49350         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49351         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49352         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49353         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49354         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49355         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49356
49357 2009-06-08  Eric Blake  <ebb9@byu.net>
49358
49359         test-strstr: use memory fence, when possible
49360         * tests/test-strstr.c (main): Use memory fence, in order to be
49361         more likely to trigger Debian bug 521737.
49362         * modules/strstr-tests (Files): Pull in additional files.
49363
49364         memchr: no longer obsolete, for wider field testing
49365         * modules/memchr (Status, Notice): Delete, this module is no
49366         longer obsolete.
49367         * modules/vasnprintf (Depends-on): Add memchr.
49368
49369 2009-06-07  Jim Meyering  <meyering@redhat.com>
49370
49371         hash: declare some functions with the warn_unused_result attribute
49372         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49373
49374 2009-06-07  Bruno Haible  <bruno@clisp.org>
49375
49376         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49377         Reported by Eric Blake.
49378
49379 2009-06-06  Eric Blake  <ebb9@byu.net>
49380
49381         test-alignof: fix typo with long double
49382         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49383         compiler error.
49384
49385 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49386
49387         Escape non-texinfo { and }s.
49388         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49389         markup error.
49390
49391 2009-06-04  Jim Meyering  <meyering@redhat.com>
49392
49393         gitlog-to-changelog: don't infloop on an empty commit log
49394         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49395         Reported by Boris Petersen <transacid@centerim.org>.
49396
49397 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49398
49399         version-etc: extend for packagers
49400         Add three new configure options, intended for packagers:
49401           --with-packager="packager name"
49402           --with-packager-version="packager-specific version"
49403           --with-packager-bug-reports="packager bug reporting"
49404         An example with coreutils:
49405           $ ./configure \
49406             --with-packager=Gentoo \
49407             --with-packager-bug-report=http://bugs.gentoo.org/ \
49408             --with-packager-version="patchset 1.6"
49409           $ ./src/ls --version | head -n2
49410           ls (GNU coreutils) 7.1-dirty
49411           Packaged by Gentoo (patchset 1.6)
49412         Note that the bug reporting info via --help doesn't show up because
49413         coreutils uses its own custom emit_bug_reporting_address() implementation
49414         in src/system.h.  If it didn't, it'd look like:
49415           $ ./src/ls --help | tail -n4
49416           Report bugs to <bug-coreutils@gnu.org>.
49417           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49418           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49419           General help using GNU software: <http://www.gnu.org/gethelp/>.
49420         * lib/version-etc.c: Print new information, if provided.
49421         * m4/version-etc.m4: New file.
49422         * modules/version-etc (Files): Add m4/version-etc.m4.
49423         (configure.ac): Add gl_VERSION_ETC.
49424
49425 2009-05-31  Bruno Haible  <bruno@clisp.org>
49426
49427         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49428         and 'int64_t'.
49429         * modules/alignof-tests (Dependencies): Add stdint.
49430         Reported by Eric Blake.
49431
49432 2009-05-31  Bruno Haible  <bruno@clisp.org>
49433
49434         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49435         restriction due to compiler bugs.
49436         Reported by Eric Blake.
49437
49438 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49439             Bruno Haible  <bruno@clisp.org>
49440
49441         Fix test-alignof failure.
49442         * lib/alignof.h (alignof_slot): New macro.
49443         (alignof_type): New macro, with the same semantics as the previous
49444         'alignof'.
49445         (alignof): Alias to alignof_slot.
49446         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49447         check that the results are usable as constant expressions.
49448
49449 2009-05-31  Bruno Haible  <bruno@clisp.org>
49450
49451         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49452         * tests/test-memchr.c (main): Check that memchr does not read past the
49453         first occurrence of the byte.
49454         * tests/test-strstr.c (main): Update comment.
49455         Suggested by Eric Blake.
49456
49457 2009-05-30  Bruno Haible  <bruno@clisp.org>
49458
49459         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49460         detail how to use dumpbin.
49461         Reported by David Byron <dbyron@dbyron.com>.
49462
49463 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49464
49465         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49466
49467 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49468
49469         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49470
49471 2009-05-28  Bruno Haible  <bruno@clisp.org>
49472
49473         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49474         build-aux/ files.
49475
49476 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49477
49478         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49479
49480 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49481
49482         * gnulib-tool (sed_transform_main_lib_file)
49483         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49484         regexps.
49485
49486 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49487
49488         * tests/test-strstr.c: Add another self-test.
49489         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49490         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49491
49492 2009-05-23  Bruno Haible  <bruno@clisp.org>
49493
49494         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49495         change.
49496
49497 2009-05-21  Bruno Haible  <bruno@clisp.org>
49498
49499         Simplify use of mode_t varargs.
49500         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49501         uses 'mode_t' or 'int'.
49502         * lib/openat.c (openat): Likewise.
49503         * lib/open-safer.c (open_safer): Likewise.
49504         * m4/mode_t.m4: New file.
49505         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49506         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49507         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49508         * modules/open (Files): Add m4/mode_t.m4.
49509         * modules/openat (Files): Likewise.
49510         * modules/fcntl-safer (Files): Likewise.
49511         Suggested by Eric Blake.
49512
49513 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49514
49515         * doc/glibc-functions/fallocate.texi: New file.
49516         * doc/gnulib.texi: Include it.
49517
49518 2009-05-21  Eric Blake  <ebb9@byu.net>
49519             Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49522         invocations.
49523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49524
49525 2009-05-21  Eric Blake  <ebb9@byu.net>
49526             Bruno Haible  <bruno@clisp.org>
49527
49528         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49529         include_next. Fix of 2008-11-20 commit.
49530         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49531         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49532         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49533         NEXT_MATH_H.
49534         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49535         instead of NEXT_MATH_H.
49536
49537 2009-05-21  Bruno Haible  <bruno@clisp.org>
49538
49539         Avoid redefinition warnings for SIZE_MAX.
49540         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49541         Reported by Simon Josefsson.
49542
49543 2009-05-21  Bruno Haible  <bruno@clisp.org>
49544
49545         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49546         AC_CACHE_VAL.
49547
49548 2009-05-20  Bruno Haible  <bruno@clisp.org>
49549
49550         Make zeroptr.h work on mingw.
49551         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49552         mprotect.
49553         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49554         * modules/memchr2-tests (configure.ac): Likewise.
49555         * modules/memcmp-tests (configure.ac): Likewise.
49556         * modules/memmem-tests (configure.ac): Likewise.
49557         * modules/memrchr-tests (configure.ac): Likewise.
49558         Reported by Simon Josefsson.
49559
49560 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49561
49562         * tests/test-glob.c: Include string.h for strcmp prototype.
49563
49564 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49565
49566         * modules/getdelim (Depends-on): Add explicit stdint, although it
49567         was implicitly already pulled in via realloc-posix.
49568         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49569
49570 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49571
49572         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49573         G. Christensen" <tgc@jupiterrise.com>.
49574         * m4/sys_socket_h.m4: Check for sa_family_t.
49575         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49576         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49577         * tests/test-sys_socket.c: Check that sa_family_t works.
49578
49579 2009-05-18  Eric Blake  <ebb9@byu.net>
49580
49581         maint.mk: allow gnulib_dir in VPATH build
49582         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49583
49584 2009-05-15  Jim Meyering  <meyering@redhat.com>
49585
49586         maint.mk: Give gnulib_dir a default definition.
49587         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49588         Thus, most packages no longer need to specify this variable in cfg.mk
49589
49590 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49591
49592         rename.m4: fix typos that would make non-mingw cross-configure fail
49593         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49594
49595 2009-05-13  Eric Blake  <ebb9@byu.net>
49596
49597         mmap-anon: avoid out-of-order autoconf expansion
49598         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49599         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49600         * modules/memchr-tests (Depends-on): Add extensions.
49601         * modules/memchr2-tests (Depends-on): Add extensions.
49602         * modules/memcmp-tests (Depends-on): Add extensions.
49603         * modules/memmem-tests (Depends-on): Add extensions.
49604         * modules/memrchr-tests (Depends-on): Add extensions.
49605
49606 2009-05-13  Bruno Haible  <bruno@clisp.org>
49607
49608         Make some tests ISO C 99 compliant.
49609         * tests/zerosize-ptr.h: New file.
49610         * tests/test-memchr.c: Include zerosize-ptr.h.
49611         (main): Use a zero-size object pointer instead of NULL.
49612         * tests/test-memchr2.c: Include zerosize-ptr.h.
49613         (main): Use a zero-size object pointer instead of NULL.
49614         * tests/test-memcmp.c: Include zerosize-ptr.h.
49615         (main): Use a zero-size object pointer instead of NULL.
49616         * tests/test-memmem.c: Include zerosize-ptr.h.
49617         (main): Use a zero-size object pointer instead of NULL.
49618         * tests/test-memrchr.c: Include zerosize-ptr.h.
49619         (main): Use a zero-size object pointer instead of NULL.
49620         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49621         m4/mmap-anon.m4.
49622         (Depends-on): Add getpagesize.
49623         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49624         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49625         m4/mmap-anon.m4.
49626         (Depends-on): Add getpagesize.
49627         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49628         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49629         m4/mmap-anon.m4.
49630         (Depends-on): Add getpagesize.
49631         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49632         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49633         m4/mmap-anon.m4.
49634         (Depends-on): Add getpagesize.
49635         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49636         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49637         m4/mmap-anon.m4.
49638         (Depends-on): Add getpagesize.
49639         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49640
49641 2009-05-12  Bruno Haible  <bruno@clisp.org>
49642
49643         Tests for module 'alignof'.
49644         * modules/alignof-tests: New file.
49645         * tests/test-alignof.c: New file.
49646
49647 2009-05-12  Bruno Haible  <bruno@clisp.org>
49648
49649         Fix alignof macro.
49650         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49651         vendor compilers that are always correct.
49652
49653 2009-05-12  Bruno Haible  <bruno@clisp.org>
49654
49655         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49656         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49657         not whether its fully works.
49658
49659 2009-05-12  Bruno Haible  <bruno@clisp.org>
49660
49661         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49662
49663 2009-05-12  Jim Meyering  <meyering@redhat.com>
49664
49665         * top/maint.mk: Adjust backslash alignment.
49666
49667 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49668
49669         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49670
49671 2009-05-11  Eric Blake  <ebb9@byu.net>
49672
49673         argp: avoid undefined behavior
49674         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49675         macros.
49676
49677 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49678
49679         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49680         user.name to prevent git commit from complaining.
49681
49682 2009-05-10  Bruno Haible  <bruno@clisp.org>
49683
49684         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49685         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49686         it rewrites every file name only once.
49687         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49688
49689 2009-05-08  Bruno Haible  <bruno@clisp.org>
49690
49691         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49692         instead of 'max'.
49693
49694 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49695
49696         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49697         sockaddr_storage test.
49698
49699 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49700
49701         * modules/sys_socket (Makefile.am): Substitute
49702         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49703         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49704         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49705         * tests/test-sys_socket.c: Check sockaddr_storage.
49706
49707 2009-05-08  Bruno Haible  <bruno@clisp.org>
49708
49709         New module 'alignof'.
49710         * lib/alignof.h: New file.
49711         * modules/alignof: New file.
49712
49713 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49714             Bruno Haible  <bruno@clisp.org>
49715
49716         Fix test-file-has-acl on FreeBSD.
49717         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49718         mask is implicitly added.
49719         * tests/test-file-has-acl.c: Include <signal.h>.
49720         (main): Terminate the test after 5 seconds.
49721         * modules/acl-tests (configure.ac): Check for alarm function.
49722
49723 2009-05-04  Bruno Haible  <bruno@clisp.org>
49724
49725         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49726         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49727         * modules/errno (configure.ac): Drop AC_REQUIRE.
49728         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49729         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49730
49731 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49732
49733         * modules/glob-tests: New module.
49734         * tests/test-glob.c: Add.
49735
49736 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49737
49738         * modules/fnmatch-tests: New module.
49739         * tests/test-fnmatch.c: Add.
49740
49741 2009-05-04  Eric Blake  <ebb9@byu.net>
49742
49743         maint: make the new no-submodule-changes rule VPATH-safe
49744         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49745
49746 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49747             Bruno Haible  <bruno@clisp.org>
49748
49749         acl: Fix infinite loop on FreeBSD.
49750         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49751         of return value from acl_get_entry.
49752         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49753         Likewise.
49754
49755 2009-05-03  Bruno Haible  <bruno@clisp.org>
49756
49757         * lib/acl-internal.h (acl_entries): Clarify return value.
49758         * lib/acl_entries.c (acl_entries): Likewise.
49759
49760 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49761
49762         Bug fix in acl module.
49763         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49764
49765 2009-05-03  Bruno Haible  <bruno@clisp.org>
49766
49767         Create gperf-generated file in the source dir, not in the build dir.
49768         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49769         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49770         * modules/unicase/locale-language (unicase/locale-languages.h):
49771         Likewise.
49772         * modules/unicase/special-casing (unicase/special-casing-table.h):
49773         Likewise.
49774         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49775         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49776         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49777         Reported by Ralf Wildenhues.
49778
49779 2009-05-03  Bruno Haible  <bruno@clisp.org>
49780
49781         * modules/fnmatch (Description, configure.ac): Taken from
49782         fnmatch-posix.
49783         * modules/fnmatch-posix: Turn into a symbolic reference to the
49784         'fnmatch' module, and deprecate.
49785         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49786
49787 2009-05-03  Bruno Haible  <bruno@clisp.org>
49788
49789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49790         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49791         Reported by Ralf Wildenhues.
49792
49793 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49794
49795         * m4/fnmatch.m4: Fix fnmatch re-define.
49796
49797 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49798
49799         priv-set: new module and tests; adapt write-any-file
49800         * lib/priv-set.c: New file.
49801         * lib/priv-set.h: New file.
49802         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49803         * lib/write-any-file.c: Simplify by using priv-set module.
49804         * m4/priv-set.m4: New file.
49805         * modules/priv-set: New file.
49806         * modules/unlinkdir: Add dependency on priv-set module.
49807         * modules/write-any-file: Likewise.
49808
49809         Tests for module 'priv-set'.
49810         * modules/priv-set-tests: New file.
49811         * tests/test-priv-set.c: New file.
49812
49813 2009-05-03  Jim Meyering  <meyering@redhat.com>
49814             Bruno Haible  <bruno@clisp.org>
49815
49816         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49817         use the converted UTF-8 variant of the name instead.
49818
49819 2009-05-03  Jim Meyering  <meyering@redhat.com>
49820
49821         tests: tighten some getdate tests
49822         * tests/test-getdate.c (main): Tighten tests: require equality,
49823         not just greater than.  Set TZ envvar to UTC0.
49824
49825 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49826
49827         getdate: correctly interpret "next monday" when run on a Monday
49828         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49829         that e.g., "next tues" (when run on a tuesday) results in a date
49830         that is one week in the future, and not today's date.
49831         I.e., add a week when the wday is the same as the current one.
49832         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49833         and earlier by Martin Bernreuther and Jan Minář.
49834         * tests/test-getdate.c (main): Check that "next DAY" is always in
49835         the future and that "last DAY" is always in the past.
49836
49837 2009-05-02  Jim Meyering  <meyering@redhat.com>
49838
49839         build: ensure that a release build fails when a submodule is unclean
49840         * top/maint.mk (no-submodule-changes): New rule.
49841         (alpha beta major): Depend on it.
49842
49843 2009-05-02  Bruno Haible  <bruno@clisp.org>
49844
49845         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49846         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49847         shell variable gl_fnmatch_required to detect which variant is
49848         requested.
49849         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49850         gl_FUNC_FNMATCH_POSIX.
49851         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49852         exclude fnmatch-posix.
49853
49854 2009-05-02  Bruno Haible  <bruno@clisp.org>
49855
49856         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49857         * modules/mbsrtowcs (License): Change to LGPLv2+.
49858         * modules/strnlen1 (License): Likewise.
49859         Reported by Simon Josefsson.
49860
49861 2009-05-02  Bruno Haible  <bruno@clisp.org>
49862
49863         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49864         "cross".
49865         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49866         gnulib-tool was called with option --source-base=lib.
49867
49868 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49869
49870         Use automake *-local hooks without commands, for extensibility.
49871         * modules/localcharset (Makefile.am): Rename install-exec-local
49872         rule to install-exec-localcharset, and make it a prerequisite of
49873         install-exec-local.  Likewise, rename the uninstall-local rule to
49874         uninstall-localcharset, and make it a prerequisite of the former.
49875
49876 2009-05-01  Bruno Haible  <bruno@clisp.org>
49877
49878         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49879         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49880         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49882         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49883         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49884         m4/locale-zh.m4, m4/codeset.m4.
49885
49886         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49887         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49888         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49889         m4/locale-zh.m4.
49890
49891         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49892         REPLACE_WCRTOMB if mbstate_t must be replaced.
49893         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49894         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49895
49896 2009-05-01  Bruno Haible  <bruno@clisp.org>
49897
49898         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49899         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49900         dngettext, dcngettext, textdomain, bindtextdomain,
49901         bind_textdomain_codeset): Undefine before redefining.
49902
49903 2009-04-30  Bruno Haible  <bruno@clisp.org>
49904
49905         Fix bug introduced on 2009-04-25.
49906         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49907         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49908         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49909         is defined.
49910         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49911         is defined.
49912         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49913         is defined.
49914         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49915
49916 2009-04-28  Bruno Haible  <bruno@clisp.org>
49917
49918         Comment tweaks.
49919         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49920         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49921         * lib/unicase.h (u*_casexfrm): Likewise.
49922         Reported by Paolo Bonzini.
49923
49924 2009-04-28  Bruno Haible  <bruno@clisp.org>
49925
49926         Fix a compilation error.
49927         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49928         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49929         Reported by Jim Meyering.
49930
49931 2009-04-27  Bruno Haible  <bruno@clisp.org>
49932
49933         New module 'libunistring'.
49934         * modules/libunistring: New file.
49935         * m4/libunistring.m4: New file.
49936         * MODULES.html.sh (Unicode string functions): Add it.
49937
49938 2009-04-27  Eric Blake  <ebb9@byu.net>
49939
49940         maint.mk: allow package-specific header to provide <config.h>
49941         * top/maint.mk (sc_require_config_h): New variable.
49942         (sc_require_config_h, sc_require_config_h_first): Use it.
49943
49944 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49945
49946         * top/maint.mk (sc_avoid_if_before_free): Except
49947         useless-if-before-free script.
49948
49949 2009-04-27  Eric Blake  <ebb9@byu.net>
49950
49951         maintainer-makefile: depend on all required helper scripts
49952         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49953         useless-if-before-free.
49954         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49955         version, rather than assuming gnulib checkout is available.
49956         Reported by Simen Josefsson.
49957
49958 2009-04-26  Bruno Haible  <bruno@clisp.org>
49959
49960         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49961         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49962         "../" or "..".
49963
49964 2009-04-26  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49967         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49968         AC_LIB_HAVE_LINKFLAGS.
49969
49970 2009-04-26  Bruno Haible  <bruno@clisp.org>
49971
49972         Simplify calling convention of u*_conv_from_encoding.
49973         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49974         u32_conv_from_encoding): Expect a resultbuf argument and return the
49975         result directly as a pointer.
49976         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49977         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49978         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49979         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49980         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49981         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49982         Update.
49983         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49984         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49985         * lib/vasnprintf.c (VASNPRINTF): Update.
49986         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49987         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49988         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49989         * NEWS: Mention the change.
49990
49991 2009-04-26  Bruno Haible  <bruno@clisp.org>
49992
49993         Simplify calling convention of u*_conv_to_encoding.
49994         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49995         u32_conv_to_encoding): Expect a resultbuf argument and return the
49996         result directly as a pointer.
49997         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49998         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49999         freeing scaled_offsets if mem_iconveha failed.
50000         * lib/unicase/u-casexfrm.h (FUNC): Update.
50001         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50002         * lib/vasnprintf.c (VASNPRINTF): Update.
50003         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50004         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50005         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50006         * NEWS: Mention the change.
50007
50008 2009-04-26  Bruno Haible  <bruno@clisp.org>
50009
50010         Avoid test failures on AIX and OSF/1.
50011         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50012         malloc(0).
50013         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50014         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50015         Likewise.
50016         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50017         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50018         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50019         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50020         * doc/posix-functions/malloc.texi: Document the portability problem
50021         related to malloc(0).
50022
50023 2009-04-26  Bruno Haible  <bruno@clisp.org>
50024
50025         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50026         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50027         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50028
50029 2009-04-25  Bruno Haible  <bruno@clisp.org>
50030
50031         Avoid link error when creating a namespace clean library.
50032         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50033         as macro with arguments if already defined as an alias.
50034         * lib/signbitf.c (gl_signbitf): Don't undefine.
50035         * lib/signbitd.c (gl_signbitd): Don't undefine.
50036         * lib/signbitl.c (gl_signbitl): Don't undefine.
50037
50038 2009-04-25  Jim Meyering  <meyering@redhat.com>
50039
50040         vc-list-files: fix another quoting bug
50041         * build-aux/vc-list-files: Avoid sed backslash expansion
50042         of pathological directory names.
50043
50044 2009-04-25  Eric Blake  <ebb9@byu.net>
50045
50046         vc-list-files: fix shell quoting error
50047         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50048         timestamp.
50049
50050 2009-04-25  Jim Meyering  <meyering@redhat.com>
50051
50052         vc-list-files: restore lost functionality with subdir argument
50053         * build-aux/vc-list-files: When given a non-"." sub-directory
50054         argument, substitute the $dir/ prefix back onto each resulting name.
50055         Otherwise, coreutils' root_tests check would fail.
50056
50057 2009-04-24  Eric Blake  <ebb9@byu.net>
50058
50059         vc-list-files: ignore git symlinks
50060         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50061         than ls-files, to ignore git symlinks.
50062
50063         maint.mk: import improvements from m4
50064         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50065         (move_if_change): Delete unused macro.
50066         (news-date-check, vc-diff-check): Support VPATH builds.
50067         (announcement): Likewise.  Split --bootstrap-tools list...
50068         (boostrap-tools): ...into separate list, which can be overridden
50069         in cfg.mk.
50070         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50071         requiring dependency on useless-if-before-free module.
50072         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50073         Support VPATH builds.
50074
50075 2009-04-24  Jim Meyering  <meyering@redhat.com>
50076
50077         maint.mk: remove coreutils-specific rules and variables
50078         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50079         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50080         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50081
50082         maint.mk: remove obsolete rule
50083         * top/maint.mk (rel-check): Remove rule.
50084         (WGET, WGETFLAGS): Remove now-unused variables.
50085
50086 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50087
50088         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50089         consistency.
50090
50091         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50092         '$(PATH_SEPARATOR)' instead of ':'.
50093
50094 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50095
50096         * lib/getopt1.c (main): Use 'const' for static array.
50097
50098 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50099
50100         * top/maint.mk: Sync with coreutils.
50101         * NEWS: Explain incompatibilities.
50102
50103 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50104             Bruno Haible  <bruno@clisp.org>
50105
50106         Fix cross-compilation results.
50107         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50108         statement, as third argument of AC_TRY_RUN.
50109         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50110         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50111         Likewise.
50112         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50113         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50114         Likewise.
50115         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50116         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50117         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50118
50119 2009-04-20  Bruno Haible  <bruno@clisp.org>
50120
50121         Avoid test failure on mingw.
50122         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50123
50124 2009-04-20  Bruno Haible  <bruno@clisp.org>
50125
50126         Avoid compilation error on mingw.
50127         * modules/localename-tests (Depends-on): Add locale.
50128
50129 2009-04-19  Bruno Haible  <bruno@clisp.org>
50130
50131         Support for building a shared library on Windows platforms.
50132         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50133         (main): Test the presence of UNINORM_NFC here.
50134         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50135         (main): Test the presence of UNINORM_NFD here.
50136         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50137         (main): Test the presence of UNINORM_NFKC here.
50138         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50139         (main): Test the presence of UNINORM_NFKD here.
50140
50141 2009-04-19  Bruno Haible  <bruno@clisp.org>
50142
50143         Avoid a compiler warning.
50144         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50145         Change type of variable 'sequence'.
50146
50147 2009-04-19  Bruno Haible  <bruno@clisp.org>
50148
50149         * modules/configmake (Makefile.am): When the contents of configmake.h
50150         does not change, arrange to preserve its modification time.
50151
50152 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50153
50154         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50155         gettext domain.
50156
50157 2009-04-16  Jim Meyering  <meyering@redhat.com>
50158
50159         useless-if-before-free: improve conversion code
50160         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50161         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50162
50163 2009-04-14  Bruno Haible  <bruno@clisp.org>
50164
50165         * modules/fcntl (Depends-on): Add extensions.
50166         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50167
50168 2009-04-12  Ben Pfaff  <blp@gnu.org>
50169
50170         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50171         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50172
50173 2009-03-20  Ben Pfaff  <blp@gnu.org>
50174
50175         Make rename replace existing destinations on Windows.
50176         * m4/rename.m4: Add test for Mingw.
50177         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50178         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50179         * doc/posix-functions/rename.texi: Document.
50180
50181 2009-04-10  Bruno Haible  <bruno@clisp.org>
50182
50183         New include file "iconveh.h".
50184         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50185         * lib/striconveh.h: Include it.
50186         (enum iconv_ilseq_handler): Remove definition.
50187         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50188         striconveh.h.
50189         * lib/striconveha.c: Include striconveh.h.
50190         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50191         * modules/striconveh (Files): Add lib/iconveh.h.
50192         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50193         lib/striconveh.h.
50194
50195 2009-04-10  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/uniconv.h: Update comment.
50198
50199 2009-04-10  Bruno Haible  <bruno@clisp.org>
50200
50201         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50202         always.
50203         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50204         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50205         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50206         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50207         "unistring-notinline.h", so that the function gets defined always.
50208         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50209         * lib/unistr/u8-uctomb.c: Likewise.
50210         * lib/unistr/u16-mbtouc.c: Likewise.
50211         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50212         * lib/unistr/u16-uctomb.c: Likewise.
50213         * lib/unistr/u32-mbtouc.c: Likewise.
50214         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50215         * lib/unistr/u32-uctomb.c: Likewise.
50216
50217 2009-04-10  Bruno Haible  <bruno@clisp.org>
50218
50219         Mark 'utime' obsolete.
50220         * modules/utime (Status, Notice): New sections.
50221         Suggested by Jim Meyering.
50222
50223         Fix cross-compile guess for utime test.
50224         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50225         autoconf.
50226         * doc/posix-functions/utime.texi: Give more precisions.
50227         Reported by Jan <ipif@ymail.com>.
50228
50229 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50230
50231         filevercmp: correct today's change
50232         * lib/filevercmp.c: Also handle coreutils' test inputs.
50233         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50234
50235         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50236         for reporting it.
50237         * lib/filevercmp.c: Special handle for "", "." and "..".
50238         * tests/test-filevercmp.c: Enlarge the set suite.
50239
50240 2009-04-07  Jim Meyering  <meyering@redhat.com>
50241
50242         useless-if-before-free: show how to remove braced useless free, too
50243         * build-aux/useless-if-before-free: still only in a comment, though.
50244
50245 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50246
50247         maint.mk: import changes to syntax-check macros from coreutils
50248         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50249         Use them in the relevant macros.
50250
50251 2009-04-06  Bruno Haible  <bruno@clisp.org>
50252
50253         Fix unportable use of bit-fields.
50254         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50255         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50256         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50257
50258 2009-04-06  Bruno Haible  <bruno@clisp.org>
50259
50260         Avoid test failures on AIX and OSF/1.
50261         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50262         that malloc(0) = NULL.
50263         * tests/unicase/test-u8-tolower.c (check): Likewise.
50264         * tests/unicase/test-u8-totitle.c (check): Likewise.
50265         * tests/unicase/test-u8-toupper.c (check): Likewise.
50266         * tests/unicase/test-u16-casefold.c (check): Likewise.
50267         * tests/unicase/test-u16-tolower.c (check): Likewise.
50268         * tests/unicase/test-u16-totitle.c (check): Likewise.
50269         * tests/unicase/test-u16-toupper.c (check): Likewise.
50270         * tests/unicase/test-u32-casefold.c (check): Likewise.
50271         * tests/unicase/test-u32-tolower.c (check): Likewise.
50272         * tests/unicase/test-u32-totitle.c (check): Likewise.
50273         * tests/unicase/test-u32-toupper.c (check): Likewise.
50274         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50275         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50276         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50277         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50278         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50279         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50280         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50281         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50282         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50283         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50284         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50285         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50286
50287 2009-04-05  Bruno Haible  <bruno@clisp.org>
50288
50289         Work around an autoconf limitation.
50290         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50291         comment line if it would be longer than 3 KB.
50292
50293 2009-04-05  Bruno Haible  <bruno@clisp.org>
50294
50295         Avoid test failure with libiconv-1.13.
50296         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50297         of the expected test results.
50298
50299 2009-04-05  Bruno Haible  <bruno@clisp.org>
50300
50301         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50302         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50303         that it should be installed.
50304
50305 2009-04-05  Bruno Haible  <bruno@clisp.org>
50306
50307         * gnulib-tool: New option --copy-file.
50308         (func_usage): Document it.
50309         (func_dest_tmpfilename): Moved out of func_import.
50310         (func_add_file, func_update_file): New functions, extracted from
50311         func_import.
50312         (func_import): Update.
50313
50314 2009-04-05  Karl Berry  <karl@gnu.org>
50315
50316         * README: prominently mention gnulib-tool.
50317         Rearrange sections so getting the code is near the top.
50318
50319 2009-04-05  Bruno Haible  <bruno@clisp.org>
50320
50321         * lib/unicase.h: Mention u*_cmp2.
50322         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50323         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50324         * lib/unicase/ulc-casecmp.c: Likewise.
50325         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50326         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50327         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50328         unistr/u8-cmp.
50329         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50330         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50331         unistr/u16-cmp.
50332         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50333         unistr/u32-cmp.
50334
50335         * lib/uninorm.h: Mention u*_cmp2.
50336         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50337         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50338         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50339         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50340         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50341         unistr/u8-cmp.
50342         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50343         unistr/u16-cmp.
50344         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50345         unistr/u32-cmp.
50346
50347         New module 'unistr/u32-cmp2'.
50348         * lib/unistr/u32-cmp2.c: New file.
50349         * modules/unistr/u32-cmp2: New file.
50350
50351         New module 'unistr/u16-cmp2'.
50352         * lib/unistr/u16-cmp2.c: New file.
50353         * modules/unistr/u16-cmp2: New file.
50354
50355         New module 'unistr/u8-cmp2'.
50356         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50357         * lib/unistr/u8-cmp2.c: New file.
50358         * lib/unistr/u-cmp2.h: New file.
50359         * modules/unistr/u8-cmp2: New file.
50360
50361 2009-04-05  Bruno Haible  <bruno@clisp.org>
50362
50363         * lib/unictype.h (uc_property_is_valid): New macro.
50364         * tests/unictype/test-pr_byname.c (main): Use it.
50365
50366         * lib/unistr.h: Doc fixes.
50367         * lib/uniconv.h: Doc fixes.
50368         * lib/unictype.h: Doc fixes.
50369
50370 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50371
50372         Port coreutils 7.2 to Solaris 8.
50373
50374         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50375         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50376         for Solaris 8.  This is a bit of a hack, as it means it's the
50377         caller's responsibility to add -lnsl if needed, but most likely it
50378         won't be needed since only getaddrinfo uses this and getaddrinfo
50379         isn't needed on Solaris 8.
50380
50381         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50382         problem to Solaris 8 encountered with coreutils 7.2, which
50383         resulted in a message "fnmatch.c:292: warning: passing argument 4
50384         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50385         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50386
50387 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50388
50389         * m4/ld-version-script.m4: Add FIXME comment.
50390
50391 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50392
50393         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50394         SOVERSION variable.
50395
50396 2009-04-02  Bruno Haible  <bruno@clisp.org>
50397
50398         * Makefile (info, html, dvi, pdf): Combine the rules.
50399         Suggested by Jim Meyering.
50400
50401 2009-04-01  Bruno Haible  <bruno@clisp.org>
50402
50403         * Makefile (info, html, dvi, pdf): New targets.
50404         Reported by Reuben Thomas <rrt@sc3d.org>.
50405
50406 2009-04-01  Bruno Haible  <bruno@clisp.org>
50407
50408         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50409         can be put into PATH.
50410         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50411
50412 2009-04-01  Bruno Haible  <bruno@clisp.org>
50413
50414         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50415
50416 2009-04-01  Bruno Haible  <bruno@clisp.org>
50417
50418         Rename module 'visibility'.
50419         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50420         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50421         * doc/gnulib.texi: Update.
50422         * MODULES.html.sh (Misc): Update.
50423         * NEWS: Mention the change.
50424
50425 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50426
50427         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50428         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50429         Eric Blake <ebb9@byu.net> for review.
50430         * MODULES.html.sh: Add lib-msvc-compat.
50431         * doc/gnulib.texi: Link to new section.
50432         * m4/ld-output-def.m4: New file.
50433         * doc/ld-output-def.texi: New file.
50434
50435 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50436
50437         Rename ld-version-script to lib-symbol-versions.  Suggested by
50438         Bruno Haible <bruno@clisp.org>.
50439         * modules/ld-version-script: Renamed to lib-symbol-versions.
50440         * doc/ld-version-script.texi: Fix module name.
50441         * MODULES.html.sh: Add lib-symbol-versions.
50442
50443 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50444
50445         * modules/u64-tests: New file.
50446         * tests/test-u64.c: New file.
50447
50448 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50449
50450         * MODULES.html.sh: Mention u64.
50451         * modules/u64: New module.
50452         * modules/crypto/sha512: Depend on u64 module instead of providing
50453         u64.h.
50454
50455 2009-03-27  Eric Blake  <ebb9@byu.net>
50456
50457         test-strerror: make debugging EAI_SYSTEM easier
50458         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50459         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50460         failure was EAI_SYSTEM.
50461
50462 2009-03-25  Bruno Haible  <bruno@clisp.org>
50463
50464         Fix a problem with --enable-relocatable on Solaris 7.
50465         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50466         since 2008-02-24.
50467
50468 2009-03-25  Eric Blake  <ebb9@byu.net>
50469
50470         test-sockets: avoid gcc warning
50471         * tests/test-sockets.c (main): Silence compiler warning.
50472
50473 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50474
50475         New modules nproc, pthread, contributed by Glen Lenker.
50476
50477         * MODULES.html.sh: Add pthread, nproc.
50478         * lib/nproc.c: New file.
50479         * lib/nproc.h: New file.
50480         * lib/pthread.in.h: New file.
50481         * m4/pthread.m4: New file.
50482         * modules/nproc: New file.
50483         * modules/pthread: New file.
50484
50485 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50486
50487         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50488         New variable.
50489
50490 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50491
50492         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50493         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50494         * tests/test-filevercmp.c: Add tests for backup suffixes.
50495
50496 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50497
50498         * modules/stdlib (Depends-on): Add stdint, needed when defining
50499         struct random_data on, for example, HP-UX 10.20.  Reported by
50500         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50501
50502 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50503
50504         * lib/readline.c (readline): Call fflush on stdout after printing
50505         prompt.
50506
50507 2009-03-20  Bruno Haible  <bruno@clisp.org>
50508
50509         Remove dependency from 'close' module to -lws2_32 on native Windows.
50510         * lib/close-hook.h: New file.
50511         * lib/close-hook.c: New file.
50512         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50513         w32sock.h.
50514         (_gl_close_fd_maybe_socket): Remove function.
50515         (rpl_close): Invoke execute_all_close_hooks instead of
50516         _gl_close_fd_maybe_socket.
50517         * lib/sockets.c: Include close-hook.h, w32sock.h.
50518         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50519         (close_sockets_hook): New variable.
50520         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50521         (gl_sockets_cleanup): Unregister it.
50522         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50523         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50524         * modules/close-hook: New file.
50525         * modules/close (Files): Remove lib/w32sock.h.
50526         (Depends-on): Add close-hook.
50527         (Link): Remove section.
50528         * modules/sockets (Files): Add lib/w32sock.h.
50529         (Depends-on): Add close-hook.
50530         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50531         invocation.
50532         * NEWS: Mention that LIB_CLOSE is gone.
50533
50534 2009-03-23  Eric Blake  <ebb9@byu.net>
50535
50536         signal-tests: test previous patch
50537         * tests/test-signal.c: New file.
50538         * modules/signal-tests: Likewise.
50539
50540         signal.h: always support 'volatile sig_atomic_t'
50541         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50542         (gl_SIGNAL_H_DEFAULTS): Add a default.
50543         * modules/signal (Makefile.am): Substitute if needed.
50544         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50545         users can blindly add volatile.
50546         * doc/posix-headers/signal.texi (signal.h): Document it.
50547         Reported by Matthew Woehlke.
50548
50549 2009-03-23  Jim Meyering  <meyering@redhat.com>
50550
50551         pathmax: PATH_MAX: use pathconf only when available
50552         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50553         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50554         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50555         This avoids a link failure in a PSP cross-compilation environment
50556         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50557
50558         * lib/vasnprintf.c (divide): Fix typo in comment.
50559
50560 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50561
50562         * gnulib-tool (func_filter_filelist): Fix comment.
50563
50564 2009-03-20  Bruno Haible  <bruno@clisp.org>
50565
50566         Make sockets.h self-contained.
50567         * lib/sockets.c: Include sockets.h first.
50568         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50569
50570 2009-03-19  Eric Blake  <ebb9@byu.net>
50571
50572         doc: mention more functions added in cygwin 1.7.0
50573         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50574         addition.
50575         * doc/posix-functions/log2f.texi: Likewise.
50576
50577 2009-03-19  Jim Meyering  <meyering@redhat.com>
50578
50579         fsusage: avoid syntax error due to statement-before-declaration
50580         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50581         after all declarations.  Reported by Matthew Woehlke in
50582         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50583
50584 2009-03-18  Eric Blake  <ebb9@byu.net>
50585
50586         build-aux/compile: sync from automake
50587         * build-aux/compile: New file, from automake.
50588         * config/srclist.txt: Mention build-aux/compile.
50589
50590 2009-03-17  Bruno Haible  <bruno@clisp.org>
50591
50592         * lib/git-merge-changelog.c: Fix typo in comment.
50593         Reported by Reuben Thomas <rrt@sc3d.org>.
50594
50595 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50596
50597         * m4/regex.m4: update and improve help for
50598         --without-included-regex.
50599
50600 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50601
50602         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50603         failure on missing include files.
50604
50605 2009-03-17  Eric Blake  <ebb9@byu.net>
50606
50607         doc: mention more functions added in cygwin 1.7.0
50608         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50609         addition.
50610         * doc/posix-functions/fwscanf.texi: Likewise.
50611         * doc/posix-functions/swprintf.texi: Likewise.
50612         * doc/posix-functions/swscanf.texi: Likewise.
50613         * doc/posix-functions/vfwprintf.texi: Likewise.
50614         * doc/posix-functions/vfwscanf.texi: Likewise.
50615         * doc/posix-functions/vswprintf.texi: Likewise.
50616         * doc/posix-functions/vswscanf.texi: Likewise.
50617         * doc/posix-functions/vwprintf.texi: Likewise.
50618         * doc/posix-functions/vwscanf.texi: Likewise.
50619         * doc/posix-functions/wcscasecmp.texi: Likewise.
50620         * doc/posix-functions/wcsdup.texi: Likewise.
50621         * doc/posix-functions/wcsftime.texi: Likewise.
50622         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50623         * doc/posix-functions/wprintf.texi: Likewise.
50624         * doc/posix-functions/wscanf.texi: Likewise.
50625         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50626
50627 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50628
50629         maint.mk: really add $(AM_MAKEFLAGS)
50630         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50631         was inadvertently omitted in the last commit.
50632         Spotted by Bruno Haible.
50633
50634         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50635         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50636         $(AM_MAKEFLAGS)' rather than plain `make'.
50637
50638         gnulib-tool: execute $MAKE not make
50639         * gnulib-tool: Default $MAKE to 'make'.
50640         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50641         than make.  Initialize $MAKE in the do-autobuild script.
50642
50643         gnulib-tool: use $MAKE not make in generated files
50644         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50645         make, in generated files.  Initialize $MAKE in the do-autobuild
50646         script.
50647
50648         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50649
50650         GNUmakefile: disable parallelism only for multiple, recursive targets
50651         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50652         additions in the Makefile.
50653         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50654         by Automake.
50655         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50656         are listed on the command line and at least one of them is
50657         listed in $(ALL_RECURSIVE_TARGETS).
50658
50659 2009-03-14  Bruno Haible  <bruno@clisp.org>
50660
50661         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50662         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50663         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50664         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50665         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50666         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50667         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50668         unistr/u8-uctomb.
50669         * modules/unistr/u8-strchr (Depends-on): Likewise.
50670         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50671         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50672         unistr/u16-uctomb.
50673         * modules/unistr/u16-strchr (Depends-on): Likewise.
50674         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50675
50676 2009-03-12  Bruno Haible  <bruno@clisp.org>
50677
50678         Work around select() bug on Interix 3.5.
50679         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50680         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50681         * m4/select.m4: New file.
50682         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50683         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50684         * modules/select (Files): Add m4/select.m4.
50685         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50686         * modules/nanosleep (Depends-on): Add select.
50687         * modules/poll (Depends-on): Likewise.
50688         * doc/posix-functions/select.texi: Mention the Interix bug.
50689         Reported by Markus Duft <mduft@gentoo.org>.
50690
50691         * lib/select.c: Renamed from lib/winsock-select.c.
50692         * modules/select (Files): Add lib/select.c, remove
50693         lib/winsock-select.c.
50694         (configure.ac): Update.
50695
50696 2009-03-12  Jim Meyering  <meyering@redhat.com>
50697
50698         avoid gcc warnings about unused macro definitions
50699         * lib/readtokens.c (STREQ): Remove unused definition.
50700         * lib/xmalloc.c (SIZE_MAX): Likewise.
50701         * lib/openat-die.c (N_): Likewise.
50702         * lib/mountlist.c (SIZE_MAX): Remove definition.
50703         Instead, include <stdint.h>.
50704         * lib/readutmp.c: Likewise.
50705         * modules/readutmp (Depends-on): Add stdint.
50706         * modules/mountlist (Depends-on): Add stdint.
50707         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50708
50709 2009-03-10  Bruno Haible  <bruno@clisp.org>
50710
50711         Tests for module 'mbmemcasecoll'.
50712         * modules/mbmemcasecoll-tests: New file.
50713         * tests/test-mbmemcasecoll1.sh: New file.
50714         * tests/test-mbmemcasecoll2.sh: New file.
50715         * tests/test-mbmemcasecoll3.sh: New file.
50716         * tests/test-mbmemcasecoll.c: New file.
50717
50718         New module 'mbmemcasecoll'.
50719         * lib/mbmemcasecoll.h: New file.
50720         * lib/mbmemcasecoll.c: New file.
50721         * modules/mbmemcasecoll: New file.
50722
50723         * tests/test-mbmemcasecmp.h: New file, extracted from
50724         tests/test-mbmemcasecmp.c.
50725         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50726         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50727         (main): Update.
50728         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50729
50730 2009-03-09  Bruno Haible  <bruno@clisp.org>
50731
50732         Tests for module 'mbmemcasecmp'.
50733         * modules/mbmemcasecmp-tests: New file.
50734         * tests/test-mbmemcasecmp1.sh: New file.
50735         * tests/test-mbmemcasecmp2.sh: New file.
50736         * tests/test-mbmemcasecmp3.sh: New file.
50737         * tests/test-mbmemcasecmp.c: New file.
50738
50739         New module 'mbmemcasecmp'.
50740         * lib/mbmemcasecmp.h: New file.
50741         * lib/mbmemcasecmp.c: New file.
50742         * modules/mbmemcasecmp: New file.
50743
50744 2009-03-09  Bruno Haible  <bruno@clisp.org>
50745
50746         Tests for module 'unicase/ulc-casecoll'.
50747         * modules/unicase/ulc-casecoll-tests: New file.
50748         * tests/unicase/test-ulc-casecoll1.sh: New file.
50749         * tests/unicase/test-ulc-casecoll2.sh: New file.
50750         * tests/unicase/test-ulc-casecoll.c: New file.
50751
50752         New module 'unicase/ulc-casecoll'.
50753         * lib/unicase.h (ulc_casecoll): New declaration.
50754         * lib/unicase/ulc-casecoll.c: New file.
50755         * modules/unicase/ulc-casecoll: New file.
50756
50757         New module 'unicase/ulc-casexfrm'.
50758         * lib/unicase.h (ulc_casexfrm): New declaration.
50759         * lib/unicase/ulc-casexfrm.c: New file.
50760         * modules/unicase/ulc-casexfrm: New file.
50761
50762 2009-03-09  Bruno Haible  <bruno@clisp.org>
50763
50764         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50765         invocations.
50766
50767         * m4/mbscasecmp.m4: Remove file.
50768         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50769         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50770
50771         * m4/mbscasestr.m4: Remove file.
50772         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50773         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50774
50775         * m4/mbschr.m4: Remove file.
50776         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50777         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50778
50779         * m4/mbscspn.m4: Remove file.
50780         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50781         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50782
50783         * m4/mbslen.m4: Remove file.
50784         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50785         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50786
50787         * m4/mbsncasecmp.m4: Remove file.
50788         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50789         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50790
50791         * m4/mbsnlen.m4: Remove file.
50792         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50793         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50794
50795         * m4/mbspbrk.m4: Remove file.
50796         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50797         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50798
50799         * m4/mbspcasecmp.m4: Remove file.
50800         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50801         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50802
50803         * m4/mbsrchr.m4: Remove file.
50804         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50805         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50806
50807         * m4/mbssep.m4: Remove file.
50808         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50809         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50810
50811         * m4/mbsspn.m4: Remove file.
50812         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50813         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50814
50815         * m4/mbsstr.m4: Remove file.
50816         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50817         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50818
50819         * m4/mbstok_r.m4: Remove file.
50820         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50821         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50822
50823         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50824
50825         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50826         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50827
50828         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50829
50830 2009-03-08  Bruno Haible  <bruno@clisp.org>
50831
50832         Tests for module 'unicase/ulc-casecmp'.
50833         * modules/unicase/ulc-casecmp-tests: New file.
50834         * tests/unicase/test-ulc-casecmp1.sh: New file.
50835         * tests/unicase/test-ulc-casecmp2.sh: New file.
50836         * tests/unicase/test-ulc-casecmp.c: New file.
50837
50838         New module 'unicase/ulc-casecmp'.
50839         * lib/unicase.h (ulc_casecmp): New declaration.
50840         * lib/unicase/ulc-casecmp.c: New file.
50841         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50842         'const SRC_UNIT *'.
50843         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50844         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50845         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50846         * modules/unicase/ulc-casecmp: New file.
50847
50848         Tests for module 'unicase/u32-is-cased'.
50849         * modules/unicase/u32-is-cased-tests: New file.
50850         * tests/unicase/test-u32-is-cased.c: New file.
50851
50852         Tests for module 'unicase/u16-is-cased'.
50853         * modules/unicase/u16-is-cased-tests: New file.
50854         * tests/unicase/test-u16-is-cased.c: New file.
50855
50856         Tests for module 'unicase/u8-is-cased'.
50857         * modules/unicase/u8-is-cased-tests: New file.
50858         * tests/unicase/test-u8-is-cased.c: New file.
50859         * tests/unicase/test-is-cased.h: New file.
50860
50861         New module 'unicase/u32-is-cased'.
50862         * lib/unicase/u32-is-cased.c: New file.
50863         * modules/unicase/u32-is-cased: New file.
50864
50865         New module 'unicase/u16-is-cased'.
50866         * lib/unicase/u16-is-cased.c: New file.
50867         * modules/unicase/u16-is-cased: New file.
50868
50869         New module 'unicase/u8-is-cased'.
50870         * lib/unicase/u8-is-cased.c: New file.
50871         * lib/unicase/u-is-cased.h: New file.
50872         * modules/unicase/u8-is-cased: New file.
50873
50874         Tests for module 'unicase/u32-is-casefolded'.
50875         * modules/unicase/u32-is-casefolded-tests: New file.
50876         * tests/unicase/test-u32-is-casefolded.c: New file.
50877
50878         Tests for module 'unicase/u16-is-casefolded'.
50879         * modules/unicase/u16-is-casefolded-tests: New file.
50880         * tests/unicase/test-u16-is-casefolded.c: New file.
50881
50882         Tests for module 'unicase/u8-is-casefolded'.
50883         * modules/unicase/u8-is-casefolded-tests: New file.
50884         * tests/unicase/test-u8-is-casefolded.c: New file.
50885         * tests/unicase/test-is-casefolded.h: New file.
50886
50887         New module 'unicase/u32-is-casefolded'.
50888         * lib/unicase/u32-is-casefolded.c: New file.
50889         * modules/unicase/u32-is-casefolded: New file.
50890
50891         New module 'unicase/u16-is-casefolded'.
50892         * lib/unicase/u16-is-casefolded.c: New file.
50893         * modules/unicase/u16-is-casefolded: New file.
50894
50895         New module 'unicase/u8-is-casefolded'.
50896         * lib/unicase/u8-is-casefolded.c: New file.
50897         * modules/unicase/u8-is-casefolded: New file.
50898
50899         Tests for module 'unicase/u32-is-titlecase'.
50900         * modules/unicase/u32-is-titlecase-tests: New file.
50901         * tests/unicase/test-u32-is-titlecase.c: New file.
50902
50903         Tests for module 'unicase/u16-is-titlecase'.
50904         * modules/unicase/u16-is-titlecase-tests: New file.
50905         * tests/unicase/test-u16-is-titlecase.c: New file.
50906
50907         Tests for module 'unicase/u8-is-titlecase'.
50908         * modules/unicase/u8-is-titlecase-tests: New file.
50909         * tests/unicase/test-u8-is-titlecase.c: New file.
50910         * tests/unicase/test-is-titlecase.h: New file.
50911
50912         New module 'unicase/u32-is-titlecase'.
50913         * lib/unicase/u32-is-titlecase.c: New file.
50914         * modules/unicase/u32-is-titlecase: New file.
50915
50916         New module 'unicase/u16-is-titlecase'.
50917         * lib/unicase/u16-is-titlecase.c: New file.
50918         * modules/unicase/u16-is-titlecase: New file.
50919
50920         New module 'unicase/u8-is-titlecase'.
50921         * lib/unicase/u8-is-titlecase.c: New file.
50922         * modules/unicase/u8-is-titlecase: New file.
50923
50924         Tests for module 'unicase/u32-is-lowercase'.
50925         * modules/unicase/u32-is-lowercase-tests: New file.
50926         * tests/unicase/test-u32-is-lowercase.c: New file.
50927
50928         Tests for module 'unicase/u16-is-lowercase'.
50929         * modules/unicase/u16-is-lowercase-tests: New file.
50930         * tests/unicase/test-u16-is-lowercase.c: New file.
50931
50932         Tests for module 'unicase/u8-is-lowercase'.
50933         * modules/unicase/u8-is-lowercase-tests: New file.
50934         * tests/unicase/test-u8-is-lowercase.c: New file.
50935         * tests/unicase/test-is-lowercase.h: New file.
50936
50937         New module 'unicase/u32-is-lowercase'.
50938         * lib/unicase/u32-is-lowercase.c: New file.
50939         * modules/unicase/u32-is-lowercase: New file.
50940
50941         New module 'unicase/u16-is-lowercase'.
50942         * lib/unicase/u16-is-lowercase.c: New file.
50943         * modules/unicase/u16-is-lowercase: New file.
50944
50945         New module 'unicase/u8-is-lowercase'.
50946         * lib/unicase/u8-is-lowercase.c: New file.
50947         * modules/unicase/u8-is-lowercase: New file.
50948
50949         Tests for module 'unicase/u32-is-uppercase'.
50950         * modules/unicase/u32-is-uppercase-tests: New file.
50951         * tests/unicase/test-u32-is-uppercase.c: New file.
50952
50953         Tests for module 'unicase/u16-is-uppercase'.
50954         * modules/unicase/u16-is-uppercase-tests: New file.
50955         * tests/unicase/test-u16-is-uppercase.c: New file.
50956
50957         Tests for module 'unicase/u8-is-uppercase'.
50958         * modules/unicase/u8-is-uppercase-tests: New file.
50959         * tests/unicase/test-u8-is-uppercase.c: New file.
50960         * tests/unicase/test-is-uppercase.h: New file.
50961
50962         New module 'unicase/u32-is-uppercase'.
50963         * lib/unicase/u32-is-uppercase.c: New file.
50964         * modules/unicase/u32-is-uppercase: New file.
50965
50966         New module 'unicase/u16-is-uppercase'.
50967         * lib/unicase/u16-is-uppercase.c: New file.
50968         * modules/unicase/u16-is-uppercase: New file.
50969
50970         New module 'unicase/u8-is-uppercase'.
50971         * lib/unicase/u8-is-uppercase.c: New file.
50972         * modules/unicase/u8-is-uppercase: New file.
50973
50974         New module 'unicase/u32-is-invariant'.
50975         * lib/unicase/u32-is-invariant.c: New file.
50976         * modules/unicase/u32-is-invariant: New file.
50977
50978         New module 'unicase/u16-is-invariant'.
50979         * lib/unicase/u16-is-invariant.c: New file.
50980         * modules/unicase/u16-is-invariant: New file.
50981
50982         New module 'unicase/u8-is-invariant'.
50983         * lib/unicase/u8-is-invariant.c: New file.
50984         * lib/unicase/invariant.h: New file.
50985         * lib/unicase/u-is-invariant.h: New file.
50986         * modules/unicase/u8-is-invariant: New file.
50987
50988         Tests for module 'unicase/u32-casecoll'.
50989         * modules/unicase/u32-casecoll-tests: New file.
50990         * tests/unicase/test-u32-casecoll.c: New file.
50991
50992         Tests for module 'unicase/u16-casecoll'.
50993         * modules/unicase/u16-casecoll-tests: New file.
50994         * tests/unicase/test-u16-casecoll.c: New file.
50995
50996         Tests for module 'unicase/u8-casecoll'.
50997         * modules/unicase/u8-casecoll-tests: New file.
50998         * tests/unicase/test-u8-casecoll.c: New file.
50999
51000         New module 'unicase/u32-casecoll'.
51001         * lib/unicase/u32-casecoll.c: New file.
51002         * modules/unicase/u32-casecoll: New file.
51003
51004         New module 'unicase/u16-casecoll'.
51005         * lib/unicase/u16-casecoll.c: New file.
51006         * modules/unicase/u16-casecoll: New file.
51007
51008         New module 'unicase/u8-casecoll'.
51009         * lib/unicase/u8-casecoll.c: New file.
51010         * lib/unicase/u-casecoll.h: New file.
51011         * modules/unicase/u8-casecoll: New file.
51012
51013         New module 'unicase/u32-casexfrm'.
51014         * lib/unicase/u32-casexfrm.c: New file.
51015         * modules/unicase/u32-casexfrm: New file.
51016
51017         New module 'unicase/u16-casexfrm'.
51018         * lib/unicase/u16-casexfrm.c: New file.
51019         * modules/unicase/u16-casexfrm: New file.
51020
51021         New module 'unicase/u8-casexfrm'.
51022         * lib/unicase/u8-casexfrm.c: New file.
51023         * lib/unicase/u-casexfrm.h: New file.
51024         * modules/unicase/u8-casexfrm: New file.
51025
51026         Tests for module 'unicase/u32-casecmp'.
51027         * modules/unicase/u32-casecmp-tests: New file.
51028         * tests/unicase/test-u32-casecmp.c: New file.
51029
51030         Tests for module 'unicase/u16-casecmp'.
51031         * modules/unicase/u16-casecmp-tests: New file.
51032         * tests/unicase/test-u16-casecmp.c: New file.
51033
51034         Tests for module 'unicase/u8-casecmp'.
51035         * modules/unicase/u8-casecmp-tests: New file.
51036         * tests/unicase/test-u8-casecmp.c: New file.
51037         * tests/unicase/test-casecmp.h: New file.
51038
51039         New module 'unicase/u32-casecmp'.
51040         * lib/unicase/u32-casecmp.c: New file.
51041         * modules/unicase/u32-casecmp: New file.
51042
51043         New module 'unicase/u16-casecmp'.
51044         * lib/unicase/u16-casecmp.c: New file.
51045         * modules/unicase/u16-casecmp: New file.
51046
51047         New module 'unicase/u8-casecmp'.
51048         * lib/unicase/u8-casecmp.c: New file.
51049         * lib/unicase/u-casecmp.h: New file.
51050         * modules/unicase/u8-casecmp: New file.
51051
51052         Tests for module 'unicase/u32-casefold'.
51053         * modules/unicase/u32-casefold-tests: New file.
51054         * tests/unicase/test-u32-casefold.c: New file.
51055
51056         Tests for module 'unicase/u16-casefold'.
51057         * modules/unicase/u16-casefold-tests: New file.
51058         * tests/unicase/test-u16-casefold.c: New file.
51059
51060         Tests for module 'unicase/u8-casefold'.
51061         * modules/unicase/u8-casefold-tests: New file.
51062         * tests/unicase/test-u8-casefold.c: New file.
51063
51064         New module 'unicase/u32-casefold'.
51065         * lib/unicase/u32-casefold.c: New file.
51066         * modules/unicase/u32-casefold: New file.
51067
51068         New module 'unicase/u16-casefold'.
51069         * lib/unicase/u16-casefold.c: New file.
51070         * modules/unicase/u16-casefold: New file.
51071
51072         New module 'unicase/u8-casefold'.
51073         * lib/unicase/u8-casefold.c: New file.
51074         * lib/unicase/u-casefold.h: New file.
51075         * modules/unicase/u8-casefold: New file.
51076
51077         New module 'unicase/tocasefold'.
51078         * lib/unicase/casefold.h: New file.
51079         * lib/unicase/tocasefold.c: New file.
51080         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51081         * modules/unicase/tocasefold: New file.
51082
51083         Tests for module 'unicase/u32-totitle'.
51084         * modules/unicase/u32-totitle-tests: New file.
51085         * tests/unicase/test-u32-totitle.c: New file.
51086
51087         Tests for module 'unicase/u16-totitle'.
51088         * modules/unicase/u16-totitle-tests: New file.
51089         * tests/unicase/test-u16-totitle.c: New file.
51090
51091         Tests for module 'unicase/u8-totitle'.
51092         * modules/unicase/u8-totitle-tests: New file.
51093         * tests/unicase/test-u8-totitle.c: New file.
51094
51095         New module 'unicase/u32-totitle'.
51096         * lib/unicase/u32-totitle.c: New file.
51097         * modules/unicase/u32-totitle: New file.
51098
51099         New module 'unicase/u16-totitle'.
51100         * lib/unicase/u16-totitle.c: New file.
51101         * modules/unicase/u16-totitle: New file.
51102
51103         New module 'unicase/u8-totitle'.
51104         * lib/unicase/u8-totitle.c: New file.
51105         * lib/unicase/u-totitle.h: New file.
51106         * modules/unicase/u8-totitle: New file.
51107
51108         Tests for module 'unicase/u32-tolower'.
51109         * modules/unicase/u32-tolower-tests: New file.
51110         * tests/unicase/test-u32-tolower.c: New file.
51111
51112         Tests for module 'unicase/u16-tolower'.
51113         * modules/unicase/u16-tolower-tests: New file.
51114         * tests/unicase/test-u16-tolower.c: New file.
51115
51116         Tests for module 'unicase/u8-tolower'.
51117         * modules/unicase/u8-tolower-tests: New file.
51118         * tests/unicase/test-u8-tolower.c: New file.
51119
51120         New module 'unicase/u32-tolower'.
51121         * lib/unicase/u32-tolower.c: New file.
51122         * modules/unicase/u32-tolower: New file.
51123
51124         New module 'unicase/u16-tolower'.
51125         * lib/unicase/u16-tolower.c: New file.
51126         * modules/unicase/u16-tolower: New file.
51127
51128         New module 'unicase/u8-tolower'.
51129         * lib/unicase/u8-tolower.c: New file.
51130         * modules/unicase/u8-tolower: New file.
51131
51132         Tests for module 'unicase/u32-toupper'.
51133         * modules/unicase/u32-toupper-tests: New file.
51134         * tests/unicase/test-u32-toupper.c: New file.
51135
51136         Tests for module 'unicase/u16-toupper'.
51137         * modules/unicase/u16-toupper-tests: New file.
51138         * tests/unicase/test-u16-toupper.c: New file.
51139
51140         Tests for module 'unicase/u8-toupper'.
51141         * modules/unicase/u8-toupper-tests: New file.
51142         * tests/unicase/test-u8-toupper.c: New file.
51143
51144         New module 'unicase/u32-toupper'.
51145         * lib/unicase/u32-toupper.c: New file.
51146         * modules/unicase/u32-toupper: New file.
51147
51148         New module 'unicase/u16-toupper'.
51149         * lib/unicase/u16-toupper.c: New file.
51150         * modules/unicase/u16-toupper: New file.
51151
51152         New module 'unicase/u8-toupper'.
51153         * lib/unicase/u8-toupper.c: New file.
51154         * modules/unicase/u8-toupper: New file.
51155
51156         New module 'unicase/u32-casemap'.
51157         * lib/unicase/u32-casemap.c: New file.
51158         * modules/unicase/u32-casemap: New file.
51159
51160         New module 'unicase/u16-casemap'.
51161         * lib/unicase/u16-casemap.c: New file.
51162         * modules/unicase/u16-casemap: New file.
51163
51164         New module 'unicase/u8-casemap'.
51165         * lib/unicase/unicasemap.h: New file.
51166         * lib/unicase/u8-casemap.c: New file.
51167         * lib/unicase/u-casemap.h: New file.
51168         * modules/unicase/u8-casemap: New file.
51169
51170         New module 'unicase/special-casing'.
51171         * lib/unicase/special-casing.h: New file.
51172         * lib/unicase/special-casing.c: New file.
51173         * lib/unicase/special-casing-table.gperf: New file, generated by
51174         gen-uni-tables.c.
51175         * modules/unicase/special-casing: New file.
51176
51177         Tests for module 'unicase/locale-language'.
51178         * modules/unicase/locale-language-tests: New file.
51179         * tests/unicase/test-locale-language.sh: New file.
51180         * tests/unicase/test-locale-language.c: New file.
51181
51182         New module 'unicase/locale-language'.
51183         * lib/unicase/locale-language.c: New file.
51184         * lib/unicase/locale-languages.gperf: New file.
51185         * modules/unicase/locale-language: New file.
51186
51187         Generate more tables for case conversion and case folding.
51188         * lib/gen-uni-tables.c (SCC_*): New enum items.
51189         (struct special_casing_rule): New type.
51190         (casing_rules, num_casing_rules, allocated_casing_rules): New
51191         variables.
51192         (add_casing_rule, fill_casing_rules): New functions.
51193         (struct casefold_rule): New type.
51194         (casefolding_rules, num_casefolding_rules,
51195         allocated_casefolding_rules): New variables.
51196         (fill_casefolding_rules): New function.
51197         (unicode_casefold): New variable.
51198         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51199         sort_casing_rules, output_casing_rules): New functions.
51200         (main): Accept to more arguments: SpecialCasing.txt and
51201         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51202         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51203         Output mapping for casefolding.
51204
51205         * lib/unicase.h: Include stdbool.h, uninorm.h.
51206         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51207         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51208         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51209         arguments.
51210         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51211         resultp arguments.
51212         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51213         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51214         resultp arguments.
51215         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51216         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51217         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51218         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51219         declarations.
51220         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51221
51222 2009-03-08  Bruno Haible  <bruno@clisp.org>
51223
51224         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51225         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51226         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51227         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51228
51229 2009-03-07  Bruno Haible  <bruno@clisp.org>
51230
51231         Adjust u*_normcmp, u*_normcoll API.
51232         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51233         u16_normcoll, u32_normcoll): Change failure conventions.
51234         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51235         errno and return -1.
51236         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51237
51238 2009-03-07  Bruno Haible  <bruno@clisp.org>
51239
51240         Tests for module 'uninorm/u32-normcoll'.
51241         * modules/uninorm/u32-normcoll-tests: New file.
51242         * tests/uninorm/test-u32-normcoll.c: New file.
51243
51244         Tests for module 'uninorm/u16-normcoll'.
51245         * modules/uninorm/u16-normcoll-tests: New file.
51246         * tests/uninorm/test-u16-normcoll.c: New file.
51247
51248         Tests for module 'uninorm/u8-normcoll'.
51249         * modules/uninorm/u8-normcoll-tests: New file.
51250         * tests/uninorm/test-u8-normcoll.c: New file.
51251
51252 2009-03-07  Bruno Haible  <bruno@clisp.org>
51253
51254         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51255         tests/uninorm/test-u32-normcmp.c.
51256         * tests/uninorm/test-u32-normcmp.c: Include it.
51257         (test_nonascii): New function, extracted from main. Add some more
51258         tests.
51259         (main): Invoke test_ascii and test_nonascii.
51260         * modules/uninorm/u32-normcmp-tests (Files): Add
51261         tests/uninorm/test-u32-normcmp.h.
51262         (Depends-on): Remove uninorm/u32-normcmp.
51263
51264         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51265         tests/uninorm/test-u16-normcmp.c.
51266         * tests/uninorm/test-u16-normcmp.c: Include it.
51267         (test_nonascii): New function, extracted from main. Add some more
51268         tests.
51269         (main): Invoke test_ascii and test_nonascii.
51270         * modules/uninorm/u16-normcmp-tests (Files): Add
51271         tests/uninorm/test-u16-normcmp.h.
51272         (Depends-on): Remove uninorm/u16-normcmp.
51273
51274         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51275         tests/uninorm/test-u8-normcmp.c.
51276         * tests/uninorm/test-u8-normcmp.c: Include it.
51277         (test_nonascii): New function, extracted from main. Add some more
51278         tests.
51279         (main): Invoke test_ascii and test_nonascii.
51280         * modules/uninorm/u8-normcmp-tests (Files): Add
51281         tests/uninorm/test-u8-normcmp.h.
51282         (Depends-on): Remove uninorm/u8-normcmp.
51283
51284 2009-03-07  Bruno Haible  <bruno@clisp.org>
51285
51286         New module 'uninorm/u32-normcoll'.
51287         * lib/uninorm/u32-normcoll.c: New file.
51288         * modules/uninorm/u32-normcoll: New file.
51289
51290         New module 'uninorm/u16-normcoll'.
51291         * lib/uninorm/u16-normcoll.c: New file.
51292         * modules/uninorm/u16-normcoll: New file.
51293
51294         New module 'uninorm/u8-normcoll'.
51295         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51296         declarations.
51297         * lib/uninorm/u8-normcoll.c: New file.
51298         * lib/uninorm/u-normcoll.h: New file.
51299         * modules/uninorm/u8-normcoll: New file.
51300
51301         New module 'uninorm/u32-normxfrm'.
51302         * lib/uninorm/u32-normxfrm.c: New file.
51303         * modules/uninorm/u32-normxfrm: New file.
51304
51305         New module 'uninorm/u16-normxfrm'.
51306         * lib/uninorm/u16-normxfrm.c: New file.
51307         * modules/uninorm/u16-normxfrm: New file.
51308
51309         New module 'uninorm/u8-normxfrm'.
51310         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51311         declarations.
51312         * lib/uninorm/u8-normxfrm.c: New file.
51313         * lib/uninorm/u-normxfrm.h: New file.
51314         * modules/uninorm/u8-normxfrm: New file.
51315
51316 2009-03-07  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51319         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51320         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51321
51322 2009-03-07  Bruno Haible  <bruno@clisp.org>
51323
51324         New module 'memxfrm'.
51325         * lib/memxfrm.h: New file.
51326         * lib/memxfrm.c: New file.
51327         * modules/memxfrm: New file.
51328
51329 2009-03-07  Bruno Haible  <bruno@clisp.org>
51330
51331         New module 'memcmp2'.
51332         * lib/memcmp2.h: New file.
51333         * lib/memcmp2.c: New file.
51334         * modules/memcmp2: New file.
51335
51336 2009-03-07  Bruno Haible  <bruno@clisp.org>
51337
51338         Tests for module 'uninorm/decomposing-form'.
51339         * modules/uninorm/decomposing-form-tests: New file.
51340         * tests/uninorm/test-decomposing-form.c: New file.
51341
51342         New module 'uninorm/decomposing-form'.
51343         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51344         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51345         Add 'decomposing_variant' field.
51346         * lib/uninorm/decomposing-form.c: New file.
51347         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51348         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51349         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51350         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51351         * modules/uninorm/decomposing-form: New file.
51352         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51353         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51354
51355 2009-03-07  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51358         strings.
51359
51360 2009-03-06  Bruno Haible  <bruno@clisp.org>
51361
51362         Tests for module 'uninorm/u32-normcmp'.
51363         * tests/uninorm/test-u32-normcmp.c: New file.
51364         * modules/uninorm/u32-normcmp-tests: New file.
51365
51366         Tests for module 'uninorm/u16-normcmp'.
51367         * tests/uninorm/test-u16-normcmp.c: New file.
51368         * modules/uninorm/u16-normcmp-tests: New file.
51369
51370         Tests for module 'uninorm/u8-normcmp'.
51371         * tests/uninorm/test-u8-normcmp.c: New file.
51372         * modules/uninorm/u8-normcmp-tests: New file.
51373
51374         New module 'uninorm/u32-normcmp'.
51375         * lib/uninorm/u32-normcmp.c: New file.
51376         * modules/uninorm/u32-normcmp: New file.
51377
51378         New module 'uninorm/u16-normcmp'.
51379         * lib/uninorm/u16-normcmp.c: New file.
51380         * modules/uninorm/u16-normcmp: New file.
51381
51382         New module 'uninorm/u8-normcmp'.
51383         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51384         declarations.
51385         * lib/uninorm/u8-normcmp.c: New file.
51386         * lib/uninorm/u-normcmp.h: New file.
51387         * modules/uninorm/u8-normcmp: New file.
51388
51389 2009-03-06  Bruno Haible  <bruno@clisp.org>
51390
51391         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51392         Reported by Eric Blake.
51393
51394 2009-03-06  Eric Blake  <ebb9@byu.net>
51395             Bruno Haible  <bruno@clisp.org>
51396
51397         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51398         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51399         condition.
51400         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51401         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51402         condition.
51403         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51404
51405 2009-03-06  Eric Blake  <ebb9@byu.net>
51406
51407         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51408         to avoid compiler warnings.
51409         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51410
51411 2009-03-05  Bruno Haible  <bruno@clisp.org>
51412
51413         * tests/test-ftell.c (main): Disable test beyond end of file on
51414         FreeMiNT.
51415         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51416
51417 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51418
51419         * lib/filevercmp.c: Move hidden files up in ordering.
51420         * tests/test-filevercmp.c: Add tests for hidden files.
51421
51422 2009-03-04  Bruno Haible  <bruno@clisp.org>
51423
51424         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51425         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51426         AM_CFLAGS.
51427         Reported by Simon Josefsson.
51428
51429 2009-03-03  Bruno Haible  <bruno@clisp.org>
51430
51431         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51432         Reported by Simon Josefsson.
51433
51434         * doc/ld-version-script.texi: Update node reference.
51435
51436 2009-03-03  Bruno Haible  <bruno@clisp.org>
51437
51438         * modules/visibility (License): Change to 'unlimited'.
51439         Suggested by Simon Josefsson.
51440
51441 2009-03-03  Jim Meyering  <meyering@redhat.com>
51442
51443         unlinkdir: cannot_unlink_dir may modify process state
51444         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51445         it's neither thread-safe nor appropriate for use in a library.
51446
51447 2009-03-03  Eric Blake  <ebb9@byu.net>
51448
51449         test-closein: silence test under Darwin
51450         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51451         care if it dies from EPIPE or EBADF.
51452
51453 2009-03-03  Bruno Haible  <bruno@clisp.org>
51454
51455         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51456         earlier.
51457         * doc/visibility.texi: Fix @node and @section.
51458
51459 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51460
51461         * doc/gnulib.texi: Link to sections for ld version script and
51462         visibility.
51463         * doc/visibility.texi: Add @node and @section.
51464         * modules/ld-version-script: New module.
51465         * m4/ld-version-script.m4: New file.
51466         * doc/ld-version-script.texi: New file.
51467
51468 2009-03-02  David Lutterkort  <lutter@redhat.com>
51469
51470         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51472
51473 2009-03-02  Bruno Haible  <bruno@clisp.org>
51474
51475         * doc/visibility.texi: Mention libtool's -export-symbols option.
51476
51477 2009-03-02  Jim Meyering  <meyering@redhat.com>
51478
51479         announce-gen: new option: --no-print-checksums
51480         * build-aux/announce-gen (usage): Describe it.
51481         (print_checksums): Print a newline here, not in the [*] footnote.
51482         (main): Honor it.
51483
51484 2009-03-01  Bruno Haible  <bruno@clisp.org>
51485
51486         Use socklen_t in the native Windows replacements prototypes.
51487         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51488         instead of 'int'.
51489         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51490         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51491         * modules/getsockopt (Depends-on): Add socklen.
51492         * modules/setsockopt (Depends-on): Add socklen.
51493
51494 2009-03-01  Bruno Haible  <bruno@clisp.org>
51495
51496         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51497         least 4.2.
51498
51499 2009-03-01  Eric Blake  <ebb9@byu.net>
51500             Bruno Haible  <bruno@clisp.org>
51501
51502         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51503         error messages.
51504         * lib/wait-process.c (wait_subprocess): Omit error message about
51505         deadly signal sent to the child of termsigp != NULL.
51506
51507 2009-03-01  Eric Blake  <ebb9@byu.net>
51508
51509         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51510
51511 2009-03-01  Bruno Haible  <bruno@clisp.org>
51512
51513         Avoid a gcc warning.
51514         * tests/test-sched.c (b): Make global.
51515         Reported by Eric Blake.
51516
51517 2009-01-19  Martin Lambers  <marlam@marlam.de>
51518
51519         Provide POSIX semantics for socket timeout options on W32.
51520         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51521         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51522         * modules/setsockopt: Depend on sys_time module for struct timeval.
51523         * modules/getsockopt: Depend on sys_time module for struct timeval.
51524
51525 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51526
51527         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51528         __USE_GNU, for consistency with netdb.in.h.
51529         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51530
51531 2009-03-01  Bruno Haible  <bruno@clisp.org>
51532
51533         More support for FreeMiNT.
51534         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51535         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51536
51537 2009-03-01  Bruno Haible  <bruno@clisp.org>
51538
51539         More support for FreeMiNT.
51540         * lib/fpurge.c (fpurge): Correct last commit.
51541         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51542
51543 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51544
51545         Fix unportable awk script in vc-list-files.
51546         * build-aux/vc-list-files: In the replacement awk script, use
51547         substr with a second argument of 1, not zero.
51548         Report by Simon Josefsson.
51549
51550 2009-02-28  Bruno Haible  <bruno@clisp.org>
51551
51552         More support for FreeMiNT.
51553         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51554         to FreeMiNT today.
51555         * lib/fwriting.c (fwriting): Likewise.
51556         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51557
51558 2009-02-28  Bruno Haible  <bruno@clisp.org>
51559
51560         * tests/test-freadseek.c (main): Disable test beyond end of file on
51561         FreeMiNT.
51562         * tests/test-ftello.c (main): Likewise.
51563         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51564
51565 2009-02-28  Bruno Haible  <bruno@clisp.org>
51566
51567         Add tentative support for FreeMiNT.
51568         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51569         * lib/fpurge.c (fpurge): Likewise.
51570         * lib/freadable.c (freadable): Likewise.
51571         * lib/freading.c (freading): Likewise.
51572         * lib/freadptr.c (freadptr): Likewise.
51573         * lib/freadseek.c (freadptrinc): Likewise.
51574         * lib/fseeko.c (rpl_fseeko): Likewise.
51575         * lib/fseterr.c (fseterr): Likewise.
51576         * lib/fwritable.c (fwritable): Likewise.
51577         * lib/fwriting.c (fwriting): Likewise.
51578         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51579         Hourihane.
51580         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51581
51582 2009-02-28  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51585         SIGCHLD.
51586         Reported by Jim Meyering.
51587
51588 2009-02-28  Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51591         Mention the results of these tests on various platforms.
51592         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51593         order.
51594         * doc/posix-functions/printf.texi: Likewise.
51595         * doc/posix-functions/snprintf.texi: Likewise.
51596         * doc/posix-functions/sprintf.texi: Likewise.
51597         * doc/posix-functions/vfprintf.texi: Likewise.
51598         * doc/posix-functions/vprintf.texi: Likewise.
51599         * doc/posix-functions/vsnprintf.texi: Likewise.
51600         * doc/posix-functions/vsprintf.texi: Likewise.
51601         * doc/glibc-functions/obstack_printf.texi: Likewise.
51602         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51603
51604 2009-02-28  Bruno Haible  <bruno@clisp.org>
51605
51606         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51607         Reported by Loïc Minier <lool@dooz.org>.
51608
51609 2009-02-27  Bruno Haible  <bruno@clisp.org>
51610
51611         * gnulib-tool (func_import): Make the sed expression used to create the
51612         sed script for updating the .gitignore file POSIX compliant.
51613         Reported by Eric Blake.
51614
51615 2009-02-27  Bruno Haible  <bruno@clisp.org>
51616
51617         * gnulib-tool (sed): Don't alias as "sed --posix".
51618         Reported by Eric Blake.
51619
51620 2009-02-27  Bruno Haible  <bruno@clisp.org>
51621
51622         Avoid test link errors.
51623         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51624         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51625         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51626         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51628
51629 2009-02-27  Bruno Haible  <bruno@clisp.org>
51630
51631         Avoid spurious "(cached)" in configure output.
51632         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51633         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51634         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51635         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51636         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51637         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51638         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51639         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51640         Reported by Eric Blake.
51641
51642 2009-02-27  Eric Blake  <ebb9@byu.net>
51643
51644         printf: fix regression in previous patch
51645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51646
51647 2009-02-27  Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51650         value.
51651         * lib/stdint.in.h: Likewise.
51652         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51653
51654 2009-02-27  Eric Blake  <ebb9@byu.net>
51655
51656         doc: mention more functions added in cygwin 1.7.0
51657         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51658         addition.
51659         * doc/posix-functions/open_wmemstream.texi: Likewise.
51660         * doc/posix-functions/wcsnlen.texi: Likewise.
51661         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51662         * doc/posix-functions/wcstod.texi: Likewise.
51663         * doc/posix-functions/wcstof.texi: Likewise.
51664         * doc/posix-functions/wcstoimax.texi: Likewise.
51665         * doc/posix-functions/wcstok.texi: Likewise.
51666         * doc/posix-functions/wcstoumax.texi: Likewise.
51667
51668         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51669         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51670         * doc/posix-functions/fprintf.texi: Update.
51671         * doc/posix-functions/printf.texi: Update.
51672         * doc/posix-functions/snprintf.texi: Update.
51673         * doc/posix-functions/sprintf.texi: Update.
51674         * doc/posix-functions/vfprintf.texi: Update.
51675         * doc/posix-functions/vprintf.texi: Update.
51676         * doc/posix-functions/vsnprintf.texi: Update.
51677         * doc/posix-functions/vsprintf.texi: Update.
51678         * doc/glibc-functions/obstack_printf.texi: Update.
51679         * doc/glibc-functions/obstack_vprintf.texi: Update.
51680
51681 2009-02-26  Eric Blake  <ebb9@byu.net>
51682
51683         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51684         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51685         compilation bug by using runtime conversion.
51686         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51687         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51688         * modules/ceill-tests (Files): Use nan.h.
51689         * modules/floorl-tests (Files): Likewise.
51690         * modules/frexpl-tests (Files): Likewise.
51691         * modules/isnanl-tests (Files): Likewise.
51692         * modules/ldexpl-tests (Files): Likewise.
51693         * modules/roundl-tests (Files): Likewise.
51694         * modules/truncl-tests (Files): Likewise.
51695         * tests/test-ceill.c (main): Use a working NaN.
51696         * tests/test-floorl.c (main): Likewise.
51697         * tests/test-frexpl.c (main): Likewise.
51698         * tests/test-isnan.c (test_long_double): Likewise.
51699         * tests/test-isnanl.h (main): Likewise.
51700         * tests/test-ldexpl.h (main): Likewise.
51701         * tests/test-roundl.h (main): Likewise.
51702         * tests/test-truncl.h (main): Likewise.
51703         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51704
51705 2009-02-26  Eric Blake  <ebb9@byu.net>
51706             Bruno Haible  <bruno@clisp.org>
51707
51708         Work around a *printf bug with %ls on Solaris.
51709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51710         precision is specified, sprintf stops converting the wide string
51711         argument when the number of bytes that have been produced by this
51712         conversion equals or exceeds the precision.
51713         * doc/posix-functions/fprintf.texi: Update.
51714         * doc/posix-functions/printf.texi: Update.
51715         * doc/posix-functions/snprintf.texi: Update.
51716         * doc/posix-functions/sprintf.texi: Update.
51717         * doc/posix-functions/vfprintf.texi: Update.
51718         * doc/posix-functions/vprintf.texi: Update.
51719         * doc/posix-functions/vsnprintf.texi: Update.
51720         * doc/posix-functions/vsprintf.texi: Update.
51721         * doc/glibc-functions/obstack_printf.texi: Update.
51722         * doc/glibc-functions/obstack_vprintf.texi: Update.
51723
51724 2009-02-26  Eric Blake  <ebb9@byu.net>
51725
51726         stdlib: favor compiler check of random.h
51727         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51728         to avoid an ObjC random.h installed by Swarm.
51729
51730 2009-02-26  Bruno Haible  <bruno@clisp.org>
51731
51732         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51733         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51734         Reported by Gary V. Vaughan <gary@gnu.org>.
51735
51736 2009-02-26  Bruno Haible  <bruno@clisp.org>
51737
51738         Fix *printf behaviour regarding the %ls directive.
51739         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51740         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51741         NEED_PRINTF_DIRECTIVE_LS.
51742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51743         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51745         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51746         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51747         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51748         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51750         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51753         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51757         * doc/posix-functions/fprintf.texi: Update.
51758         * doc/posix-functions/printf.texi: Update.
51759         * doc/posix-functions/snprintf.texi: Update.
51760         * doc/posix-functions/sprintf.texi: Update.
51761         * doc/posix-functions/vfprintf.texi: Update.
51762         * doc/posix-functions/vprintf.texi: Update.
51763         * doc/posix-functions/vsnprintf.texi: Update.
51764         * doc/posix-functions/vsprintf.texi: Update.
51765         * doc/glibc-functions/obstack_printf.texi: Update.
51766         * doc/glibc-functions/obstack_vprintf.texi: Update.
51767         Reported by Eric Blake.
51768
51769 2009-02-25  Bruno Haible  <bruno@clisp.org>
51770
51771         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51772         with known value.
51773         Reported by Gary V. Vaughan <gary@gnu.org>.
51774
51775 2009-02-25  Bruno Haible  <bruno@clisp.org>
51776
51777         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51778         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51779         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51780         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51781         Reported by Gary V. Vaughan <gary@gnu.org>.
51782
51783 2009-02-25  Bruno Haible  <bruno@clisp.org>
51784
51785         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51786         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51787         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51788         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51789         Reported by Gary V. Vaughan <gary@gnu.org>.
51790
51791 2009-02-25  Eric Blake  <ebb9@byu.net>
51792
51793         tests: skip fseek/ftell tests if ungetc is broken
51794         * m4/ungetc.m4: New file.
51795         * modules/fseek-tests: Split test, so ungetc dependency is
51796         separate from rest of test.
51797         * modules/fseeko-tests: Likewise.
51798         * modules/ftell-tests: Likewise.
51799         * modules/ftello-tests: Likewise.
51800         * tests/test-fseek.c (main): Isolate ungetc dependency.
51801         * tests/test-fseeko.c (main): Likewise.
51802         * tests/test-ftell.c (main): Likewise.
51803         * tests/test-ftello.c (main): Likewise.
51804         * tests/test-fseek2.sh: New file.
51805         * tests/test-fseeko2.sh: Likewise.
51806         * tests/test-ftell2.sh: Likewise.
51807         * tests/test-ftello2.sh: Likewise.
51808
51809 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51810
51811         test-getaddrinfo: fix usage of skip return code 77
51812         * tests/test-gettaddrinfo.c: Return skip code 77 only
51813         for first occurrence of skip (4x77 is not 77)
51814
51815 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51816
51817         strtod: avoid C99 decl-after-statement
51818         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51819
51820 2009-02-24  Eric Blake  <ebb9@byu.net>
51821
51822         strtod: detect HP-UX 11.31 bug
51823         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51824         Reported by Gary V. Vaughan.
51825
51826 2009-02-23  Bruno Haible  <bruno@clisp.org>
51827
51828         Fix invalid read past end of memory block.
51829         * lib/vasnprintf.c (DCHAR_SET): Define.
51830         (local_wcslen): Define only when needed.
51831         (local_strnlen, local_wcsnlen): New functions.
51832         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51833         directives that involve a conversion ourselves.
51834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51835         wcsnlen, mbrtowc, wcrtomb.
51836         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51837         * tests/test-vasprintf-posix.c (test_function): Likewise.
51838         * tests/test-snprintf-posix.h (test_function): Likewise.
51839         * tests/test-sprintf-posix.h (test_function): Likewise.
51840         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51841
51842 2009-02-22  Bruno Haible  <bruno@clisp.org>
51843
51844         Implement new clarified decomposition of Hangul syllables.
51845         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51846         of type LTV, return only a pairwise decomposition.
51847         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51848         Likewise.
51849         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51850         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51851         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51852
51853 2009-02-22  Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51856         zero-length results and shrink excess allocated memory.
51857         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51858         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51859         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51860         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51861         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51862         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51863         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51864         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51865         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51866         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51867         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51868         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51869
51870 2009-02-21  Bruno Haible  <bruno@clisp.org>
51871
51872         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51873         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51874         spaces after a period. Put a space between a macro name and its
51875         argument list. Trivial rewordings.
51876         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51877         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51878         (main): Return 0 explicitly.
51879
51880 2009-02-21  Bruno Haible  <bruno@clisp.org>
51881
51882         Tests for module 'uninorm/filter'.
51883         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51884         * modules/uninorm/filter-tests: New file.
51885
51886         New module 'uninorm/filter'.
51887         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51888         uninorm_filter_flush, uninorm_filter_free): New declarations.
51889         * lib/uninorm/uninorm-filter.c: New file.
51890         * modules/uninorm/filter: New file.
51891
51892 2009-02-21  Bruno Haible  <bruno@clisp.org>
51893
51894         Tests for module 'uninorm/nfkc'.
51895         * tests/uninorm/test-nfkc.c: New file.
51896         * tests/uninorm/test-u8-nfkc.c: New file.
51897         * tests/uninorm/test-u16-nfkc.c: New file.
51898         * tests/uninorm/test-u32-nfkc.c: New file.
51899         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51900         * tests/uninorm/test-u32-nfkc-big.c: New file.
51901         * modules/uninorm/nfkc-tests: New file.
51902
51903         New module 'uninorm/nfkc'.
51904         * lib/uninorm/nfkc.c: New file.
51905         * modules/uninorm/nfkc: New file.
51906
51907         Tests for module 'uninorm/nfkd'.
51908         * tests/uninorm/test-nfkd.c: New file.
51909         * tests/uninorm/test-u8-nfkd.c: New file.
51910         * tests/uninorm/test-u16-nfkd.c: New file.
51911         * tests/uninorm/test-u32-nfkd.c: New file.
51912         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51913         * tests/uninorm/test-u32-nfkd-big.c: New file.
51914         * modules/uninorm/nfkd-tests: New file.
51915
51916         New module 'uninorm/nfkd'.
51917         * lib/uninorm/nfkd.c: New file.
51918         * modules/uninorm/nfkd: New file.
51919
51920         Tests for module 'uninorm/nfc'.
51921         * tests/uninorm/test-nfc.c: New file.
51922         * tests/uninorm/test-u8-nfc.c: New file.
51923         * tests/uninorm/test-u16-nfc.c: New file.
51924         * tests/uninorm/test-u32-nfc.c: New file.
51925         * tests/uninorm/test-u32-nfc-big.sh: New file.
51926         * tests/uninorm/test-u32-nfc-big.c: New file.
51927         * modules/uninorm/nfc-tests: New file.
51928
51929         New module 'uninorm/nfc'.
51930         * lib/uninorm/nfc.c: New file.
51931         * modules/uninorm/nfc: New file.
51932
51933         Tests for module 'uninorm/nfd'.
51934         * tests/uninorm/test-nfd.c: New file.
51935         * tests/uninorm/test-u8-nfd.c: New file.
51936         * tests/uninorm/test-u16-nfd.c: New file.
51937         * tests/uninorm/test-u32-nfd.c: New file.
51938         * tests/uninorm/test-u32-nfd-big.sh: New file.
51939         * tests/uninorm/test-u32-nfd-big.c: New file.
51940         * tests/uninorm/test-u32-normalize-big.h: New file.
51941         * tests/uninorm/test-u32-normalize-big.c: New file.
51942         * tests/uninorm/NormalizationTest.txt: New file, created from
51943         Unicode 5.1.0 NormalizationTest.txt.
51944         * modules/uninorm/nfd-tests: New file.
51945
51946         New module 'uninorm/nfd'.
51947         * lib/uninorm/nfd.c: New file.
51948         * modules/uninorm/nfd: New file.
51949
51950         New module 'uninorm/u32-normalize'.
51951         * lib/uninorm/u32-normalize.c: New file.
51952         * modules/uninorm/u32-normalize: New file.
51953
51954         New module 'uninorm/u16-normalize'.
51955         * lib/uninorm/u16-normalize.c: New file.
51956         * modules/uninorm/u16-normalize: New file.
51957
51958         New module 'uninorm/u8-normalize'.
51959         * lib/uninorm/u8-normalize.c: New file.
51960         * lib/uninorm/normalize-internal.h: New file.
51961         * lib/uninorm/u-normalize-internal.h: New file.
51962         * modules/uninorm/u8-normalize: New file.
51963
51964         New module 'uninorm/decompose-internal'.
51965         * lib/uninorm/decompose-internal.c: New file.
51966         * modules/uninorm/decompose-internal: New file.
51967
51968         Tests for module 'uninorm/composition'.
51969         * tests/uninorm/test-composition.c: New file.
51970         * modules/uninorm/composition-tests: New file.
51971
51972         New module 'uninorm/composition'.
51973         * lib/uninorm/composition.c: New file.
51974         * lib/uninorm/composition-table.gperf: New file, generated by
51975         gen-uni-tables.
51976         * modules/uninorm/composition: New file.
51977
51978         Tests for module 'uninorm/compat-decomposition'.
51979         * tests/uninorm/test-compat-decomposition.c: New file.
51980         * modules/uninorm/compat-decomposition-tests: New file.
51981
51982         New module 'uninorm/compat-decomposition'.
51983         * lib/uninorm/decompose-internal.h: New file.
51984         * lib/uninorm/compat-decomposition.c: New file.
51985         * modules/uninorm/compat-decomposition: New file.
51986
51987         Tests for module 'uninorm/canonical-decomposition'.
51988         * tests/uninorm/test-canonical-decomposition.c: New file.
51989         * modules/uninorm/canonical-decomposition-tests: New file.
51990
51991         New module 'uninorm/canonical-decomposition'.
51992         * lib/uninorm/canonical-decomposition.c: New file.
51993         * modules/uninorm/canonical-decomposition: New file.
51994
51995         Tests for module 'uninorm/decomposition'.
51996         * tests/uninorm/test-decomposition.c: New file.
51997         * modules/uninorm/decomposition-tests: New file.
51998
51999         New module 'uninorm/decomposition'.
52000         * lib/uninorm/decomposition.c: New file.
52001         * modules/uninorm/decomposition: New file.
52002
52003         New module 'uninorm/decomposition-table'.
52004         * lib/uninorm/decomposition-table.h: New file.
52005         * lib/uninorm/decomposition-table.c: New file.
52006         * lib/uninorm/decomposition-table1.h: New file, generated by
52007         gen-uni-tables.
52008         * lib/uninorm/decomposition-table2.h: New file, generated by
52009         gen-uni-tables.
52010         * modules/uninorm/decomposition-table: New file.
52011
52012         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52013         (UC_DECOMP_*): New enumeration items.
52014         (get_decomposition): New function.
52015         (struct decomp_table): New type.
52016         (output_decomposition, output_decomposition_tables): New functions.
52017         (unicode_composition_exclusions): New variable.
52018         (fill_composition_exclusions, debug_output_composition_tables): New
52019         functions.
52020         (main): Accept one more argument. Invoke fill_composition_exclusions.
52021         Output decomposition and composition tables.
52022
52023         New module 'uninorm/base'.
52024         * lib/uninorm.h: New file.
52025         * lib/unictype.h: Update comment.
52026         * modules/uninorm/base: New file.
52027
52028 2009-02-21  David Lutterkort  <lutter@redhat.com>
52029
52030         Tests for module 'safe-alloc'.
52031         * tests/test-safe-alloc.c: New file.
52032         * modules/safe-alloc-tests: New file.
52033
52034         New module 'safe-alloc'.
52035         * lib/safe-alloc.h: New file.
52036         * lib/safe-alloc.c: New file.
52037         * m4/safe-alloc.m4: New file.
52038         * modules/safe-alloc: New file.
52039         * doc/safe-alloc.texi: New file.
52040         * doc/gnulib.texi: Include it.
52041         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52042         safe-alloc.
52043
52044 2009-02-18  Bruno Haible  <bruno@clisp.org>
52045
52046         Fix link error on non-glibc systems.
52047         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52048         variable.
52049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52050
52051 2009-02-18  Jim Meyering  <meyering@redhat.com>
52052
52053         fts: avoid used-uninitialized error due to recent change
52054         * lib/fts.c (fts_read): Guard uses of the new member,
52055         parent->fts_n_dirs_remaining, since it's not relevant for
52056         the parent of a directory specified on the command-line.
52057
52058 2009-02-17  James Youngman  <jay@gnu.org>
52059             Bruno Haible  <bruno@clisp.org>
52060
52061         * m4/include_next.m4: Reformulate comment.
52062
52063 2009-02-16  Jim Meyering  <meyering@redhat.com>
52064
52065         fts: add #if guards so that the fts_lgpl module still builds
52066         * lib/fts.c: Guard just-added hash-table-using parts with
52067         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52068         Reported by Simon Josefsson.
52069
52070 2009-02-15  Bruno Haible  <bruno@clisp.org>
52071
52072         * modules/array-mergesort-tests: New file.
52073         * tests/test-array-mergesort.c: New file.
52074
52075         New module 'array-mergesort'.
52076         * modules/array-mergesort: New file.
52077         * lib/array-mergesort.h: New file.
52078
52079 2009-02-15  Bruno Haible  <bruno@clisp.org>
52080
52081         Fix 2009-02-07 commit.
52082         * lib/gen-uni-tables.c (output_predicate, output_category,
52083         output_combclass, output_bidi_category, output_decimal_digit,
52084         output_digit, output_numeric, output_mirror, output_scripts,
52085         output_ident_category, output_simple_mapping): Fix format directives.
52086         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52087
52088 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52089
52090         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52091         fixes are available from IBM.
52092
52093 2009-02-13  Jim Meyering  <meyering@redhat.com>
52094
52095         fts: arrange not to stat non-directories in more cases
52096         This makes GNU find (when it doesn't need to stat each file)
52097         *much* more efficient at traversing reiserfs file systems.
52098         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52099         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52100         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52101         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52102         (leaf_optimization_applies): New function.
52103         (LCO_hash, LCO_compare): New helper functions.
52104         (link_count_optimize_ok): New function.
52105         (fts_stat): Initialize new member (if dir).
52106         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52107         we've just stat'ed a directory.  Skip the stat call when possible.
52108         ---
52109         Note this AFS-related exchange:
52110         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52111         and note find's pioctl call in find/fstype.c.
52112         But that is necessary only if you want to enable the
52113         optimization for AFS, and for now, I don't.
52114
52115         fts: move a function definition "up" (no semantic change)
52116         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52117         "up" to precede upcoming use of a related function.
52118
52119 2009-02-11  Jim Meyering  <meyering@redhat.com>
52120
52121         fts: correct internal computation of nlinks (optimization-related)
52122         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52123         whether the current entry is a directory, so don't test it.
52124
52125 2009-02-10  Bruno Haible  <bruno@clisp.org>
52126
52127         Tests for module 'uniwbrk/ulc-wordbreaks'.
52128         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52129         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52130         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52131
52132         Tests for module 'uniwbrk/u32-wordbreaks'.
52133         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52134         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52135
52136         Tests for module 'uniwbrk/u16-wordbreaks'.
52137         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52138         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52139
52140         Tests for module 'uniwbrk/u8-wordbreaks'.
52141         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52142         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52143
52144 2009-02-10  Bruno Haible  <bruno@clisp.org>
52145
52146         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52147         property.
52148         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52149         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52150         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52151
52152 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52153
52154         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52155         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52156
52157 2009-02-10  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52160         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52161         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52162         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52163         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52164         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52165
52166 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52167
52168         * lib/sockets.h (gl_fd_to_handle): New function.
52169
52170         * tests/test-sockets.c: Call gl_fd_to_handle.
52171
52172 2009-02-09  Bruno Haible  <bruno@clisp.org>
52173
52174         * doc/havelib.texi: Document the conventions on bi-arch systems.
52175
52176 2009-02-08  Bruno Haible  <bruno@clisp.org>
52177
52178         Document the AC_LIB_LINKFLAGS macro.
52179         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52180         * doc/gnulib.texi: Include it.
52181
52182 2009-02-08  Bruno Haible  <bruno@clisp.org>
52183
52184         Fix wrong order of sections, compared to TOC.
52185         * doc/gnulib.texi: Include relocatable-maint.texi after the
52186         "Regular expressions" node, not before.
52187
52188 2009-02-08  Bruno Haible  <bruno@clisp.org>
52189
52190         Tests for module 'unicase/totitle'.
52191         * modules/unicase/totitle-tests: New file.
52192
52193         Tests for module 'unicase/tolower'.
52194         * modules/unicase/tolower-tests: New file.
52195
52196         Tests for module 'unicase/toupper'.
52197         * modules/unicase/toupper-tests: New file.
52198         * tests/unicase/test-mapping-part1.h: New file.
52199         * tests/unicase/test-mapping-part2.h: New file.
52200
52201         New module 'unicase/totitle'.
52202         * modules/unicase/totitle: New file.
52203         * lib/unicase/totitle.c: New file.
52204
52205         New module 'unicase/tolower'.
52206         * modules/unicase/tolower: New file.
52207         * lib/unicase/tolower.c: New file.
52208
52209         New module 'unicase/toupper'.
52210         * modules/unicase/toupper: New file.
52211         * lib/unicase/toupper.c: New file.
52212         * lib/unicase/simple-mapping.h: New file.
52213
52214         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52215         (mapping_table): New structure.
52216         (output_simple_mapping): New function.
52217         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52218         * modules/gen-uni-tables (Description): Update.
52219         * lib/unicase/toupper.h: New file, automatically generated by
52220         gen-uni-tables.
52221         * lib/unicase/tolower.h: New file, automatically generated by
52222         gen-uni-tables.
52223         * lib/unicase/totitle.h: New file, automatically generated by
52224         gen-uni-tables.
52225         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52226         gen-uni-tables.
52227         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52228         gen-uni-tables.
52229         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52230         gen-uni-tables.
52231
52232         New module 'unicase/base'.
52233         * modules/unicase/base: New file.
52234         * lib/unicase.h: New file.
52235
52236 2009-02-08  Bruno Haible  <bruno@clisp.org>
52237
52238         New module 'uniwbrk/ulc-wordbreaks'.
52239         * modules/uniwbrk/ulc-wordbreaks: New file.
52240         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52241
52242         New module 'uniwbrk/u32-wordbreaks'.
52243         * modules/uniwbrk/u32-wordbreaks: New file.
52244         * lib/uniwbrk/u32-wordbreaks.c: New file.
52245
52246         New module 'uniwbrk/u16-wordbreaks'.
52247         * modules/uniwbrk/u16-wordbreaks: New file.
52248         * lib/uniwbrk/u16-wordbreaks.c: New file.
52249
52250         New module 'uniwbrk/u8-wordbreaks'.
52251         * modules/uniwbrk/u8-wordbreaks: New file.
52252         * lib/uniwbrk/u8-wordbreaks.c: New file.
52253         * lib/uniwbrk/u-wordbreaks.h: New file.
52254
52255         New module 'uniwbrk/table'.
52256         * modules/uniwbrk/table: New file.
52257         * lib/uniwbrk/wbrktable.h: New file.
52258         * lib/uniwbrk/wbrktable.c: New file.
52259
52260         New module 'uniwbrk/wordbreak-property'.
52261         * modules/uniwbrk/wordbreak-property: New file.
52262         * lib/uniwbrk/wordbreak-property.c: New file.
52263
52264         * lib/gen-uni-tables.c (WBP_*): New enum items.
52265         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52266         (unicode_org_wbp): New variable.
52267         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52268         New functions.
52269         (wbp_table): New structure.
52270         (output_wbp, output_wbrk_tables): New functions.
52271         (main): Accept additional argument. Invoke fill_org_wbp,
52272         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52273         output_wbrk_tables.
52274         * modules/gen-uni-tables (Description): Update.
52275         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52276         gen-uni-tables.
52277
52278         New module 'uniwbrk/base'.
52279         * modules/uniwbrk/base: New file.
52280         * lib/uniwbrk.h: New file.
52281
52282 2009-02-08  Bruno Haible  <bruno@clisp.org>
52283
52284         Update to Unicode 5.1.0.
52285         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52286         U+2185..U+2188.
52287         (is_property_default_ignorable_code_point): Don't include characters
52288         of category Cc or Cs and not-a-characters.
52289         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52290         U+0D79, U+109E, U+109F, U+A60C.
52291         * lib/unictype/bidi_of.h: Regenerated.
52292         * lib/unictype/blocks.h: Regenerated.
52293         * lib/unictype/categ_C.h: Regenerated.
52294         * lib/unictype/categ_Cf.h: Regenerated.
52295         * lib/unictype/categ_Cn.h: Regenerated.
52296         * lib/unictype/categ_L.h: Regenerated.
52297         * lib/unictype/categ_Ll.h: Regenerated.
52298         * lib/unictype/categ_Lm.h: Regenerated.
52299         * lib/unictype/categ_Lo.h: Regenerated.
52300         * lib/unictype/categ_Lu.h: Regenerated.
52301         * lib/unictype/categ_M.h: Regenerated.
52302         * lib/unictype/categ_Mc.h: Regenerated.
52303         * lib/unictype/categ_Me.h: Regenerated.
52304         * lib/unictype/categ_Mn.h: Regenerated.
52305         * lib/unictype/categ_N.h: Regenerated.
52306         * lib/unictype/categ_Nd.h: Regenerated.
52307         * lib/unictype/categ_Nl.h: Regenerated.
52308         * lib/unictype/categ_No.h: Regenerated.
52309         * lib/unictype/categ_P.h: Regenerated.
52310         * lib/unictype/categ_Pd.h: Regenerated.
52311         * lib/unictype/categ_Pe.h: Regenerated.
52312         * lib/unictype/categ_Pf.h: Regenerated.
52313         * lib/unictype/categ_Pi.h: Regenerated.
52314         * lib/unictype/categ_Po.h: Regenerated.
52315         * lib/unictype/categ_Ps.h: Regenerated.
52316         * lib/unictype/categ_S.h: Regenerated.
52317         * lib/unictype/categ_Sk.h: Regenerated.
52318         * lib/unictype/categ_Sm.h: Regenerated.
52319         * lib/unictype/categ_So.h: Regenerated.
52320         * lib/unictype/categ_of.h: Regenerated.
52321         * lib/unictype/combining.h: Regenerated.
52322         * lib/unictype/ctype_alnum.h: Regenerated.
52323         * lib/unictype/ctype_alpha.h: Regenerated.
52324         * lib/unictype/ctype_graph.h: Regenerated.
52325         * lib/unictype/ctype_lower.h: Regenerated.
52326         * lib/unictype/ctype_print.h: Regenerated.
52327         * lib/unictype/ctype_punct.h: Regenerated.
52328         * lib/unictype/ctype_upper.h: Regenerated.
52329         * lib/unictype/decdigit.h: Regenerated.
52330         * lib/unictype/digit.h: Regenerated.
52331         * lib/unictype/mirror.h: Regenerated.
52332         * lib/unictype/numeric.h: Regenerated.
52333         * lib/unictype/pr_alphabetic.h: Regenerated.
52334         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52335         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52336         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52337         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52338         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52339         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52340         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52341         * lib/unictype/pr_combining.h: Regenerated.
52342         * lib/unictype/pr_dash.h: Regenerated.
52343         * lib/unictype/pr_decimal_digit.h: Regenerated.
52344         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52345         * lib/unictype/pr_deprecated.h: Regenerated.
52346         * lib/unictype/pr_diacritic.h: Regenerated.
52347         * lib/unictype/pr_extender.h: Regenerated.
52348         * lib/unictype/pr_format_control.h: Regenerated.
52349         * lib/unictype/pr_grapheme_base.h: Regenerated.
52350         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52351         * lib/unictype/pr_grapheme_link.h: Regenerated.
52352         * lib/unictype/pr_id_continue.h: Regenerated.
52353         * lib/unictype/pr_id_start.h: Regenerated.
52354         * lib/unictype/pr_ideographic.h: Regenerated.
52355         * lib/unictype/pr_ignorable_control.h: Regenerated.
52356         * lib/unictype/pr_lowercase.h: Regenerated.
52357         * lib/unictype/pr_math.h: Regenerated.
52358         * lib/unictype/pr_numeric.h: Regenerated.
52359         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52360         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52361         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52362         * lib/unictype/pr_other_id_continue.h: Regenerated.
52363         * lib/unictype/pr_other_lowercase.h: Regenerated.
52364         * lib/unictype/pr_other_math.h: Regenerated.
52365         * lib/unictype/pr_punctuation.h: Regenerated.
52366         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52367         * lib/unictype/pr_soft_dotted.h: Regenerated.
52368         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52369         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52370         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52371         * lib/unictype/pr_uppercase.h: Regenerated.
52372         * lib/unictype/pr_xid_continue.h: Regenerated.
52373         * lib/unictype/pr_xid_start.h: Regenerated.
52374         * lib/unictype/pr_zero_width.h: Regenerated.
52375         * lib/unictype/scripts.h: Regenerated.
52376         * lib/unictype/scripts_byname.gperf: Regenerated.
52377         * lib/unictype/sy_java_ident.h: Regenerated.
52378         * lib/unilbrk/lbrkprop1.h: Regenerated.
52379         * lib/unilbrk/lbrkprop2.h: Regenerated.
52380         * tests/unictype/test-categ_C.c: Regenerated.
52381         * tests/unictype/test-categ_Cf.c: Regenerated.
52382         * tests/unictype/test-categ_Cn.c: Regenerated.
52383         * tests/unictype/test-categ_L.c: Regenerated.
52384         * tests/unictype/test-categ_Ll.c: Regenerated.
52385         * tests/unictype/test-categ_Lm.c: Regenerated.
52386         * tests/unictype/test-categ_Lo.c: Regenerated.
52387         * tests/unictype/test-categ_Lu.c: Regenerated.
52388         * tests/unictype/test-categ_M.c: Regenerated.
52389         * tests/unictype/test-categ_Mc.c: Regenerated.
52390         * tests/unictype/test-categ_Me.c: Regenerated.
52391         * tests/unictype/test-categ_Mn.c: Regenerated.
52392         * tests/unictype/test-categ_N.c: Regenerated.
52393         * tests/unictype/test-categ_Nd.c: Regenerated.
52394         * tests/unictype/test-categ_Nl.c: Regenerated.
52395         * tests/unictype/test-categ_No.c: Regenerated.
52396         * tests/unictype/test-categ_P.c: Regenerated.
52397         * tests/unictype/test-categ_Pd.c: Regenerated.
52398         * tests/unictype/test-categ_Pe.c: Regenerated.
52399         * tests/unictype/test-categ_Pf.c: Regenerated.
52400         * tests/unictype/test-categ_Pi.c: Regenerated.
52401         * tests/unictype/test-categ_Po.c: Regenerated.
52402         * tests/unictype/test-categ_Ps.c: Regenerated.
52403         * tests/unictype/test-categ_S.c: Regenerated.
52404         * tests/unictype/test-categ_Sk.c: Regenerated.
52405         * tests/unictype/test-categ_Sm.c: Regenerated.
52406         * tests/unictype/test-categ_So.c: Regenerated.
52407         * tests/unictype/test-ctype_alnum.c: Regenerated.
52408         * tests/unictype/test-ctype_alpha.c: Regenerated.
52409         * tests/unictype/test-ctype_graph.c: Regenerated.
52410         * tests/unictype/test-ctype_lower.c: Regenerated.
52411         * tests/unictype/test-ctype_print.c: Regenerated.
52412         * tests/unictype/test-ctype_punct.c: Regenerated.
52413         * tests/unictype/test-ctype_upper.c: Regenerated.
52414         * tests/unictype/test-decdigit.h: Regenerated.
52415         * tests/unictype/test-digit.h: Regenerated.
52416         * tests/unictype/test-numeric.h: Regenerated.
52417         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52418         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52419         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52420         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52421         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52422         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52423         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52424         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52425         * tests/unictype/test-pr_combining.c: Regenerated.
52426         * tests/unictype/test-pr_dash.c: Regenerated.
52427         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52428         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52429         * tests/unictype/test-pr_deprecated.c: Regenerated.
52430         * tests/unictype/test-pr_diacritic.c: Regenerated.
52431         * tests/unictype/test-pr_extender.c: Regenerated.
52432         * tests/unictype/test-pr_format_control.c: Regenerated.
52433         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52434         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52435         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52436         * tests/unictype/test-pr_id_continue.c: Regenerated.
52437         * tests/unictype/test-pr_id_start.c: Regenerated.
52438         * tests/unictype/test-pr_ideographic.c: Regenerated.
52439         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52440         * tests/unictype/test-pr_lowercase.c: Regenerated.
52441         * tests/unictype/test-pr_math.c: Regenerated.
52442         * tests/unictype/test-pr_numeric.c: Regenerated.
52443         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52444         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52445         Regenerated.
52446         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52447         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52448         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52449         * tests/unictype/test-pr_other_math.c: Regenerated.
52450         * tests/unictype/test-pr_punctuation.c: Regenerated.
52451         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52452         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52453         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52454         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52455         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52456         * tests/unictype/test-pr_uppercase.c: Regenerated.
52457         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52458         * tests/unictype/test-pr_xid_start.c: Regenerated.
52459         * tests/unictype/test-pr_zero_width.c: Regenerated.
52460
52461         Update to Unicode 5.1.0.
52462         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52463         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52464         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52465         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52466         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52467         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52468         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52469         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52470         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52471         (nonspacing_table_ind): Update.
52472         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52473
52474         Update to Unicode 5.1.0.
52475         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52476         code transform.
52477         * lib/uniname/uniname.c (unicode_character_name,
52478         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52479         * lib/uniname/uninames.h: Regenerated.
52480         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52481
52482 2009-02-07  Bruno Haible  <bruno@clisp.org>
52483
52484         Merge gen-ctype and gen-lbrk into a single program.
52485         * lib/gen-uni-tables.c: New file, incorporating
52486         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52487         Add directory prefixes to the names of the generated files.
52488         * lib/unictype/gen-ctype.c: Remove file.
52489         * lib/unilbrk/gen-lbrk.c: Remove file.
52490         * modules/gen-uni-tables: New file.
52491         * modules/unictype/gen-ctype: Remove file.
52492         * modules/unilbrk/gen-lbrk: Remove file.
52493
52494 2009-02-07  Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52497
52498         New module 'unistr/u32-strcoll'.
52499         * modules/unistr/u32-strcoll: New file.
52500         * lib/unistr/u32-strcoll.c: New file.
52501
52502         New module 'unistr/u16-strcoll'.
52503         * modules/unistr/u16-strcoll: New file.
52504         * lib/unistr/u16-strcoll.c: New file.
52505
52506         New module 'unistr/u8-strcoll'.
52507         * modules/unistr/u8-strcoll: New file.
52508         * lib/unistr/u8-strcoll.c: New file.
52509         * lib/unistr/u-strcoll.h: New file.
52510
52511 2009-02-07  Bruno Haible  <bruno@clisp.org>
52512
52513         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52514         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52515         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52516         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52517         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52518         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52519
52520 2009-02-07  Bruno Haible  <bruno@clisp.org>
52521
52522         Make 64-bit clean.
52523         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52524         output_combclass, output_bidi_category, output_decimal_digit,
52525         output_digit, output_numeric, output_mirror, output_scripts,
52526         output_ident_category): Use proper width specifier in format strings.
52527
52528 2009-02-07  Bruno Haible  <bruno@clisp.org>
52529
52530         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52531         failure behaviour.
52532
52533 2009-02-07  Jim Meyering  <meyering@redhat.com>
52534
52535         regex: avoid compilation failure with upcoming gcc-4.4
52536         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52537         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52538         "... error: integer overflow in preprocessor expression".
52539
52540 2009-02-05  Ben Pfaff  <blp@gnu.org>
52541
52542         Fix link errors on Windows when close module is used.
52543         * modules/close: Add $(LIB_CLOSE) to Link section.
52544         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52545         $(LIB_CLOSE) on Windows.
52546
52547 2009-02-05  Jim Meyering  <meyering@redhat.com>
52548
52549         still avoid unused-parameter warnings, but do it cleanly
52550         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52551         (get_fs_usage): Cast to void instead.
52552         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52553         (dev_from_mount_options, read_file_system_list): Cast to void.
52554         Prompted by Bruno Haible.
52555
52556 2009-02-04  Jim Meyering  <meyering@redhat.com>
52557
52558         fsusage.c: correct copyright year
52559         * lib/fsusage.c: Reflect year in which the change is pushed into
52560
52561         avoid misc. warnings
52562         * lib/fsusage.c (UNUSED_PARAM): Define.
52563         (get_fs_usage): Mark parameter "disk" as unused.
52564         * lib/getugroups.c (getgrent): Use "void" in prototype.
52565         * lib/mountlist.c: Mark unused parameters.
52566         (read_file_system_list): Declare a local with "const".
52567         * lib/nanosleep.c (getnow): Declare static.
52568         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52569
52570         dirfd: set errno upon failure
52571         * lib/dirfd.c: Include <errno.h>.
52572         Set errno to ENOTSUP when returning -1.
52573         * modules/dirfd (Depends-on): Add errno.
52574         Suggested by John Kodis <kodis@comcast.net>.
52575
52576 2009-02-01  Bruno Haible  <bruno@clisp.org>
52577
52578         Don't assume sizeof (long) >= sizeof (void *).
52579         * lib/memcmp.c: Include stdint.h.
52580         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52581         srcp2 to 'const byte *'.
52582         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52583         types to uintptr_t.
52584         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52585         * modules/memcmp (Depends-on): Add stdint.
52586         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52587
52588 2009-01-30  Eric Blake  <ebb9@byu.net>
52589
52590         fix more require-before-expand issues
52591         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52592         expand, AC_PROG_AWK.
52593         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52594
52595 2009-01-28  Eric Blake  <ebb9@byu.net>
52596
52597         version-etc: use consistent URL formatting
52598         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52599         Improve formatting.  Use fputs for string without %.
52600
52601 2009-01-28  Jim Meyering  <meyering@redhat.com>
52602
52603         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52604         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52605         "underquoted definition of NAME" from autoconf-2.59.
52606
52607 2009-01-28  Bruno Haible  <bruno@clisp.org>
52608
52609         * doc/gnulib.texi: Add "Obsolete modules" to index.
52610
52611 2009-01-28  Jim Meyering  <meyering@redhat.com>
52612
52613         useless-if-before-free: recognize more variants
52614         * build-aux/useless-if-before-free: Also recognize e.g.,
52615         if (NULL != p) free (p);
52616
52617 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52618
52619         test-getaddrinfo: skip (don't fail) this test when there's no network
52620         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52621         on the presumption that it means you lack network access.
52622
52623 2009-01-26  Jim Meyering  <meyering@redhat.com>
52624
52625         fflush: avoid warnings on modern systems
52626         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52627         pos and result, into scopes where they're used.
52628
52629 2009-01-26  Eric Blake  <ebb9@byu.net>
52630
52631         Silence warning reintroduced by recent extensions patch.
52632         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52633         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52634         autoconf.
52635
52636         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52637         * m4/00gnulib.m4: New file.
52638         * gnulib-tool (func_get_filelist): Always use it.
52639         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52640         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52641
52642 2009-01-25  Bruno Haible  <bruno@clisp.org>
52643
52644         Make test-quotearg work on MacOS X and AIX.
52645         * tests/test-quotearg.sh: New file.
52646         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52647         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52648         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52649         include <libintl.h>.
52650         (fake_locale): Remove variable.
52651         (gettext, dgettext, dcgettext): Remove functions.
52652         (main): Instead of setting a fake locale, set a real locale. Call
52653         textdomain and bindtextdomain.
52654         * modules/quotearg-tests (Files): Add the new files.
52655         (Depends-on): Add gettext, setenv, unsetenv.
52656         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52657         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52658         Augment TESTS_ENVIRONMENT.
52659
52660 2009-01-25  Bruno Haible  <bruno@clisp.org>
52661
52662         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52663         fr_FR.ISO8859-1 locale on MacOS X.
52664         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52665         ja_JP.eucJP locale on MacOS X.
52666         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52667         zh_CN.GB18030 locale on MacOS X.
52668
52669 2009-01-25  Bruno Haible  <bruno@clisp.org>
52670
52671         Avoid link errors on MacOS X 10.3.
52672         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52673         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52674
52675 2009-01-25  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52678         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52679         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52680         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52681         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52682         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52683         posix_spawnattr_init, posix_spawnattr_setsigmask,
52684         posix_spawnattr_setflags, posix_spawnattr_destroy.
52685
52686         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52687         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52688         * modules/execute (Files): Remove m4/posix_spawn.m4.
52689         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52690         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52691         posix_spawnattr_init, posix_spawnattr_setsigmask,
52692         posix_spawnattr_setflags, posix_spawnattr_destroy.
52693
52694 2009-01-25  Bruno Haible  <bruno@clisp.org>
52695
52696         * lib/glthread/threadlib.c: Include <stdlib.h>.
52697
52698 2009-01-25  Bruno Haible  <bruno@clisp.org>
52699
52700         * lib/glthread/threadlib.c (dummy): New declaration.
52701
52702 2009-01-25  Bruno Haible  <bruno@clisp.org>
52703
52704         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52705         multibyte characters also for the GB18030 encoding. Don't crash when
52706         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52707
52708 2009-01-25  Bruno Haible  <bruno@clisp.org>
52709
52710         Avoid redefining 'struct random_data' on OSF/1 5.1.
52711         * lib/stdlib.in.h: Include <random.h> if it exists.
52712         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52713         HAVE_RANDOM_H. Include <random.h> when testing whether
52714         'struct random_data' exists.
52715         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52716
52717 2009-01-25  Bruno Haible  <bruno@clisp.org>
52718
52719         Don't install charset.alias on MacOS X >= 10.3.
52720         * lib/localcharset.c (DARWIN7): New macro.
52721         (get_charset_aliases): Hardcode the result for Darwin7.
52722         * modules/localcharset (install-exec-local): Don't install
52723         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52724
52725 2009-01-25  Bruno Haible  <bruno@clisp.org>
52726
52727         Don't install charset.alias on mingw and Cygwin.
52728         * modules/localcharset (install-exec-local): Don't install
52729         charset.alias on mingw and Cygwin, if the file does not yet exist.
52730         The result for these platforms is hardcoded in localcharset.c.
52731
52732 2009-01-25  Bruno Haible  <bruno@clisp.org>
52733
52734         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52736         before requiring AC_USE_SYSTEM_EXTENSIONS.
52737
52738 2009-01-25  Jim Meyering  <meyering@redhat.com>
52739
52740         c-strtod: avoid warnings
52741         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52742         "assignment discards qualifiers from pointer target type" warnings.
52743
52744 2009-01-24  Bruno Haible  <bruno@clisp.org>
52745
52746         Add support for non-UTF-8 locales on MacOS X.
52747         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52748         canonical encodings. For Darwin 7 and newer, don't map traditional
52749         encodings to UTF-8.
52750         Reported by Vincent Lefevre <vincent@vinc17.org>
52751         at <http://savannah.gnu.org/bugs/?25235>.
52752
52753 2009-01-24  Bruno Haible  <bruno@clisp.org>
52754
52755         * doc/gnulib.texi (Obsolete modules): New section.
52756         Reported by Mike Frysinger <vapier@gentoo.org>.
52757
52758 2009-01-24  Bruno Haible  <bruno@clisp.org>
52759
52760         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52761         (%.dvi): New rule.
52762
52763 2009-01-24  Bruno Haible  <bruno@clisp.org>
52764
52765         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52766         Reported by Eric Blake.
52767
52768 2009-01-24  Bruno Haible  <bruno@clisp.org>
52769
52770         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52771         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52772         Reported by Gary V. Vaughan <gary@gnu.org>.
52773
52774 2009-01-24  Bruno Haible  <bruno@clisp.org>
52775
52776         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52777
52778 2009-01-23  Bruno Haible  <bruno@clisp.org>
52779
52780         Make c-strtod, c-strtold usable in libraries.
52781         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52782         (C_STRTOD): Call strdup instead of xstrdup.
52783         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52784         * modules/c-strtold (Depends-on): Likewise.
52785         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52786         * NEWS: Mention the change.
52787         Reported by Michael Gold <mgold@ncf.ca>.
52788
52789 2009-01-23  Jim Meyering  <meyering@redhat.com>
52790
52791         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52792         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52793         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52794
52795 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52796
52797         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52798         GNU CoreUtils.
52799         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52800         * modules/version-etc (Description): Update.
52801
52802 2009-01-22  Bruno Haible  <bruno@clisp.org>
52803
52804         Cache the C locale object.
52805         * lib/c-strtod.c (c_locale_cache): New variable.
52806         (c_locale): New function.
52807         (C_STRTOD): Use it, and don't call freelocale.
52808         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52809         Suggested by Paolo Bonzini.
52810
52811 2009-01-21  Bruno Haible  <bruno@clisp.org>
52812
52813         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52814         conditions other than overflow.
52815
52816 2009-01-21  Bruno Haible  <bruno@clisp.org>
52817
52818         * lib/c-strtod.c: Include errno.h.
52819         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52820         value from STRTOD_L and STRTOD.
52821
52822 2009-01-21  Bruno Haible  <bruno@clisp.org>
52823         and Jim Meyering  <meyering@redhat.com>
52824
52825         nanosleep: skip configure test (fail it) for apple universal builds
52826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52827         universal builds, assume that nanosleep does not work.
52828         * modules/nanosleep (Depends-on): Add multiarch.
52829
52830         mktime: skip configure test (fail it) for apple universal builds
52831         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52832         universal builds, assume that mktime does not work.
52833         * modules/mktime (Depends-on): Add multiarch.
52834
52835 2009-01-21  Eric Blake  <ebb9@byu.net>
52836
52837         multiarch: avoid expand-before-require warning
52838         * modules/multiarch (configure.ac): Require, rather than expand,
52839         gl_MULTIARCH.
52840         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52841         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52842         enforce that all clients require it.  Partial reversion of
52843         2008-12-29 patch.
52844
52845         error: avoid expand-before-require warning
52846         * modules/errno (configure.ac): Require, rather than expand,
52847         gl_HEADER_ERRNO_H.
52848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52849         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52850         enforce that all clients require it.
52851
52852         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52853         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52854         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52855         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52856
52857 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52858
52859         Revert:
52860         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52861
52862         regex: do not depend on obsolete modules.
52863         * modules/regex: Remove memcmp and memmove.
52864
52865 2009-01-20  Bruno Haible  <bruno@clisp.org>
52866
52867         Make the 'link' module link on Windows NT 4.
52868         * lib/link.c (_WIN32_WINNT): Don't define.
52869         (CreateHardLinkFuncType): New type.
52870         (CreateHardLinkFunc, initialized): New variables.
52871         (initialize): New function.
52872         (link): Invoke CreateHardLink indirectly through the function pointer.
52873
52874 2009-01-20  Bruno Haible  <bruno@clisp.org>
52875
52876         Fix compilation failure on mingw.
52877         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52878
52879 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52880
52881         * doc/c-strtod.texi: Mention a couple of restrictions.
52882
52883 2009-01-20  Jim Meyering  <meyering@redhat.com>
52884
52885         gettimeofday: move more declarations out of functions
52886         * lib/gettimeofday.c: Move extern declarations of tzset and
52887         gmtime out of containing functions.  Prompted by Bruno Haible.
52888
52889 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52890
52891         regex: do not depend on obsolete modules.
52892         * modules/regex: Remove memcmp and memmove.
52893
52894 2009-01-19  Bruno Haible  <bruno@clisp.org>
52895
52896         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52897         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52898         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52899         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52900         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52901
52902 2009-01-19  Bruno Haible  <bruno@clisp.org>
52903
52904         * tests/test-link.c: Include <errno.h>.
52905         (main): Exit with code 77 when a hard link cannot be created due to
52906         the file system.
52907         * tests/test-link.sh: Skip test when a hard link cannot be created due
52908         to the file system.
52909         Suggested by Eric Blake.
52910
52911 2009-01-19  Martin Lambers  <marlam@marlam.de>
52912
52913         * modules/link-tests: New file.
52914         * tests/test-link.sh: New file.
52915         * tests/test-link.c: New file.
52916
52917 2009-01-19  Eric Blake  <ebb9@byu.net>
52918
52919         doc: mention another function added in cygwin 1.7.0
52920         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52921         Another new function in cygwin 1.7.
52922
52923 2009-01-19  Bruno Haible  <bruno@clisp.org>
52924
52925         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52926         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52927         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52928         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52929         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52930         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52931         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52932         * m4/md4.m4 (gl_MD4): Likewise.
52933         * m4/md5.m4 (gl_MD5): Likewise.
52934         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52935         * m4/sha1.m4 (gl_SHA1): Likewise.
52936         * m4/sha256.m4 (gl_SHA256): Likewise.
52937         * m4/sha512.m4 (gl_SHA512): Likewise.
52938
52939 2009-01-19  Bruno Haible  <bruno@clisp.org>
52940
52941         * modules/uniname/uniname-tests (Depends-on): Add progname.
52942         * tests/uniname/test-uninames.c: Include progname.h.
52943         (main): Call set_program_name.
52944
52945         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52946         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52947         (main): Call set_program_name.
52948
52949         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52950         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52951         (main): Call set_program_name.
52952
52953         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52954         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52955         (main): Call set_program_name.
52956
52957         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52958         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52959         (main): Call set_program_name.
52960
52961         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52962         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52963         (main): Call set_program_name.
52964
52965         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52966         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52967         (main): Call set_program_name.
52968
52969         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52970         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52971         (main): Call set_program_name.
52972
52973         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52974         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52975         (main): Call set_program_name.
52976
52977 2009-01-19  Eric Blake  <ebb9@byu.net>
52978
52979         test-unistd: test previous patch
52980         * tests/test-unistd.c: Test *_FILENO macros.
52981
52982         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52983         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52984         Guarantee a definition.
52985         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52986         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52987         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52988         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52989         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52990         Likewise.
52991         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52992         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52993         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52994         Likewise.
52995         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52996         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52997         (STDERR_FILENO): Likewise.
52998         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52999         (STDERR_FILENO): Likewise.
53000         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53001         (STDERR_FILENO): Likewise.
53002         Reported by Elbert Pol.
53003
53004 2009-01-19  Eric Blake  <ebb9@byu.net>
53005
53006         doc: mention more functions added in cygwin 1.7.0
53007         * doc/posix-functions/abort.texi (abort): Update wording related
53008         to cygwin.
53009         * doc/posix-functions/daylight.texi (daylight): Likewise.
53010         * doc/posix-functions/optarg.texi (optarg): Likewise.
53011         * doc/posix-functions/optarg.texi (opterr): Likewise.
53012         * doc/posix-functions/optarg.texi (optind): Likewise.
53013         * doc/posix-functions/optarg.texi (optopt): Likewise.
53014         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53015         worked in 1.5.x, and was withdrawn in 1.7.
53016         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53017         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53018         cygwin versions.
53019         * doc/posix-functions/perror.texi (perror): Likewise.
53020         * doc/posix-functions/printf.texi (printf): Likewise.
53021         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53022         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53023         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53024         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53025         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53026         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53027         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53028         Likewise.
53029         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53030         Likewise.
53031         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53032         this function.
53033         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53034         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53035         Likewise.
53036         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53037         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53038         * doc/posix-functions/confstr.texi (confstr): Likewise.
53039         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53040         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53041         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53042         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53043         * doc/posix-functions/fputws.texi (fputws): Likewise.
53044         * doc/posix-functions/fwide.texi (fwide): Likewise.
53045         * doc/posix-functions/getwc.texi (getwc): Likewise.
53046         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53047         * doc/posix-functions/putwc.texi (putwc): Likewise.
53048         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53049         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53050         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53051         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53052         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53053         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53054         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53055         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53056         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53057         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53058         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53059
53060 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53061
53062         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53063         * lib/ioctl.c: Include <sys/ioctl.h>.
53064
53065 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53066
53067         * modules/getdate-tests (Depends-on): Add progname.
53068         * tests/test-getdate.c: Use progname module, to avoid link errors
53069         on non-glibc systems.
53070
53071 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53072
53073         * modules/filenamecat-tests (Depends-on): Add progname.
53074         * modules/fstrcmp-tests (Depends-on): Likewise.
53075
53076         * tests/test-filenamecat.c: Use progname module, to avoid link
53077         errors on non-glibc systems.
53078         * tests/test-fstrcmp.c: Likewise.
53079
53080 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53081
53082         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53083         * lib/gettimeofday.c: Move extern declaration out of function.
53084
53085 2009-01-18  Bruno Haible  <bruno@clisp.org>
53086
53087         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53088         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53089         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53090
53091 2009-01-18  Bruno Haible  <bruno@clisp.org>
53092
53093         * lib/strftime.c (MEMPCPY): Remove unused macro.
53094         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53095
53096 2009-01-18  Martin Lambers  <marlam@marlam.de>
53097
53098         New module 'link'.
53099         * lib/unistd.in.h (link): New declaration.
53100         * lib/link.c: New file.
53101         * m4/link.m4: New file.
53102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53103         HAVE_LINK.
53104         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53105         * modules/link: New file.
53106         * doc/posix-functions/link.texi: Mention the new module.
53107
53108 2009-01-18  Bruno Haible  <bruno@clisp.org>
53109
53110         * tests/test-avltree_list.c (main): Call set_program_name.
53111         * tests/test-avltree_oset.c (main): Likewise.
53112         * tests/test-obstack-printf.c: Include progname.h.
53113         (main): Call set_program_name.
53114         * tests/test-quotearg.c: Include progname.h.
53115         (main): Call set_program_name.
53116         * tests/test-xmemdup0.c: Include progname.h.
53117         (main): Call set_program_name.
53118
53119 2009-01-18  Bruno Haible  <bruno@clisp.org>
53120
53121         New module 'alphasort'.
53122         * lib/dirent.in.h (alphasort): New declaration.
53123         * lib/alphasort.c: New file, from glibc with modifications.
53124         * m4/alphasort.m4: New file.
53125         * modules/alphasort: New file.
53126         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53127         HAVE_ALPHASORT.
53128         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53129         HAVE_ALPHASORT.
53130         * doc/posix-functions/alphasort.texi: Mention the new module and the
53131         portability problems.
53132
53133 2009-01-18  Bruno Haible  <bruno@clisp.org>
53134
53135         New module 'scandir'.
53136         * lib/dirent.in.h (scandir): New declaration.
53137         * lib/scandir.c: New file, from glibc with modifications.
53138         * m4/scandir.m4: New file.
53139         * modules/scandir: New file.
53140         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53141         HAVE_SCANDIR.
53142         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53143         HAVE_SCANDIR.
53144         * doc/posix-functions/scandir.texi: Mention the new module and the
53145         portability problems.
53146
53147 2009-01-17  Bruno Haible  <bruno@clisp.org>
53148
53149         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53150         Update documentation.
53151         (func_remove_suffix): Escape all dots in the suffix. Update
53152         documentation.
53153         (func_filter_filelist): Update documentation.
53154         Reported by Ralf Wildenhues.
53155
53156 2009-01-17  Bruno Haible  <bruno@clisp.org>
53157
53158         * modules/dprintf-posix-tests: New file.
53159         * tests/test-dprintf-posix.sh: New file.
53160         * tests/test-dprintf-posix.c: New file.
53161
53162         New modules 'dprintf', 'dprintf-posix'.
53163         * lib/stdio.in.h (dprintf): New declaration.
53164         * lib/dprintf.c: New file.
53165         * m4/dprintf.m4: New file.
53166         * m4/dprintf-posix.m4: New file.
53167         * modules/dprintf: New file.
53168         * modules/dprintf-posix: New file.
53169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53170         HAVE_DPRINTF, REPLACE_DPRINTF.
53171         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53172         HAVE_DPRINTF, REPLACE_DPRINTF.
53173         * doc/posix-functions/dprintf.texi: Mention the new modules.
53174
53175 2009-01-17  Bruno Haible  <bruno@clisp.org>
53176
53177         * modules/vdprintf-posix-tests: New file.
53178         * tests/test-vdprintf-posix.sh: New file.
53179         * tests/test-vdprintf-posix.c: New file.
53180
53181         New modules 'vdprintf', 'vdprintf-posix'.
53182         * lib/stdio.in.h (vdprintf): New declaration.
53183         * lib/vdprintf.c: New file.
53184         * m4/vdprintf.m4: New file.
53185         * m4/vdprintf-posix.m4: New file.
53186         * modules/vdprintf: New file.
53187         * modules/vdprintf-posix: New file.
53188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53189         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53190         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53191         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53192         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53193
53194 2009-01-17  Bruno Haible  <bruno@clisp.org>
53195
53196         Fix replacement of fopen on mingw.
53197         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53198         mingw.
53199
53200 2009-01-17  Bruno Haible  <bruno@clisp.org>
53201
53202         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53203         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53204
53205 2009-01-17  Bruno Haible  <bruno@clisp.org>
53206
53207         Avoid test-fflush2.sh failure on mingw.
53208         * tests/test-fflush2.c: Include binary-io.h.
53209         (main): Put standard input into binary mode.
53210         * modules/fflush-tests (Depends-on): Add binary-io.
53211
53212 2009-01-17  Bruno Haible  <bruno@clisp.org>
53213
53214         * lib/wchar.in.h: In another particular situation, include only the
53215         system's <wchar.h> file.
53216         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53217         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53218         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53219
53220 2009-01-17  Bruno Haible  <bruno@clisp.org>
53221
53222         Support for stripping executables in --enable-relocatable.
53223         * build-aux/install-reloc: Expect one more argument, or an environment
53224         variable RELOC_STRIP_PROG. If set, strip the destination program and
53225         its wrapper.
53226         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53227         RELOC_STRIP_PROG.
53228         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53229         to set RELOCATABLE_STRIP.
53230         * NEWS: Mention the new Makefile requirement.
53231
53232 2009-01-17  Bruno Haible  <bruno@clisp.org>
53233
53234         * build-aux/install-reloc: Remove debugging information left over by
53235         C compiler on MacOS X.
53236
53237 2009-01-17  Bruno Haible  <bruno@clisp.org>
53238
53239         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53240         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53241         _NSGetExecutablePath.
53242
53243 2009-01-16  Jim Meyering  <meyering@redhat.com>
53244
53245         strerror: avoid warnings about discarding "const"
53246         * lib/strerror.c (rpl_strerror): Instead of returning a const
53247         string from each and every "case", use a variable, and add a single
53248         cast after the switch.
53249
53250 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53251
53252         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53253
53254 2009-01-16  Bruno Haible  <bruno@clisp.org>
53255
53256         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53257         array initializer syntax that also works in C++ mode.
53258         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53259
53260 2009-01-16  Jim Meyering  <meyering@redhat.com>
53261
53262         poll: suppress a warning
53263         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53264         to ignore "...unsigned expression < 0 is always false" warnings.
53265
53266 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53267
53268         poll: remove declarations of unused variables
53269         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53270         sockbuf and optlen.
53271
53272 2009-01-15  Bruno Haible  <bruno@clisp.org>
53273
53274         Make fflush-after-ungetc POSIX compliant on BSD systems.
53275         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53276         (clear_ungetc_buffer): Implement also for other systems.
53277         (rpl_fflush): On glibc systems, invoke
53278         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53279         clear_ungetc_buffer after fetching the stream's position, not before.
53280
53281 2009-01-15  Bruno Haible  <bruno@clisp.org>
53282
53283         Make fflush-after-ungetc POSIX compliant on glibc systems.
53284         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53285         after ungetc.
53286         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53287         (rpl_fflush): On glibc systems, simply call the system's fflush
53288         function after clearing the ungetc buffer.
53289         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53290         Instead, lseek only to the end of file, then use the system's fseeko
53291         for the rest. On glibc systems, reset the EOF indicator bit.
53292
53293 2009-01-15  Jim Meyering  <meyering@redhat.com>
53294
53295         openmp.m4: revert quote-adding change, for portability to older autoconf
53296         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53297         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53298         Simon Josefsson noticed the problem when using autoconf-2.61.
53299
53300 2009-01-15  Bruno Haible  <bruno@clisp.org>
53301
53302         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53303         * tests/test-fflush2.c (ASSERT): Always fail.
53304         (main): Add two tests for fflush() after ungetc(), taking into account
53305         the Austin Group's clarification.
53306         Suggested by Eric Blake.
53307
53308 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53309
53310         mktime.m4: remove K&R-style function prototypes
53311         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53312         for the Sun C++ compiler.
53313
53314 2009-01-14  Bruno Haible  <bruno@clisp.org>
53315
53316         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53317         while including <wchar.h>.
53318         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53319         the system's <wchar.h> file.
53320         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53321
53322 2009-01-14  Bruno Haible  <bruno@clisp.org>
53323
53324         * m4/csharp.m4: Don't mention gettext on the serial number line.
53325         * m4/csharpexec.m4: Likewise.
53326         * m4/eaccess.m4: Likewise.
53327         * m4/javaexec.m4: Likewise.
53328         * m4/sig_atomic_t.m4: Likewise.
53329         * m4/tmpdir.m4: Likewise.
53330         * m4/intldir.m4: Bump gettext version.
53331         * m4/lib-ld.m4: Likewise.
53332
53333 2009-01-14  Bruno Haible  <bruno@clisp.org>
53334
53335         * lib/progname.c (set_program_name): Add more comments.
53336         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53337
53338 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53339
53340         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53341         were sys/stat.h does not define it.
53342
53343 2009-01-14  Jim Meyering  <meyering@redhat.com>
53344
53345         many *.m4 files: improve m4 quoting
53346         99% of this change was performed by running the following commands:
53347         git ls-files | grep '\.m4$' | xargs perl -pi \
53348           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53349           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53350           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53351           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53352         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53353         The remainder were to add Copyright dates, increment serial numbers,
53354         undo some changes in comments, exclude m4/intl.m4, and add quotes
53355         around the "1" in ",1" where the unusual spacing prohibited the
53356         above regexps from doing the job.  For more details, see
53357         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53358         * m4/acl.m4: Modified.
53359         * m4/afs.m4: Likewise.
53360         * m4/alloca.m4: Likewise.
53361         * m4/argp.m4: Likewise.
53362         * m4/argz.m4: Likewise.
53363         * m4/atexit.m4: Likewise.
53364         * m4/bison-i18n.m4: Likewise.
53365         * m4/bison.m4: Likewise.
53366         * m4/byteswap.m4: Likewise.
53367         * m4/c-stack.m4: Likewise.
53368         * m4/c-strtod.m4: Likewise.
53369         * m4/calloc.m4: Likewise.
53370         * m4/canonicalize-lgpl.m4: Likewise.
53371         * m4/chown.m4: Likewise.
53372         * m4/clock_time.m4: Likewise.
53373         * m4/codeset.m4: Likewise.
53374         * m4/copy-file.m4: Likewise.
53375         * m4/csharp.m4: Likewise.
53376         * m4/csharpcomp.m4: Likewise.
53377         * m4/csharpexec.m4: Likewise.
53378         * m4/d-ino.m4: Likewise.
53379         * m4/d-type.m4: Likewise.
53380         * m4/dirfd.m4: Likewise.
53381         * m4/double-slash-root.m4: Likewise.
53382         * m4/eaccess.m4: Likewise.
53383         * m4/eealloc.m4: Likewise.
53384         * m4/environ.m4: Likewise.
53385         * m4/errno_h.m4: Likewise.
53386         * m4/euidaccess.m4: Likewise.
53387         * m4/execute.m4: Likewise.
53388         * m4/fatal-signal.m4: Likewise.
53389         * m4/fchdir.m4: Likewise.
53390         * m4/fcntl_h.m4: Likewise.
53391         * m4/fileblocks.m4: Likewise.
53392         * m4/filenamecat.m4: Likewise.
53393         * m4/findprog.m4: Likewise.
53394         * m4/flexmember.m4: Likewise.
53395         * m4/fnmatch.m4: Likewise.
53396         * m4/fopen.m4: Likewise.
53397         * m4/fpending.m4: Likewise.
53398         * m4/fprintf-posix.m4: Likewise.
53399         * m4/free.m4: Likewise.
53400         * m4/frexp.m4: Likewise.
53401         * m4/frexpl.m4: Likewise.
53402         * m4/fsusage.m4: Likewise.
53403         * m4/ftruncate.m4: Likewise.
53404         * m4/gc-camellia.m4: Likewise.
53405         * m4/gc-random.m4: Likewise.
53406         * m4/gc.m4: Likewise.
53407         * m4/getaddrinfo.m4: Likewise.
53408         * m4/getcwd-abort-bug.m4: Likewise.
53409         * m4/getcwd-path-max.m4: Likewise.
53410         * m4/getdate.m4: Likewise.
53411         * m4/getdomainname.m4: Likewise.
53412         * m4/getgroups.m4: Likewise.
53413         * m4/gethostname.m4: Likewise.
53414         * m4/gethrxtime.m4: Likewise.
53415         * m4/getline.m4: Likewise.
53416         * m4/getloadavg.m4: Likewise.
53417         * m4/getndelim2.m4: Likewise.
53418         * m4/getpass.m4: Likewise.
53419         * m4/gettext.m4: Likewise.
53420         * m4/gettime.m4: Likewise.
53421         * m4/gettimeofday.m4: Likewise.
53422         * m4/gnulib-common.m4: Likewise.
53423         * m4/group-member.m4: Likewise.
53424         * m4/host-os.m4: Likewise.
53425         * m4/iconv.m4: Likewise.
53426         * m4/iconv_open.m4: Likewise.
53427         * m4/inet_ntop.m4: Likewise.
53428         * m4/inet_pton.m4: Likewise.
53429         * m4/inline.m4: Likewise.
53430         * m4/intldir.m4: Likewise.
53431         * m4/intlmacosx.m4: Likewise.
53432         * m4/intmax.m4: Likewise.
53433         * m4/intmax_t.m4: Likewise.
53434         * m4/inttypes.m4: Likewise.
53435         * m4/inttypes_h.m4: Likewise.
53436         * m4/inttypes-pri.m4: Likewise.
53437         * m4/isapipe.m4: Likewise.
53438         * m4/isnand.m4: Likewise.
53439         * m4/isnanf.m4: Likewise.
53440         * m4/isnanl.m4: Likewise.
53441         * m4/javacomp.m4: Likewise.
53442         * m4/javaexec.m4: Likewise.
53443         * m4/jm-winsz1.m4: Likewise.
53444         * m4/jm-winsz2.m4: Likewise.
53445         * m4/lchown.m4: Likewise.
53446         * m4/lcmessage.m4: Likewise.
53447         * m4/ldexpl.m4: Likewise.
53448         * m4/lib-ld.m4: Likewise.
53449         * m4/lib-link.m4: Likewise.
53450         * m4/libsigsegv.m4: Likewise.
53451         * m4/link-follow.m4: Likewise.
53452         * m4/localcharset.m4: Likewise.
53453         * m4/locale-fr.m4: Likewise.
53454         * m4/locale-ja.m4: Likewise.
53455         * m4/locale-tr.m4: Likewise.
53456         * m4/locale-zh.m4: Likewise.
53457         * m4/lock.m4: Likewise.
53458         * m4/longlong.m4: Likewise.
53459         * m4/ls-mntd-fs.m4: Likewise.
53460         * m4/lstat.m4: Likewise.
53461         * m4/malloc.m4: Likewise.
53462         * m4/mathl.m4: Likewise.
53463         * m4/mbrtowc.m4: Likewise.
53464         * m4/mbstate_t.m4: Likewise.
53465         * m4/mbswidth.m4: Likewise.
53466         * m4/memchr.m4: Likewise.
53467         * m4/memcmp.m4: Likewise.
53468         * m4/memcpy.m4: Likewise.
53469         * m4/memmem.m4: Likewise.
53470         * m4/memmove.m4: Likewise.
53471         * m4/mempcpy.m4: Likewise.
53472         * m4/memrchr.m4: Likewise.
53473         * m4/memset.m4: Likewise.
53474         * m4/minmax.m4: Likewise.
53475         * m4/mkdir-slash.m4: Likewise.
53476         * m4/mkdtemp.m4: Likewise.
53477         * m4/mktime.m4: Likewise.
53478         * m4/mmap-anon.m4: Likewise.
53479         * m4/mountlist.m4: Likewise.
53480         * m4/nanosleep.m4: Likewise.
53481         * m4/nls.m4: Likewise.
53482         * m4/nocrash.m4: Likewise.
53483         * m4/open.m4: Likewise.
53484         * m4/openat.m4: Likewise.
53485         * m4/openmp.m4: Likewise.
53486         * m4/pathmax.m4: Likewise.
53487         * m4/perl.m4: Likewise.
53488         * m4/physmem.m4: Likewise.
53489         * m4/pipe.m4: Likewise.
53490         * m4/po.m4: Likewise.
53491         * m4/poll.m4: Likewise.
53492         * m4/posixtm.m4: Likewise.
53493         * m4/posixver.m4: Likewise.
53494         * m4/printf-frexp.m4: Likewise.
53495         * m4/printf-frexpl.m4: Likewise.
53496         * m4/printf-posix.m4: Likewise.
53497         * m4/printf-posix-rpl.m4: Likewise.
53498         * m4/printf.m4: Likewise.
53499         * m4/progtest.m4: Likewise.
53500         * m4/putenv.m4: Likewise.
53501         * m4/readline.m4: Likewise.
53502         * m4/readlink.m4: Likewise.
53503         * m4/readutmp.m4: Likewise.
53504         * m4/realloc.m4: Likewise.
53505         * m4/regex.m4: Likewise.
53506         * m4/relocatable.m4: Likewise.
53507         * m4/relocatable-lib.m4: Likewise.
53508         * m4/rename-dest-slash.m4: Likewise.
53509         * m4/rename.m4: Likewise.
53510         * m4/rmdir-errno.m4: Likewise.
53511         * m4/rmdir.m4: Likewise.
53512         * m4/roundf.m4: Likewise.
53513         * m4/roundl.m4: Likewise.
53514         * m4/rpmatch.m4: Likewise.
53515         * m4/save-cwd.m4: Likewise.
53516         * m4/selinux-selinux-h.m4: Likewise.
53517         * m4/setenv.m4: Likewise.
53518         * m4/settime.m4: Likewise.
53519         * m4/sig2str.m4: Likewise.
53520         * m4/sig_atomic_t.m4: Likewise.
53521         * m4/signalblocking.m4: Likewise.
53522         * m4/signbit.m4: Likewise.
53523         * m4/sigpipe.m4: Likewise.
53524         * m4/sockets.m4: Likewise.
53525         * m4/sockpfaf.m4: Likewise.
53526         * m4/st_dm_mode.m4: Likewise.
53527         * m4/stat-time.m4: Likewise.
53528         * m4/stdbool.m4: Likewise.
53529         * m4/stdint.m4: Likewise.
53530         * m4/stdint_h.m4: Likewise.
53531         * m4/stpcpy.m4: Likewise.
53532         * m4/stpncpy.m4: Likewise.
53533         * m4/strcase.m4: Likewise.
53534         * m4/strchrnul.m4: Likewise.
53535         * m4/strcspn.m4: Likewise.
53536         * m4/strdup.m4: Likewise.
53537         * m4/strftime.m4: Likewise.
53538         * m4/strndup.m4: Likewise.
53539         * m4/strnlen.m4: Likewise.
53540         * m4/strpbrk.m4: Likewise.
53541         * m4/strptime.m4: Likewise.
53542         * m4/strsep.m4: Likewise.
53543         * m4/strtod.m4: Likewise.
53544         * m4/strtoimax.m4: Likewise.
53545         * m4/strtok_r.m4: Likewise.
53546         * m4/strtol.m4: Likewise.
53547         * m4/strtoll.m4: Likewise.
53548         * m4/strtoul.m4: Likewise.
53549         * m4/strtoull.m4: Likewise.
53550         * m4/strtoumax.m4: Likewise.
53551         * m4/strverscmp.m4: Likewise.
53552         * m4/threadlib.m4: Likewise.
53553         * m4/timegm.m4: Likewise.
53554         * m4/tm_gmtoff.m4: Likewise.
53555         * m4/tmpdir.m4: Likewise.
53556         * m4/tmpfile.m4: Likewise.
53557         * m4/tzset.m4: Likewise.
53558         * m4/uintmax_t.m4: Likewise.
53559         * m4/unlinkdir.m4: Likewise.
53560         * m4/unlocked-io.m4: Likewise.
53561         * m4/uptime.m4: Likewise.
53562         * m4/userspec.m4: Likewise.
53563         * m4/utimbuf.m4: Likewise.
53564         * m4/utime.m4: Likewise.
53565         * m4/utimes-null.m4: Likewise.
53566         * m4/utimes.m4: Likewise.
53567         * m4/vararrays.m4: Likewise.
53568         * m4/vasnprintf.m4: Likewise.
53569         * m4/vfprintf-posix.m4: Likewise.
53570         * m4/vprintf-posix.m4: Likewise.
53571         * m4/wait-process.m4: Likewise.
53572         * m4/wchar_t.m4: Likewise.
53573         * m4/wint_t.m4: Likewise.
53574         * m4/write-any-file.m4: Likewise.
53575         * m4/yield.m4: Likewise.
53576
53577 2009-01-13  Bruno Haible  <bruno@clisp.org>
53578
53579         Avoid test-copy-file.sh failures when ACL support insufficient.
53580         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53581         TESTS_ENVIRONMENT.
53582         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53583         Reported by Jim Meyering.
53584
53585 2009-01-13  Bruno Haible  <bruno@clisp.org>
53586
53587         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53588         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53589         * modules/unistdio/u8-printf-parse (Files): Likewise.
53590         * modules/unistdio/u32-printf-parse (Files): Likewise.
53591         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53592
53593 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53594
53595         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53596         and m4/inttypes_h.m4 too.
53597
53598 2009-01-12  Eric Blake  <ebb9@byu.net>
53599
53600         tests: IRIX 6.2 cc can't compile -0.0 into .data
53601         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53602         rather than at compile-time.
53603         * tests/test-floorl.c (minus_zero): Likewise.
53604         * tests/test-frexpl.c (minus_zero): Likewise.
53605         * tests/test-isnan.c (minus_zerol): Likewise.
53606         * tests/test-isnanl.h (minus_zero): Likewise.
53607         * tests/test-ldexpl.c (minus_zero): Likewise.
53608         * tests/test-roundl.c (minus_zero): Likewise.
53609         * tests/test-signbit.c (minus_zerol): Likewise.
53610         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53611         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53612         * tests/test-truncl.c (minus_zero): Likewise.
53613         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53614         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53615         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53616
53617 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53618
53619         regex: fix glibc bug 9697
53620         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53621         handling.
53622
53623 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53624
53625         regex: fix glibc bug 697
53626         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53627         being NULL also if there are no backreferences.
53628
53629 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53630
53631         regex: merge glibc changes
53632         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53633         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53634         re_string_skip_chars, re_string_reconstruct): Likewise.
53635         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53636
53637 2009-01-07  Jim Meyering  <meyering@redhat.com>
53638
53639         poll: filter through cppi
53640         * lib/poll.c: Indent cpp directives to reflect nesting.
53641
53642 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53643
53644         poll: don't return uninitialized
53645         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53646
53647 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53648
53649         avoid compile failure on AIX 6.1
53650         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53651         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53652
53653 2009-01-04  Jim Meyering  <meyering@redhat.com>
53654
53655         remove duplicate inclusion of <stdio.h>
53656         * tests/test-fprintf-posix.c: Likewise.
53657         * tests/test-printf-posix.c: Likewise.
53658         * tests/test-snprintf-posix.c: Likewise.
53659         * tests/test-sprintf-posix.c: Likewise.
53660         * tests/test-vasprintf-posix.c: Likewise.
53661         * tests/test-vfprintf-posix.c: Likewise.
53662         * tests/test-vprintf-posix.c: Likewise.
53663         * tests/test-vsnprintf-posix.c: Likewise.
53664         * tests/test-vsprintf-posix.c: Likewise.
53665
53666 2009-01-03  Jim Meyering  <meyering@redhat.com>
53667
53668         gnulib-tool: fix sed-based filtering
53669         * gnulib-tool (func_filter_filelist): Remove extra backslash
53670         in sed_fff_filter definition.
53671
53672 2009-01-02  Jim Meyering  <meyering@redhat.com>
53673
53674         strftime: avoid compilation failure on Solaris 2.6
53675         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53676         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53677         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53678         be available.  Reported by Tom G. Christensen.  Details in
53679         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53680
53681 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53682             Bruno Haible  <bruno@clisp.org>
53683
53684         Speed up gnulib-tool by doing more string processing through shell
53685         built-ins.
53686         * gnulib-tool (fast_func_append): New variable.
53687         (func_remove_prefix, func_remove_suffix): New functions.
53688         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53689         (func_filter_filelist): New function.
53690         (func_get_dependencies): Use func_remove_suffix instead of sed.
53691         (func_get_automake_snippet): Use func_filter_filelist instead of a
53692         subshell and sed invocation.
53693
53694 2009-01-01  Bruno Haible  <bruno@clisp.org>
53695
53696         Fix a security bug.
53697         * gnulib-tool (func_import, import, update): Don't allow the characters
53698         '"', '$', '`', '\' in macro arguments that become part of commands that
53699         are evaluated.
53700
53701 2009-01-01  Bruno Haible  <bruno@clisp.org>
53702
53703         * gnulib-tool (func_reset_sigpipe): Add more comments.
53704
53705 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53706
53707         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53708         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53709         already know the answer.
53710
53711 2009-01-01  Jim Meyering  <meyering@redhat.com>
53712
53713         * lib/version-etc.c (version_etc_va): Update copyright year.
53714
53715 2008-12-30  Bruno Haible  <bruno@clisp.org>
53716
53717         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53718         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53719         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53720
53721 2008-12-29  Eric Blake  <ebb9@byu.net>
53722
53723         multiarch: avoid autoconf AC_REQUIRE bug
53724         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53725         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53726         2.63 and older.
53727         Reported by Bruno Haible, and analyzed in
53728         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53729
53730 2008-12-29  Bruno Haible  <bruno@clisp.org>
53731
53732         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53733         files in subdirectories correctly.
53734         Reported by Ralf Wildenhues.
53735
53736 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53737
53738         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53739         rather than 'join FILE -', for Solaris join.
53740
53741 2008-12-29  Bruno Haible  <bruno@clisp.org>
53742
53743         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53744         quoting.
53745         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53746         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53747         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53748         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53749         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53750         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53751         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53752         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53753         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53754         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53755         * m4/nls.m4 (AM_NLS): Likewise.
53756         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53757         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53758         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53759         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53760         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53761         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53762         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53763         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53764         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53765         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53766         * m4/xsize.m4 (gl_XSIZE): Likewise.
53767         Suggested by Jim Meyering.
53768
53769 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53770
53771         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53772         * lib/parse-duration.c: use a switch instead of cascading if's.
53773
53774 2008-12-29  Eric Blake  <ebb9@byu.net>
53775
53776         wchar.h: supply WEOF on Irix 5.3
53777         * lib/wchar.in.h (wint_t): Also supply WEOF.
53778         * lib/wctype.in.h (wint_t): Likewise.
53779         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53780         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53781         Reported by Tom G. Christensen.
53782
53783 2008-12-26  Bruno Haible  <bruno@clisp.org>
53784
53785         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53786         i486, i586, i686.
53787
53788 2008-12-26  Bruno Haible  <bruno@clisp.org>
53789
53790         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53791
53792 2008-12-26  Bruno Haible  <bruno@clisp.org>
53793
53794         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53795         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53796         not __STDC_CONSTANT_MACROS.
53797         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53798
53799 2008-12-25  Bruno Haible  <bruno@clisp.org>
53800
53801         Add support for universal builds to vasnprintf.
53802         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53803         universal builds, guess no.
53804         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53805         * modules/vasprintf-posix (Depends-on): Likewise.
53806         * modules/fprintf-posix (Depends-on): Likewise.
53807         * modules/vfprintf-posix (Depends-on): Likewise.
53808         * modules/snprintf-posix (Depends-on): Likewise.
53809         * modules/vsnprintf-posix (Depends-on): Likewise.
53810         * modules/sprintf-posix (Depends-on): Likewise.
53811         * modules/vsprintf-posix (Depends-on): Likewise.
53812         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53813         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53814         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53815         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53816         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53817         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53818         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53819
53820         Add support for universal builds to <inttypes.h>.
53821         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53822         _SCNu64_PREFIX): In Apple
53823         universal builds, define directly, using _LP64.
53824         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53825         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53826         * modules/inttypes (Depends-on): Add multiarch.
53827         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53828
53829         Add support for universal builds to <stdint.h>.
53830         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53831         universal builds, define directly, using _LP64.
53832         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53833         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53834         and size_t.
53835         * modules/stdint (Depends-on): Add multiarch.
53836         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53837
53838         New module 'multiarch'.
53839         * modules/multiarch: New file.
53840         * m4/multiarch.m4: New file.
53841
53842 2008-12-25  Bruno Haible  <bruno@clisp.org>
53843
53844         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53845
53846 2008-12-25  Bruno Haible  <bruno@clisp.org>
53847
53848         * modules/btowc (License): Relicense under LGPLv2+.
53849         * modules/mbsinit (License): Likewise.
53850         * modules/mbrtowc (License): Likewise.
53851         * modules/wcrtomb (License): Likewise.
53852         * modules/streq (License): Likewise.
53853         Reported by David Lutterkort <lutter@redhat.com>.
53854
53855 2008-12-23  Bruno Haible  <bruno@clisp.org>
53856
53857         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53858
53859 2008-12-23  Bruno Haible  <bruno@clisp.org>
53860
53861         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53863         GETADDRINFO_LIB, not in LIBS.
53864         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53865         * modules/canon-host (Link): Likewise.
53866         * NEWS: Mention the change.
53867         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53868         GETADDRINFO_LIB.
53869
53870 2008-12-22  Bruno Haible  <bruno@clisp.org>
53871
53872         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53873         * doc/posix-functions/iswalpha_l.texi: Likewise.
53874         * doc/posix-functions/iswblank_l.texi: Likewise.
53875         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53876         * doc/posix-functions/iswctype_l.texi: Likewise.
53877         * doc/posix-functions/iswdigit_l.texi: Likewise.
53878         * doc/posix-functions/iswgraph_l.texi: Likewise.
53879         * doc/posix-functions/iswlower_l.texi: Likewise.
53880         * doc/posix-functions/iswprint_l.texi: Likewise.
53881         * doc/posix-functions/iswpunct_l.texi: Likewise.
53882         * doc/posix-functions/iswspace_l.texi: Likewise.
53883         * doc/posix-functions/iswupper_l.texi: Likewise.
53884         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53885         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53886         * doc/posix-functions/open_wmemstream.texi: Likewise.
53887         * doc/posix-functions/swscanf.texi: Likewise.
53888         * doc/posix-functions/towctrans_l.texi: Likewise.
53889         * doc/posix-functions/towlower.texi: Likewise.
53890         * doc/posix-functions/towlower_l.texi: Likewise.
53891         * doc/posix-functions/towupper.texi: Likewise.
53892         * doc/posix-functions/towupper_l.texi: Likewise.
53893         * doc/posix-functions/vfwprintf.texi: Likewise.
53894         * doc/posix-functions/vfwscanf.texi: Likewise.
53895         * doc/posix-functions/vswscanf.texi: Likewise.
53896         * doc/posix-functions/vwprintf.texi: Likewise.
53897         * doc/posix-functions/vwscanf.texi: Likewise.
53898         * doc/posix-functions/wcpcpy.texi: Likewise.
53899         * doc/posix-functions/wcpncpy.texi: Likewise.
53900         * doc/posix-functions/wcscasecmp.texi: Likewise.
53901         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53902         * doc/posix-functions/wcscoll_l.texi: Likewise.
53903         * doc/posix-functions/wcsdup.texi: Likewise.
53904         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53905         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53906         * doc/posix-functions/wcsnlen.texi: Likewise.
53907         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53908         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53909         * doc/posix-functions/wctrans_l.texi: Likewise.
53910         * doc/posix-functions/wctype_l.texi: Likewise.
53911         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53912         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53913         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53914         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53915         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53916         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53917         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53918         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53919         * doc/glibc-functions/wcschrnul.texi: Likewise.
53920         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53921         * doc/glibc-functions/wcstod_l.texi: Likewise.
53922         * doc/glibc-functions/wcstof_l.texi: Likewise.
53923         * doc/glibc-functions/wcstol_l.texi: Likewise.
53924         * doc/glibc-functions/wcstold_l.texi: Likewise.
53925         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53926         * doc/glibc-functions/wcstoq.texi: Likewise.
53927         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53928         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53929         * doc/glibc-functions/wcstouq.texi: Likewise.
53930         * doc/glibc-functions/wmempcpy.texi: Likewise.
53931
53932 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53933             Eric Blake  <ebb9@byu.net>
53934             Paolo Bonzini  <bonzini@gnu.org>
53935             Bruno Haible  <bruno@clisp.org>
53936
53937         Make c-stack work on Haiku.
53938         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53939         (c_stack_action): Use SA_ONSTACK flag.
53940
53941 2008-12-22  Bruno Haible  <bruno@clisp.org>
53942
53943         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53944
53945 2008-12-22  Bruno Haible  <bruno@clisp.org>
53946
53947         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53948         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53949         being overridden.
53950         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53951         New macros.
53952         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53954         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53955         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53956
53957 2008-12-22  Bruno Haible  <bruno@clisp.org>
53958
53959         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53960         from test code.
53961
53962 2008-12-22  Eric Blake  <ebb9@byu.net>
53963
53964         Avoid gcc warnings on cygwin.
53965         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53966         Avoid unused variable.
53967         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53968         Likewise.
53969
53970 2008-12-22  Bruno Haible  <bruno@clisp.org>
53971
53972         Remove HAVE_MBRTOWC conditionals.
53973         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53974         (mbscasecmp): Assume mbrtowc function.
53975         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53976         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53977         * lib/mbschr.c: Include mbuiter.h unconditionally.
53978         (mbschr): Assume mbrtowc function.
53979         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53980         (mbscspn): Assume mbrtowc function.
53981         * lib/mbslen.c: Include mbuiter.h unconditionally.
53982         (mbslen): Assume mbrtowc function.
53983         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53984         (mbsncasecmp): Assume mbrtowc function.
53985         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53986         (mbsnlen): Assume mbrtowc function.
53987         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53988         (mbspbrk): Assume mbrtowc function.
53989         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53990         (mbspcasecmp): Assume mbrtowc function.
53991         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53992         (mbsrchr): Assume mbrtowc function.
53993         * lib/mbssep.c: Include mbuiter.h unconditionally.
53994         (mbssep): Assume mbrtowc function.
53995         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53996         (mbsspn): Assume mbrtowc function.
53997         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53998         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53999         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54000         (mbstok_r): Assume mbrtowc function.
54001         * lib/propername.c: Include mbuiter.h unconditionally.
54002         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54003         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54004         (trim2): Assume mbrtowc function.
54005         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54006         (mbsnwidth): Assume mbrtowc function.
54007         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54008         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54009         fallback definitions.
54010         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54011
54012 2008-12-22  Bruno Haible  <bruno@clisp.org>
54013
54014         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54015
54016 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54017
54018         * modules/regex: Request emulations for the mb*/wc* functions we need.
54019         * m4/regex.m4: Don't look for those functions here.
54020         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54021
54022 2008-12-22  Bruno Haible  <bruno@clisp.org>
54023
54024         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54025
54026 2008-12-21  Bruno Haible  <bruno@clisp.org>
54027
54028         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54029         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54030         (Include): Remove conditionalization.
54031         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54032         (Include): Remove conditionalization.
54033         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54034         (Include): Remove conditionalization.
54035         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54036         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54037         * NEWS: Mention the change.
54038         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54039         via Sergey Poznyakoff <gray@gnu.org.ua>.
54040
54041 2008-12-21  Bruno Haible  <bruno@clisp.org>
54042
54043         * MODULES.html.sh (Extended multibyte and wide character utilities
54044         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54045         wcrtomb, wcsrtombs.
54046         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54047         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54048         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54049         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54050
54051 2008-12-21  Bruno Haible  <bruno@clisp.org>
54052
54053         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54054
54055 2008-12-21  Bruno Haible  <bruno@clisp.org>
54056
54057         * modules/wcsnrtombs-tests: New file.
54058         * tests/test-wcsnrtombs1.sh: New file.
54059         * tests/test-wcsnrtombs2.sh: New file.
54060         * tests/test-wcsnrtombs3.sh: New file.
54061         * tests/test-wcsnrtombs4.sh: New file.
54062         * tests/test-wcsnrtombs.c: New file.
54063
54064         New module 'wcsnrtombs'.
54065         * lib/wchar.in.h (wcsnrtombs): New declaration.
54066         * lib/wcsnrtombs.c: New file.
54067         * lib/wcsrtombs-state.c: New file.
54068         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54069         (internal_state): Remove variable.
54070         * m4/wcsnrtombs.m4: New file.
54071         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54072         compilation units.
54073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54074         HAVE_WCSNRTOMBS.
54075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54076         HAVE_WCSNRTOMBS.
54077         * modules/wcsnrtombs: New file.
54078         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54079         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54080
54081 2008-12-21  Bruno Haible  <bruno@clisp.org>
54082
54083         * modules/wcsrtombs-tests: New file.
54084         * tests/test-wcsrtombs1.sh: New file.
54085         * tests/test-wcsrtombs2.sh: New file.
54086         * tests/test-wcsrtombs3.sh: New file.
54087         * tests/test-wcsrtombs4.sh: New file.
54088         * tests/test-wcsrtombs.c: New file.
54089
54090         New module 'wcsrtombs'.
54091         * lib/wchar.in.h (wcsrtombs): New declaration.
54092         * lib/wcsrtombs.c: New file.
54093         * m4/wcsrtombs.m4: New file.
54094         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54095         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54096         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54097         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54098         * modules/wcsrtombs: New file.
54099         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54100         bugs.
54101
54102 2008-12-21  Bruno Haible  <bruno@clisp.org>
54103
54104         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54105         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54106         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54107         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54108         if not correct.
54109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54110         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54111         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54112         m4/locale-zh.m4, m4/codeset.m4.
54113         * doc/posix-functions/wcrtomb.texi: Document the bug.
54114
54115 2008-12-21  Bruno Haible  <bruno@clisp.org>
54116
54117         Work around a btowc() bug on IRIX 6.5.
54118         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54119         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54120         REPLACE_WTOBC if not.
54121         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54122         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54123         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54124
54125 2008-12-21  Bruno Haible  <bruno@clisp.org>
54126
54127         * modules/wcrtomb-tests: New file.
54128         * tests/test-wcrtomb.sh: New file.
54129         * tests/test-wcrtomb.c: New file.
54130
54131         New module 'wcrtomb'.
54132         * lib/wchar.in.h (wcrtomb): New declaration.
54133         * lib/wcrtomb.c: New file.
54134         * m4/wcrtomb.m4: New file.
54135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54136         HAVE_WCRTOMB.
54137         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54138         HAVE_WCRTOMB.
54139         * modules/wcrtomb: New file.
54140         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54141
54142 2008-12-21  Bruno Haible  <bruno@clisp.org>
54143
54144         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54145         * modules/mbsrtowcs (Files): Likewise.
54146         * modules/wctob (Files): Likewise.
54147         * modules/c-strcase-tests (Files): Likewise.
54148         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54149         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54150         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54151         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54152         * modules/vasnprintf-posix-tests (Files): Likewise.
54153
54154 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54155
54156         gitlog-to-changelog: pass all command-line arguments to git-log
54157         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54158         it is sometimes convenient to filter the commits in various ways.
54159         gitlog-to-changelog only allows --since to specify a start date,
54160         but git-log itself supports many other filtering mechanisms.
54161         At the moment, I want to filter by branch name.  Rather than
54162         adding a --branch option to gitlog-to-changelog, it seems more
54163         flexible to simply pass all options directly to git-log and let
54164         git do the work.  Notice that this effectively makes --since a
54165         redundant option for gitlog-to-changelog, but removing it would
54166         require current usage to change since calls would then require
54167         an additional '--'.
54168
54169 2008-12-21  Bruno Haible  <bruno@clisp.org>
54170
54171         * modules/mbsnrtowcs-tests: New file.
54172         * tests/test-mbsnrtowcs1.sh: New file.
54173         * tests/test-mbsnrtowcs2.sh: New file.
54174         * tests/test-mbsnrtowcs3.sh: New file.
54175         * tests/test-mbsnrtowcs4.sh: New file.
54176         * tests/test-mbsnrtowcs.c: New file.
54177
54178         New module 'mbsnrtowcs'.
54179         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54180         * lib/mbsnrtowcs.c: New file.
54181         * lib/mbsrtowcs-state.c: New file.
54182         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54183         (internal_state): Remove variable.
54184         * m4/mbsnrtowcs.m4: New file.
54185         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54186         compilation units.
54187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54188         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54189         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54190         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54191         * modules/mbsnrtowcs: New file.
54192         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54193         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54194         portability problem.
54195
54196 2008-12-21  Bruno Haible  <bruno@clisp.org>
54197
54198         Work around mbsrtowcs bug.
54199         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54200         (gl_FUNC_MBSRTOWCS): Invoke it.
54201         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54202         m4/locale-zh.m4.
54203         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54204
54205 2008-12-21  Bruno Haible  <bruno@clisp.org>
54206
54207         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54208
54209 2008-12-21  Bruno Haible  <bruno@clisp.org>
54210
54211         Update doc for AIX.
54212         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54213         16-bit wchar_t type.
54214         * doc/posix-functions/btowc.texi: Likewise.
54215         * doc/posix-functions/fgetwc.texi: Likewise.
54216         * doc/posix-functions/fgetws.texi: Likewise.
54217         * doc/posix-functions/fputwc.texi: Likewise.
54218         * doc/posix-functions/fputws.texi: Likewise.
54219         * doc/posix-functions/fwide.texi: Likewise.
54220         * doc/posix-functions/fwprintf.texi: Likewise.
54221         * doc/posix-functions/fwscanf.texi: Likewise.
54222         * doc/posix-functions/getwchar.texi: Likewise.
54223         * doc/posix-functions/getwc.texi: Likewise.
54224         * doc/posix-functions/iswalnum.texi: Likewise.
54225         * doc/posix-functions/iswalpha.texi: Likewise.
54226         * doc/posix-functions/iswblank.texi: Likewise.
54227         * doc/posix-functions/iswcntrl.texi: Likewise.
54228         * doc/posix-functions/iswctype.texi: Likewise.
54229         * doc/posix-functions/iswdigit.texi: Likewise.
54230         * doc/posix-functions/iswgraph.texi: Likewise.
54231         * doc/posix-functions/iswlower.texi: Likewise.
54232         * doc/posix-functions/iswprint.texi: Likewise.
54233         * doc/posix-functions/iswpunct.texi: Likewise.
54234         * doc/posix-functions/iswspace.texi: Likewise.
54235         * doc/posix-functions/iswupper.texi: Likewise.
54236         * doc/posix-functions/iswxdigit.texi: Likewise.
54237         * doc/posix-functions/mbrtowc.texi: Likewise.
54238         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54239         * doc/posix-functions/mbstowcs.texi: Likewise.
54240         * doc/posix-functions/mbtowc.texi: Likewise.
54241         * doc/posix-functions/putwchar.texi: Likewise.
54242         * doc/posix-functions/putwc.texi: Likewise.
54243         * doc/posix-functions/swprintf.texi: Likewise.
54244         * doc/posix-functions/tolower.texi: Likewise.
54245         * doc/posix-functions/toupper.texi: Likewise.
54246         * doc/posix-functions/towctrans.texi: Likewise.
54247         * doc/posix-functions/ungetwc.texi: Likewise.
54248         * doc/posix-functions/vswprintf.texi: Likewise.
54249         * doc/posix-functions/wcrtomb.texi: Likewise.
54250         * doc/posix-functions/wcscat.texi: Likewise.
54251         * doc/posix-functions/wcschr.texi: Likewise.
54252         * doc/posix-functions/wcscmp.texi: Likewise.
54253         * doc/posix-functions/wcscoll.texi: Likewise.
54254         * doc/posix-functions/wcscpy.texi: Likewise.
54255         * doc/posix-functions/wcscspn.texi: Likewise.
54256         * doc/posix-functions/wcsftime.texi: Likewise.
54257         * doc/posix-functions/wcslen.texi: Likewise.
54258         * doc/posix-functions/wcsncat.texi: Likewise.
54259         * doc/posix-functions/wcsncmp.texi: Likewise.
54260         * doc/posix-functions/wcsncpy.texi: Likewise.
54261         * doc/posix-functions/wcspbrk.texi: Likewise.
54262         * doc/posix-functions/wcsrchr.texi: Likewise.
54263         * doc/posix-functions/wcsrtombs.texi: Likewise.
54264         * doc/posix-functions/wcsspn.texi: Likewise.
54265         * doc/posix-functions/wcsstr.texi: Likewise.
54266         * doc/posix-functions/wcstod.texi: Likewise.
54267         * doc/posix-functions/wcstof.texi: Likewise.
54268         * doc/posix-functions/wcstoimax.texi: Likewise.
54269         * doc/posix-functions/wcstok.texi: Likewise.
54270         * doc/posix-functions/wcstold.texi: Likewise.
54271         * doc/posix-functions/wcstoll.texi: Likewise.
54272         * doc/posix-functions/wcstol.texi: Likewise.
54273         * doc/posix-functions/wcstombs.texi: Likewise.
54274         * doc/posix-functions/wcstoull.texi: Likewise.
54275         * doc/posix-functions/wcstoul.texi: Likewise.
54276         * doc/posix-functions/wcstoumax.texi: Likewise.
54277         * doc/posix-functions/wcswidth.texi: Likewise.
54278         * doc/posix-functions/wcsxfrm.texi: Likewise.
54279         * doc/posix-functions/wctob.texi: Likewise.
54280         * doc/posix-functions/wctomb.texi: Likewise.
54281         * doc/posix-functions/wctrans.texi: Likewise.
54282         * doc/posix-functions/wctype.texi: Likewise.
54283         * doc/posix-functions/wcwidth.texi: Likewise.
54284         * doc/posix-functions/wmemchr.texi: Likewise.
54285         * doc/posix-functions/wmemcmp.texi: Likewise.
54286         * doc/posix-functions/wmemcpy.texi: Likewise.
54287         * doc/posix-functions/wmemmove.texi: Likewise.
54288         * doc/posix-functions/wmemset.texi: Likewise.
54289         * doc/posix-functions/wprintf.texi: Likewise.
54290         * doc/posix-functions/wscanf.texi: Likewise.
54291
54292 2008-12-21  Bruno Haible  <bruno@clisp.org>
54293
54294         Update doc for HP-UX 11.11.
54295         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54296         in HP-UX version 11.00, not in all versions of HP-UX 11.
54297         * doc/posix-functions/fwide.texi: Likewise.
54298         * doc/posix-functions/fwprintf.texi: Likewise.
54299         * doc/posix-functions/fwscanf.texi: Likewise.
54300         * doc/posix-functions/inet_ntop.texi: Likewise.
54301         * doc/posix-functions/inet_pton.texi: Likewise.
54302         * doc/posix-functions/mbrlen.texi: Likewise.
54303         * doc/posix-functions/mbrtowc.texi: Likewise.
54304         * doc/posix-functions/mbsinit.texi: Likewise.
54305         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54306         * doc/posix-functions/swprintf.texi: Likewise.
54307         * doc/posix-functions/swscanf.texi: Likewise.
54308         * doc/posix-functions/towctrans.texi: Likewise.
54309         * doc/posix-functions/vfwprintf.texi: Likewise.
54310         * doc/posix-functions/vswprintf.texi: Likewise.
54311         * doc/posix-functions/vwprintf.texi: Likewise.
54312         * doc/posix-functions/wcrtomb.texi: Likewise.
54313         * doc/posix-functions/wcsrtombs.texi: Likewise.
54314         * doc/posix-functions/wcsstr.texi: Likewise.
54315         * doc/posix-functions/wctob.texi: Likewise.
54316         * doc/posix-functions/wctrans.texi: Likewise.
54317         * doc/posix-functions/wmemchr.texi: Likewise.
54318         * doc/posix-functions/wmemcmp.texi: Likewise.
54319         * doc/posix-functions/wmemcpy.texi: Likewise.
54320         * doc/posix-functions/wmemmove.texi: Likewise.
54321         * doc/posix-functions/wmemset.texi: Likewise.
54322         * doc/posix-functions/wprintf.texi: Likewise.
54323         * doc/posix-functions/wscanf.texi: Likewise.
54324
54325 2008-12-21  Bruno Haible  <bruno@clisp.org>
54326
54327         Work around a portability problem.
54328         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54329         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54330
54331 2008-12-20  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54334         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54335         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54337         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54338
54339         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54340         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54341         set.
54342         (GNULIB_defined_mbstate_t): New macro.
54343         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54344         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54345         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54346         reuses the system's mbrtowc function but works around the bugs.
54347         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54348         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54349         macros.
54350         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54351         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54352         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54353         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54354         REPLACE_MBSINIT if mbsinit needs to be overridden.
54355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54356         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54357         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54358         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54359         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54360         m4/locale-zh.m4.
54361         (Depends): Add mbsinit.
54362         * modules/mbsinit (Depends): Add mbrtowc.
54363         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54364
54365 2008-12-20  Bruno Haible  <bruno@clisp.org>
54366
54367         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54368         so that there are no conversion errors on AIX.
54369         * tests/test-mbsrtowcs.c (main): LIkewise.
54370
54371 2008-12-20  Bruno Haible  <bruno@clisp.org>
54372
54373         Work around wctob bug on Solaris <= 9.
54374         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54375         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54377         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54378         * modules/wctob (Files): Add m4/locale-fr.m4.
54379         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54380
54381 2008-12-20  Bruno Haible  <bruno@clisp.org>
54382
54383         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54384         /dev/null.
54385         * tests/test-select-in.sh: Likewise.
54386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54387
54388 2008-12-20  Bruno Haible  <bruno@clisp.org>
54389
54390         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54391         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54392         Cygwin 1.5.x.
54393
54394 2008-12-20  Bruno Haible  <bruno@clisp.org>
54395
54396         Ensure mbstate_t is defined on HP-UX 11.11.
54397         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54398         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54399         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54400         AC_USE_SYSTEM_EXTENSIONS.
54401         * modules/fnmatch (Depends-on): Add extensions.
54402         * modules/mbrlen (Depends-on): Likewise.
54403         * modules/mbrtowc (Depends-on): Likewise.
54404         * modules/mbsinit (Depends-on): Likewise.
54405         * modules/mbsrtowcs (Depends-on): Likewise.
54406         * modules/mbswidth (Depends-on): Likewise.
54407         * modules/quotearg (Depends-on): Likewise.
54408         * modules/strftime (Depends-on): Likewise.
54409
54410 2008-12-20  Bruno Haible  <bruno@clisp.org>
54411
54412         Ensure wctob is declared on IRIX 6.5.
54413         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54414         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54415         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54417         of HAVE_WCTOB.
54418         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54419         HAVE_WCTOB.
54420         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54421
54422 2008-12-19  Bruno Haible  <bruno@clisp.org>
54423
54424         * modules/mbsrtowcs-tests: New file.
54425         * tests/test-mbsrtowcs1.sh: New file.
54426         * tests/test-mbsrtowcs2.sh: New file.
54427         * tests/test-mbsrtowcs3.sh: New file.
54428         * tests/test-mbsrtowcs4.sh: New file.
54429         * tests/test-mbsrtowcs.c: New file.
54430
54431         New module 'mbsrtowcs'.
54432         * lib/wchar.in.h (mbsrtowcs): New declaration.
54433         * lib/mbsrtowcs.c: New file.
54434         * m4/mbsrtowcs.m4: New file.
54435         * modules/mbsrtowcs: New file.
54436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54437         HAVE_MBSRTOWCS.
54438         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54439         HAVE_MBSRTOWCS.
54440         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54441
54442 2008-12-19  Bruno Haible  <bruno@clisp.org>
54443
54444         New module 'mbrlen'.
54445         * lib/wchar.in.h (mbrlen): New declaration.
54446         * lib/mbrlen.c: New file.
54447         * m4/mbrlen.m4: New file.
54448         * modules/mbrlen: New file.
54449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54450         HAVE_MBRLEN.
54451         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54452         HAVE_MBRLEN.
54453         * doc/posix-functions/mbrlen.texi: Document the new module.
54454
54455 2008-12-19  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54458         * modules/mbrtowc (Depends-on): Add verify.
54459         Suggested by Paul Eggert.
54460
54461 2008-12-18  Bruno Haible  <bruno@clisp.org>
54462
54463         * modules/mbsinit-tests: New file.
54464         * tests/test-mbsinit.sh: New file.
54465         * tests/test-mbsinit.c: New file.
54466
54467 2008-12-18  Bruno Haible  <bruno@clisp.org>
54468
54469         * modules/mbrtowc-tests: New file.
54470         * tests/test-mbrtowc1.sh: New file.
54471         * tests/test-mbrtowc2.sh: New file.
54472         * tests/test-mbrtowc3.sh: New file.
54473         * tests/test-mbrtowc4.sh: New file.
54474         * tests/test-mbrtowc.c: New file.
54475
54476         New module 'mbrtowc'.
54477         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54478         mbsinit and mbrtowc.
54479         (mbrtowc): New declaration.
54480         * lib/mbrtowc.c: New file.
54481         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54482         * modules/mbrtowc: New file.
54483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54484         HAVE_MBRTOWC.
54485         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54486         HAVE_MBRTOWC.
54487         * doc/posix-functions/mbrtowc.texi: Document the new module.
54488
54489 2008-12-18  Bruno Haible  <bruno@clisp.org>
54490
54491         New module 'wctob'.
54492         * lib/wchar.in.h (wctob): New declaration.
54493         * lib/wctob.c: New file.
54494         * m4/wctob.m4: New file.
54495         * modules/wctob: New file.
54496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54497         HAVE_WCTOB.
54498         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54499         * doc/posix-functions/wctob.texi: Document the new module.
54500
54501 2008-12-18  Bruno Haible  <bruno@clisp.org>
54502
54503         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54504         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54505
54506 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54507
54508         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54509         G. Christensen" <tgc@jupiterrise.com>.
54510
54511         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54512         G. Christensen" <tgc@jupiterrise.com>.
54513
54514         * lib/flock.c: Need to include string.h.  Reported by "Tom
54515         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54516         <ebb9@byu.net>.
54517
54518 2008-12-18  Bruno Haible  <bruno@clisp.org>
54519
54520         * m4/locale-ja.m4: New file, from GNU gettext.
54521
54522 2008-12-17  Bruno Haible  <bruno@clisp.org>
54523
54524         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54525         Suggested by Eric Blake.
54526
54527 2008-12-17  Bruno Haible  <bruno@clisp.org>
54528
54529         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54530
54531 2008-12-17  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54534         * modules/mbsinit (Depends-on): Add verify.
54535         Suggested by Paul Eggert.
54536
54537 2008-12-17  Bruno Haible  <bruno@clisp.org>
54538
54539         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54540         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54541         gl_FUNC_MBRTOWC.
54542         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54543         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54544         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54545         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54546         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54547         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54548         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54549         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54550         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54551         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54552         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54553         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54554         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54555         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54556         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54557         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54558         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54559         * modules/trim (configure.ac): Likewise.
54560
54561 2008-12-17  Bruno Haible  <bruno@clisp.org>
54562
54563         * modules/btowc-tests: New file.
54564         * tests/test-btowc1.sh: New file.
54565         * tests/test-btowc2.sh: New file.
54566         * tests/test-btowc.c: New file.
54567
54568         New module 'btowc'.
54569         * lib/wchar.in.h (btowc): New declaration.
54570         * lib/btowc.c: New file.
54571         * m4/btowc.m4: New file.
54572         * modules/btowc: New file.
54573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54574         HAVE_BTOWC.
54575         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54576         * doc/posix-functions/btowc.texi: Document the new module.
54577
54578 2008-12-17  Bruno Haible  <bruno@clisp.org>
54579
54580         New module 'mbsinit'.
54581         * lib/wchar.in.h (mbsinit): New declaration.
54582         * lib/mbsinit.c: New file.
54583         * m4/mbsinit.m4: New file.
54584         * modules/mbsinit: New file.
54585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54586         HAVE_MBSINIT.
54587         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54588         HAVE_MBSINIT.
54589         * doc/posix-functions/mbsinit.texi: Document the new module.
54590
54591 2008-12-16  Bruno Haible  <bruno@clisp.org>
54592
54593         * lib/unistd.in.h: Add comment.
54594         * tests/test-environ.c: Don't include <stdlib.h>.
54595
54596 2008-12-16  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/parse-duration.h (parse_duration): Document return value
54599         convention.
54600         * lib/parse-duration.c: Include specification header first. Add
54601         comments.
54602         (_): Remove macro.
54603         (parse_year_month_day, parse_hour_minute_second): Move side effects
54604         outside of strchr call.
54605         (parse_non_iso8601): Move side effects outside of isspace call.
54606         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54607         call.
54608
54609 2008-12-16  Bruno Haible  <bruno@clisp.org>
54610
54611         * tests/test-parse-duration.sh: Produce no output when the test
54612         succeeds.
54613
54614 2008-12-16  Bruno Haible  <bruno@clisp.org>
54615
54616         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54617         expressions.
54618
54619 2008-12-15  Bruno Haible  <bruno@clisp.org>
54620
54621         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54622         * doc/glibc-functions/flistxattr.texi: Likewise.
54623         * doc/glibc-functions/fopencookie.texi: Likewise.
54624         * doc/glibc-functions/fremovexattr.texi: Likewise.
54625         * doc/glibc-functions/fsetxattr.texi: Likewise.
54626         * doc/glibc-functions/getxattr.texi: Likewise.
54627         * doc/glibc-functions/lgetxattr.texi: Likewise.
54628         * doc/glibc-functions/listxattr.texi: Likewise.
54629         * doc/glibc-functions/llistxattr.texi: Likewise.
54630         * doc/glibc-functions/lremovexattr.texi: Likewise.
54631         * doc/glibc-functions/lsetxattr.texi: Likewise.
54632         * doc/glibc-functions/removexattr.texi: Likewise.
54633         * doc/glibc-functions/setxattr.texi: Likewise.
54634         * doc/posix-functions/open_memstream.texi: Likewise.
54635
54636 2008-12-15  Eric Blake  <ebb9@byu.net>
54637
54638         Update doc for cygwin 1.7.
54639         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54640         functions.
54641         * doc/posix-functions/fchmodat.texi: Likewise.
54642         * doc/posix-functions/fchownat.texi: Likewise.
54643         * doc/posix-functions/fdopendir.texi: Likewise.
54644         * doc/posix-functions/fmemopen.texi: Likewise.
54645         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54646         * doc/posix-functions/fstatat.texi: Likewise.
54647         * doc/posix-functions/futimens.texi: Likewise.
54648         * doc/posix-functions/gai_strerror.texi: Likewise.
54649         * doc/posix-functions/getaddrinfo.texi: Likewise.
54650         * doc/posix-functions/getnameinfo.texi: Likewise.
54651         * doc/posix-functions/if_freenameindex.texi: Likewise.
54652         * doc/posix-functions/if_indextoname.texi: Likewise.
54653         * doc/posix-functions/if_nameindex.texi: Likewise.
54654         * doc/posix-functions/if_nametoindex.texi: Likewise.
54655         * doc/posix-functions/insque.texi: Likewise.
54656         * doc/posix-functions/linkat.texi: Likewise.
54657         * doc/posix-functions/llrint.texi: Likewise.
54658         * doc/posix-functions/llrintf.texi: Likewise.
54659         * doc/posix-functions/llrintl.texi: Likewise.
54660         * doc/posix-functions/lockf.texi: Likewise.
54661         * doc/posix-functions/lrintl.texi: Likewise.
54662         * doc/posix-functions/mkdirat.texi: Likewise.
54663         * doc/posix-functions/mkfifoat.texi: Likewise.
54664         * doc/posix-functions/mknodat.texi: Likewise.
54665         * doc/posix-functions/mq_close.texi: Likewise.
54666         * doc/posix-functions/mq_getattr.texi: Likewise.
54667         * doc/posix-functions/mq_notify.texi: Likewise.
54668         * doc/posix-functions/mq_open.texi: Likewise.
54669         * doc/posix-functions/mq_receive.texi: Likewise.
54670         * doc/posix-functions/mq_send.texi: Likewise.
54671         * doc/posix-functions/mq_setattr.texi: Likewise.
54672         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54673         * doc/posix-functions/mq_timedsend.texi: Likewise.
54674         * doc/posix-functions/mq_unlink.texi: Likewise.
54675         * doc/posix-functions/open_memstream.texi: Likewise.
54676         * doc/posix-functions/openat.texi: Likewise.
54677         * doc/posix-functions/posix_fadvise.texi: Likewise.
54678         * doc/posix-functions/posix_fallocate.texi: Likewise.
54679         * doc/posix-functions/posix_madvise.texi: Likewise.
54680         * doc/posix-functions/posix_memalign.texi: Likewise.
54681         * doc/posix-functions/posix_openpt.texi: Likewise.
54682         * doc/posix-functions/readlinkat.texi: Likewise.
54683         * doc/posix-functions/remque.texi: Likewise.
54684         * doc/posix-functions/renameat.texi: Likewise.
54685         * doc/posix-functions/rintl.texi: Likewise.
54686         * doc/posix-functions/sem_unlink.texi: Likewise.
54687         * doc/posix-functions/shm_open.texi: Likewise.
54688         * doc/posix-functions/shm_unlink.texi: Likewise.
54689         * doc/posix-functions/signgam.texi: Likewise.
54690         * doc/posix-functions/sigset.texi: Likewise.
54691         * doc/posix-functions/stpcpy.texi: Likewise.
54692         * doc/posix-functions/stpncpy.texi: Likewise.
54693         * doc/posix-functions/strerror.texi: Likewise.
54694         * doc/posix-functions/strtod.texi: Likewise.
54695         * doc/posix-functions/symlinkat.texi: Likewise.
54696         * doc/posix-functions/unlinkat.texi: Likewise.
54697         * doc/posix-functions/utimensat.texi: Likewise.
54698         * doc/glibc-functions/bindresvport.texi: Likewise.
54699         * doc/glibc-functions/dn_expand.texi: Likewise.
54700         * doc/glibc-functions/exp10.texi: Likewise.
54701         * doc/glibc-functions/exp10f.texi: Likewise.
54702         * doc/glibc-functions/fgetxattr.texi: Likewise.
54703         * doc/glibc-functions/flistxattr.texi: Likewise.
54704         * doc/glibc-functions/fopencookie.texi: Likewise.
54705         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54706         * doc/glibc-functions/fremovexattr.texi: Likewise.
54707         * doc/glibc-functions/fsetxattr.texi: Likewise.
54708         * doc/glibc-functions/getifaddrs.texi: Likewise.
54709         * doc/glibc-functions/getxattr.texi: Likewise.
54710         * doc/glibc-functions/lgetxattr.texi: Likewise.
54711         * doc/glibc-functions/listxattr.texi: Likewise.
54712         * doc/glibc-functions/llistxattr.texi: Likewise.
54713         * doc/glibc-functions/lremovexattr.texi: Likewise.
54714         * doc/glibc-functions/lsetxattr.texi: Likewise.
54715         * doc/glibc-functions/pow10.texi: Likewise.
54716         * doc/glibc-functions/pow10f.texi: Likewise.
54717         * doc/glibc-functions/rcmd_af.texi: Likewise.
54718         * doc/glibc-functions/removexattr.texi: Likewise.
54719         * doc/glibc-functions/res_init.texi: Likewise.
54720         * doc/glibc-functions/res_mkquery.texi: Likewise.
54721         * doc/glibc-functions/res_query.texi: Likewise.
54722         * doc/glibc-functions/res_querydomain.texi: Likewise.
54723         * doc/glibc-functions/res_send.texi: Likewise.
54724         * doc/glibc-functions/rresvport_af.texi: Likewise.
54725         * doc/glibc-functions/setxattr.texi: Likewise.
54726         * doc/glibc-functions/strcasestr.texi: Likewise.
54727
54728 2008-12-15  Bruno Haible  <bruno@clisp.org>
54729
54730         Fix compilation error on OSF/1 4.0.
54731         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54732         <sys/time.h>, simply delegate to the system header.
54733         Reported by Daniel Richard G. <oss@teragram.com>.
54734
54735 2008-12-15  Bruno Haible  <bruno@clisp.org>
54736
54737         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54738         * doc/posix-functions/fchmodat.texi: Likewise.
54739         * doc/posix-functions/fchownat.texi: Likewise.
54740         * doc/posix-functions/fdopendir.texi: Likewise.
54741         * doc/posix-functions/fstatat.texi: Likewise.
54742         * doc/posix-functions/mkdirat.texi: Likewise.
54743         * doc/posix-functions/unlinkat.texi: Likewise.
54744
54745 2008-12-14  Bruno Haible  <bruno@clisp.org>
54746
54747         Update doc for POSIX:2008.
54748         * doc/posix-functions/faccessat.texi: New file.
54749         * doc/posix-functions/fchmodat.texi: New file.
54750         * doc/posix-functions/fchownat.texi: New file.
54751         * doc/posix-functions/fdopendir.texi: New file.
54752         * doc/posix-functions/fstatat.texi: New file.
54753         * doc/posix-functions/futimens.texi: New file.
54754         * doc/posix-functions/linkat.texi: New file.
54755         * doc/posix-functions/mkdirat.texi: New file.
54756         * doc/posix-functions/mkfifoat.texi: New file.
54757         * doc/posix-functions/mknodat.texi: New file.
54758         * doc/posix-functions/open_wmemstream.texi: New file.
54759         * doc/posix-functions/openat.texi: New file.
54760         * doc/posix-functions/psiginfo.texi: New file.
54761         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54762         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54763         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54764         * doc/posix-functions/readlinkat.texi: New file.
54765         * doc/posix-functions/renameat.texi: New file.
54766         * doc/posix-functions/strerror_l.texi: New file.
54767         * doc/posix-functions/symlinkat.texi: New file.
54768         * doc/posix-functions/unlinkat.texi: New file.
54769         * doc/posix-functions/utimensat.texi: New file.
54770         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54771
54772 2008-12-14  Bruno Haible  <bruno@clisp.org>
54773
54774         Update doc for POSIX:2008.
54775         * doc/posix-functions/alphasort.texi: Renamed from
54776         doc/glibc-functions/alphasort.texi.
54777         * doc/posix-functions/dirfd.texi: Renamed from
54778         doc/glibc-functions/dirfd.texi.
54779         * doc/posix-functions/dprintf.texi: Renamed from
54780         doc/glibc-functions/dprintf.texi.
54781         * doc/posix-functions/duplocale.texi: Renamed from
54782         doc/glibc-functions/duplocale.texi.
54783         * doc/posix-functions/fexecve.texi: Renamed from
54784         doc/glibc-functions/fexecve.texi.
54785         * doc/posix-functions/fmemopen.texi: Renamed from
54786         doc/glibc-functions/fmemopen.texi.
54787         * doc/posix-functions/freelocale.texi: Renamed from
54788         doc/glibc-functions/freelocale.texi.
54789         * doc/posix-functions/getdate_err.texi: Renamed from
54790         doc/glibc-functions/getdate_err.texi.
54791         * doc/posix-functions/isalnum_l.texi: Renamed from
54792         doc/glibc-functions/isalnum_l.texi.
54793         * doc/posix-functions/isalpha_l.texi: Renamed from
54794         doc/glibc-functions/isalpha_l.texi.
54795         * doc/posix-functions/isblank_l.texi: Renamed from
54796         doc/glibc-functions/isblank_l.texi.
54797         * doc/posix-functions/iscntrl_l.texi: Renamed from
54798         doc/glibc-functions/iscntrl_l.texi.
54799         * doc/posix-functions/isdigit_l.texi: Renamed from
54800         doc/glibc-functions/isdigit_l.texi.
54801         * doc/posix-functions/isgraph_l.texi: Renamed from
54802         doc/glibc-functions/isgraph_l.texi.
54803         * doc/posix-functions/islower_l.texi: Renamed from
54804         doc/glibc-functions/islower_l.texi.
54805         * doc/posix-functions/isprint_l.texi: Renamed from
54806         doc/glibc-functions/isprint_l.texi.
54807         * doc/posix-functions/ispunct_l.texi: Renamed from
54808         doc/glibc-functions/ispunct_l.texi.
54809         * doc/posix-functions/isspace_l.texi: Renamed from
54810         doc/glibc-functions/isspace_l.texi.
54811         * doc/posix-functions/isupper_l.texi: Renamed from
54812         doc/glibc-functions/isupper_l.texi.
54813         * doc/posix-functions/iswalnum_l.texi: Renamed from
54814         doc/glibc-functions/iswalnum_l.texi.
54815         * doc/posix-functions/iswalpha_l.texi: Renamed from
54816         doc/glibc-functions/iswalpha_l.texi.
54817         * doc/posix-functions/iswblank_l.texi: Renamed from
54818         doc/glibc-functions/iswblank_l.texi.
54819         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54820         doc/glibc-functions/iswcntrl_l.texi.
54821         * doc/posix-functions/iswctype_l.texi: Renamed from
54822         doc/glibc-functions/iswctype_l.texi.
54823         * doc/posix-functions/iswdigit_l.texi: Renamed from
54824         doc/glibc-functions/iswdigit_l.texi.
54825         * doc/posix-functions/iswgraph_l.texi: Renamed from
54826         doc/glibc-functions/iswgraph_l.texi.
54827         * doc/posix-functions/iswlower_l.texi: Renamed from
54828         doc/glibc-functions/iswlower_l.texi.
54829         * doc/posix-functions/iswprint_l.texi: Renamed from
54830         doc/glibc-functions/iswprint_l.texi.
54831         * doc/posix-functions/iswpunct_l.texi: Renamed from
54832         doc/glibc-functions/iswpunct_l.texi.
54833         * doc/posix-functions/iswspace_l.texi: Renamed from
54834         doc/glibc-functions/iswspace_l.texi.
54835         * doc/posix-functions/iswupper_l.texi: Renamed from
54836         doc/glibc-functions/iswupper_l.texi.
54837         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54838         doc/glibc-functions/iswxdigit_l.texi.
54839         * doc/posix-functions/isxdigit_l.texi: Renamed from
54840         doc/glibc-functions/isxdigit_l.texi.
54841         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54842         doc/glibc-functions/mbsnrtowcs.texi.
54843         * doc/posix-functions/mkdtemp.texi: Renamed from
54844         doc/glibc-functions/mkdtemp.texi.
54845         * doc/posix-functions/newlocale.texi: Renamed from
54846         doc/glibc-functions/newlocale.texi.
54847         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54848         doc/glibc-functions/nl_langinfo_l.texi.
54849         * doc/posix-functions/open_memstream.texi: Renamed from
54850         doc/glibc-functions/open_memstream.texi.
54851         * doc/posix-functions/opterr.texi: Renamed from
54852         doc/glibc-functions/opterr.texi.
54853         * doc/posix-functions/optind.texi: Renamed from
54854         doc/glibc-functions/optind.texi.
54855         * doc/posix-functions/optopt.texi: Renamed from
54856         doc/glibc-functions/optopt.texi.
54857         * doc/posix-functions/psignal.texi: Renamed from
54858         doc/glibc-functions/psignal.texi.
54859         * doc/posix-functions/scandir.texi: Renamed from
54860         doc/glibc-functions/scandir.texi.
54861         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54862         doc/glibc-functions/sched_get_priority_min.texi.
54863         * doc/posix-functions/signgam.texi: Renamed from
54864         doc/glibc-functions/signgam.texi.
54865         * doc/posix-functions/stpcpy.texi: Renamed from
54866         doc/glibc-functions/stpcpy.texi.
54867         * doc/posix-functions/stpncpy.texi: Renamed from
54868         doc/glibc-functions/stpncpy.texi.
54869         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54870         doc/glibc-functions/strcasecmp_l.texi.
54871         * doc/posix-functions/strcoll_l.texi: Renamed from
54872         doc/glibc-functions/strcoll_l.texi.
54873         * doc/posix-functions/strfmon_l.texi: Renamed from
54874         doc/glibc-functions/strfmon_l.texi.
54875         * doc/posix-functions/strftime_l.texi: Renamed from
54876         doc/glibc-functions/strftime_l.texi.
54877         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54878         doc/glibc-functions/strncasecmp_l.texi.
54879         * doc/posix-functions/strndup.texi: Renamed from
54880         doc/glibc-functions/strndup.texi.
54881         * doc/posix-functions/strnlen.texi: Renamed from
54882         doc/glibc-functions/strnlen.texi.
54883         * doc/posix-functions/strsignal.texi: Renamed from
54884         doc/glibc-functions/strsignal.texi.
54885         * doc/posix-functions/strxfrm_l.texi: Renamed from
54886         doc/glibc-functions/strxfrm_l.texi.
54887         * doc/posix-functions/timer_gettime.texi: Renamed from
54888         doc/glibc-functions/timer_gettime.texi.
54889         * doc/posix-functions/tolower_l.texi: Renamed from
54890         doc/glibc-functions/tolower_l.texi.
54891         * doc/posix-functions/toupper_l.texi: Renamed from
54892         doc/glibc-functions/toupper_l.texi.
54893         * doc/posix-functions/towctrans_l.texi: Renamed from
54894         doc/glibc-functions/towctrans_l.texi.
54895         * doc/posix-functions/towlower_l.texi: Renamed from
54896         doc/glibc-functions/towlower_l.texi.
54897         * doc/posix-functions/towupper_l.texi: Renamed from
54898         doc/glibc-functions/towupper_l.texi.
54899         * doc/posix-functions/uselocale.texi: Renamed from
54900         doc/glibc-functions/uselocale.texi.
54901         * doc/posix-functions/vdprintf.texi: Renamed from
54902         doc/glibc-functions/vdprintf.texi.
54903         * doc/posix-functions/wcpcpy.texi:
54904         Renamed from doc/glibc-functions/wcpcpy.texi.
54905         * doc/posix-functions/wcpncpy.texi: Renamed from
54906         doc/glibc-functions/wcpncpy.texi.
54907         * doc/posix-functions/wcscasecmp.texi: Renamed from
54908         doc/glibc-functions/wcscasecmp.texi.
54909         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54910         doc/glibc-functions/wcscasecmp_l.texi.
54911         * doc/posix-functions/wcscoll_l.texi: Renamed from
54912         doc/glibc-functions/wcscoll_l.texi.
54913         * doc/posix-functions/wcsdup.texi: Renamed from
54914         doc/glibc-functions/wcsdup.texi.
54915         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54916         doc/glibc-functions/wcsncasecmp.texi.
54917         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54918         doc/glibc-functions/wcsncasecmp_l.texi.
54919         * doc/posix-functions/wcsnlen.texi: Renamed from
54920         doc/glibc-functions/wcsnlen.texi.
54921         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54922         doc/glibc-functions/wcsnrtombs.texi.
54923         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54924         doc/glibc-functions/wcsxfrm_l.texi.
54925         * doc/posix-functions/wctrans_l.texi: Renamed from
54926         doc/glibc-functions/wctrans_l.texi.
54927         * doc/posix-functions/wctype_l.texi: Renamed from
54928         doc/glibc-functions/wctype_l.texi.
54929         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54930         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54931         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54932         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54933         these subsections.
54934         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54935         Remove sections.
54936
54937 2008-12-14  Bruno Haible  <bruno@clisp.org>
54938
54939         Update doc for POSIX:2008.
54940         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54941
54942 2008-12-14  Bruno Haible  <bruno@clisp.org>
54943
54944         Update doc for POSIX:2008.
54945         * doc/pastposix-functions/bcmp.texi: Renamed from
54946         doc/posix-functions/bcmp.texi.
54947         * doc/pastposix-functions/bcopy.texi: Renamed from
54948         doc/posix-functions/bcopy.texi.
54949         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54950         doc/posix-functions/bsd_signal.texi.
54951         * doc/pastposix-functions/bzero.texi: Renamed from
54952         doc/posix-functions/bzero.texi.
54953         * doc/pastposix-functions/ecvt.texi: Renamed from
54954         doc/posix-functions/ecvt.texi.
54955         * doc/pastposix-functions/fcvt.texi: Renamed from
54956         doc/posix-functions/fcvt.texi.
54957         * doc/pastposix-functions/ftime.texi: Renamed from
54958         doc/posix-functions/ftime.texi.
54959         * doc/pastposix-functions/gcvt.texi: Renamed from
54960         doc/posix-functions/gcvt.texi.
54961         * doc/pastposix-functions/getcontext.texi: Renamed from
54962         doc/posix-functions/getcontext.texi.
54963         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54964         doc/posix-functions/gethostbyaddr.texi.
54965         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54966         doc/posix-functions/gethostbyname.texi.
54967         * doc/pastposix-functions/getwd.texi: Renamed from
54968         doc/posix-functions/getwd.texi.
54969         * doc/pastposix-functions/h_errno.texi: Renamed from
54970         doc/posix-functions/h_errno.texi.
54971         * doc/pastposix-functions/index.texi: Renamed from
54972         doc/posix-functions/index.texi.
54973         * doc/pastposix-functions/makecontext.texi: Renamed from
54974         doc/posix-functions/makecontext.texi.
54975         * doc/pastposix-functions/mktemp.texi: Renamed from
54976         doc/posix-functions/mktemp.texi.
54977         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54978         doc/posix-functions/pthread_attr_getstackaddr.texi.
54979         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54980         doc/posix-functions/pthread_attr_setstackaddr.texi.
54981         * doc/pastposix-functions/rindex.texi: Renamed from
54982         doc/posix-functions/rindex.texi.
54983         * doc/pastposix-functions/scalb.texi: Renamed from
54984         doc/posix-functions/scalb.texi.
54985         * doc/pastposix-functions/setcontext.texi: Renamed from
54986         doc/posix-functions/setcontext.texi.
54987         * doc/pastposix-functions/swapcontext.texi: Renamed from
54988         doc/posix-functions/swapcontext.texi.
54989         * doc/pastposix-functions/ualarm.texi: Renamed from
54990         doc/posix-functions/ualarm.texi.
54991         * doc/pastposix-functions/usleep.texi: Renamed from
54992         doc/posix-functions/usleep.texi.
54993         * doc/pastposix-functions/vfork.texi: Renamed from
54994         doc/posix-functions/vfork.texi.
54995         * doc/pastposix-functions/wcswcs.texi: Renamed from
54996         doc/posix-functions/wcswcs.texi.
54997         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54998         (Function Substitutes): Update.
54999
55000 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55001
55002         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55003         m4/strerror.m4.
55004
55005 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55006             Bruno Haible  <bruno@clisp.org>
55007
55008         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55009
55010 2008-12-13  Bruno Haible  <bruno@clisp.org>
55011
55012         * modules/strtoull (Depends-on): Remove unistd.
55013
55014 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55015
55016         * modules/strtoull (Depends-on): Add stdlib.
55017
55018 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55019
55020         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55021
55022 2008-12-10  Jim Meyering  <meyering@redhat.com>
55023
55024         gl_ASSERT: don't say assertions are disabled when they're not
55025         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55026         "checking whether to enable assertions... no", when they are in
55027         fact enabled.  This is solely a bug in the output of configure.
55028         In spite of saying "no", NDEBUG was not defined in that case.
55029         Also, as noted by Eric Blake, leave assertions enabled upon
55030         --enable-assert=INVALID.
55031
55032 2008-12-10  Bruno Haible  <bruno@clisp.org>
55033
55034         Change MODULES.html to refer to POSIX:2008 where possible.
55035         * MODULES.html.sh (POSIX2008_URL): New variable.
55036         (posix_headers): Remove sys/timeb, ucontext.
55037         (posix2001_headers): New variable.
55038         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55039         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55040         index, makecontext, mktemp, pthread_attr_getstackaddr,
55041         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55042         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55043         (posix2001_functions): New variable.
55044         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55045         otherwise.
55046
55047 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55048
55049         add missing include to parse-duration.c
55050         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55051         * modules/parse-duration (Depends-on): Add xalloc.
55052
55053         fix sed script reading maint.mk
55054         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55055         (syntax-check-rules): Use it.
55056
55057 2008-12-09  Bruno Haible  <bruno@clisp.org>
55058
55059         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55060         MacOS X 10.4/PowerPC.
55061         Reported by Simon Josefsson.
55062
55063 2008-12-08  Jim Meyering  <meyering@redhat.com>
55064
55065         work around mingw's lack of some S_IF definitions
55066         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55067         Reported by Simon Josefsson.
55068
55069 2008-12-08  Bruno Haible  <bruno@clisp.org>
55070
55071         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55072         applied to variables. Needed on MacOS X 10.4/PowerPC.
55073         Reported by Simon Josefsson.
55074
55075 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55076         and Eric Blake  <ebb9@byu.net>
55077
55078         assert: honor --enable-assert
55079         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55080         order to honor --enable-assert, rather than treating it as a
55081         synonym for --disable-assert.
55082
55083 2008-12-08  Jim Meyering  <meyering@redhat.com>
55084
55085         * lib/posixtm.c: Remove now-useless declaration of mktime.
55086
55087         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55088
55089 2008-12-07  Bruno Haible  <bruno@clisp.org>
55090
55091         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55092         test_once): Mark functions as static.
55093         * tests/test-tls.c (test_tls): Likewise.
55094
55095 2008-12-07  Bruno Haible  <bruno@clisp.org>
55096
55097         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55098         iconv_register_autodetect.
55099
55100 2008-12-07  Jim Meyering  <meyering@redhat.com>
55101
55102         posixtm.c: avoid a warning
55103         * lib/posixtm.c (posixtime): Don't initialize tm0.
55104         It's no longer needed to placate gcc4's -Wuninitialized,
55105         and the attempt to placate would elicit a new warning.
55106
55107         unicodeio.c: mark unused parameters
55108         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55109         (fallback_failure_callback): Likewise.
55110
55111 2008-12-07  Bruno Haible  <bruno@clisp.org>
55112
55113         * gnulib-tool (func_create_testdir): When building the tests
55114         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55115         Reported by Simon Josefsson.
55116
55117 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55118
55119         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55120
55121 2008-12-06  Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55124         Suggested by Eric Blake.
55125
55126 2008-12-06  Bruno Haible  <bruno@clisp.org>
55127
55128         Fix a c-stack test failure on MacOS X.
55129         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55130         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55131         handler for SIGBUS as well.
55132         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55133         install a signal handler for SIGBUS as well.
55134         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55135
55136 2008-12-06  Bruno Haible  <bruno@clisp.org>
55137
55138         Advocacy documentation.
55139         * doc/gnulib-intro.texi (Benefits): New section.
55140         * doc/gnulib.texi: Update.
55141
55142 2008-12-06  Bruno Haible  <bruno@clisp.org>
55143
55144         Document the 'manywarnings' module.
55145         * doc/manywarnings.texi: New file.
55146         * doc/gnulib.texi: Include it.
55147
55148 2008-12-05  Eric Blake  <ebb9@byu.net>
55149
55150         tests: silence some gcc warnings
55151         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55152         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55153         type mismatches.
55154
55155 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55156             Bruno Haible  <bruno@clisp.org>
55157
55158         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55159
55160 2008-11-29  Jim Meyering  <meyering@redhat.com>
55161
55162         unicodeio.c: mark unused parameters
55163         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55164         (fallback_failure_callback): Likewise.
55165
55166         fts: fix a thinko
55167         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55168         (set_stat_type): Return S_IF*-valued "type" directly.
55169         Prompted by James Youngman's spotting a related bug.
55170         Confirmed by further testing through find.
55171
55172         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55173         * lib/fts.c (D_TYPE): Define.
55174         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55175         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55176         (s_ifmt_shift_bits): New function.
55177         (set_stat_type): New function.
55178         (fts_build): When not calling fts_stat, call set_stat_type
55179         to propagate dirent.d_type info to fts_read caller.
55180         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55181         fts_statp->st_mode type information may be valid.
55182
55183 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55184
55185         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55186         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55187         <sds@gnu.org>.
55188
55189 2008-11-20  Bruno Haible  <bruno@clisp.org>
55190
55191         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55192         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55193         INCLUDE_NEXT.
55194         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55195         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55196         * modules/math (Makefile.am): Substitute
55197         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55198         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55199
55200 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55201             Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/stdint.in.h: Define all type macros so that their expansion is
55204         a single typedef'ed token. Fixes a compilation failure in Boost which
55205         does "using ::int8_t;".
55206
55207 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55208
55209         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55210         gl_MANYWARN_ALL_GCC.
55211         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55212         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55213         * modules/manywarnings: New file.
55214         * MODULES.html.sh: Mention manywarnings module.
55215
55216 2008-11-18  Bruno Haible  <bruno@clisp.org>
55217
55218         * doc/gnulib-tool.texi (Unit tests): New section.
55219
55220 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55221
55222         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55223         paths like 'lib/po/foo.po'.
55224
55225 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55226
55227         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55228         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55229
55230 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55231
55232         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55233         parameter works.
55234
55235 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55236
55237         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55238
55239 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55240
55241         * modules/parse-duration-tests: New file.
55242         * tests/test-parse-duration.sh: New file.
55243         * tests/test-parse-duration.c: New file.
55244
55245         New module 'parse-duration'.
55246         * lib/parse-duration.h: New file.
55247         * lib/parse-duration.c: New file.
55248         * modules/parse-duration: New file.
55249
55250 2008-11-17  Bruno Haible  <bruno@clisp.org>
55251
55252         * tests/test-select-out.sh: Comment out the first pipe test.
55253         Reported by Simon Josefsson.
55254
55255 2008-11-17  Bruno Haible  <bruno@clisp.org>
55256
55257         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55258         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55259         gl_HOSTENT.
55260
55261 2008-11-17  Bruno Haible  <bruno@clisp.org>
55262
55263         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55264         -lnetwork and -lnet. Needed for Haiku and BeOS.
55265
55266 2008-11-16  Bruno Haible  <bruno@clisp.org>
55267
55268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55269
55270 2008-11-16  Bruno Haible  <bruno@clisp.org>
55271
55272         Avoid test failure on Haiku.
55273         * tests/test-fsync.c: Include <errno.h>.
55274         (main): Don't require that fsync (0) fails.
55275
55276 2008-11-15  Bruno Haible  <bruno@clisp.org>
55277
55278         New module 'hostent'.
55279         * modules/hostent: New file.
55280         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55281
55282 2008-11-15  Bruno Haible  <bruno@clisp.org>
55283
55284         New module 'servent'.
55285         * modules/servent: New file.
55286         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55287
55288 2008-11-15  Bruno Haible  <bruno@clisp.org>
55289
55290         Avoid generating same test program with two different rules.
55291         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55292         test-frexp to test-frexp-nolibm.
55293         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55294         test-frexpl to test-frexpl-nolibm.
55295
55296 2008-11-15  Bruno Haible  <bruno@clisp.org>
55297
55298         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55299         $(FREXPL_LIBM).
55300
55301 2008-11-15  Bruno Haible  <bruno@clisp.org>
55302
55303         * lib/netdb.in.h: Activate the definitions also when the system's
55304         <netdb.h> has 'struct addrinfo'.
55305         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55306         EAI_OVERFLOW or AI_NUMERICSERV.
55307         * doc/posix-headers/netdb.texi: Document the problem.
55308
55309 2008-11-15  Bruno Haible  <bruno@clisp.org>
55310
55311         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55312
55313         Make the 'sched' module work on platforms where <sched.h> exists but
55314         is incomplete (such as Haiku).
55315         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55316         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55317         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55318         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55319         HAVE_STRUCT_SCHED_PARAM.
55320         * modules/sched (Depends-on): Add include_next.
55321         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55322         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55323         * doc/posix-headers/sched.texi: Document the issue.
55324
55325 2008-11-13  Jim Meyering  <meyering@redhat.com>
55326
55327         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55328         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55329         test would fail due to the difference in the Report bugs to ...
55330         line.  The expected address is empty, "<>", while the actual
55331         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55332
55333 2008-11-12  Bruno Haible  <bruno@clisp.org>
55334
55335         lstat: don't compile lstat.c on systems lacking lstat
55336         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55337         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55338         Reported by Daniel P. Berrange via Jim Meyering.
55339
55340 2008-11-12  Jim Meyering  <meyering@redhat.com>
55341
55342         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55343
55344 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55345
55346         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55347         instead.
55348
55349 2008-11-12  Bruno Haible  <bruno@clisp.org>
55350
55351         * lib/unicodeio.c: Include unistr.h.
55352         (utf8_wctomb): Remove function.
55353         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55354
55355 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55356
55357         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55358         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55359         <bruno@clisp.org>.
55360         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55361
55362 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55363
55364         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55365         * doc/gnulib.texi: Add section for warnings.
55366
55367 2008-11-11  Bruno Haible  <bruno@clisp.org>
55368
55369         * lib/sockets.h: Add a comment.
55370
55371 2008-11-11  Karl Berry  <karl@gnu.org>
55372
55373         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55374
55375 2008-11-11  Eric Blake  <ebb9@byu.net>
55376
55377         fdl.texi: avoid git symlinks
55378         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55379
55380 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55381
55382         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55383
55384 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55385
55386         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55387         (gl_WARN_ADD): Substitute $2 if literal.
55388
55389 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55390
55391         * m4/warning.m4: Remove.
55392
55393 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55394
55395         * m4/warnings.m4: Almost complete rewrite. :-)
55396
55397 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55398
55399         * modules/warnings: New module.
55400         * m4/warnings.m4: New file.
55401         * MODULES.html.sh: Mention warnings module.
55402         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55403         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55404
55405 2008-11-10  Eric Blake  <ebb9@byu.net>
55406
55407         fdl.texi: make a symlink to the latest version
55408         * doc/standards.texi: Revert today's earlier change.
55409         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55410         * doc/fdl.texi: ...and replace this with a symlink to the newer
55411         fdl-1.3.texi.
55412
55413 2008-11-10  Bruno Haible  <bruno@clisp.org>
55414
55415         * tests/test-select-fd.c (main): Accept the result file name as fourth
55416         argument.
55417         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55418         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55419
55420 2008-11-10  Bruno Haible  <bruno@clisp.org>
55421
55422         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55423         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55424         as autoconf-substituted macros.
55425         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55426         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55427         gl_NETDB_H_DEFAULTS. Set these variables.
55428         * modules/netdb (Makefile.am): Substitute these variables.
55429
55430 2008-11-10  Eric Blake  <ebb9@byu.net>
55431
55432         standards.texi: include correct file for FDL 1.3
55433         * doc/standards.texi (GNU Free Documentation License): Change
55434         include file to pull in FDL 1.3, not 1.2.
55435
55436         fdl.texi: revert accidental change to license
55437         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55438
55439 2008-11-10  Bruno Haible  <bruno@clisp.org>
55440
55441         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55442         cross-compiling guesses also when the native compile gives no result.
55443
55444 2008-11-10  Bruno Haible  <bruno@clisp.org>
55445
55446         * lib/spawni.c (__spawni): Force variable into the stack.
55447
55448 2008-11-10  Bruno Haible  <bruno@clisp.org>
55449
55450         Add support for Haiku.
55451         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55452         glibc and BeOS, but also on Haiku.
55453         * lib/fpurge.c (fpurge): Likewise.
55454         * lib/freadable.c (freadable): Likewise.
55455         * lib/freadahead.c (freadahead): Likewise.
55456         * lib/freading.c (freading): Likewise.
55457         * lib/freadptr.c (freadptr): Likewise.
55458         * lib/freadseek.c (freadptrinc): Likewise.
55459         * lib/fseeko.c (rpl_fseeko): Likewise.
55460         * lib/fseterr.c (fseterr): Likewise.
55461         * lib/fwritable.c (fwritable): Likewise.
55462         * lib/fwriting.c (fwriting): Likewise.
55463         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55464
55465 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55466
55467         * lib/config.charset: Treat Haiku like BeOS.
55468
55469 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55470
55471         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55472         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55473
55474 2008-11-08  Bruno Haible  <bruno@clisp.org>
55475
55476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55477         AC_CACHE_CHECK.
55478
55479 2008-11-08  Bruno Haible  <bruno@clisp.org>
55480
55481         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55482
55483 2008-11-08  Bruno Haible  <bruno@clisp.org>
55484
55485         * tests/test-select-fd.c: New file.
55486         * tests/test-select-in.sh: New file.
55487         * tests/test-select-out.sh: New file.
55488         * tests/test-select-stdin.c: New file.
55489         * modules/select-tests (Files): Add the new files.
55490         (Depends-on): Add gettimeofday.
55491         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55492         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55493         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55494
55495 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55496             Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55499
55500 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55501
55502         * build-aux/pmccabe2html: Added support for C++ source files.
55503
55504 2008-11-05  Ben Pfaff  <blp@gnu.org>
55505
55506         Fix lib/close.c build on Windows.
55507         * modules/close (Files): Add lib/w32sock.h.
55508
55509 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55510
55511         Accept Bison's NEWS format.
55512         * build-aux/announce-gen (print_news_deltas): Tweak
55513         $re_prefix.
55514
55515 2008-11-04  Bruno Haible  <bruno@clisp.org>
55516
55517         * modules/random_r (Maintainer): Add glibc.
55518
55519 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55520
55521         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55522         by karl@freefriends.org (Karl Berry).
55523         * doc/alloca.texi: Likewise.
55524         * doc/c-ctype.texi: Likewise.
55525         * doc/c-strcase.texi: Likewise.
55526         * doc/c-strcaseeq.texi: Likewise.
55527         * doc/c-strcasestr.texi: Likewise.
55528         * doc/c-strstr.texi: Likewise.
55529         * doc/c-strtod.texi: Likewise.
55530         * doc/c-strtold.texi: Likewise.
55531         * doc/ctime.texi: Likewise.
55532         * doc/error.texi: Likewise.
55533         * doc/fdl.texi: Likewise.
55534         * doc/gcd.texi: Likewise.
55535         * doc/getdate.texi: Likewise.
55536         * doc/gnulib-intro.texi: Likewise.
55537         * doc/gnulib-tool.texi: Likewise.
55538         * doc/gnulib.texi: Likewise.
55539         * doc/inet_ntoa.texi: Likewise.
55540         * doc/maintain.texi: Likewise.
55541         * doc/make-stds.texi: Likewise.
55542         * doc/quote.texi: Likewise.
55543         * doc/regexprops-generic.texi: Likewise.
55544         * doc/standards.texi: Likewise.
55545         * doc/verify.texi: Likewise.
55546         * doc/visibility.texi: Likewise.
55547         * doc/gnulib.texi (GNU Free Documentation License): Include
55548         fdl-1.3.texi instead of fdl.texi.
55549
55550 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55551
55552         * doc/fdl-1.3.texi: New file, from
55553         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55554         * modules/fdl-1.3: Add.
55555         * MODULES.html.sh: Add fdl-1.3.
55556
55557 2008-11-03  Bruno Haible  <bruno@clisp.org>
55558
55559         Make determination of absolute name of header file work with AIX xlc.
55560         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55561         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55562         preprocessing.
55563         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55564         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55565
55566 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55567
55568         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55569         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55570         <ludo@gnu.org>.
55571
55572 2008-11-02  Bruno Haible  <bruno@clisp.org>
55573
55574         Mark 'strpbrk' obsolete.
55575         * modules/strpbrk (Status, Notice): New sections.
55576         * modules/strtok_r (Depends-on): Add strpbrk.
55577
55578 2008-11-02  Bruno Haible  <bruno@clisp.org>
55579
55580         Mark 'strdup' obsolete.
55581         * modules/strdup (Status, Notice): New sections.
55582         * modules/findprog (Depends-on): Add strdup.
55583         * modules/getaddrinfo (Depends-on): Likewise.
55584         * modules/localename (Depends-on): Likewise.
55585         * modules/relocatable-lib (Depends-on): Likewise.
55586         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55587         * modules/relocatable-prog (Depends-on): Likewise.
55588         * modules/trim (Depends-on): Likewise.
55589         * modules/unictype/gen-ctype (Depends-on): Likewise.
55590         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55591
55592 2008-11-02  Bruno Haible  <bruno@clisp.org>
55593
55594         Mark 'strcspn' obsolete.
55595         * modules/strcspn (Status, Notice): New sections.
55596
55597 2008-11-02  Bruno Haible  <bruno@clisp.org>
55598
55599         Mark 'rmdir' obsolete.
55600         * modules/rmdir (Status, Notice): New sections.
55601         * modules/clean-temp (Depends-on): Add rmdir.
55602         * modules/openat (Depends-on): Likewise.
55603
55604 2008-11-02  Bruno Haible  <bruno@clisp.org>
55605
55606         Mark 'raise' obsolete.
55607         * modules/raise (Status, Notice): New sections.
55608         (Include): Specify <signal.h>.
55609         * modules/stdio (Depends-on): Add raise.
55610         * modules/write (Depends-on): Likewise.
55611
55612 2008-11-02  Bruno Haible  <bruno@clisp.org>
55613
55614         Mark 'memset' obsolete.
55615         * modules/memset (Status, Notice): New sections.
55616
55617 2008-11-02  Bruno Haible  <bruno@clisp.org>
55618
55619         Mark 'memmove' obsolete.
55620         * modules/memmove (Status, Notice): New sections.
55621         * modules/argp (Depends-on): Add memmove.
55622         * modules/argz (Depends-on): Likewise.
55623         * modules/canonicalize (Depends-on): Likewise.
55624         * modules/canonicalize-lgpl (Depends-on): Likewise.
55625         * modules/fts (Depends-on): Likewise.
55626         * modules/getcwd (Depends-on): Likewise.
55627         * modules/human (Depends-on): Likewise.
55628         * modules/regex (Depends-on): Likewise.
55629         * modules/striconveh (Depends-on): Likewise.
55630         * modules/trim (Depends-on): Likewise.
55631         * modules/unistr/u8-move (Depends-on): Likewise.
55632         * modules/unistr/u16-move (Depends-on): Likewise.
55633         * modules/unistr/u32-move (Depends-on): Likewise.
55634
55635 2008-11-02  Bruno Haible  <bruno@clisp.org>
55636
55637         Mark 'memcpy' obsolete.
55638         * modules/memcpy (Status, Notice): New sections.
55639
55640 2008-11-02  Bruno Haible  <bruno@clisp.org>
55641
55642         Mark 'memcmp' obsolete.
55643         * modules/memcmp (Status, Notice): New sections.
55644         * modules/argmatch (Depends-on): Add memchr.
55645         * modules/backupfile (Depends-on): Likewise.
55646         * modules/c-strcasestr (Depends-on): Likewise.
55647         * modules/crypto/des (Depends-on): Likewise.
55648         * modules/csharpcomp (Depends-on): Likewise.
55649         * modules/fnmatch (Depends-on): Likewise.
55650         * modules/git-merge-changelog (Depends-on): Likewise.
55651         * modules/isnand (Depends-on): Likewise.
55652         * modules/isnand-nolibm (Depends-on): Likewise.
55653         * modules/isnanf (Depends-on): Likewise.
55654         * modules/isnanf-nolibm (Depends-on): Likewise.
55655         * modules/isnanl (Depends-on): Likewise.
55656         * modules/isnanl-nolibm (Depends-on): Likewise.
55657         * modules/mbchar (Depends-on): Likewise.
55658         * modules/memcoll (Depends-on): Likewise.
55659         * modules/quotearg (Depends-on): Likewise.
55660         * modules/regex (Depends-on): Likewise.
55661         * modules/relocatable-prog (Depends-on): Likewise.
55662         * modules/same (Depends-on): Likewise.
55663         * modules/signbit (Depends-on): Likewise.
55664         * modules/strcasestr-simple (Depends-on): Likewise.
55665         * modules/unictype/gen-ctype (Depends-on): Likewise.
55666         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55667         * modules/uniname/uniname (Depends-on): Likewise.
55668         * modules/unistr/u8-cmp (Depends-on): Likewise.
55669
55670 2008-11-02  Bruno Haible  <bruno@clisp.org>
55671
55672         Mark 'memchr' obsolete.
55673         * modules/memchr (Status, Notice): New sections.
55674         * modules/argp (Depends-on): Add memchr.
55675         * modules/base64 (Depends-on): Likewise.
55676         * modules/c-strcasestr (Depends-on): Likewise.
55677         * modules/chdir-long (Depends-on): Likewise.
55678         * modules/fnmatch (Depends-on): Likewise.
55679         * modules/getsubopt (Depends-on): Likewise.
55680         * modules/git-merge-changelog (Depends-on): Likewise.
55681         * modules/glob (Depends-on): Likewise.
55682         * modules/strcasestr-simple (Depends-on): Likewise.
55683         * modules/strnlen (Depends-on): Likewise.
55684
55685 2008-11-02  Bruno Haible  <bruno@clisp.org>
55686
55687         Mark 'atexit' obsolete.
55688         * modules/atexit (Status, Notice): New sections.
55689         * modules/chdir-long (Depends-on): Add atexit.
55690         * modules/wait-process (Depends-on): Likewise.
55691
55692 2008-11-02  Bruno Haible  <bruno@clisp.org>
55693
55694         * gnulib-tool: New option --with-obsolete.
55695         (func_usage): Document it.
55696         (func_modules_transitive_closure): Drop obsolete dependencies if
55697         incobsolete is not true.
55698         (func_import): Read and save the incobsolete variable to the cache.
55699
55700 2008-11-02  Bruno Haible  <bruno@clisp.org>
55701
55702         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55703         * gnulib-tool: New option --extract-status.
55704         (func_usage): Document it.
55705         (sed_extract_prog): Recognize it.
55706         (func_get_status): New function.
55707
55708 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55709
55710         * modules/sockets (License): Change from LGPL to LGPLv2+.
55711
55712 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55713
55714         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55715
55716 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55717
55718         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55719         Mention times and sys_times.
55720         * modules/sys_times, modules/sys_times-tests: New modules.
55721         * modules/times, modules/times-tests: Likewise
55722         * m4/sys_times_h.m4: New file.
55723         * lib/sys_times.in.h: Likewise
55724         * lib/times.c: Likewise.
55725         * tests/test-sys_times.c: Likewise.
55726         * tests/test-times.c: Likewise.
55727         * doc/posix-headers/sys_times.texi: Update.
55728         * doc/posix-functions/times.texi: Update.
55729
55730 2008-10-28  Jim Meyering  <meyering@redhat.com>
55731
55732         * modules/tempname (Depends-on): Add lstat.
55733
55734         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55735
55736 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55737
55738         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55739         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55740         using idiom used elsewhere in gnulib.
55741
55742 2008-10-27  Jim Meyering  <meyering@redhat.com>
55743
55744         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55745
55746 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55747
55748         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55749         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55750         programs.
55751         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55752
55753 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55754
55755         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55756
55757 2008-10-27  Bruno Haible  <bruno@clisp.org>
55758
55759         * tests/test-lstat.c: Include <stdio.h>.
55760
55761 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55762
55763         * modules/lstat-tests: New module.
55764         * tests/test-lstat.c: New file.
55765
55766 2008-10-26  Jim Meyering  <meyering@redhat.com>
55767
55768         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55769
55770 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55771             Bruno Haible  <bruno@clisp.org>
55772
55773         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55774         * modules/configmake (Include): Add a note that the include must come
55775         after all system headers.
55776         * lib/javaversion.c: Include configmake.h after all other includes.
55777
55778 2008-10-26  Bruno Haible  <bruno@clisp.org>
55779
55780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55781         HAVE_STRUCT_RANDOM_DATA to 1.
55782         (gl_STDLIB_H): Simplify.
55783
55784 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55785
55786         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55787         substitute HAVE_STRUCT_RANDOM_DATA.
55788         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55789         random_data.
55790         * modules/stdlib (Makefile.am): Substitute
55791         HAVE_STRUCT_RANDOM_DATA.
55792
55793 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55794
55795         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55796         * doc/gnulib-intro.texi (Copyright): Likewise.
55797
55798 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55799
55800         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55801         findings.
55802
55803 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55804             Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/unistd.in.h: Include <winsock2.h>.
55807         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55808         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55809         Provide dummy declarations.
55810         (gethostname): Override.
55811         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55812         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55813         gl_PREREQ_SYS_H_WINSOCK2.
55814         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55815         * doc/posix-functions/gethostname.texi: More details.
55816
55817 2008-10-25  Bruno Haible  <bruno@clisp.org>
55818
55819         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55820         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55821         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55822
55823         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55824         here ...
55825         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55826         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55827         gl_UNISTD_H_DEFAULTS.
55828
55829 2008-10-25  Eric Blake  <ebb9@byu.net>
55830
55831         signbit: avoid spurious compiler failure
55832         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55833         declarations inside function.
55834
55835 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55836             Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55839         * modules/random_r (Depends-on): Add stdint.
55840
55841 2008-10-24  Bruno Haible  <bruno@clisp.org>
55842
55843         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55844         Eggert.
55845         * modules/strerror (License): Likewise.
55846
55847 2008-10-24  Jim Meyering  <meyering@redhat.com>
55848
55849         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55850         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55851
55852 2008-10-24  Eric Blake  <ebb9@byu.net>
55853
55854         getgroups: fix compilation when getgroups is available
55855         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55856         but with <config.h> override of getgroups disabled.
55857
55858 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55859
55860         * doc/gnulib.texi (Header files): Add note about C++ problems.
55861         Explained by Bruno Haible <bruno@clisp.org>.
55862
55863 2008-10-23  Bruno Haible  <bruno@clisp.org>
55864
55865         Define a dummy SA_NODEFER macro on Interix.
55866         * lib/signal.in.h (SA_NODEFER): Define fallback.
55867         Reported by Aleksey Cheusov <cheusov@tut.by> via
55868         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55869
55870 2008-10-23  Bruno Haible  <bruno@clisp.org>
55871
55872         * modules/freadahead (License): Change to LGPLv2+.
55873         Suggested by Simon Josefsson.
55874
55875 2008-10-23  Jim Meyering  <meyering@redhat.com>
55876
55877         random_r: new module
55878         * modules/random_r: New file.
55879         * m4/random_r.m4: New file.
55880         * lib/random_r.c: New file, from glibc.
55881         * modules/random_r-tests: New file.
55882         * tests/test-random_r.c: New file.
55883         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55884          Declare.
55885         (RAND_MAX): Define.
55886         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55887         * modules/stdlib: Substitute them, too.
55888         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55889         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55890         * doc/glibc-functions/random_r.texi: Likewise.
55891         * doc/glibc-functions/setstate_r.texi: Likewise.
55892         * doc/glibc-functions/srandom_r.texi: Likewise.
55893         * config/srclist.txt: Mention it.
55894
55895 2008-10-23  David Lutterkort  <lutter@redhat.com>
55896
55897         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55898         link requirement
55899
55900 2008-10-23  Jim Meyering  <meyering@redhat.com>
55901
55902         selinux-h: mark parameters of stub functions as intentionally unused
55903         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55904         * lib/se-context.in.h: Likewise.
55905
55906 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55907
55908         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55909
55910 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55911
55912         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55913
55914 2008-10-22  Eric Blake  <ebb9@byu.net>
55915
55916         glthread/thread: avoid compiler warning
55917         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55918         Add unreachable abort to silence compiler.
55919
55920 2008-10-22  Eric Blake  <ebb9@byu.net>
55921
55922         netdb: also supply struct addrinfo for cygwin 1.5.x
55923         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55924         older cygwin.
55925         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55926         cygwin.
55927         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55928
55929 2008-10-22  Bruno Haible  <bruno@clisp.org>
55930
55931         * users.txt: Update entry about pspp.
55932
55933 2008-10-21  Bruno Haible  <bruno@clisp.org>
55934
55935         Simplification.
55936         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55937         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55938
55939         Simplification.
55940         * lib/ioctl.c (ioctl): Don't undefine.
55941         * lib/socket.c (socket): Don't undefine.
55942
55943         Remove unused module indicator macros.
55944         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55945         GNULIB_$1 as a C macro.
55946
55947         * doc/posix-functions/close.texi: Undo last change.
55948         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55949         Windows platforms.
55950
55951 2008-10-21  Bruno Haible  <bruno@clisp.org>
55952
55953         Add gethostname() declaration to <unistd.h>.
55954         * lib/unistd.in.h (gethostname): New declaration.
55955         * lib/gethostname.c: Include <unistd.h>.
55956         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55957         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55959         and HAVE_GETHOSTNAME.
55960         * modules/gethostname (Depends-on): Add unistd.
55961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55962         (Include): Specify <unistd.h>.
55963         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55964         HAVE_GETHOSTNAME.
55965         * tests/test-gethostname.c: Include <unistd.h> first.
55966
55967 2008-10-21  Bruno Haible  <bruno@clisp.org>
55968
55969         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55970         * modules/select-tests (Depends-on): Likewise.
55971         Reported by Simon Josefsson.
55972
55973 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55974
55975         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55976         * lib/accept.c: New file, based on winsock.c.
55977         * lib/bind.c: New file, based on winsock.c.
55978         * lib/connect.c: New file, based on winsock.c.
55979         * lib/getpeername.c: New file, based on winsock.c.
55980         * lib/getsockname.c: New file, based on winsock.c.
55981         * lib/getsockopt.c: New file, based on winsock.c.
55982         * lib/ioctl.c: New file, based on winsock.c.
55983         * lib/listen.c: New file, based on winsock.c.
55984         * lib/recv.c: New file, based on winsock.c.
55985         * lib/recvfrom.c: New file, based on winsock.c.
55986         * lib/send.c: New file, based on winsock.c.
55987         * lib/sendto.c: New file, based on winsock.c.
55988         * lib/setsockopt.c: New file, based on winsock.c.
55989         * lib/shutdown.c: New file, based on winsock.c.
55990         * lib/socket.c: New file, based on winsock.c.
55991         * lib/w32sock.h: New file, based on winsock.c.
55992         * lib/winsock.c: Remove file.
55993         * modules/accept: Likewise.
55994         * modules/bind: Likewise.
55995         * modules/connect: Likewise.
55996         * modules/getpeername: Likewise.
55997         * modules/getsockname: Likewise.
55998         * modules/getsockopt: Likewise.
55999         * modules/ioctl: Likewise.
56000         * modules/listen: Likewise.
56001         * modules/recv: Likewise.
56002         * modules/recvfrom: Likewise.
56003         * modules/send: Likewise.
56004         * modules/sendto: Likewise.
56005         * modules/setsockopt: Likewise.
56006         * modules/shutdown: Likewise.
56007         * modules/socket: Use socket.c instead of winsock.c.
56008         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56009         * doc/posix-functions/accept.texi: Doc fix.
56010         * doc/posix-functions/bind.texi: Doc fix.
56011         * doc/posix-functions/close.texi: Doc fix.
56012         * doc/posix-functions/connect.texi: Doc fix.
56013         * doc/posix-functions/getpeername.texi: Doc fix.
56014         * doc/posix-functions/getsockname.texi: Doc fix.
56015         * doc/posix-functions/getsockopt.texi: Doc fix.
56016         * doc/posix-functions/ioctl.texi: Doc fix.
56017         * doc/posix-functions/listen.texi: Doc fix.
56018         * doc/posix-functions/recv.texi: Doc fix.
56019         * doc/posix-functions/recvfrom.texi: Doc fix.
56020         * doc/posix-functions/send.texi: Doc fix.
56021         * doc/posix-functions/sendto.texi: Doc fix.
56022         * doc/posix-functions/setsockopt.texi: Doc fix.
56023         * doc/posix-functions/shutdown.texi: Doc fix.
56024         * doc/posix-functions/socket.texi: Doc fix.
56025
56026 2008-10-20  Bruno Haible  <bruno@clisp.org>
56027
56028         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56029         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56030         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56031         as an alias for SIGABRT.
56032         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56033         (sigaction): Map it to SIGABRT.
56034         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56035
56036 2008-10-20  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/fts.c: Don't include lstat.h.
56039         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56040
56041         Move the lstat() declaration to <sys/stat.h>.
56042         * lib/lstat.h: Remove file.
56043         * lib/sys_stat.in.h: Add special invocation convention.
56044         (lstat): New declaration.
56045         * lib/lstat.c (orig_lstat): New function.
56046         (rpl_lstat): Use orig_lstat instead of lstat.
56047         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56048         AC_C_INLINE. Set REPLACE_LSTAT.
56049         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56050         and REPLACE_LSTAT.
56051         * modules/lstat (Files): Remove lib/lstat.h.
56052         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56053         (Include): Specify <sys/stat.h> instead of lstat.h.
56054         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56055         REPLACE_LSTAT.
56056         * NEWS: Mention the change.
56057
56058 2008-10-20  Bruno Haible  <bruno@clisp.org>
56059
56060         * modules/posix_spawn-tests: New file.
56061         * tests/test-posix_spawn3.c: New file.
56062
56063 2008-10-20  Bruno Haible  <bruno@clisp.org>
56064
56065         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56066         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56067         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56068         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56069         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56070
56071 2008-10-20  Bruno Haible  <bruno@clisp.org>
56072
56073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56074         of posix_spawn on AIX 5.3.
56075
56076 2008-10-20  Bruno Haible  <bruno@clisp.org>
56077
56078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56079
56080 2008-10-20  Bruno Haible  <bruno@clisp.org>
56081
56082         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56083         of AC_LANG_PROGRAM.
56084
56085 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56086
56087         * lib/netdb.in.h: Don't define GNU specific constants until they
56088         are supported or needed.  Reported by Bruno Haible
56089         <bruno@clisp.org>.
56090
56091 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56092
56093         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56094
56095 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56096
56097         * lib/getaddrinfo.h: Remove file.
56098         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56099         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56100         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56101         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56102         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56103         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56104         * tests/test-getaddrinfo.c: Likewise.
56105         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56106         * NEWS: Mention change.
56107
56108 2008-10-19  Bruno Haible  <bruno@clisp.org>
56109
56110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56111
56112 2008-10-19  Bruno Haible  <bruno@clisp.org>
56113
56114         * lib/wait-process.c: Include simply <sys/wait.h>.
56115         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56116         WIFSTOPPED): Remove fallback definitions.
56117         * modules/wait-process (Depends-on): Add sys_wait.
56118
56119         New module 'sys_wait'.
56120         * modules/sys_wait: New file.
56121         * lib/sys_wait.in.h: New file, partially copied from
56122         lib/wait-process.c.
56123         * m4/sys_wait_h.m4: New file.
56124         * doc/posix-headers/sys_wait.texi: Mention the new module.
56125
56126 2008-10-19  Bruno Haible  <bruno@clisp.org>
56127
56128         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56129
56130 2008-10-19  Bruno Haible  <bruno@clisp.org>
56131
56132         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56133         * lib/wait-process.c (WAIT_T): Remove type.
56134         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56135         (wait_subprocess): Update.
56136
56137 2008-10-19  Bruno Haible  <bruno@clisp.org>
56138
56139         New module 'atoll'.
56140         * modules/atoll: New file.
56141         * lib/stdlib.in.h (atoll): New declaration.
56142         * lib/atoll.c: New file, from glibc with modifications.
56143         * m4/atoll.m4: New file.
56144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56145         HAVE_ATOLL.
56146         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56147         * doc/posix-functions/atoll.texi: Mention the new module.
56148
56149 2008-10-19  Bruno Haible  <bruno@clisp.org>
56150
56151         Add strtoull() declaration to <stdlib.h>.
56152         * lib/stdlib.in.h (strtoull): New declaration.
56153         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56154         Set HAVE_STRTOULL.
56155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56156         HAVE_STRTOULL.
56157         * modules/strtoull (Depends-on): Add stdlib.
56158         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56159         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56160         HAVE_STRTOULL.
56161
56162 2008-10-19  Bruno Haible  <bruno@clisp.org>
56163
56164         Add strtoll() declaration to <stdlib.h>.
56165         * lib/stdlib.in.h (strtoll): New declaration.
56166         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56167         Set HAVE_STRTOLL.
56168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56169         HAVE_STRTOLL.
56170         * modules/strtoll (Depends-on): Add stdlib.
56171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56172         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56173
56174 2008-10-19  Bruno Haible  <bruno@clisp.org>
56175
56176         * modules/bcopy (Depends-on): Add strings.
56177         (Include): Specify <strings.h>.
56178
56179 2008-10-19  Bruno Haible  <bruno@clisp.org>
56180
56181         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56182
56183 2008-10-19  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56186         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56187         mingw.
56188
56189 2008-10-19  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/atanl.c: Don't include isnanl.h.
56192         * lib/cosl.c: Likewise.
56193         * lib/ldexpl.c: Likewise.
56194         * lib/logl.c: Likewise.
56195         * lib/sinl.c: Likewise.
56196         * lib/sqrtl.c: Likewise.
56197         * lib/tanl.c: Likewise.
56198
56199         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56200         * lib/isnanf.h: Remove file.
56201         * lib/isnand.h: Remove file.
56202         * lib/isnanl.h: Remove file.
56203         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56204         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56205         macros.
56206         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56207         HAVE_ISNANF, don't define it as a C macro.
56208         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56209         HAVE_ISNAND, don't define it as a C macro.
56210         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56211         HAVE_ISNANL, don't define it as a C macro.
56212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56213         HAVE_ISNAN[FDL].
56214         * modules/isnanf (Files): Remove lib/isnanf.h.
56215         (Depends-on): Add math.
56216         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56217         (Include): Specify <math.h> instead of isnanf.h.
56218         * modules/isnand (Files): Remove lib/isnand.h.
56219         (Depends-on): Add math.
56220         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56221         (Include): Specify <math.h> instead of isnand.h.
56222         * modules/isnanl (Files): Remove lib/isnanl.h.
56223         (Depends-on): Add math.
56224         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56225         (Include): Specify <math.h> instead of isnanl.h.
56226         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56227         HAVE_ISNAN[FDL].
56228         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56229         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56230         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56231         * NEWS: Mention the change.
56232
56233 2008-10-18  Bruno Haible  <bruno@clisp.org>
56234
56235         Add getusershell(), setusershell(), endusershell() declarations to
56236         <unistd.h>.
56237         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56238         declarations.
56239         * lib/getusershell.c: Include unistd.h.
56240         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56241         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56242         HAVE_GETUSERSHELL.
56243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56244         and HAVE_GETUSERSHELL.
56245         * modules/getusershell (Depends-on): Add unistd, extensions.
56246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56247         (Include): Specify <unistd.h>.
56248         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56249         HAVE_GETUSERSHELL.
56250
56251 2008-10-18  Bruno Haible  <bruno@clisp.org>
56252
56253         Add a getloadavg() declaration to <stdlib.h>.
56254         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56255         getloadavg declaration.
56256         (getloadavg): New declaration.
56257         * lib/getloadavg.c: Include <stdlib.h> first.
56258         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56259         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56260         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56262         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56263         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56264         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56265         (Include): Specify <stdlib.h>.
56266         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56267         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56268
56269 2008-10-18  Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/dirchownmod.c: Don't include lchmod.h.
56272
56273         Move the lchmod() declaration to <sys/stat.h>.
56274         * lib/lchmod.h: Remove file.
56275         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56276         (lchmod): New declaration, moved here from lib/lchown.h.
56277         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56278         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56280         and HAVE_LCHMOD.
56281         * modules/lchmod (Files): Remove lib/lchmod.h.
56282         (Depends-on): Add sys_stat, extensions.
56283         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56284         (Include): Specify <sys/stat.h> instead of lchmod.h.
56285         * modules/sys_stat (Depends-on): Add link-warning.
56286         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56287         definition of GL_LINK_WARNING.
56288         * NEWS: Mention the change.
56289
56290 2008-10-18  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/fchdir.c: Don't include dirfd.h.
56293         * lib/fts.c: Likewise.
56294         * lib/getcwd.c: Likewise.
56295         * lib/glob.c: Likewise.
56296
56297         Move the dirfd() declaration to <dirent.h>.
56298         * lib/dirfd.h: Remove file.
56299         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56300         (dirfd): New declaration.
56301         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56302         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56303         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56304         HAVE_DECL_DIRFD.
56305         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56306         HAVE_DECL_DIRFD.
56307         * modules/dirfd (Files): Remove lib/dirfd.h.
56308         (Depends-on): Add dirent, extensions.
56309         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56310         (Include): Specify <dirent.h> instead of dirfd.h.
56311         * modules/dirent (Depends-on): Add link-warning.
56312         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56313         definition of GL_LINK_WARNING.
56314         * NEWS: Mention the change.
56315
56316 2008-10-18  Bruno Haible  <bruno@clisp.org>
56317
56318         Move the euidaccess() declaration to <unistd.h>.
56319         * lib/euidaccess.h: Remove file.
56320         * lib/unistd.in.h (euidaccess): New declaration.
56321         * lib/euidaccess.c: Don't include euidaccess.h.
56322         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56323         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56325         and HAVE_EUIDACCESS.
56326         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56327         (Depends-on): Add unistd.
56328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56329         (Include): Specify <unistd.h> instead of euidaccess.h.
56330         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56331         HAVE_EUIDACCESS.
56332         * NEWS: Mention the change.
56333
56334 2008-10-18  Bruno Haible  <bruno@clisp.org>
56335
56336         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56337
56338         Move the getdomainname() declaration to <unistd.h>.
56339         * lib/getdomainname.h: Remove file.
56340         * lib/unistd.in.h (getdomainname): New declaration.
56341         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56342         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56343         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56344         HAVE_GETDOMAINNAME.
56345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56346         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56347         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56348         (Depends-on): Add unistd, extensions.
56349         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56350         (Includes): Specify <unistd.h> instead of getdomainname.h.
56351         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56352         HAVE_GETDOMAINNAME.
56353         * NEWS: Mention the change.
56354
56355 2008-10-18  Bruno Haible  <bruno@clisp.org>
56356
56357         * modules/dirent: New file.
56358         * m4/dirent_h.m4: New file.
56359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56360         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56361         * modules/fchdir (Files): Remove lib/dirent.in.h.
56362         (Depends-on): Add dirent.
56363         (Makefile.am): Move rules to modules/dirent.
56364         * doc/posix-headers/dirent.texi: Mention the new module.
56365
56366 2008-10-18  Bruno Haible  <bruno@clisp.org>
56367
56368         Avoid -Wunused-parameter warnings in public gnulib header files.
56369         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56370         macro.
56371         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56372
56373 2008-10-18  Bruno Haible  <bruno@clisp.org>
56374
56375         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56376         * doc/glibc-functions/error.texi: Mention the module 'error'.
56377         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56378         * doc/glibc-functions/getdomainname.texi: Mention the module
56379         'getdomainname'.
56380         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56381         * doc/glibc-functions/getpagesize.texi: Mention the module
56382         'getpagesize'.
56383         * doc/glibc-functions/getusershell.texi: Mention the module
56384         'getusershell'.
56385         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56386         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56387         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56388         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56389         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56390         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56391         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56392         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56393         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56394         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56395         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56396         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56397         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56398         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56399
56400 2008-10-17  Bruno Haible  <bruno@clisp.org>
56401
56402         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56403         HP-UX and IRIX, use -0.0L.
56404         * tests/test-ceill.c (minus_zero): Likewise.
56405         * tests/test-floorl.c (minus_zero): Likewise.
56406         * tests/test-frexpl.c (minus_zero): Likewise.
56407         * tests/test-isnan.c (minus_zerol): Likewise.
56408         * tests/test-isnanl.h (minus_zero): Likewise.
56409         * tests/test-ldexpl.c (minus_zero): Likewise.
56410         * tests/test-roundl.c (minus_zero): Likewise.
56411         * tests/test-signbit.c (minus_zerol): Likewise.
56412         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56413         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56414         * tests/test-truncl.c (minus_zero): Likewise.
56415         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56416         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56417         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56418         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56419
56420 2008-10-17  Bruno Haible  <bruno@clisp.org>
56421
56422         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56423         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56424         that it gets activated only for gcc >= 3.0.
56425         * lib/dirent.in.h: Likewise.
56426         * lib/errno.in.h: Likewise.
56427         * lib/fcntl.in.h: Likewise.
56428         * lib/float.in.h: Likewise.
56429         * lib/iconv.in.h: Likewise.
56430         * lib/inttypes.in.h: Likewise.
56431         * lib/locale.in.h: Likewise.
56432         * lib/math.in.h: Likewise.
56433         * lib/netdb.in.h: Likewise.
56434         * lib/netinet_in.in.h: Likewise.
56435         * lib/search.in.h: Likewise.
56436         * lib/signal.in.h: Likewise.
56437         * lib/spawn.in.h: Likewise.
56438         * lib/stdarg.in.h: Likewise.
56439         * lib/stdint.in.h: Likewise.
56440         * lib/stdio.in.h: Likewise.
56441         * lib/stdlib.in.h: Likewise.
56442         * lib/string.in.h: Likewise.
56443         * lib/strings.in.h: Likewise.
56444         * lib/sys_file.in.h: Likewise.
56445         * lib/sys_ioctl.in.h: Likewise.
56446         * lib/sys_select.in.h: Likewise.
56447         * lib/sys_socket.in.h: Likewise.
56448         * lib/sys_stat.in.h: Likewise.
56449         * lib/sys_time.in.h: Likewise.
56450         * lib/sysexits.in.h: Likewise.
56451         * lib/time.in.h: Likewise.
56452         * lib/unistd.in.h: Likewise.
56453         * lib/wchar.in.h: Likewise.
56454         * lib/wctype.in.h: Likewise.
56455         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56456
56457 2008-10-17  Jim Meyering  <meyering@redhat.com>
56458
56459         ignore-value: don't depend on inline module
56460         * modules/ignore-value (Depends-on): Remove 'inline'.
56461         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56462         Suggestion from Bruno Haible.
56463
56464 2008-10-17  Bruno Haible  <bruno@clisp.org>
56465
56466         New implementation of condition variables for Win32.
56467         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56468         (gl_linked_waitqueue_t): New type.
56469         (gl_cond_t): Use it.
56470         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56471         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56472         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56473         (glthread_cond_init_func, glthread_cond_wait_func,
56474         glthread_cond_timedwait_func, glthread_cond_signal_func,
56475         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56476         Reimplemented on the basis of gl_linked_waitqueue_t.
56477         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56478         gl_waitqueue_t.
56479         (gl_rwlock_t): Update.
56480         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56481
56482 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56483
56484         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56485         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56486
56487 2008-10-17  Jim Meyering  <meyering@redhat.com>
56488
56489         ignore-value: new module
56490         * modules/ignore-value: New file.
56491         * lib/ignore-value.h: New file.
56492         * MODULES.html.sh (Compiler warning management): New section,
56493         just for this module.  More to come.
56494
56495 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56496
56497         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56498         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56499         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56500
56501 2008-10-16  Jim Meyering  <meyering@redhat.com>
56502
56503         openat-die.c: avoid 'no previous prototype' warning
56504         * lib/openat-die.c: Include "openat.h".
56505         Reported by Reuben Thomas <rrt@sc3d.org>.
56506
56507 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56508
56509         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56510         * lib/netdb.in.h: Fix typo.
56511         Reported by Bruno Haible  <bruno@clisp.org>
56512
56513         * lib/netdb.in.h: Include sys/socket.h for platforms without
56514         netdb.h, to get structures like hostent on MinGW.
56515         * modules/netdb (Depends-on): Add sys_socket.
56516
56517 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56518
56519         * modules/netdb, modules/netdb-tests: New file.
56520         * m4/netdb_h.m4: New file.
56521         * lib/netdb.in.h: Add, currently just an empty file pending
56522         definitions.
56523         * tests/test-netdb.c: New file.
56524         * doc/posix-headers/netdb.texi: Mention that we replace it if
56525         needed.
56526         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56527         netdb.
56528
56529 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56530
56531         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56532         with code.
56533
56534 2008-10-13  Bruno Haible  <bruno@clisp.org>
56535
56536         * lib/glthread/cond.c (glthread_cond_wait_func,
56537         glthread_cond_timedwait_func): Add a comment.
56538
56539 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56540
56541         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56542         * tests/test-select.c: Likewise,
56543
56544 2008-10-13  Bruno Haible  <bruno@clisp.org>
56545
56546         * lib/glthread/cond.c (glthread_cond_wait_func,
56547         glthread_cond_timedwait_func): Fix variable name.
56548         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56549
56550 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56551
56552         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56553         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56554         struct sockaddr.sa_len.
56555         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56556
56557 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56558
56559         * build-aux/pmccabe2html: Add css and css_url parameters.
56560
56561 2008-10-12  Bruno Haible  <bruno@clisp.org>
56562
56563         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56564         calling aclx_get.
56565         Reported by Rainer Tammer <tammer@tammer.net>.
56566
56567 2008-10-12  Bruno Haible  <bruno@clisp.org>
56568
56569         Use msvcrt aware primitives for creation/termination of Win32 threads.
56570         * lib/glthread/thread.c: Include <process.h>.
56571         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56572         (wrapper_func): Update signature.
56573         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56574
56575 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56576             Bruno Haible  <bruno@clisp.org>
56577
56578         Provide a Win32 implementation of the 'cond' module.
56579         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56580         * lib/glthread/cond.c (glthread_cond_init_func,
56581         glthread_cond_wait_func, glthread_cond_timedwait_func,
56582         glthread_cond_signal_func, glthread_cond_broadcast_func,
56583         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56584         * modules/cond (Dependencies): Add gettimeofday.
56585
56586 2008-10-11  Bruno Haible  <bruno@clisp.org>
56587
56588         Make sleep work on older versions of mingw.
56589         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56590         only whether it exists.
56591         * doc/posix-functions/sleep.texi: Mention the problem with older
56592         versions of mingw.
56593
56594 2008-10-11  Bruno Haible  <bruno@clisp.org>
56595
56596         New module 'shutdown'.
56597         * modules/shutdown: New file.
56598         * lib/sys_socket.in.h (shutdown): New declaration.
56599         * lib/winsock.c (shutdown): New function.
56600         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56601         GNULIB_SHUTDOWN.
56602         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56603         * doc/posix-functions/shutdown.texi: Document the new module.
56604
56605 2008-10-11  Jim Meyering  <meyering@redhat.com>
56606
56607         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56608
56609 2008-10-11  Bruno Haible  <bruno@clisp.org>
56610
56611         New module 'fclose'.
56612         * modules/fclose: New file.
56613         * lib/stdio.in.h (fclose): New declaration.
56614         * lib/fclose.c: New file.
56615         * m4/fclose.m4: New file.
56616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56617         REPLACE_FCLOSE.
56618         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56619         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56620         REPLACE_FCLOSE.
56621         * modules/close (Depends-on): fclose.
56622         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56623
56624 2008-10-11  Bruno Haible  <bruno@clisp.org>
56625
56626         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56627         set errno and don't call _close.
56628
56629 2008-10-10  Bruno Haible  <bruno@clisp.org>
56630
56631         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56632         ACL, not afterwards. Fixes test failure on Cygwin.
56633
56634 2008-10-09  Ben Pfaff  <blp@gnu.org>
56635
56636         * build-aux/announce-gen: Fix gnulib version related part of usage
56637         message.  Die with a useful error message if no tarballs are
56638         found.
56639
56640 2008-10-10  Jim Meyering  <meyering@redhat.com>
56641
56642         bootstrap: use git's --depth=N option only if it's supported
56643         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56644         recognize the --depth option.  Reported by Pádraig Brady.
56645
56646 2008-10-09  Bruno Haible  <bruno@clisp.org>
56647
56648         New module 'ioctl'.
56649         * modules/ioctl: New file.
56650         * lib/sys_socket.in.h (ioctl): Remove declaration.
56651         * lib/winsock.c: Include <sys/ioctl.h>.
56652         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56653         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56654         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56655         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56656         * doc/posix-functions/ioctl.texi: Mention the new module.
56657
56658 2008-10-09  Bruno Haible  <bruno@clisp.org>
56659
56660         New module 'sys_ioctl'.
56661         * lib/sys_ioctl.in.h: New file.
56662         * m4/sys_ioctl_h.m4: New file.
56663         * modules/sys_ioctl: New file.
56664         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56665
56666 2008-10-09  Bruno Haible  <bruno@clisp.org>
56667
56668         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56669         * lib/winsock.c: Include <stdarg.h>.
56670         (rpl_ioctl): Change to second argument 'int' and then varargs.
56671
56672 2008-10-09  Bruno Haible  <bruno@clisp.org>
56673
56674         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56675         when the sys_socket module is present and the system has <winsock2.h>.
56676
56677 2008-10-09  Bruno Haible  <bruno@clisp.org>
56678
56679         * doc/posix-functions/close.texi: Mention module 'close' instead of
56680         module 'sys_socket'.
56681
56682 2008-10-09  Bruno Haible  <bruno@clisp.org>
56683
56684         * doc/glibc-headers/sys_ioctl.texi: New file.
56685         * doc/gnulib.texi: Include it.
56686
56687 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56688             Bruno Haible  <bruno@clisp.org>
56689
56690         Combine the two replacements of 'close'.
56691         * lib/sys_socket.in.h (close): Define to a reminder to include
56692         <unistd.h>.
56693         (_gl_close_fd_maybe_socket): New declaration.
56694         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56695         * lib/winsock.c (close): Remove undefinition.
56696         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56697         needed for the gnulib module 'close'.
56698         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56699         define to an error symbol or to a warning, if suitable.
56700         * lib/close.c: Include <sys/socket.h>.
56701         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56702         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56703         UNISTD_H_HAVE_WINSOCK2_H.
56704         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56706         UNISTD_H_HAVE_WINSOCK2_H.
56707         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56708         (configure.ac): Set a module indicator.
56709         (Makefile.am): Substitute GNULIB_CLOSE.
56710         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56711         * modules/poll-tests (Depends-on): Add close.
56712         * modules/select-tests (Depends-on): Likewise.
56713
56714 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56715             Bruno Haible  <bruno@clisp.org>
56716
56717         New module 'close'.
56718         * modules/close: New file.
56719         * lib/unistd.in.h (close): Move declaration out of the
56720         FCHDIR_REPLACEMENT scope.
56721         (_gl_unregister_fd): New declaration.
56722         * lib/close.c: New file.
56723         * lib/fchdir.c (rpl_close): Remove function.
56724         * m4/close.m4: New file.
56725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56726         close.
56727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56728         REPLACE_CLOSE.
56729         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56730         REPLACE_CLOSE.
56731         * modules/fchdir (Depends-on): Add close.
56732
56733 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56734             Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/fcntl.in.h (open): Simplify conditionals.
56737         (_gl_register_fd): New declaration.
56738         * lib/fchdir.c (rpl_open): Remove function.
56739         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56740         also.
56741         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56742         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56743         open.
56744
56745 2008-10-09  Jim Meyering  <meyering@redhat.com>
56746
56747         GNUmakefile: use the more name-space-friendly "_version"
56748         * top/GNUmakefile (_dummy): Update.
56749         (_version): Rename from "version".
56750
56751 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56752             Bruno Haible  <bruno@clisp.org>
56753
56754         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56755         rpl_close.
56756         (_gl_register_fd): New function, extracted from rpl_open.
56757         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56758         (rpl_open, rpl_opendir): Use _gl_register_fd.
56759
56760 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56761
56762         Fix organization of 'open' replacement.
56763         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56764         (gl_FUNC_OPEN): Use it.
56765         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56766
56767 2008-10-08  Bruno Haible  <bruno@clisp.org>
56768
56769         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56770
56771 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56772
56773         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56774         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56775         listen).
56776
56777 2008-10-08  Eric Blake  <ebb9@byu.net>
56778
56779         GNUmakefile: add 'make version' target
56780         * top/GNUmakefile (_curr-ver): Split version update rules...
56781         (version): ...into a target.
56782
56783 2008-10-07  Bruno Haible  <bruno@clisp.org>
56784
56785         Use a more portable replacement expression for -0.0L.
56786         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56787         instead of -0.0L. Fix m4 quotation.
56788
56789         * tests/test-signbit.c: Include <float.h>.
56790         (minus_zero): New variable.
56791         (test_signbitl): Use minus_zero instead of -zero.
56792         * modules/signbit-tests (Depends-on): Add float.
56793
56794         * tests/test-ceill.c: Include <float.h>.
56795         (zero): Remove variable.
56796         (minus_zero): New variable.
56797         (main): Use minus_zero instead of -zero.
56798         * modules/ceill-tests (Depends-on): Add float.
56799
56800         * tests/test-floorl.c: Include <float.h>.
56801         (zero): Remove variable.
56802         (minus_zero): New variable.
56803         (main): Use minus_zero instead of -zero.
56804         * modules/floorl-tests (Depends-on): Add float.
56805
56806         * tests/test-roundl.c: Include <float.h>.
56807         (zero): Remove variable.
56808         (minus_zero): New variable.
56809         (main): Use minus_zero instead of -zero.
56810         * modules/roundl-tests (Depends-on): Add float.
56811
56812         * tests/test-truncl.c: Include <float.h>.
56813         (zero): Remove variable.
56814         (minus_zero): New variable.
56815         (main): Use minus_zero instead of -zero.
56816         * modules/truncl-tests (Depends-on): Add float.
56817
56818         * tests/test-frexpl.c (zero): Remove variable.
56819         (minus_zero): New variable.
56820         (main): Use minus_zero instead of -zero.
56821         * modules/frexpl-tests (Depends-on): Add float.
56822
56823         * tests/test-isnan.c (zerol): Remove variable.
56824         (minus_zerol): New variable.
56825         (test_long_double): Use minus_zerol instead of -zerol.
56826         * modules/isnan-tests (Depends-on): Add float.
56827
56828         * tests/test-isnanl.h (zero): Remove variable.
56829         (minus_zero): New variable.
56830         (main): Use minus_zero instead of -zero.
56831         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56832         * modules/isnanl-tests (Depends-on): Add float.
56833
56834         * tests/test-ldexpl.c (zero): Remove variable.
56835         (minus_zero): New variable.
56836         (main): Use minus_zero instead of -zero.
56837         * modules/ldexpl-tests (Depends-on): Add float.
56838
56839         * tests/test-snprintf-posix.h (zerol): Remove variable.
56840         (minus_zerol): New variable.
56841         (test_function): Use minus_zerol instead of -zerol.
56842         * modules/snprintf-posix-tests (Depends-on): Add float.
56843         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56844
56845         * tests/test-sprintf-posix.h (zerol): Remove variable.
56846         (minus_zerol): New variable.
56847         (test_function): Use minus_zerol instead of -zerol.
56848         * modules/sprintf-posix-tests (Depends-on): Add float.
56849         * modules/vsprintf-posix-tests (Depends-on): Add float.
56850
56851         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56852         (minus_zerol): New variable.
56853         (test_function): Use minus_zerol instead of -zerol.
56854         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56855
56856         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56857         (minus_zerol): New variable.
56858         (test_function): Use minus_zerol instead of -zerol.
56859         * modules/vasprintf-posix-tests (Depends-on): Add float.
56860
56861 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56862
56863         * MODULES.html.sh (Support for building documentation): Mention
56864         pmccabe2html.  Sort entries.
56865
56866         Add pmccabe2html module, from gnupdf.
56867         * build-aux/pmccabe.css: New file.
56868         * build-aux/pmccabe2html: New file.
56869         * m4/pmccabe2html.m4: New file.
56870         * modules/pmccabe2html: New file.
56871
56872 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56873
56874         flock: new module
56875         * MODULES.html.sh: Add to list of modules.
56876         * lib/flock.c: flock implementation for Windows and Unix systems
56877         which have fcntl.
56878         * doc/glibc-functions/flock.texi: Update documentation.
56879         * lib/sys_file.in.h: <sys/file.h> header file.
56880         * m4/flock.m4: M4 macros.
56881         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56882         * modules/flock: flock module.
56883         * modules/flock-tests: flock tests module.
56884         * modules/sys_file: sys/file.h module.
56885         * tests/test-flock.c: test suite for flock.
56886
56887 2008-10-06  Jim Meyering  <meyering@redhat.com>
56888
56889         bootstrap: check for LT_INIT more portably still ;-)
56890         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56891         Spotted by Bruno Haible.
56892
56893 2008-10-06  Eric Blake  <ebb9@byu.net>
56894
56895         test-signbit: avoid tripping Irix cc bug on -0.0L
56896         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56897         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56898         entire testsuite consistent and avoids an Irix 6.2 bug.
56899
56900 2008-10-05  Bruno Haible  <bruno@clisp.org>
56901             Jim Meyering  <jim@meyering.net>
56902
56903         Add an option for ignoring EPIPE during close_stdout.
56904         * lib/closeout.h: Include <stdbool.h>.
56905         (close_stdout_set_ignore_EPIPE): New declaration.
56906         * lib/closeout.c: Include <stdbool.h>.
56907         (ignore_EPIPE): New variable.
56908         (close_stdout_set_ignore_EPIPE): New function.
56909         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56910         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56911         failure.
56912         * modules/closeout (Depends-on): Add stdbool.
56913
56914 2008-10-05  Bruno Haible  <bruno@clisp.org>
56915
56916         * modules/accept: New file.
56917         * modules/bind: New file.
56918         * modules/connect: New file.
56919         * modules/getpeername: New file.
56920         * modules/getsockname: New file.
56921         * modules/getsockopt: New file.
56922         * modules/listen: New file.
56923         * modules/recv: New file.
56924         * modules/recvfrom: New file.
56925         * modules/send: New file.
56926         * modules/sendto: New file.
56927         * modules/setsockopt: New file.
56928         * modules/socket: New file.
56929         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56930         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56931         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56932         the particular module is requested. Add a link warning when the
56933         particular module is not requested.
56934         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56935         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56936         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56937         the particular module is requested.
56938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56939         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56940         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56941         * modules/sys_socket (Depends-on): Add link-warning.
56942         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56943         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56944         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56945         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56946         GL_LINK_WARNING.
56947         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56948         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56949         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56950         * doc/posix-functions/getpeername.texi: Mention the new module
56951         'getpeername'.
56952         * doc/posix-functions/getsockname.texi: Mention the new module
56953         'getsockname'.
56954         * doc/posix-functions/getsockopt.texi: Mention the new module
56955         'getsockopt'.
56956         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56957         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56958         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56959         * doc/posix-functions/send.texi: Mention the new module 'send'.
56960         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56961         * doc/posix-functions/setsockopt.texi: Mention the new module
56962         'setsockopt'.
56963         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56964         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56965         listen, connect, accept.
56966         * modules/select-tests (Depends-on): Likewise.
56967
56968 2008-10-05  Bruno Haible  <bruno@clisp.org>
56969
56970         * lib/winsock.c (strerror): Remove unused #undef.
56971         (rpl_close): Remove unused local variable.
56972
56973         * modules/sys_socket (Depends-on); Add errno.
56974
56975 2008-10-05  Bruno Haible  <bruno@clisp.org>
56976
56977         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56978         (select): Add a link warning when the 'select' module is not used.
56979         * modules/sys_select (Depends-on): Add link-warning.
56980         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56981         Suggested by Paolo Bonzini.
56982
56983 2008-10-05  Jim Meyering  <meyering@redhat.com>
56984
56985         bootstrap: check for LT_INIT more portably
56986         * build-aux/bootstrap: Avoid using grep -E, since it's not
56987         portable enough.  Suggestion from Bruno Haible.
56988
56989 2008-10-05  Bruno Haible  <bruno@clisp.org>
56990
56991         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56992         as being fixed by gnulib.
56993
56994 2008-10-05  Bruno Haible  <bruno@clisp.org>
56995
56996         * modules/select-tests: New file, mostly copied from
56997         modules/sys_select-tests.
56998         * tests/test-select.c: New file, mostly copied from
56999         tests/test-sys_select.c.
57000         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57001         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57002         (Makefile.am): Remove test_sys_select_LDADD.
57003
57004         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57005         to an undefined symbol, for an error message.
57006         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57007         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57008         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57009         winsock-select.c here.
57010         * modules/sys_select (Files): Remove lib/winsock-select.c.
57011         (Depends-on): Remove alloca.
57012         (Makefile.am): Substitute GNULIB_SELECT.
57013         * modules/select: New file.
57014         * doc/posix-functions/select.texi: Update.
57015
57016 2008-10-05  Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57019         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57020         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57021         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57022         getdtablesize.
57023         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57024         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57025
57026 2008-10-05  Bruno Haible  <bruno@clisp.org>
57027
57028         * modules/getdtablesize-tests: New file.
57029         * tests/test-getdtablesize.c: New file.
57030
57031         New module 'getdtablesize'.
57032         * lib/unistd.in.h (getdtablesize): New declaration.
57033         * lib/getdtablesize.c: New file.
57034         * m4/getdtablesize.m4: New file.
57035         * modules/getdtablesize: New file.
57036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57037         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57038         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57039         HAVE_GETDTABLESIZE.
57040         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57041
57042 2008-10-05  Bruno Haible  <bruno@clisp.org>
57043
57044         * modules/sched (Makefile.am): Fix typo.
57045         Reported by Simon Josefsson.
57046
57047 2008-10-05  Jim Meyering  <meyering@redhat.com>
57048
57049         bootstrap: check for LT_INIT, too
57050         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57051         are deprecated.  Suggestion from Ralf Wildenhues.
57052
57053 2008-10-05  Bruno Haible  <bruno@clisp.org>
57054
57055         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57056         overriding them by ours.
57057         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57058
57059 2008-10-05  Jim Meyering  <meyering@redhat.com>
57060
57061         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57062         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57063         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57064
57065 2008-10-04  Bruno Haible  <bruno@clisp.org>
57066
57067         * modules/dup2 (License): Change to LGPLv2+.
57068         * modules/sleep (License): Likewise.
57069         * modules/perror (License): Likewise.
57070         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57071         Blake.
57072         * modules/signal (License): Likewise.
57073         * modules/sigprocmask (License): Likewise.
57074         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57075         Meyering.
57076
57077 2008-10-04  Bruno Haible  <bruno@clisp.org>
57078
57079         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57080         Reported by Rainer Tammer <tammer@tammer.net>.
57081
57082 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57083             Bruno Haible  <bruno@clisp.org>
57084
57085         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57086         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57087         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57088
57089 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57090
57091         filevercmp: new module
57092         * lib/filevercmp.h: New function filevercmp comparing version strings.
57093         * lib/filevercmp.c: Implementation of filevercmp function.
57094         * modules/filevercmp: Module metadata.
57095         * tests/test-filevercmp.c: Unit test for new module.
57096         * modules/filevercmp-tests: Unit test metadata.
57097         * MODULES.html.sh: Add filevercmp module.
57098
57099 2008-10-03  Bruno Haible  <bruno@clisp.org>
57100
57101         * lib/c-ctype.h: Add comment.
57102         Reported by Jim Meyering.
57103
57104 2008-10-02  Bruno Haible  <bruno@clisp.org>
57105
57106         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57107
57108 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57109
57110         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57111         name of bootstrap.conf accordingly.
57112
57113 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57114
57115         * build-aux/bootstrap: Install git-merge-changelog configuration
57116         items into .gitconfig if needed.
57117
57118 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57119
57120         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57121         git repository, and initialize/update it accordingly.
57122
57123 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57124
57125         * modules/fsync-tests: New file.
57126         * tests/test-fsync.c: New file.
57127
57128         New module 'fsync'.
57129         * lib/fsync.c: New file.
57130         * m4/fsync.m4: New file.
57131         * modules/fsync: New file.
57132         * lib/unistd.in.h (fsync): New declaration.
57133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57134         GNULIB_FSYNC and HAVE_FSYNC.
57135         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57136         * MODULES.html.sh (posix_functions): Add fsync.
57137         * doc/posix-functions/fsync.texi: Mention the new module.
57138
57139 2008-10-02  Jim Meyering  <meyering@redhat.com>
57140
57141         fts.c: sync with similar code from coreutils' remove.c
57142         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57143         Guard also with "#if defined __linux__", since for now at least,
57144         this code is Linux-kernel-specific.
57145
57146 2008-10-02  Jim Meyering  <meyering@redhat.com>
57147
57148         fts: bug fixes
57149         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57150         Include <sys/vfs.h>, not <sys/statfs.h>.
57151
57152         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57153         Include <sys/vfs.h>, not <sys/statfs.h>.
57154
57155 2008-10-01  Bruno Haible  <bruno@clisp.org>
57156
57157         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57158         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57159         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57160         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57161         * doc/posix-functions/posix_spawnp.texi: Likewise.
57162         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57163         whether posix_spawn actually works.
57164         * m4/pipe.m4 (gl_PIPE): Likewise.
57165         * modules/execute (Files): Add m4/posix_spawn.m4.
57166         * modules/pipe (Files): Add m4/posix_spawn.m4.
57167         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57168
57169 2008-10-01  Jim Meyering  <meyering@redhat.com>
57170
57171         remove trailing spaces
57172         * NEWS: Likewise.
57173         * lib/poll.c (poll): Likewise.
57174         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57175         * lib/winsock.c (rpl_close): Likewise.
57176         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57177         * modules/yield: Likewise.
57178         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57179         * tests/test-sys_select.c (connect_to_socket): Likewise.
57180
57181         fts.c: adjust a new interface to be more generally useful
57182         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57183         (fts_build): Adjust caller.
57184
57185 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57186
57187         * modules/cond-tests: New file.
57188         * tests/test-cond.c: New file.
57189
57190 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57191             Bruno Haible  <bruno@clisp.org>
57192
57193         * modules/cond (Dependencies): Add errno, time.
57194         * lib/glthread/cond.h: Include <time.h>.
57195         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57196         across platforms.
57197
57198 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57199             Bruno Haible  <bruno@clisp.org>
57200
57201         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57202
57203 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57204             Bruno Haible  <bruno@clisp.org>
57205
57206         * modules/tls-tests (Depends-on): Add thread, yield.
57207         (configure.ac): Remove all checks.
57208         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57209         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57210         gl_thread_self): Remove definitions. Include glthread/thread.h and
57211         glthread/yield.h instead.
57212         (test_tls): Pass an additional NULL argument to gl_thread_join.
57213
57214 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57215             Bruno Haible  <bruno@clisp.org>
57216
57217         * modules/lock-tests (Depends-on): Add thread, yield.
57218         (configure.ac): Remove all checks.
57219         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57220         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57221         gl_thread_self): Remove definitions. Include glthread/thread.h and
57222         glthread/yield.h instead.
57223         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57224         additional NULL argument to gl_thread_join.
57225
57226 2008-09-30  Bruno Haible  <bruno@clisp.org>
57227
57228         Fix the Win32 implementation of the 'thread' module.
57229         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57230         pointer type.
57231         (gl_thread_self): Invoke gl_thread_self_func.
57232         (gl_thread_self_func): New declaration.
57233         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57234         (do_init_self_key, init_self_key): New functions.
57235         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57236         Remove some fields.
57237         (running_threads, running_lock): Remove variables.
57238         (get_current_thread_handle): New function.
57239         (gl_thread_self_func, wrapper_func, glthread_create_func,
57240         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57241         simplified.
57242
57243 2008-09-30  Bruno Haible  <bruno@clisp.org>
57244
57245         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57246         files.
57247
57248 2008-09-30  Jim Meyering  <meyering@redhat.com>
57249
57250         fts.m4: correct the test for statfs.f_type
57251         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57252         when checking for statfs.f_type.
57253
57254 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57255
57256         tests: avoid some compiler warnings
57257         * tests/test-memchr.c (main): Pass NULL indirectly.
57258         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57259
57260 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57261
57262         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57263         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57264         exactly specified dayshifts.
57265         (dayshift): New rule.
57266         (rel): Add dayshift.
57267         (relative_time_table) [tomorrow, yesterday, today, now]:
57268         Use tDAY_SHIFT in place of tDAY_UNIT.
57269         * tests/test-getdate.c: Add tests for now-disallowed countable
57270         dayshifts, e.g., "4 yesterday ago".
57271
57272 2008-09-29  Bruno Haible  <bruno@clisp.org>
57273
57274         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57275         * tests/test-posix_spawn1.in.sh: Renamed from
57276         tests/test-posix_spawn.in.sh.
57277         * tests/test-posix_spawn2.c: New file.
57278         * tests/test-posix_spawn2.in.sh: New file.
57279         * modules/posix_spawnp-tests (Files): Update.
57280         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57281
57282 2008-09-29  Bruno Haible  <bruno@clisp.org>
57283
57284         Propagate effects of putenv/setenv/unsetenv to child processes.
57285         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57286         * lib/pipe.c (create_pipe): Likewise.
57287
57288 2008-09-29  Bruno Haible  <bruno@clisp.org>
57289
57290         Enable use of shell scripts as executables in mingw.
57291         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57292         run the program as a shell script.
57293         * lib/pipe.c (create_pipe): Likewise.
57294         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57295         resulting array.
57296
57297 2008-09-29  Eric Blake  <ebb9@byu.net>
57298
57299         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57300
57301 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57302
57303         * doc/posix-functions/accept.texi: Update mingw problems.
57304         * doc/posix-functions/bind.texi: Update mingw problems.
57305         * doc/posix-functions/close.texi: Update mingw problems.
57306         * doc/posix-functions/connect.texi: Update mingw problems.
57307         * doc/posix-functions/getpeername.texi: Update mingw problems.
57308         * doc/posix-functions/getsockname.texi: Update mingw problems.
57309         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57310         * doc/posix-functions/ioctl.texi: Update mingw problems.
57311         * doc/posix-functions/listen.texi: Update mingw problems.
57312         * doc/posix-functions/recv.texi: Update mingw problems.
57313         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57314         * doc/posix-functions/select.texi: Update mingw problems.
57315         * doc/posix-functions/send.texi: Update mingw problems.
57316         * doc/posix-functions/sendto.texi: Update mingw problems.
57317         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57318         * doc/posix-functions/socket.texi: Update mingw problems.
57319
57320 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57321             Bruno Haible  <bruno@clisp.org>
57322
57323         * lib/sys_select.in.h: Include sys/time.h.
57324         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57325         * modules/sys_select: Depend on sys_time.
57326         * tests/test-sys_select.c: Test that sys/select.h defines struct
57327         timeval fully.
57328
57329 2008-09-29  Bruno Haible  <bruno@clisp.org>
57330
57331         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57332         * lib/sys_select.in.h: Likewise.
57333
57334 2008-09-29  Bruno Haible  <bruno@clisp.org>
57335
57336         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57337
57338 2008-09-29  Bruno Haible  <bruno@clisp.org>
57339
57340         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57341         Set LIBSOCKET instead of augmenting LIBS.
57342         * modules/sockets (Link): New section.
57343         * modules/sockets-tests (test_sockets_LDADD): New variable.
57344         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57345         * modules/poll-tests (test_poll_LDADD): New variable.
57346         * NEWS: Document the change.
57347
57348 2008-09-29  Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57351         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57352         ARPA_INET_H directly.
57353         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57354
57355 2008-09-28  Bruno Haible  <bruno@clisp.org>
57356
57357         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57358         from gl_HEADER_SYS_SOCKET.
57359         (gl_HEADER_SYS_SOCKET): Invoke it.
57360         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57361
57362 2008-09-28  Bruno Haible  <bruno@clisp.org>
57363
57364         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57365         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57366         Needed on OSF/1 4.0.
57367
57368 2008-09-28  Bruno Haible  <bruno@clisp.org>
57369
57370         Override open more carefully.
57371         * lib/open.c (orig_open): New function.
57372         (rpl_open): Use orig_open instead of open.
57373         * lib/fcntl.in.h: Add special invocation convention.
57374         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57375         (gl_FUNC_OPEN): Invoke it.
57376
57377         Override freopen more carefully.
57378         * lib/freopen.c (orig_freopen): New function.
57379         (rpl_freopen): Use orig_freopen instead of freopen.
57380         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57381         (gl_FUNC_FREOPEN): Invoke it.
57382
57383         Override fopen more carefully.
57384         * lib/fopen.c (orig_fopen): New function.
57385         (rpl_fopen): Use orig_fopen instead of fopen.
57386         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57387         (gl_FUNC_FOPEN): Invoke it.
57388         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57389
57390 2008-09-28  Bruno Haible  <bruno@clisp.org>
57391
57392         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57393         SIGPIPE.
57394
57395 2008-09-28  Bruno Haible  <bruno@clisp.org>
57396
57397         * tests/test-sigaction.c (handler, main): Disable the check whether
57398         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57399         glibc systems with LinuxThreads.
57400
57401 2008-09-28  Bruno Haible  <bruno@clisp.org>
57402
57403         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57404
57405         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57406         with AIX xlc.
57407         * lib/fcntl.in.h (open): Likewise.
57408         Reported by Rainer Tammer <tammer@tammer.net>.
57409
57410 2008-09-28  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/posix_spawnp-tests: New file.
57413         * tests/test-posix_spawn.c: New file.
57414         * tests/test-posix_spawn.in.sh: New file.
57415
57416         New module 'posix_spawnp'.
57417         * modules/posix_spawnp: New file.
57418         * lib/spawnp.c: New file, from GNU libc with modifications.
57419         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57420
57421         New module 'posix_spawn'.
57422         * modules/posix_spawn: New file.
57423         * lib/spawn.c: New file, from GNU libc with modifications.
57424         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57425
57426         New module 'posix_spawnattr_destroy'.
57427         * modules/posix_spawnattr_destroy: New file.
57428         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57429         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57430         module.
57431
57432         New module 'posix_spawnattr_setsigmask'.
57433         * modules/posix_spawnattr_setsigmask: New file.
57434         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57435         modifications.
57436         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57437         new module.
57438
57439         New module 'posix_spawnattr_getsigmask'.
57440         * modules/posix_spawnattr_getsigmask: New file.
57441         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57442         modifications.
57443         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57444         new module.
57445
57446         New module 'posix_spawnattr_setsigdefault'.
57447         * modules/posix_spawnattr_setsigdefault: New file.
57448         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57449         modifications.
57450         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57451         new module.
57452
57453         New module 'posix_spawnattr_getsigdefault'.
57454         * modules/posix_spawnattr_getsigdefault: New file.
57455         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57456         modifications.
57457         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57458         new module.
57459
57460         New module 'posix_spawnattr_setschedpolicy'.
57461         * modules/posix_spawnattr_setschedpolicy: New file.
57462         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57463         modifications.
57464         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57465         new module.
57466
57467         New module 'posix_spawnattr_getschedpolicy'.
57468         * modules/posix_spawnattr_getschedpolicy: New file.
57469         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57470         modifications.
57471         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57472         new module.
57473
57474         New module 'posix_spawnattr_setschedparam'.
57475         * modules/posix_spawnattr_setschedparam: New file.
57476         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57477         modifications.
57478         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57479         new module.
57480
57481         New module 'posix_spawnattr_getschedparam'.
57482         * modules/posix_spawnattr_getschedparam: New file.
57483         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57484         modifications.
57485         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57486         new module.
57487
57488         New module 'posix_spawnattr_setpgroup'.
57489         * modules/posix_spawnattr_setpgroup: New file.
57490         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57491         modifications.
57492         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57493         module.
57494
57495         New module 'posix_spawnattr_getpgroup'.
57496         * modules/posix_spawnattr_getpgroup: New file.
57497         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57498         modifications.
57499         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57500         module.
57501
57502         New module 'posix_spawnattr_setflags'.
57503         * modules/posix_spawnattr_setflags: New file.
57504         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57505         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57506         module.
57507
57508         New module 'posix_spawnattr_getflags'.
57509         * modules/posix_spawnattr_getflags: New file.
57510         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57511         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57512         module.
57513
57514         New module 'posix_spawnattr_init'.
57515         * modules/posix_spawnattr_init: New file.
57516         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57517         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57518         module.
57519
57520         New module 'posix_spawn_file_actions_destroy'.
57521         * modules/posix_spawn_file_actions_destroy: New file.
57522         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57523         modifications.
57524         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57525         the new module.
57526
57527         New module 'posix_spawn_file_actions_addopen'.
57528         * modules/posix_spawn_file_actions_addopen: New file.
57529         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57530         modifications.
57531         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57532         the new module.
57533
57534         New module 'posix_spawn_file_actions_adddup2'.
57535         * modules/posix_spawn_file_actions_adddup2: New file.
57536         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57537         modifications.
57538         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57539         the new module.
57540
57541         New module 'posix_spawn_file_actions_addclose'.
57542         * modules/posix_spawn_file_actions_addclose: New file.
57543         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57544         modifications.
57545         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57546         the new module.
57547
57548         New module 'posix_spawn_file_actions_init'.
57549         * modules/posix_spawn_file_actions_init: New file.
57550         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57551         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57552         new module.
57553
57554         New module 'posix_spawn-internal'.
57555         * modules/posix_spawn-internal: New file.
57556         * lib/spawn_int.h: New file, from GNU libc with modifications.
57557         * lib/spawni.c: New file, from GNU libc with modifications.
57558         * m4/posix_spawn.m4: New file.
57559
57560         New module 'spawn'.
57561         * modules/spawn: New file.
57562         * lib/spawn.in.h: New file, from GNU libc with modifications.
57563         * m4/spawn_h.m4: New file.
57564         * doc/posix-headers/spawn.texi: Mention the new module.
57565
57566 2008-09-28  Bruno Haible  <bruno@clisp.org>
57567
57568         * modules/sched-tests: New file.
57569         * tests/test-sched.c: New file.
57570
57571         New module 'sched'.
57572         * modules/sched: New file.
57573         * lib/sched.in.h: New file.
57574         * m4/sched_h.m4: New file.
57575         * doc/posix-headers/sched.texi: Mention the new module.
57576
57577 2008-09-27  Eric Blake  <ebb9@byu.net>
57578
57579         Fix previous patch, and tweak references to $0.
57580         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57581         (func_version, func_gnulib_dir): Don't call this program
57582         gnulib-tool.
57583         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57584         with using $0 in function.
57585         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57586         (func_fatal_error): Reuse the name the user invoked us with.
57587
57588 2008-09-27  Bruno Haible  <bruno@clisp.org>
57589
57590         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57591         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57592         (gl_ICONV_H): Not here.
57593         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57594         instead of assigning ICONV_H directly.
57595
57596         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57598         WCHAR_H directly.
57599
57600 2008-09-27  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57603         * modules/arpa_inet (Depends-on): Add link-warning.
57604         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57605         * modules/unistd (Makefile.am): Likewise.
57606
57607 2008-09-26  Bruno Haible  <bruno@clisp.org>
57608
57609         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57610         variables.
57611         (func_version): Essentially copied from gnulib-tool.
57612         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57613         func_readlink): Copied from gnulib-tool.
57614
57615 2008-09-26  Bruno Haible  <bruno@clisp.org>
57616
57617         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57618         invoking git-version-gen.
57619
57620 2008-09-26  Bruno Haible  <bruno@clisp.org>
57621
57622         * posix-modules: Update to directory names changed on 2008-01-19.
57623         Remove commas in output before splitting into words. No more need to
57624         avoid 'ftruncate' since 2007-02-19.
57625
57626 2008-09-26  Bruno Haible  <bruno@clisp.org>
57627
57628         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57629
57630 2008-09-26  Bruno Haible  <bruno@clisp.org>
57631
57632         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57633         * modules/fwriteerror (Depends-on): Add errno.
57634
57635 2008-09-26  Bruno Haible  <bruno@clisp.org>
57636
57637         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57638         * tests/test-vc-list-files-cvs.sh: Likewise.
57639
57640 2008-09-26  Bruno Haible  <bruno@clisp.org>
57641
57642         * doc/posix-headers/sys_resource.texi: Reorder items.
57643
57644 2008-09-26  Jim Meyering  <meyering@redhat.com>
57645
57646         fts: tweak inode comparison function
57647         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57648         inode numbers, as documented.
57649
57650         fts: sort dirent entries on inode number before traversing
57651         This avoids a quadratic, seek-related performance penalty when
57652         operating on a directory containing many entries (measurable at 10k;
57653         3.5 hours at 2 million entries with a cold cache) on certain types
57654         of file systems, including ext3 and ext4, but not tmpfs.
57655         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57656         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57657         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57658         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57659         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57660         (fts_build): Set the stat.st_ino member from D_INO.
57661         If it is likely to be useful, sort dirent entries on inode number.
57662
57663         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57664         and the struct statfs.f_type member.
57665         * modules/fts (Depends-on): Add d-ino.
57666
57667 2008-09-26  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/sigpipe-die (Depends-on): Add sigpipe.
57670
57671         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57672         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57673         and GNULIB_STDIO_H_SIGPIPE are set.
57674         * lib/stdio-write.c: New file.
57675         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57676         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57677         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57678         REPLACE_STDIO_WRITE_FUNCS.
57679         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57680         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57681         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57682         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57683         * modules/stdio (Files): Add lib/stdio-write.c.
57684         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57685         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57686         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57687         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57688         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57689         REPLACE_FPRINTF_POSIX.
57690         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57691         REPLACE_PRINTF_POSIX.
57692         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57693         REPLACE_VFPRINTF_POSIX.
57694         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57695         REPLACE_VPRINTF_POSIX.
57696         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57697         SIGPIPE issue.
57698         * doc/posix-functions/fputc.texi: Likewise.
57699         * doc/posix-functions/fputs.texi: Likewise.
57700         * doc/posix-functions/fwrite.texi: Likewise.
57701         * doc/posix-functions/printf.texi: Likewise.
57702         * doc/posix-functions/putc.texi: Likewise.
57703         * doc/posix-functions/putchar.texi: Likewise.
57704         * doc/posix-functions/puts.texi: Likewise.
57705         * doc/posix-functions/vfprintf.texi: Likewise.
57706         * doc/posix-functions/vprintf.texi: Likewise.
57707
57708         * modules/safe-write (Depends-on): Add write.
57709
57710         * modules/sigpipe-tests: New file.
57711         * tests/test-sigpipe.c: New file.
57712         * tests/test-sigpipe.sh: New file.
57713
57714         * modules/write: New file.
57715         * lib/unistd.in.h: Include <sys/types.h>.
57716         (write): New declaration.
57717         * lib/write.c: New file.
57718         * m4/write.m4: New file.
57719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57720         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57721         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57722         GNULIB_WRITE, REPLACE_WRITE.
57723         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57724         and the SIGPIPE issue.
57725
57726         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57727         (raise): New declaration.
57728         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57729         (ext_signal): New function.
57730         (rpl_raise): New function.
57731         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57732         GNULIB_SIGNAL_H_SIGPIPE.
57733         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57734         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57735
57736         * modules/sigpipe: New file.
57737         * m4/sigpipe.m4: New file.
57738
57739 2008-09-25  Derek Price  <derek@ximbiot.com>
57740             Bruno Haible  <bruno@clisp.org>
57741
57742         * gnulib-tool (func_import): Report all license incompatibilities, not
57743         just the first one.
57744
57745 2008-09-25  Bruno Haible  <bruno@clisp.org>
57746
57747         * gnulib-tool (func_import): When computing the edits, consider not
57748         only the Makefile.ams that exist but also those that will be generated.
57749
57750 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57751
57752         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57753         fixes gnulib-tool --test warning about duplicate dependency.
57754
57755 2008-09-25  Bruno Haible  <bruno@clisp.org>
57756
57757         * gnulib-tool: Don't ask the user to perform edits in the generated
57758         Makefile.ams.
57759         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57760         apply to the Makefile.am being generated.
57761         (func_emit_tests_Makefile_am): Execute edits that apply to the
57762         Makefile.am being generated.
57763         (func_import): Setup list of Makefile.am edits before emitting the
57764         Makefile.ams, not at the end.
57765         (func_create_testdir): Update.
57766         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57767
57768 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57769
57770         * gnulib-tool (func_import): Store the --tests-base option in the
57771         comment in gnulib-cache.m4.
57772
57773 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57774
57775         * NEWS: Document increased portability that sys_select now provides.
57776
57777         * lib/sys_select.in.h: Install select wrapper.
57778         * lib/sys_socket.in.h: Use more descriptive name when there is no
57779         select wrapper.
57780         * lib/winsock-select.c: New.
57781         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57782         Require gl_HEADER_SYS_SOCKET.
57783         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57784         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57785         * tests/test-sys_select.c: Add functional tests.
57786
57787 2008-09-24  Eric Blake  <ebb9@byu.net>
57788
57789         open, fopen: close fd leak in last patch
57790         * lib/open.c (rpl_open): Close fd before returning error.
57791         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57792         * doc/posix-functions/open.texi (open): Document that Irix also
57793         has the bug.
57794         * doc/posix-functions/fopen.texi (fopen): Likewise.
57795         Reported by Paolo Bonzini.
57796
57797 2008-09-24  Bruno Haible  <bruno@clisp.org>
57798
57799         Ensure that a filename ending in a slash cannot be used to access a
57800         non-directory.
57801         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57802         to check whether it's really a directory.
57803         * lib/fopen.c: Include fcntl.h, unistd.h.
57804         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57805         and fdopen().
57806         * modules/fopen (Depends-on): Add unistd.
57807         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57808         * tests/test-fopen.c (main): Likewise.
57809         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57810         * doc/posix-functions/fopen.texi: Likewise.
57811         Reported by Eric Blake.
57812
57813 2008-09-23  Eric Blake  <ebb9@byu.net>
57814
57815         c-stack: avoid compiler optimizations when provoking overflow
57816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57817         recursion harder to optimize, to ensure a stack overflow occurs.
57818         * tests/test-c-stack.c (recurse): Likewise.
57819         Borrowed from libsigsegv.
57820
57821         c-stack: work around Irix sigaltstack bug
57822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57823         whether sigaltstack uses wrong end of stack_t (copied in part from
57824         libsigsegv).
57825         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57826         Irix bug, without requiring an over-allocation.
57827         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57828         bug.
57829
57830         fopen: document mingw bug on directories
57831         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57832         not allowing a stream visiting a directory, even though reading
57833         from such a stream is not portable.
57834
57835 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57836
57837         * lib/poll.c: Rewrite.
57838         * modules/poll: Depend on alloca.
57839
57840 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57841
57842         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57843         instead define prototypes for a full set of wrappers.  Ensure
57844         that Cygwin does not use the compatibility code, which is only
57845         for MinGW.
57846         * lib/winsock.c: New.
57847         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57848         * modules/sys_socket: Add lib/winsock.c.
57849
57850         * modules/poll-tests: Add errno and perror.
57851         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57852
57853 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57854
57855         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57856
57857 2008-09-23  Bruno Haible  <bruno@clisp.org>
57858
57859         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57860         * doc/glibc-functions/*: Likewise.
57861
57862 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57863
57864         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57865         success.
57866
57867 2008-09-22  Eric Blake  <ebb9@byu.net>
57868             Bruno Haible  <bruno@clisp.org>
57869
57870         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57871         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57872         supply %A but mishandle pseudo-NaN.
57873         Reported by Simon Josefsson.
57874
57875 2008-09-21  Bruno Haible  <bruno@clisp.org>
57876
57877         * tests/test-lock.c (main): Tweak skip message.
57878         * tests/test-tls.c (main): Likewise.
57879
57880 2008-09-21  Bruno Haible  <bruno@clisp.org>
57881
57882         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57883         whether 'struct sigaction' has sa_sigaction here...
57884         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57885         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57886
57887 2008-09-21  Bruno Haible  <bruno@clisp.org>
57888
57889         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57890         section.
57891         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57892         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57893         the new section.
57894         (Support for obsolete systems lacking POSIX:2001): New section.
57895         (String handling <string.h>): Move strdup to the new section.
57896         Suggested by Simon Josefsson and Paolo Bonzini.
57897
57898 2008-09-21  Bruno Haible  <bruno@clisp.org>
57899
57900         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57901         exponents in %e and %g results on 'long double'. Needed for mingw's
57902         improved *printf functions.
57903         * tests/test-vasprintf-posix.c (test_function): Likewise.
57904         * tests/test-snprintf-posix.h (test_function): Likewise.
57905         * tests/test-sprintf-posix.h (test_function): Likewise.
57906         Reported by Eric Blake.
57907
57908 2008-09-21  Bruno Haible  <bruno@clisp.org>
57909
57910         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57911         * tests/test-sprintf-posix.h (test_function): Likewise.
57912
57913 2008-09-21  Bruno Haible  <bruno@clisp.org>
57914
57915         * modules/getpass (Depends-on): Add strdup-posix.
57916
57917         New module 'strdup-posix'.
57918         * modules/strdup-posix: New file.
57919         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57920         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57922         REPLACE_STRDUP.
57923         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57924         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57926         strdup-posix.
57927
57928         * modules/strdup (Depends-on): Remove malloc-posix.
57929
57930 2008-09-20  Bruno Haible  <bruno@clisp.org>
57931
57932         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57933         Wildenhues.
57934
57935 2008-09-20  Bruno Haible  <bruno@clisp.org>
57936
57937         Ensure that wint_t gets defined on IRIX 5.3.
57938         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57939         * lib/wctype.in.h (wint_t): Likewise.
57940         (__wctype_wint_t): Remove type.
57941         (isw*): Use wint_t instead of __wctype_wint_t.
57942         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57943         * modules/wchar (Files): Add m4/wint_t.m4.
57944         (Makefile.am): Substitute HAVE_WINT_T.
57945         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57946         * tests/test-wctype.c: Check that wint_t is defined.
57947         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57948         * doc/posix-headers/wctype.texi: Likewise.
57949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57950
57951 2008-09-18  Bruno Haible  <bruno@clisp.org>
57952
57953         * gnulib-tool (func_exit): Update comment.
57954
57955 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57956
57957         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57958         assumes strdup exists and does not depend on strdup to return
57959         ENOMEM on out of memory conditions.
57960
57961 2008-09-18  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57964         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57965         digits for the exponent.
57966
57967 2008-09-18  Jim Meyering  <meyering@redhat.com>
57968             Bruno Haible  <bruno@clisp.org>
57969
57970         * lib/vasnprintf.c (decimal_point_char): Define also if
57971         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57972
57973 2008-09-16  Bruno Haible  <bruno@clisp.org>
57974         and Eric Blake  <ebb9@byu.net>
57975
57976         vasnprintf: support Irix 5.3
57977         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57978         that mishandle long double infinity.
57979         Reported by Tom G. Christensen.
57980
57981 2008-09-16  Bruno Haible  <bruno@clisp.org>
57982
57983         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57984         Solaris 9.
57985         * doc/glibc-functions/alphasort.texi: Likewise.
57986         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57987
57988 2008-09-16  Jim Meyering  <meyering@redhat.com>
57989
57990         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57991         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57992         a umask modification leak out of a subshell.  Otherwise, the
57993         opensolaris /bin/sh would be accepted and thus cause unwarranted
57994         failures in the coreutils test suite.
57995
57996 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57997
57998         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57999         to succeed.
58000
58001 2008-09-16  Jim Meyering  <meyering@redhat.com>
58002
58003         avoid spurious test failure when library is built without ACL support
58004         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58005         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58006         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58007         * tests/test-copy-acl.sh: Likewise.
58008
58009 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58010
58011         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58012         based on character occurrence counts.
58013
58014 2008-09-15  Eric Blake  <ebb9@byu.net>
58015
58016         tests: avoid some compiler warnings
58017         * tests/test-memchr.c (main): Pass NULL indirectly.
58018         * tests/test-closein.c (main): Avoid unused variable.
58019
58020 2008-09-15  Bruno Haible  <bruno@clisp.org>
58021
58022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58023         are missing on OpenBSD 4.0 individually.
58024         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58025
58026 2008-09-15  Bruno Haible  <bruno@clisp.org>
58027
58028         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58029         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58030         * doc/posix-functions/perror.texi: Likewise.
58031         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58032         is missing.
58033         Reported by Eric Blake.
58034
58035         * lib/errno.in.h: Use replacement values >= 2000.
58036         Reported by Eric Blake.
58037
58038 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58039
58040         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58041         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58042         limit.
58043         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58044         compareseq was aborted.
58045
58046 2008-09-14  Bruno Haible  <bruno@clisp.org>
58047
58048         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58049         yvec_edit_count.
58050         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58051         (fstrcmp_bounded): Simplify result computation accordingly.
58052
58053 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58054
58055         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58056         (fstrcmp): Define in terms of fstrcmp_bounded.
58057         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58058         lower_bound argument.
58059         Return quickly if the result is certainly < lower_bound.
58060         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58061
58062 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58063
58064         * lib/diffseq.h (EARLY_ABORT): New macro.
58065         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58066         evaluates to true.
58067
58068 2008-09-14  Bruno Haible  <bruno@clisp.org>
58069
58070         * modules/perror-tests: New file.
58071         * tests/test-perror.sh: New file.
58072         * tests/test-perror.c: New file.
58073
58074         New module 'perror'.
58075         * lib/stdio.in.h (perror): New declaration.
58076         * lib/perror.c: New file.
58077         * m4/perror.m4: New file.
58078         * modules/perror: New file.
58079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58080         * doc/posix-functions/perror.texi: Mention the perror module.
58081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58082         REPLACE_PERROR.
58083         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58084         REPLACE_PERROR.
58085
58086 2008-09-14  Bruno Haible  <bruno@clisp.org>
58087
58088         * modules/stdio (Makefile.am): Reorder to match the order in
58089         lib/stdio.in.h.
58090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58091
58092 2008-09-13  Bruno Haible  <bruno@clisp.org>
58093
58094         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58095
58096 2008-09-13  Bruno Haible  <bruno@clisp.org>
58097
58098         Extend strerror to cover the added errno values.
58099         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58100         (rpl_strerror): Provide error messages for the added errno values and
58101         for the WSA* values.
58102         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58103         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58104         strerror.
58105         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58106         * modules/strerror (Depends-on): Add errno.
58107         * doc/posix-functions/strerror.texi: Document the change.
58108         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58109         and EOVERFLOW.
58110
58111 2008-09-13  Bruno Haible  <bruno@clisp.org>
58112
58113         * modules/EOVERFLOW: Remove file.
58114         * m4/eoverflow.m4: Remove file.
58115         * modules/EOVERFLOW-tests: Remove file.
58116         * tests/test-EOVERFLOW.c: Remove file.
58117         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58118         * modules/ftell (Depends-on): Likewise.
58119         * modules/getdelim (Depends-on): Likewise.
58120         * modules/getugroups (Depends-on): Likewise.
58121         * modules/poll (Depends-on): Likewise.
58122         * modules/snprintf (Depends-on): Likewise.
58123         * modules/sprintf-posix (Depends-on): Likewise.
58124         * modules/vasnprintf (Depends-on): Likewise.
58125         * modules/vasprintf (Depends-on): Likewise.
58126         * modules/vfprintf-posix (Depends-on): Likewise.
58127         * modules/vsnprintf (Depends-on): Likewise.
58128         * modules/vsprintf-posix (Depends-on): Likewise.
58129         * modules/xvasprintf (Depends-on): Likewise.
58130         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58131         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58132         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58133         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58134         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58135         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58136         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58137         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58138         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58139         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58140         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58141         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58142         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58143         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58144         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58145         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58146         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58147         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58148         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58149         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58150         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58151         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58152         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58153         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58154         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58155         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58156         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58157         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58158         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58159         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58160         * MODULES.html.sh: Remove EOVERFLOW.
58161         * NEWS: Mention the change.
58162
58163 2008-09-13  Bruno Haible  <bruno@clisp.org>
58164
58165         * modules/errno-tests: New file.
58166         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58167
58168         * lib/errno.in.h: New file.
58169         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58170         * modules/errno: New file.
58171         * doc/posix-headers/errno.texi: Update documentation.
58172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58173
58174 2008-09-13  Bruno Haible  <bruno@clisp.org>
58175
58176         * tests/test-poll.c: Use #if for native Windows, rather than testing
58177         __MSVCRT__.
58178
58179 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58180             Bruno Haible  <bruno@clisp.org>
58181
58182         * lib/glob.c: Don't include <pwd.h> on native Windows.
58183         (WINDOWS32): New macro.
58184         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58185
58186 2008-09-13  Bruno Haible  <bruno@clisp.org>
58187
58188         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58189         (ETIMEDOUT): Remove macro.
58190         (glthread_cond_timedwait_multithreaded): New declaration.
58191         (glthread_cond_timedwait): Use it.
58192         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58193         (glthread_cond_timedwait_multithreaded): New function.
58194
58195 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58196
58197         * modules/poll-tests: Do not check for io.h.
58198         * tests/test-poll.c: Check for __MSVCRT__ instead.
58199
58200 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58201
58202         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58203         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58204         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58205
58206 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58207
58208         * modules/poll-tests: New.
58209         * tests/test-poll.c: New.
58210
58211 2008-09-12  Eric Blake  <ebb9@byu.net>
58212
58213         frexp: test for NetBSD failure on -0.0
58214         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58215         not all, bugs from NetBSD 3.0 have been fixed.
58216         * doc/posix-functions/frexp.texi (frexp): Document bug.
58217         Reported by Thomas Klausner.
58218
58219         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58220         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58221         literal -0.0.
58222         Reported by Jonathan C. Patschke <jp@centtech.com>.
58223
58224 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58225
58226         * lib/glthread/cond.h: Use dummy implementation also if
58227         USE_WIN32_THREADS.
58228
58229 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58230
58231         * modules/fnmatch-posix (License): Change to LGPLv2+.
58232         * modules/fnmatch-gnu (License): Likewise.
58233
58234 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58235
58236         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58237
58238 2008-09-11  Jim Meyering  <meyering@redhat.com>
58239
58240         * users.txt: Add gtk-vnc.
58241
58242 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58243
58244         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58245         rotate amounts.
58246
58247         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58248         required for 16-bit and 8-bit rotates.
58249         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58250         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58251         UINT8_MAX instead of hard-coded constants.
58252         Suggested by Paul Eggert.
58253
58254 2008-09-07  Bruno Haible  <bruno@clisp.org>
58255
58256         * tests/test-striconveh.c (main): Check behaviour when converting from
58257         UTF-7.
58258
58259         Make striconveh work better with stateful encodings.
58260         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58261         that iconv does not increment the inptr when returning -1/EINVAL.
58262
58263 2008-09-07  Bruno Haible  <bruno@clisp.org>
58264
58265         * build-aux/config.rpath: Update according to libtool-2.2.6.
58266         * build-aux/config.libpath: Likewise.
58267
58268 2008-09-06  Bruno Haible  <bruno@clisp.org>
58269
58270         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58271         * lib/freadptr.c (freadptr): Likewise.
58272         * lib/freadseek.c (freadptrinc): Likewise.
58273         Reported by Simon Josefsson.
58274
58275 2008-09-06  Bruno Haible  <bruno@clisp.org>
58276
58277         * modules/freadptr (License): Change to LGPLv2+.
58278         * modules/freadseek (License): Likewise.
58279         Suggested by Eric Blake.
58280
58281         * modules/memchr2 (License): Change to LGPLv2+.
58282         Approved by Eric Blake.
58283
58284 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58285             Bruno Haible  <bruno@clisp.org>
58286
58287         Make gnulib-tool work with native 'sed' on AIX.
58288         * gnulib-tool (sed_noop): New variable.
58289         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58290         func_add_or_update, func_create_testdir): Use it to initialize sed
58291         script variables.
58292         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58293
58294 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58295             Bruno Haible  <bruno@clisp.org>
58296
58297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58298         also works after #include directives.
58299
58300 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58301
58302         getdate.y: reject an out-of-range timezone value
58303         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58304         the range [-24...+24].  When specified with only one or two digits,
58305         * tests/test-getdate.c: Tests for the fix.
58306         * doc/getdate.texi: Document this change.
58307
58308 2008-09-03  Bruno Haible  <bruno@clisp.org>
58309
58310         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58311
58312 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58313
58314         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58315         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58316         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58317         Blake <ebb9@byu.net>.
58318
58319         * tests/test-bitrotate.c: Add more test vectors.
58320
58321 2008-09-02  Eric Blake  <ebb9@byu.net>
58322
58323         vasnprintf-posix: handle large precision via %.*d
58324         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58325         when handling it ourselves.
58326         * tests/test-vasnprintf-posix.c (test_function): Add test.
58327         * tests/test-snprintf-posix.h (test_function): Likewise.
58328         * tests/test-sprintf-posix.h (test_function): Likewise.
58329         * tests/test-vasprintf-posix.c (test_function): Likewise.
58330         Reported by Alain Guibert.
58331
58332 2008-09-01  Eric Blake  <ebb9@byu.net>
58333
58334         c-stack: make configure-time check more robust
58335         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58336         successful sigaction call.
58337         Reported by Tom G. Christensen.
58338
58339 2008-09-01  Bruno Haible  <bruno@clisp.org>
58340
58341         New module 'findprog-lgpl'.
58342         * modules/findprog-lgpl: New file.
58343         * lib/findprog-lgpl.c: New file.
58344         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58345         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58346         to decide whether to use strdup or xstrdup, concatenated_filename or
58347         xconcatenated_filename.
58348
58349 2008-09-01  Bruno Haible  <bruno@clisp.org>
58350
58351         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58352         'xconcat-filename' (GPL).
58353         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58354         (License): Change to LGPLv2+.
58355         * modules/xconcat-filename: New file.
58356         * lib/concat-filename.h (concatenated_filename): Change specification.
58357         (xconcatenated_filename): New declaration.
58358         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58359         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58360         memory situations.
58361         * lib/xconcat-filename.c: New file.
58362         * NEWS: Mention the change.
58363         * lib/findprog.c: Include concat-filename.h, not filename.h.
58364         (find_in_path): Use xconcatenated_filename instead of
58365         concatenated_filename.
58366         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58367         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58368         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58369         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58370         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58371         instead of concatenated_filename.
58372         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58373         (execute_java_class): Use xconcatenated_filename instead of
58374         concatenated_filename.
58375         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58376         * modules/javacomp (Depends-on): Likewise.
58377         * modules/javaexec (Depends-on): Likewise.
58378
58379 2008-09-01  Bruno Haible  <bruno@clisp.org>
58380
58381         Split module 'filename' into 'filename' and 'concat-filename'.
58382         * modules/filename: Keep only lib/filename.h.
58383         (License): Change to LGPLv2+.
58384         * modules/concat-filename: New file, extracted from modules/filename.
58385         * lib/filename.h (concatenated_filename): Remove declaration.
58386         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58387         * lib/concat-filename.c: Include concat-filename.h.
58388         * NEWS: Mention the change.
58389
58390 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58391
58392         * lib/bitrotate.h (rotl8, rotr8): Add.
58393
58394         * modules/bitrotate (configure.ac): Need
58395         AC_REQUIRE([AC_C_INLINE]).
58396         (Description): Mention stdint.h.  Reported by Bruno Haible
58397         <bruno@clisp.org>.
58398
58399         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58400         Paolo Bonzini <bonzini@gnu.org>.
58401
58402 2008-08-31  Bruno Haible  <bruno@clisp.org>
58403
58404         Assume Solaris specific bi-arch conventions on Solaris systems.
58405         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58406         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58408         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58409         like acl_libdirstem.
58410         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58411         acl_libdirstem.
58412         * NEWS: Mention the change.
58413         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58414
58415 2008-08-31  Jim Meyering  <meyering@redhat.com>
58416
58417         * lib/strftime.h: Add comments describing the two added arguments.
58418
58419         remove duplicate #include directives
58420         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58421         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58422
58423 2008-08-31  Bruno Haible  <bruno@clisp.org>
58424
58425         New module 'sigpipe-die'.
58426         * modules/sigpipe-die: New file.
58427         * lib/sigpipe-die.h: New file.
58428         * lib/sigpipe-die.c: New file.
58429         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58430
58431 2008-08-31  Bruno Haible  <bruno@clisp.org>
58432
58433         Don't override previously installed signal handlers.
58434         * lib/fatal-signal.c (saved_sigactions): New variable.
58435         (uninstall_handlers): Reset the signal to the saved handler, not
58436         to SIG_DFL (except when ignored).
58437         (install_handlers): Save the previous handlers.
58438
58439 2008-08-30  Bruno Haible  <bruno@clisp.org>
58440
58441         * gnulib-tool (func_reset_sigpipe): New function.
58442         (func_get_automake_snippet, func_modules_transitive_closure,
58443         func_import): Invoke it before a join command that reads from stdin,
58444         to avoid "echo: write error: Broken pipe" error messages on stderr.
58445         Reported by Sam Steingold <sds@gnu.org>.
58446
58447 2008-08-30  Bruno Haible  <bruno@clisp.org>
58448
58449         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58450         Code copied from m4/open.m4.
58451         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58452         access and the filename ends in a slash. Code copied from lib/open.c.
58453         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58454         * tests/test-fopen.c (main): Check against bug with trailing slash.
58455
58456 2008-08-29  Bruno Haible  <bruno@clisp.org>
58457
58458         Avoid some "gcc -pedantic" warnings.
58459         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58460         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58461         * lib/dirent.in.h: Likewise.
58462         * lib/fcntl.in.h: Likewise.
58463         * lib/float.in.h: Likewise.
58464         * lib/iconv.in.h: Likewise.
58465         * lib/inttypes.in.h: Likewise.
58466         * lib/locale.in.h: Likewise.
58467         * lib/math.in.h: Likewise.
58468         * lib/netinet_in.in.h: Likewise.
58469         * lib/search.in.h: Likewise.
58470         * lib/signal.in.h: Likewise.
58471         * lib/stdarg.in.h: Likewise.
58472         * lib/stdint.in.h: Likewise.
58473         * lib/stdio.in.h: Likewise.
58474         * lib/stdlib.in.h: Likewise.
58475         * lib/string.in.h: Likewise.
58476         * lib/strings.in.h: Likewise.
58477         * lib/sys_select.in.h: Likewise.
58478         * lib/sys_socket.in.h: Likewise.
58479         * lib/sys_stat.in.h: Likewise.
58480         * lib/sys_time.in.h: Likewise.
58481         * lib/sysexits.in.h: Likewise.
58482         * lib/time.in.h: Likewise.
58483         * lib/unistd.in.h: Likewise.
58484         * lib/wchar.in.h: Likewise.
58485         * lib/wctype.in.h: Likewise.
58486         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58487         * modules/fchdir (Makefile.am): Likewise.
58488         * modules/fcntl (Makefile.am): Likewise.
58489         * modules/float (Makefile.am): Likewise.
58490         * modules/iconv_open (Makefile.am): Likewise.
58491         * modules/inttypes (Makefile.am): Likewise.
58492         * modules/locale (Makefile.am): Likewise.
58493         * modules/math (Makefile.am): Likewise.
58494         * modules/netinet_in (Makefile.am): Likewise.
58495         * modules/search (Makefile.am): Likewise.
58496         * modules/signal (Makefile.am): Likewise.
58497         * modules/stdarg (Makefile.am): Likewise.
58498         * modules/stdint (Makefile.am): Likewise.
58499         * modules/stdio (Makefile.am): Likewise.
58500         * modules/stdlib (Makefile.am): Likewise.
58501         * modules/string (Makefile.am): Likewise.
58502         * modules/strings (Makefile.am): Likewise.
58503         * modules/sys_select (Makefile.am): Likewise.
58504         * modules/sys_socket (Makefile.am): Likewise.
58505         * modules/sys_stat (Makefile.am): Likewise.
58506         * modules/sys_time (Makefile.am): Likewise.
58507         * modules/sysexits (Makefile.am): Likewise.
58508         * modules/time (Makefile.am): Likewise.
58509         * modules/unistd (Makefile.am): Likewise.
58510         * modules/wchar (Makefile.am): Likewise.
58511         * modules/wctype (Makefile.am): Likewise.
58512         Reported by Reuben Thomas <rrt@sc3d.org>.
58513
58514 2008-08-29  Bruno Haible  <bruno@clisp.org>
58515
58516         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58517         any more.
58518
58519 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58520
58521         * MODULES.html.sh (Misc): Add bitrotate.
58522
58523         * modules/bitrotate: New file.
58524
58525         * lib/bitrotate.h: New file.
58526
58527         * modules/bitrotate-tests: New file.
58528
58529         * tests/test-bitrotate.c: New file.
58530
58531         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58532         on the bitrotate module.
58533
58534         * lib/arctwo.c: Use new bitrotate module.
58535
58536 2008-08-29  Jim Meyering  <meyering@redhat.com>
58537
58538         bootstrap: merge changes from coreutils
58539         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58540         of copied files.  Remove a kludge, now that this is fixed.
58541         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58542         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58543         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58544
58545 2008-08-29  Bruno Haible  <bruno@clisp.org>
58546
58547         * MODULES.html.sh: Remove --cvs-urls option.
58548
58549 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58550
58551         maint.mk: adjust to file name change
58552         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58553
58554 2008-08-28  Jim Meyering  <meyering@redhat.com>
58555
58556         * modules/getndelim2 (License): Relicense to LGPLv2+.
58557         Approved by Richard Stallman for the version of 1995, and by
58558         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58559
58560 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58561
58562         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58563         dummy if one is not available.  Do not touch them if
58564         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58565         (getc_maybe_unlocked): New.
58566         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58567
58568 2008-08-26  Eric Blake  <ebb9@byu.net>
58569
58570         doc/INSTALL: resync from autoconf
58571         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58572         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58573         moving...
58574         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58575         * INSTALL: Regenerate.
58576         * INSTALL.ISO: New file.
58577         * INSTALL.UTF-8: Likewise.
58578
58579 2008-08-26  Jim Meyering  <meyering@redhat.com>
58580
58581         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58582         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58583         these definitions conditional, so that they may be overridden, too.
58584
58585 2008-08-26  Bruno Haible  <bruno@clisp.org>
58586
58587         Generate INSTALL file variants with prettier quotes.
58588         * doc/Makefile (INSTALL_PRELUDE): New macro.
58589         (INSTALL): Use it.
58590         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58591
58592 2008-08-26  Bruno Haible  <bruno@clisp.org>
58593
58594         Run makeinfo in an English locale.
58595         * doc/Makefile (MAKEINFO): New variable.
58596
58597 2008-08-26  Bruno Haible  <bruno@clisp.org>
58598
58599         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58600         Suggested by Eric Blake.
58601
58602 2008-08-25  Bruno Haible  <bruno@clisp.org>
58603
58604         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58605
58606 2008-08-25  Eric Blake  <ebb9@byu.net>
58607
58608         c-stack: test that stack overflow can be caught
58609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58610         that platform allows handling stack overflow; at least OS/2 EMX
58611         has sigaltstack, but crashes before transferring control to
58612         handler on stack overflow.
58613         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58614         check for HAVE_STACK_OVERFLOW_HANDLING.
58615         Reported by Elbert Pol.
58616
58617 2008-08-25  Bruno Haible  <bruno@clisp.org>
58618
58619         * doc/posix-functions/strftime.texi: Fix description of strftime
58620         module.
58621
58622 2008-08-24  Bruno Haible  <bruno@clisp.org>
58623
58624         * tests/uniwidth/test-uc_width2.c: New file.
58625         * tests/uniwidth/test-uc_width2.sh: New file.
58626         * modules/uniwidth/width-tests (Files): Add the new files.
58627         (TESTS): Add uniwidth/test-uc_width2.sh.
58628         (TESTS_ENVIRONMENT): New variable.
58629         (check_PROGRAMS): Add test-uc_width2.
58630         (test_uc_width2_SOURCES): New variable.
58631
58632         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58633         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58634         not 0x00AB.
58635         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58636
58637 2008-08-22  Eric Blake  <ebb9@byu.net>
58638
58639         test-lock, test-tls: mention why a test is skipped
58640         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58641         skipped.
58642         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58643
58644         count-one-bits: relax license
58645         * modules/count-one-bits (License): Relicense to LGPLv2+.
58646         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58647
58648 2008-08-22  Andreas Schwab  <schwab@suse.de>
58649
58650         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58651         Remove spurious space in assignment.
58652
58653 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58654
58655         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58656         Paul Eggert <eggert@CS.UCLA.EDU>.
58657
58658 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58659
58660         * modules/gettext: Add m4/threadlib.m4.
58661
58662 2008-08-19  Eric Blake  <ebb9@byu.net>
58663
58664         test-c-stack: fix compilation failure on FreeBSD 5.0
58665         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58666         headers before <sys/resource.h>.
58667         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58668         the bug.
58669         Reported by Nelson H. F. Beebe.
58670
58671         strverscmp: migrate from "strverscmp.h" to <string.h>
58672         * modules/string (Makefile.am): Add new hooks.
58673         * modules/strverscmp (Files): Remove strverscmp.h.
58674         (Depends-on): Add string.
58675         (configure.ac): Add indicator.
58676         (Include): Mention new header.
58677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58678         defaults.
58679         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58680         results.
58681         * lib/strverscmp.h: Delete.
58682         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58683         * tests/test-strverscmp.c (includes): Adjust client.
58684         * lib/check-version.c (includes): Likewise.
58685         * NEWS: Document the change.
58686
58687         strverscmp: add unit test
58688         * modules/strverscmp-tests: New file.
58689         * tests/test-strverscmp.c: Likewise.
58690
58691 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58692
58693         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58694         regarding Windows crypto stuff, from Mono.
58695
58696 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58697
58698         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58699         if present, for intel RND.  Return error on failures.
58700
58701 2008-08-18  Ben Pfaff  <blp@gnu.org>
58702
58703         gitlog-to-changelog: give better diagnostic for failed pipe-open
58704         * build-aux/gitlog-to-changelog: Improve error message: suggest
58705         that the version of Git may be too old.
58706
58707 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58708
58709         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58710         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58711
58712 2008-08-18  Bruno Haible  <bruno@clisp.org>
58713
58714         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58715         pthread_in_use().
58716
58717 2008-08-18  Bruno Haible  <bruno@clisp.org>
58718
58719         * lib/glthread/threadlib.c: Include <pthread.h>.
58720
58721 2008-08-18  Bruno Haible  <bruno@clisp.org>
58722
58723         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58724         glthread_recursive_lock_* macros.
58725         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58726         Fix syntax error.
58727
58728 2008-08-18  Bruno Haible  <bruno@clisp.org>
58729
58730         * lib/glthread/thread.c: Avoid forcing a context switch right after
58731         thread creation.
58732
58733 2008-08-17  Bruno Haible  <bruno@clisp.org>
58734
58735         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58736         * lib/glthread/thread.h: Provide Win32 specific implementation.
58737         * modules/thread (Files): Add lib/glthread/thread.c.
58738         (Depends-on): Add lock.
58739         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58740
58741 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58742
58743         New module 'yield'.
58744         * modules/yield: New file.
58745         * lib/glthread/yield.h: New file.
58746         * m4/yield.m4: New file.
58747         * MODULES.html.sh (Multithreading): Add yield.
58748
58749 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58750
58751         New module 'thread'.
58752         * modules/thread: New file.
58753         * lib/glthread/thread.h: New file.
58754         * m4/thread.m4: New file.
58755         * MODULES.html.sh (Multithreading): Add thread.
58756
58757 2008-08-17  Bruno Haible  <bruno@clisp.org>
58758
58759         * lib/glthread/lock.h: Include <stdlib.h> always.
58760         * lib/glthread/tls.h: Likewise.
58761         * lib/glthread/cond.h: Likewise.
58762
58763 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58764
58765         New module 'cond'.
58766         * modules/cond: New file.
58767         * lib/glthread/cond.h: New file.
58768         * lib/glthread/cond.c: New file.
58769         * m4/cond.m4: New file.
58770         * MODULES.html.sh (Multithreading): Add cond.
58771
58772 2008-08-16  Eric Blake  <ebb9@byu.net>
58773
58774         c-stack: fix regression on Irix 5.3 from 2008-06-21
58775         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58776         sa_sigaction...
58777         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58778         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58779         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58780         * modules/signal (Makefile.am): Use the value.
58781         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58782         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58783         * doc/posix-headers/signal.texi (signal.h): Document this
58784         portability issue.
58785         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58786         Reported by Tom G. Christensen.
58787
58788 2008-08-17  Bruno Haible  <bruno@clisp.org>
58789
58790         New module 'threadlib'.
58791         * modules/threadlib: New file.
58792         * lib/glthread/threadlib.c: New file, extracted from
58793         lib/glthread/lock.c.
58794         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58795         functions.
58796         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58797         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58798         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58799         macros.
58800         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58801         (gl_DISABLE_THREADS): Remove macro.
58802         * modules/lock (Files): Remove build-aux/config.rpath.
58803         (Depends-on): Remove havelib. Add threadlib.
58804         (configure.ac-early): Remove section.
58805         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58806         * modules/tls (Depends-on): Remove lock. Add threadlib.
58807         (Link): New section, copied from threadlib.
58808         * MODULES.html.sh (Multithreading): Add threadlib.
58809
58810 2008-08-14  Bruno Haible  <bruno@clisp.org>
58811
58812         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58813         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58814         glthread_rwlock_unlock, glthread_rwlock_destroy,
58815         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58816         glthread_recursive_lock_destroy): Define as macros always.
58817         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58818         glthread_lock_lock.
58819         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58820         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58821         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58822         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58823         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58824         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58825         (glthread_recursive_lock_lock_func): Renamed from
58826         glthread_recursive_lock_lock.
58827         (glthread_recursive_lock_unlock_func): Renamed from
58828         glthread_recursive_lock_unlock.
58829         (glthread_recursive_lock_destroy_func): Renamed from
58830         glthread_recursive_lock_destroy.
58831
58832 2008-08-14  Bruno Haible  <bruno@clisp.org>
58833
58834         * lib/glthread/lock.h: Renamed from lib/lock.h.
58835         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58836         * lib/glthread/tls.h: Renamed from lib/tls.h.
58837         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58838         * lib/fstrcmp.c: Update includes.
58839         * lib/strsignal.c: Update includes.
58840         * modules/lock (Files, Makefile.am): Update.
58841         (Include): Change to "glthread/lock.h".
58842         * modules/tls (Files, Makefile.am): Update.
58843         (Include): Change to "glthread/tls.h".
58844         * tests/test-lock.c: Update includes.
58845         * tests/test-tls.c: Update includes.
58846         * NEWS: Mention the renamed header files.
58847
58848 2008-08-11  Jim Meyering  <meyering@redhat.com>
58849
58850         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58851
58852 2008-08-11  Eric Blake  <ebb9@byu.net>
58853
58854         test-c-stack: avoid C99-ism
58855         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58856         before statement.
58857         Reported by Alain Guibert.
58858
58859 2008-08-10  Jim Meyering  <meyering@redhat.com>
58860
58861         ensure that return value of uinttostr et al are not ignored
58862         * lib/inttostr.h (__GNUC_PREREQ): Define.
58863         (__attribute_warn_unused_result__): Define.
58864         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58865
58866 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58867
58868         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58869         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58870
58871 2008-08-07  Jim Meyering  <meyering@redhat.com>
58872
58873         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58874
58875         * modules/mkstemp (License): Relicense under LGPLv2+.
58876         * modules/tempname (License): Likewise.
58877
58878 2008-08-06  Bruno Haible  <bruno@clisp.org>
58879
58880         * lib/poll.c (poll): Further micro-optimization.
58881
58882 2008-08-06  Jim Meyering  <meyering@redhat.com>
58883
58884         inet_pton.c: use locale-independent tolower
58885         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58886         (inet_pton6): Use c_tolower rather than tolower.
58887         * modules/inet_pton (Depends-on): Add c-ctype.
58888
58889 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58890
58891         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58892         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58893
58894 2008-08-06  Jim Meyering  <meyering@redhat.com>
58895
58896         * modules/inet_pton (License): Relicense under LGPLv2+.
58897
58898 2008-08-03  Bruno Haible  <bruno@clisp.org>
58899
58900         Additional non-aborting API for lock and tls.
58901         * lib/lock.h: Include <errno.h>.
58902         (glthread_lock_init): New macro/function.
58903         (gl_lock_init): Define as wrapper around glthread_lock_init.
58904         (glthread_lock_lock): New macro/function.
58905         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58906         (glthread_lock_unlock): New macro/function.
58907         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58908         (glthread_lock_destroy): New macro/function.
58909         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58910         (glthread_rwlock_init): New macro/function.
58911         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58912         (glthread_rwlock_rdlock): New macro/function.
58913         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58914         (glthread_rwlock_wrlock): New macro/function.
58915         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58916         (glthread_rwlock_unlock): New macro/function.
58917         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58918         (glthread_rwlock_destroy): New macro/function.
58919         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58920         (glthread_recursive_lock_init): New macro/function.
58921         (gl_recursive_lock_init): Define as wrapper around
58922         glthread_recursive_lock_init.
58923         (glthread_recursive_lock_lock): New macro/function.
58924         (gl_recursive_lock_lock): Define as wrapper around
58925         glthread_recursive_lock_lock.
58926         (glthread_recursive_lock_unlock): New macro/function.
58927         (gl_recursive_lock_unlock): Define as wrapper around
58928         glthread_recursive_lock_unlock.
58929         (glthread_recursive_lock_destroy): New macro/function.
58930         (gl_recursive_lock_destroy): Define as wrapper around
58931         glthread_recursive_lock_destroy.
58932         (glthread_once): New macro/function.
58933         (gl_once): Define as wrapper around glthread_once.
58934         Update function declarations.
58935         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58936         glthread_rwlock_init. Return error code.
58937         (glthread_rwlock_rdlock_multithreaded): Renamed from
58938         glthread_rwlock_rdlock. Return error code.
58939         (glthread_rwlock_wrlock_multithreaded): Renamed from
58940         glthread_rwlock_wrlock. Return error code.
58941         (glthread_rwlock_unlock_multithreaded): Renamed from
58942         glthread_rwlock_unlock. Return error code.
58943         (glthread_rwlock_destroy_multithreaded): Renamed from
58944         glthread_rwlock_destroy. Return error code.
58945         (glthread_recursive_lock_init_multithreaded): Renamed from
58946         glthread_recursive_lock_init. Return error code.
58947         (glthread_recursive_lock_lock_multithreaded): Renamed from
58948         glthread_recursive_lock_lock. Return error code.
58949         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58950         glthread_recursive_lock_unlock. Return error code.
58951         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58952         glthread_recursive_lock_destroy. Return error code.
58953         (glthread_once_call): Make static.
58954         (glthread_once_multithreaded): Renamed from glthread_once.
58955         * lib/tls.h: Include <errno.h>.
58956         (glthread_tls_key_init): New macro/function.
58957         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58958         (glthread_tls_set): New macro/function.
58959         (gl_tls_set): Define as wrapper around glthread_tls_set.
58960         (glthread_tls_key_destroy): New macro/function.
58961         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58962         Update function declarations.
58963         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58964         glthread_tls_get.
58965         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58966
58967 2008-08-04  Eric Blake  <ebb9@byu.net>
58968
58969         gnumakefile: use space, not TAB, outside of targets
58970         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58971
58972 2008-08-02  Jim Meyering  <meyering@redhat.com>
58973
58974         getdate.y: avoid locale-dependent date parsing failure
58975         In Turkish locales, getdate would fail to recognize keywords
58976         containing a lowercase "i".  The solution is not to rely on
58977         locale-sensitive case-conversion.
58978         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58979         (lookup_word): Use c_toupper in place of toupper.
58980         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58981         Reported by Vefa Bicakci <bicave@superonline.com> in
58982         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58983         * modules/getdate (Depends-on): Add c-ctype.
58984
58985 2008-08-02  Bruno Haible  <bruno@clisp.org>
58986
58987         * gnulib-tool (func_import): When updating or creating a .gitignore
58988         file, prepend each added line with a slash, and ignore leading slashes
58989         from the existing lines.
58990         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58991
58992 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58993
58994         Portability fix for GNU make 3.79.1.
58995         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58996         versions do not understand.
58997
58998 2008-08-01  Bruno Haible  <bruno@clisp.org>
58999
59000         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59001         * tests/test-isnanf.h (zero): New variable.
59002         (main): Avoid literal -0.0f.
59003         * tests/test-isnand.h (zero): New variable.
59004         (main): Avoid literal -0.0.
59005         * tests/test-isnanl.h (zero): New variable.
59006         (main): Avoid literal -0.0L.
59007         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59008         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59009         -0.0, -0.0L.
59010         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59011         (test_signbitd): Avoid literal -0.0.
59012         (test_signbitl): Avoid literal -0.0L.
59013         * tests/test-ceilf1.c (zero): New variable.
59014         (main): Avoid literal -0.0f.
59015         * tests/test-ceill.c (zero): New variable.
59016         (main): Avoid literal -0.0L.
59017         * tests/test-floorf1.c (zero): New variable.
59018         (main): Avoid literal -0.0f.
59019         * tests/test-floorl.c (zero): New variable.
59020         (main): Avoid literal -0.0L.
59021         * tests/test-roundf1.c (zero): New variable.
59022         (main): Avoid literal -0.0f.
59023         * tests/test-round1.c (zero): New variable.
59024         (main): Avoid literal -0.0.
59025         * tests/test-roundl.c (zero): New variable.
59026         (main): Avoid literal -0.0L.
59027         * tests/test-truncf1.c (zero): New variable.
59028         (main): Avoid literal -0.0f.
59029         * tests/test-trunc1.c (zero): New variable.
59030         (main): Avoid literal -0.0.
59031         * tests/test-truncl.c (zero): New variable.
59032         (main): Avoid literal -0.0L.
59033         * tests/test-frexp.c (zero): New variable.
59034         (main): Avoid literal -0.0.
59035         * tests/test-frexpl.c (zero): New variable.
59036         (main): Avoid literal -0.0L.
59037         * tests/test-ldexpl.c (zero): New variable.
59038         (main): Avoid literal -0.0L.
59039         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59040         (zerod, zerol): New variables.
59041         (test_function): Avoid literals -0.0, -0.0L.
59042         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59043         (zerod, zerol): New variables.
59044         (test_function): Avoid literals -0.0, -0.0L.
59045         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59046         (zerod, zerol): New variables.
59047         (test_function): Avoid literals -0.0, -0.0L.
59048         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59049         (zerod, zerol): New variables.
59050         (test_function): Avoid literals -0.0, -0.0L.
59051         * tests/test-strtod.c (zero): New variable.
59052         (main): Avoid literal -0.0.
59053         Reported by Jonathan C. Patschke <jp@centtech.com>.
59054
59055 2008-07-31  Jim Meyering  <meyering@redhat.com>
59056
59057         sha256.h: correct definition of SHA224_DIGEST_SIZE
59058         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59059         Reported by Paulie Pena IV <paulie4@gmail.com>.
59060         Define as 224 / 8, rather than as a literal.
59061         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59062         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59063         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59064
59065 2008-07-31  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59068         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59069         Reported by Jonathan Patschke <jp@centtech.com>.
59070
59071 2008-07-31  Bruno Haible  <bruno@clisp.org>
59072
59073         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59074         Reported by Paolo Bonzini <bonzini@gnu.org>.
59075
59076 2008-07-30  Eric Blake  <ebb9@byu.net>
59077
59078         test-strtod: allow compilation without -lm
59079         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59080         Reported by Dennis Clarke <blastwave@gmail.com>.
59081
59082 2008-07-28  Jim Meyering  <meyering@redhat.com>
59083
59084         bootstrap: work also when there are no .po files in po/
59085         * build-aux/bootstrap (update_po_files): Complete the change
59086         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59087
59088 2008-07-27  Jim Meyering  <meyering@redhat.com>
59089
59090         * users.txt: Add zile.
59091
59092 2008-07-26  Ben Pfaff  <blp@gnu.org>
59093
59094         Add missing dependencies on new m4/exponent[fdl].m4 files.
59095         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59096         * modules/isnand-nolibm: Add m4/exponentd.m4.
59097         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59098         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59099         m4/isnan[fdl].m4, because the macros actually used moved.
59100         Reported by Jim Meyering.
59101
59102 2008-07-14  Ben Pfaff  <blp@gnu.org>
59103
59104         Add isinf module.
59105         * lib/isinf.c: New file.
59106         * lib/math.in.h: Define isinf macro if we have decided to replace
59107         it.
59108         * m4/isinf.m4: New file.
59109         * m4/math_h.m4: Initialize and substitute variables for isinf
59110         module.
59111         * modules/isinf: New file.
59112         * modules/isinf-tests: New file.
59113         * modules/math: Add substitutions for new module.
59114         * tests/test-isinf.c: New file.
59115         * doc/posix-functions/isinf.texi: Mention new module.
59116         * MODULES.html.sh: Mention new module.
59117
59118 2008-07-14  Ben Pfaff  <blp@gnu.org>
59119
59120         Factor out some macros for use by additional modules.
59121         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59122         exponentf.m4.
59123         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59124         exponentd.m4.
59125         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59126         file exponentl.m4.
59127         * m4/exponentf.m4: New file.
59128         * m4/exponentd.m4: New file.
59129         * m4/exponentl.m4: New file.
59130         * modules/isnanf: Use new file m4/exponentf.m4.
59131         * modules/isnand: Use new file m4/exponentd.m4.
59132         * modules/isnanl: Use new file m4/exponentl.m4.
59133
59134 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59135
59136         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59137         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59138         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59139         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59140
59141         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59142         readlink on platforms without PATH_MAX.
59143
59144 2008-07-21  Eric Blake  <ebb9@byu.net>
59145
59146         Warn, not fail, on stale version.
59147         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59148
59149         Don't allow installation with stale devel version number.
59150         * top/GNUmakefile (_is-install-target): New macro.
59151         (_curr-ver): Forbid installation with stale version number.
59152
59153 2008-07-20  Bruno Haible  <bruno@clisp.org>
59154
59155         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59156         TESTS_ENVIRONMENT.
59157         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59158
59159 2008-07-20  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/c-stack.h (c_stack_action): Add documentation.
59162         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59163
59164 2008-07-20  Bruno Haible  <bruno@clisp.org>
59165
59166         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59167         * modules/readlink (License): Likewise.
59168
59169 2008-07-17  Eric Blake  <ebb9@byu.net>
59170
59171         * modules/c-stack (Link): Fix typo.
59172
59173         Make c-stack use libsigsegv, when available.
59174         * modules/c-stack (Depends-on): Add libsigsegv.
59175         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59176         needed.
59177         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59178         (segv_handler, overflow_handler, c_stack_action)
59179         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59180         implementation when libsigsegv is available, but only when using
59181         the library is necessary.
59182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59183         comment, explaining why XSI check fails on Linux.
59184         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59185         * tests/test-c-stack2.sh: Tweak skip message.
59186         * NEWS: Document new link-time requirements.
59187
59188 2008-07-16  Eric Blake  <ebb9@byu.net>
59189
59190         c-stack: Expose false positives when not using libsigsegv.
59191         * modules/c-stack-tests (Files): Expand test.
59192         * tests/test-c-stack.c (main): Add means to conditionally trigger
59193         non-overflow SIGSEGV.
59194         * tests/test-c-stack2.sh: New file.
59195
59196 2008-07-14  Bruno Haible  <bruno@clisp.org>
59197
59198         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59199         Reported by Eric Blake.
59200
59201 2008-07-14  Sam Steingold  <sds@gnu.org>
59202             Bruno Haible  <bruno@clisp.org>
59203
59204         New module libsigsegv.
59205         * modules/libsigsegv: New file.
59206         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59207         modifications.
59208         * MODULES.html.sh (Signal handling): New section.
59209
59210 2008-07-14  Bruno Haible  <bruno@clisp.org>
59211
59212         * modules/unictype/ctype-* (Description): Add the word "function".
59213         Improves the resulting doc in MODULES.html.
59214
59215 2008-07-12  Ben Pfaff  <blp@gnu.org>
59216
59217         Add longlong module.
59218         * modules/longlong: New file.
59219
59220 2008-07-12  Bruno Haible  <bruno@clisp.org>
59221
59222         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59223         to empty.
59224
59225 2008-07-10  Ben Pfaff  <blp@gnu.org>
59226
59227         Add isnan module.
59228         * doc/posix-functions/isnan.texi: Mention new module.
59229         * lib/math.in.h: Define isnan macro if we have decided to replace
59230         it.
59231         * m4/isnan.m4: New file.
59232         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59233         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59234         also.
59235         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59236         redundancy.
59237         * m4/math_h.m4: Initialize and substitute variables for isnan
59238         module.
59239         * modules/isnan: New file.
59240         * modules/isnan-tests: New file.
59241         * modules/math: Add substitutions for new module.
59242         * tests/test-isnan.c: New file.
59243         * MODULES.html.sh: Mention new module.
59244
59245 2008-07-10  Ben Pfaff  <blp@gnu.org>
59246
59247         Add isnanf module.
59248         * lib/isnanf.m4: New file.
59249         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59250         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59251         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59252         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59253         * modules/isnanf: New file.
59254         * modules/isnanf-tests: New file.
59255         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59256         files.
59257         * tests/test-isnanf-nolibm.c: factored most of its contents into
59258         new file tests/test-isnanf.h.
59259         * tests/test-isnanf.h: New file.
59260         * tests/test-isnanf.c: New file.
59261         * MODULES.html.sh: Mention new module.
59262         * doc/glibc-functions/isnanf.texi: Mention new module.
59263
59264 2008-07-10  Ben Pfaff  <blp@gnu.org>
59265
59266         Add isnand module.
59267         * lib/isnand.h: New file.
59268         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59269         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59270         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59271         functionality also.
59272         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59273         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59274         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59275         * modules/isnand: New file.
59276         * modules/isnand-tests: New file.
59277         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59278         files.
59279         * tests/test-isnand-nolibm.c: factored most of its contents into
59280         new file tests/test-isnand.h.
59281         * tests/test-isnand.h: New file.
59282         * tests/test-isnand.c: New file.
59283         * MODULES.html.sh: Mention new module.
59284
59285 2008-07-10  Ben Pfaff  <blp@gnu.org>
59286
59287         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59288         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59289         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59290         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59291         * modules/isnanf-nolibm: Update references to renamed files.
59292         * modules/isnand-nolibm: Likewise.
59293         * modules/isnanf-nolibm-tests: Likewise.
59294         * modules/isnand-nolibm-tests: Likewise.
59295         * lib/frexp.c: Likewise.
59296         * lib/isfinite.c: Likewise.
59297         * lib/signbitd.c: Likewise.
59298         * lib/signbitf.c: Likewise.
59299         * lib/vasnprintf.c: Likewise.
59300         * tests/test-ceilf1.c: Likewise.
59301         * tests/test-ceilf2.c: Likewise.
59302         * tests/test-floorf1.c: Likewise.
59303         * tests/test-floorf2.c: Likewise.
59304         * tests/test-frexp.c: Likewise.
59305         * tests/test-round1.c: Likewise.
59306         * tests/test-round2.c: Likewise.
59307         * tests/test-roundf1.c: Likewise.
59308         * tests/test-strtod.c: Likewise.
59309         * tests/test-trunc1.c: Likewise.
59310         * tests/test-trunc2.c: Likewise.
59311         * tests/test-truncf1.c: Likewise.
59312         * tests/test-truncf2.c: Likewise.
59313         * NEWS: Mention the renamed header files.
59314
59315 2008-07-11  Jim Meyering  <meyering@redhat.com>
59316
59317         vc-list-files: make the last-resort awk code more portable
59318         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59319         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59320         does not support it.
59321
59322 2008-07-10  Eric Blake  <ebb9@byu.net>
59323
59324         Work with tar's bootstrap.
59325         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59326         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59327         an m4 comment.
59328
59329 2008-07-09  Jim Meyering  <meyering@redhat.com>
59330
59331         posix-shell.m4: fix typo that made this test malfunction
59332         * m4/posix-shell.m4: Remove capitalization in variable name.
59333
59334 2008-07-08  Bruno Haible  <bruno@clisp.org>
59335
59336         * m4/onceonly.m4: Update comments.
59337         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59338
59339 2008-07-04  Jim Meyering  <meyering@redhat.com>
59340
59341         * users.txt: Add vc-dwim.
59342         (bison, coreutils): Use the gitweb URL.
59343
59344 2008-07-03  Jim Meyering  <meyering@redhat.com>
59345
59346         * users.txt: Add libffcall.  From Sam Steingold.
59347
59348 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59349
59350         getdate.y: do not ignore TZ with relative day, month or year offset
59351         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59352         relative-date-handling, since otherwise, the latter would clobber the
59353         sole output (an updated Start value) of the tz-handling block.
59354         * tests/test-getdate.c: Tests for the fix
59355
59356 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59357
59358         Recognize 'foo_LIBRARIES += libgnu.a'.
59359         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59360         makefile snippet has already specified an installation location,
59361         also using '+='.
59362
59363 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59364
59365         getdate.y: factor out common actions
59366         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59367         Use them in place of open-coded actions.
59368
59369 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59370
59371         Add self-test for getdate module.
59372         * modules/getdate-tests: New file.
59373         * tests/test-getdate.c: New file.
59374
59375 2008-06-29  Bruno Haible  <bruno@clisp.org>
59376
59377         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59378         .gitignore.
59379         Reported by Sylvain Beucler <beuc@beuc.net>.
59380
59381 2008-06-29  Bruno Haible  <bruno@clisp.org>
59382
59383         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59384         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59385
59386 2008-06-29  Bruno Haible  <bruno@clisp.org>
59387
59388         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59389         EXTRA_DIST.
59390         Reported by Sylvain Beucler <beuc@beuc.net>.
59391
59392 2008-06-26  Jim Meyering  <meyering@redhat.com>
59393
59394         make several modules depend on the "open" module
59395         This provides slightly increased consistency when opening-for-write
59396         the name of a non-directory spelled with a trailing slash.
59397         * modules/chdir-safer: Likewise.
59398         * modules/chown: Likewise.
59399         * modules/clean-temp: Likewise.
59400         * modules/copy-file: Likewise.
59401         * modules/fchdir: Likewise.
59402         * modules/fcntl-safer: Likewise.
59403         * modules/pipe: Likewise.
59404         * modules/utime: Likewise.
59405         Prompted by Eric Blake and Bruno Haible.
59406
59407 2008-06-24  Andreas Schwab  <schwab@suse.de>
59408
59409         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59410         literals can be used as initializers for global variables.
59411
59412 2008-06-23  Eric Blake  <ebb9@byu.net>
59413
59414         Make gnulib-cache.m4 easier to diff.
59415         * gnulib-tool (func_import): Allow newlines when reading cached
59416         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59417
59418 2008-06-23  Bruno Haible  <bruno@clisp.org>
59419
59420         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59421         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59422         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59423         m4/signalblocking.m4.
59424         (gl_PREREQ_SIGACTION): Don't invoke it.
59425         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59426         gl_PREREQ_SIG_HANDLER_H.
59427         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59428         Don't check for sigaction here.
59429
59430 2008-06-23  Bruno Haible  <bruno@clisp.org>
59431
59432         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59433         (install_handlers): Don't set the SA_RESETHAND flag.
59434
59435 2008-06-23  Bruno Haible  <bruno@clisp.org>
59436
59437         * m4/sigaction.m4: Comment fixes.
59438         * lib/signal.in.h: Likewise.
59439
59440 2008-06-23  Eric Blake  <ebb9@byu.net>
59441
59442         Fix typo.
59443         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59444
59445         Avoid SA_ namespace.
59446         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59447         Reported by Ralf Wildenhues.
59448
59449         Avoid test failure due to SA_RESTORER.
59450         * tests/test-sigaction.c (SA_MASK): New macro.
59451         (main): Avoid failing due to extension flags being set.
59452         Reported by Jim Meyering.
59453
59454         Revert use of sig-handler.h in sigprocmask.c.
59455         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59456         it requires the existence of struct sigaction.
59457         * lib/sigprocmask.c (handler_t): Restore typedef.
59458         (rpl_signal, old_handlers): Use local type.
59459
59460 2008-06-22  Bruno Haible  <bruno@clisp.org>
59461
59462         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59463         conditionally.
59464         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59465
59466 2008-06-22  Bruno Haible  <bruno@clisp.org>
59467
59468         * doc/posix-functions/siginterrupt.texi: Move note.
59469
59470         * lib/signal.in.h (SA_RESTART): New macro.
59471         * lib/sigaction.c: Update comment.
59472
59473         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59474
59475         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59476         (gl_PREREQ_SIGPROCMASK): Invoke it.
59477         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59478
59479         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59480
59481         * lib/sigprocmask.c: Update a comment.
59482
59483 2008-06-21  Eric Blake  <ebb9@byu.net>
59484
59485         Use sigaction module rather than signal().
59486         * modules/c-stack (Depends-on): Add sigaction.
59487         * modules/fatal-signal (Depends-on): Likewise.
59488         * modules/nanosleep (Depends-on): Likewise.
59489         * modules/sigprocmask (Files): Add sig-handler.h.
59490         * modules/sigaction (Files): Likewise.
59491         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59492         Eggert.
59493         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59494         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59495         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59496         (init_fatal_signals): Likewise.
59497         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59498         (siginterrupt): Delete fallback.
59499         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59500         instead.
59501         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59502         siginterrupt.
59503
59504         New module sigaction, for mingw.
59505         * modules/sigaction: New module...
59506         * modules/sigaction-tests: ...and its test.
59507         * m4/sigaction.m4: New file.
59508         * lib/sigaction.c: Likewise.
59509         * tests/test-sigaction.c: Likewise.
59510         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59511         * modules/signal (Makefile.am): Likewise.
59512         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59513         needed.
59514         * doc/posix-headers/signal.texi (signal.h): Mention provided
59515         types.
59516         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59517         that sigaction is preferable.
59518         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59519         module.
59520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59521         sigaction.
59522
59523         Improve robustness of sigprocmask by overriding signal.
59524         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59525         is in use.
59526         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59527         (SIGKILL, SIGSTOP): Provide fallbacks.
59528         (rpl_signal): Implement.
59529         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59530         signal can be called inside handlers.
59531
59532         Fix nanosleep module on mingw.
59533         * modules/nanosleep (Depends-on): Add sys_select.
59534         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59535
59536         Fix licensing of sigprocmask.
59537         * modules/raise (License): Relicense as LGPL.
59538
59539 2008-06-21  Bruno Haible  <bruno@clisp.org>
59540
59541         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59542         result if it contains question marks.
59543         Reported by Michael Geng <linux@michaelgeng.de>.
59544
59545 2008-06-19  Bruno Haible  <bruno@clisp.org>
59546
59547         Fix CVS-ism.
59548         * doc/gnulib.texi: Include updated-stamp.texi.
59549         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59550         (updated-stamp.texi): New rule.
59551         (gnulib.info): Depend on it.
59552         * doc/.gitignore: Add updated-stamp.texi.
59553         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59554
59555 2008-06-19  Bruno Haible  <bruno@clisp.org>
59556
59557         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59558         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59559
59560 2008-06-19  Eric Blake  <ebb9@byu.net>
59561
59562         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59563         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59564         Reported by Stepan Kasal.
59565
59566 2008-06-18  Bruno Haible  <bruno@clisp.org>
59567
59568         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59569         Reported by Eric Blake.
59570
59571 2008-06-18  Eric Blake  <ebb9@byu.net>
59572
59573         Work around cygwin 1.5.25 strsignal bug.
59574         * tests/test-strsignal.c: Allow for const char *.
59575         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59576
59577 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59578
59579         * users.txt: Update URL to article and add author/date
59580         information.
59581
59582 2008-06-17  Bruno Haible  <bruno@clisp.org>
59583
59584         New macro gl_DISABLE_THREADS.
59585         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59586         if the user did not pass --enable-threads or --disable-threads option.
59587         (gl_DISABLE_THREADS): New macro.
59588         Reported by Eric Blake <ebb9@byu.net>.
59589
59590 2008-06-17  Bruno Haible  <bruno@clisp.org>
59591
59592         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59593         when the macro ignores it.
59594         Based on a patch by Eric Blake <ebb9@byu.net>.
59595
59596 2008-06-17  Bruno Haible  <bruno@clisp.org>
59597
59598         * modules/tls (License): Change to LGPLv2+.
59599         Reported by Eric Blake.
59600
59601 2008-06-17  Eric Blake  <ebb9@byu.net>
59602
59603         Simplify c-stack prerequisites.
59604         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59606         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59607         check.
59608         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59609         <sys/resource.h>.
59610
59611         Move c-stack test into testsuite.
59612         * modules/c-stack-tests: New file.
59613         * lib/c-stack.c [DEBUG]: Move test program...
59614         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59615         fail test if sigaltstack is lacking.
59616         * tests/test-c-stack.sh: New driver file.
59617
59618 2008-06-16  Eric Blake  <ebb9@byu.net>
59619
59620         Use raise module consistently.
59621         * modules/fatal-signal (Depends-on): Add raise.
59622         * modules/sigprocmask (Depends-on): Likewise.
59623         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59624         * lib/sigprocmask.c (sigprocmask): Likewise.
59625         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59626         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59627
59628         Fix compliance bug in sigpending.
59629         * lib/sigprocmask.c (sigpending): Return pending array via
59630         parameter, not return value.
59631
59632 2008-06-14  Eric Blake  <ebb9@byu.net>
59633
59634         Improve obstack-printf test code.
59635         * tests/test-obstack-printf.c (test_function): Fix comment, and
59636         simplify usage of obstack_* in macros.  Add a test for coverage.
59637         Reported by Bruno Haible.
59638
59639 2008-06-14  Bruno Haible  <bruno@clisp.org>
59640
59641         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59642         array size as a constant, not as a const variable.
59643         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59644         AC_USE_SYSTEM_EXTENSIONS.
59645         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59646         Test whether the obstack_printf function actually exists.
59647         * modules/obstack-printf (Depends-on): Add extensions.
59648         (Include): Remove obstack.h.
59649         * modules/obstack-printf-posix (Depends-on): Add extensions.
59650         (Include): Remove obstack.h.
59651
59652 2008-06-13  Eric Blake  <ebb9@byu.net>
59653
59654         Add obstack-printf and obstack-printf-posix modules.
59655         * modules/obstack-printf: New file.
59656         * modules/obstack-printf-posix: Likewise.
59657         * MODULES.html.sh (Misc): Mention them.
59658         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59659         Likewise.
59660         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59661         Likewise.
59662         * modules/stdio (Makefile.am): Accomodate new modules.
59663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59664         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59665         Declare.
59666         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59667         functions.
59668         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59669         (gl_REPLACE_OBSTACK_PRINTF): New macros
59670         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59671         * tests/test-obstack-printf.c: New file.
59672         * modules/obstack-printf-tests: Likewise.
59673         * modules/obstack-printf-posix-tests: Likewise.
59674
59675 2008-06-11  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59678         * lib/open.c: Include errno.h.
59679         (open): Fail when attempting to write to a file that has a trailing
59680         slash.
59681         * tests/test-open.c (main): Test against trailing slash bug.
59682         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59683
59684 2008-06-10  Bruno Haible  <bruno@clisp.org>
59685
59686         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59687         for $? to work inside the trap command, with various /bin/sh-s.
59688         * tests/test-vc-list-files-cvs.sh: Likewise.
59689
59690 2008-06-10  Bruno Haible  <bruno@clisp.org>
59691
59692         * lib/acl-internal.h: Don't include gettext.h here.
59693         * lib/set-mode-acl.c: Include gettext.h here.
59694         * lib/copy-acl.c: Likewise.
59695
59696 2008-06-10  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59699         * lib/wait-process.c (wait_subprocess): Likewise.
59700         * lib/execute.h (execute): Add termsigp argument.
59701         * lib/execute.c (execute): Likewise.
59702         * lib/csharpcomp.c (compile_csharp_using_pnet,
59703         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59704         * lib/csharpexec.c (execute_csharp_using_pnet,
59705         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59706         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59707         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59708         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59709         is_jikes_present): Update.
59710         * lib/javaexec.c (execute_java_class): Update.
59711         * lib/javaversion.c (execute_and_read_line): Update.
59712         * NEWS: Document the changes.
59713         Reported by Eric Blake.
59714
59715 2008-06-10  Eric Blake  <ebb9@byu.net>
59716
59717         Add missing include.
59718         * tests/test-strstr.c (includes): Add <signal.h>.
59719         * tests/test-strcasestr.c (includes): Likewise.
59720         * tests/test-memmem.c (includes): Likewise.
59721
59722 2008-06-10  Bruno Haible  <bruno@clisp.org>
59723
59724         * lib/wait-process.c (wait_subprocess): Add an assertion.
59725
59726 2008-06-10  Bruno Haible  <bruno@clisp.org>
59727
59728         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59729
59730 2008-06-10  Bruno Haible  <bruno@clisp.org>
59731
59732         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59733         using alarm().
59734         * tests/test-strcasestr.c (main): Likewise.
59735         * tests/test-strstr.c (main): Likewise.
59736
59737 2008-06-09  Bruno Haible  <bruno@clisp.org>
59738
59739         Work around the Solaris 10 ACE ACLs ABI change.
59740         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59741         declare if ACL_NO_TRIVIAL is present.
59742         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59743         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59744         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59745         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59746         define if ACL_NO_TRIVIAL is present.
59747         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59748         and use the current ABI.
59749         (file_has_acl): Use same #if condition as elsewhere.
59750         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59751         in use, and use the current ABI.
59752         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59753         Reported by Jim Meyering.
59754
59755 2008-06-09  Eric Blake  <ebb9@byu.net>
59756
59757         Work around environments that (stupidly) ignore SIGALRM.
59758         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59759         before using alarm().
59760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59761         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59762         Reported by Ian Beckwith <ianb@erislabs.net>.
59763
59764         Produce autobuild blurb earlier in log.
59765         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59766
59767 2008-06-09  Jim Meyering  <meyering@redhat.com>
59768         and Ondřej Vašík  <ovasik@redhat.com>
59769
59770         utimens.c: correct kernel bug work-around
59771         Ondřej Vašík found that the invalid return value of 280 indicates
59772         failure, not success, and the kernel bug we're trying to work
59773         around affects not just the utimensat call, but also the fallback
59774         futimens call.
59775         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59776         not success.
59777         [HAVE_FUTIMENS]: Use the same work-around, here.
59778
59779 2008-06-09  Jim Meyering  <meyering@redhat.com>
59780
59781         add more guards around definition of ACE_-related code
59782         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59783         ALLOW and ACE_OWNER are also defined.
59784
59785 2008-06-08  Bruno Haible  <bruno@clisp.org>
59786
59787         * lib/acl-internal.h: Add me as co-author.
59788         * lib/file-has-acl.c: Likewise.
59789         * lib/set-mode-acl.c: Likewise.
59790         * lib/copy-acl.c: Likewise.
59791
59792 2008-06-08  Bruno Haible  <bruno@clisp.org>
59793
59794         Add support for AIX ACLs.
59795         * lib/acl-internal.h (acl_nontrivial): New declaration.
59796         * lib/file-has-acl.c (acl_nontrivial): New function.
59797         (file_has_acl): Add implementation using AIX 4 ACL API.
59798         * lib/set-mode-acl.c (qset_acl): Likewise.
59799         * lib/copy-acl.c (qcopy_acl): Likewise.
59800
59801 2008-06-08  Bruno Haible  <bruno@clisp.org>
59802
59803         Add support for HP-UX ACLs.
59804         * lib/acl-internal.h (acl_nontrivial): New declaration.
59805         * lib/file-has-acl.c (acl_nontrivial): New function.
59806         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59807         * lib/set-mode-acl.c (qset_acl): Likewise.
59808         * lib/copy-acl.c (qcopy_acl): Likewise.
59809
59810 2008-06-08  Bruno Haible  <bruno@clisp.org>
59811
59812         Add support for Cygwin ACLs.
59813         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59814         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59815         the chmod_or_fchmod call.
59816         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59817
59818 2008-06-08  Bruno Haible  <bruno@clisp.org>
59819
59820         Fix bug with setuid modes in Solaris 10+ code.
59821         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59822         succeeded, when the mode contains some special bits.
59823
59824 2008-06-08  Bruno Haible  <bruno@clisp.org>
59825
59826         Add support for Solaris 7..10 ACLs.
59827         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59828         declarations.
59829         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59830         functions.
59831         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59832         * lib/set-mode-acl.c (qset_acl): Likewise.
59833         * lib/copy-acl.c (qcopy_acl): Likewise.
59834
59835 2008-06-08  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59838         declaration.
59839         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59840         (acl_access_nontrivial): Remove MacOS X case.
59841         (file_has_acl): Use acl_extended_nontrivial.
59842         * lib/copy-acl.c (qcopy_acl): Likewise.
59843
59844 2008-06-08  Bruno Haible  <bruno@clisp.org>
59845
59846         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59847
59848 2008-06-08  Jim Meyering  <meyering@redhat.com>
59849
59850         * modules/acl (Maintainer): Add Bruno Haible.
59851
59852 2008-06-07  Bruno Haible  <bruno@clisp.org>
59853
59854         Improve support for Tru64 ACLs.
59855         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59856         ACL on OSF/1.
59857
59858 2008-06-07  Bruno Haible  <bruno@clisp.org>
59859
59860         Add support for MacOS X ACLs.
59861         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59862         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59863         * lib/set-mode-acl.c (qset_acl): Likewise.
59864         * lib/copy-acl.c (qcopy_acl): Likewise.
59865
59866 2008-06-07  Bruno Haible  <bruno@clisp.org>
59867
59868         Fix memory leak introduced on 2008-05-22.
59869         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59870         use.
59871
59872 2008-06-07  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59875         to construct an empty ACL.
59876
59877 2008-06-07  Bruno Haible  <bruno@clisp.org>
59878
59879         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59880         precisely.
59881         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59882
59883 2008-06-07  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59886         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59887
59888 2008-06-07  Bruno Haible  <bruno@clisp.org>
59889
59890         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59891         regardless of POSIX.
59892         * doc/posix-functions/_longjmp.texi: Likewise.
59893         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59894         SystemV platform in this case.
59895
59896 2008-06-06  Eric Blake  <ebb9@byu.net>
59897
59898         Document abort() bugs.
59899         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59900
59901         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59902         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59903         sigsetjmp.
59904         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59905         siglongjmp, but only as a macro.
59906         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59907         is obsolete.
59908         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59909
59910         Tweak documentation to cover cygwin argz bugs.
59911         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59912         argz bug fix; no code change needed since no cygwin releases
59913         occurred between the last fix and the bug being tested.
59914         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59915         module and recently fixed cygwin bugs.
59916         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59917         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59918         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59919         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59920         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59921         Likewise.
59922         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59923         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59924         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59925         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59926         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59927         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59928         Likewise.
59929
59930         Avoid gcc warning on cygwin.
59931         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59932         !ACL_NO_TRIVIAL]: Avoid unused variable.
59933
59934 2008-06-05  Eric Blake  <ebb9@byu.net>
59935
59936         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59937         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59938         git-version-gen fails to come up with a version.
59939         Reported by Simon Josefsson.
59940
59941 2008-06-05  Jim Meyering  <meyering@redhat.com>
59942             Paul Eggert  <eggert@cs.ucla.edu>
59943
59944         utimens.c: work around a probable Linux kernel bug
59945         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59946         appears to be a kernel bug that causes utimensat to return 280
59947         instead of 0, indicating success.
59948
59949 2008-06-04  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59952         2008-06-01 commit.
59953
59954 2008-06-04  Bruno Haible  <bruno@clisp.org>
59955
59956         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59957         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59958         (file_has_acl): Use it. Save errno afterwards.
59959         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59960
59961 2008-06-03  Bruno Haible  <bruno@clisp.org>
59962
59963         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59964         draft code. Simplify #ifs.
59965         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59966         Put Solaris code after POSIX-draft code. Fix comments regarding
59967         Solaris 10, HP-UX. Mention Cygwin.
59968         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59969
59970 2008-06-03  Eric Blake  <ebb9@byu.net>
59971
59972         Provide fallback for older kernels.
59973         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59974         Provide runtime fallback if kernel lacks support.
59975         Reported by Mike Frysinger.
59976
59977 2008-06-02  Bruno Haible  <bruno@clisp.org>
59978
59979         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59980         it exists.
59981
59982 2008-06-02  Bruno Haible  <bruno@clisp.org>
59983
59984         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59985         * lib/copy-acl.c (qcopy_acl): Update comment.
59986
59987 2008-06-02  Bruno Haible  <bruno@clisp.org>
59988
59989         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59990         like ACL APIs.
59991
59992 2008-06-02  Bruno Haible  <bruno@clisp.org>
59993
59994         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59995         * tests/test-set-mode-acl.sh: Likewise.
59996         * tests/test-copy-acl.sh: Likewise.
59997         * tests/test-copy-file.sh: Likewise.
59998
59999 2008-06-02  Bruno Haible  <bruno@clisp.org>
60000
60001         * tests/test-file-has-acl.sh: Remove unused code.
60002
60003 2008-06-01  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60006         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60007         messages.
60008         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60009
60010 2008-06-01  Bruno Haible  <bruno@clisp.org>
60011
60012         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60013         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60014         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60015         APIs.
60016         * modules/acl-tests (configure.ac): Remove tests now contained in
60017         m4/acl.m4.
60018
60019 2008-06-02  Jim Meyering  <meyering@redhat.com>
60020
60021         announce-gen: use a better key-server host name
60022         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60023         it may be more consistently reliable.  Suggested by Werner Koch
60024         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60025
60026 2008-06-01  Bruno Haible  <bruno@clisp.org>
60027
60028         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60029         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60030
60031 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60032
60033         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60034
60035 2008-06-01  Bruno Haible  <bruno@clisp.org>
60036
60037         New ACL tests.
60038         * tests/test-file-has-acl.sh: New file.
60039         * tests/test-file-has-acl.c: New file.
60040         * tests/test-set-mode-acl.sh: New file.
60041         * tests/test-set-mode-acl.c: New file.
60042         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60043         * tests/test-copy-acl.c: New file.
60044         * modules/acl-tests: New file, based on modules/copy-file-tests.
60045         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60046         (Depends-on): Add acl-tests.
60047         (configure.ac): Remove checks.
60048         (Makefile.am): Don't create test-sameacls program here any more.
60049
60050 2008-06-01  Bruno Haible  <bruno@clisp.org>
60051
60052         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60053         * tests/test-sameacls.c: Include progname.h.
60054         (main): Invoke set_program_name. Portability fixes for MacOS X,
60055         Solaris, HP-UX.
60056
60057 2008-06-01  Bruno Haible  <bruno@clisp.org>
60058
60059         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60060         function.
60061         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60062
60063 2008-06-01  Bruno Haible  <bruno@clisp.org>
60064
60065         * modules/rpmatch (Depends-on): Add strdup.
60066
60067 2008-06-01  Bruno Haible  <bruno@clisp.org>
60068
60069         * lib/pipe.c: Include unistd-safer.h.
60070         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60071         * modules/pipe (Depends-on): Add unistd-safer.
60072
60073 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60074
60075         * modules/autobuild (configure.ac): Call AB_INIT.
60076
60077 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60078
60079         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60080         Suggested by Bruno Haible <bruno@clisp.org>.
60081
60082 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60083
60084         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60085         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60086         <bruno@clisp.org>.
60087
60088 2008-05-29  Eric Blake  <ebb9@byu.net>
60089
60090         Prefer new POSIX 200x interfaces over futimesat.
60091         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60092         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60093         when available.
60094         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60095
60096 2008-05-28  Bruno Haible  <bruno@clisp.org>
60097
60098         * modules/stpcpy (License): Change to LGPLv2+.
60099         Requested by David Lutterkort <dlutter@redhat.com>.
60100
60101 2008-05-27  Bruno Haible  <bruno@clisp.org>
60102
60103         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60104         current mingw.
60105         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60106
60107 2008-05-27  Bruno Haible  <bruno@clisp.org>
60108
60109         * modules/iconv_open (Link): New section, from module 'iconv'.
60110         * modules/striconv (Link): Likewise.
60111         * modules/striconveh (Link): Likewise.
60112         * modules/xstriconv (Link): Likewise.
60113         * modules/unicodeio (Link): Likewise.
60114         * modules/propername (Link): Likewise.
60115         Reported by Jim Meyering.
60116
60117 2008-05-26  Jim Meyering  <meyering@redhat.com>
60118
60119         sha256: do not artificially restrict buffer length to be < 2^32
60120         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60121         uint32_t to size_t.
60122         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60123         to match.
60124
60125         avoid unaligned access errors, e.g., on sparc
60126         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60127         direct access through a possibly-unaligned uint64* pointer.
60128         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60129         direct access through a possibly-unaligned uint32* pointer.
60130         Prompted by this patch from Tom "spot" Callaway:
60131         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60132
60133         sha512.c: fix typo in comment
60134         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60135
60136 2008-05-25  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60139         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60140         (Makefile.am): Update lib_SOURCES.
60141
60142 2008-05-25  Bruno Haible  <bruno@clisp.org>
60143
60144         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60145
60146 2008-05-25  Jim Meyering  <meyering@redhat.com>
60147
60148         useless-if-before-free: freed expr may have white-space differences
60149         * build-aux/useless-if-before-free: Recognize cases in which the
60150         freed expression differs from the tested one in embedded white
60151         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60152         $1 was used, so we can't make any regexp shy.  Improved tests now
60153         detect this.
60154
60155         useless-if-before-free: accept white space in the expression.
60156         * build-aux/useless-if-before-free: For now, any white space
60157         in the expression must be identical in the free argument.
60158
60159         useless-if-before-free: efficiency tweak
60160         * build-aux/useless-if-before-free: Make the expression-matching
60161         regexp "shy".
60162         Make the *outer* regexp shy, not the expr-matching one.
60163
60164         update code-in-comment to accept cast of free arg
60165         * build-aux/useless-if-before-free: Update regexp.
60166
60167 2008-05-25  Bruno Haible  <bruno@clisp.org>
60168
60169         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60170         * modules/copy-file-tests (Files, Makefile.am): Update.
60171         * tests/test-copy-file.c (func_test_copy): Update.
60172
60173 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60174
60175         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60176
60177 2008-05-23  Bruno Haible  <bruno@clisp.org>
60178
60179         Improve support for ACLs on OSF/1.
60180         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60181         Remove fallback for unknown flavors of ACLs.
60182
60183 2008-05-22  Bruno Haible  <bruno@clisp.org>
60184
60185         Add support for ACLs on OSF/1.
60186         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60187         replacements.
60188         (acl_free_text): New macro fallback.
60189         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60190         acl_free.
60191         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60192         acl_free_text function. Require AC_C_INLINE.
60193
60194 2008-05-22  Bruno Haible  <bruno@clisp.org>
60195
60196         Make copy_acl work on MacOS X 10.5.
60197         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60198         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60199         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60200         If MODE_INSIDE_ACL, don't assume that every system has the same text
60201         representation for ACLs as FreeBSD.
60202         * lib/copy-acl.c (copy_acl): Add support for platforms with
60203         !MODE_INSIDE_ACL.
60204         * lib/file-has-acl.c (file_has_acl): Likewise.
60205         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60206         FreeBSD, MacOS X, or IRIX, respectively.
60207
60208 2008-05-22  Bruno Haible  <bruno@clisp.org>
60209
60210         * lib/acl.h: Don't include <sys/acl.h>.
60211         (GETACLCNT): Move fallback to lib/acl-internal.h.
60212         * lib/acl-internal.h: Include <sys/acl.h> here.
60213         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60214
60215 2008-05-22  Bruno Haible  <bruno@clisp.org>
60216
60217         Split off copy_acl function to separate file.
60218         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60219         * lib/acl.c (copy_acl): Moved function to separate file.
60220         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60221         * modules/acl (Files): Add lib/copy-acl.c.
60222         (Makefiles.am): Augment lib_SOURCES.
60223
60224 2008-05-22  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/copy-file-tests: New file.
60227         * tests/test-copy-file.sh: New file.
60228         * tests/test-copy-file.c: New file.
60229         * tests/test-copy-file-sameacls.c: New file.
60230
60231 2008-05-22  Eric Blake  <ebb9@byu.net>
60232
60233         Avoid gcc warning.
60234         * tests/test-memcmp.c (main): Pass NULL indirectly.
60235
60236 2008-05-21  Bruno Haible  <bruno@clisp.org>
60237
60238         Add reference doc about ACLs.
60239         * doc/acl-resources.txt: New file.
60240         * doc/acl-cygwin.txt: New file.
60241
60242 2008-05-21  Bruno Haible  <bruno@clisp.org>
60243
60244         Avoid one more warning from gcc.
60245         * lib/vasnprintf.c (IF_LINT): Update comments.
60246         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60247
60248 2008-05-21  Jim Meyering  <meyering@redhat.com>
60249
60250         avoid a warning from gcc
60251         * lib/vasnprintf.c (IF_LINT): Define.
60252         (scale10_round_decimal_long_double):
60253         Use it to avoid a "may be used uninitialized" warning.
60254         (scale10_round_decimal_double): Likewise.
60255
60256 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60257
60258         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60259         declared.
60260
60261 2008-05-20  Bruno Haible  <bruno@clisp.org>
60262
60263         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60264         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60265
60266 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60267
60268         * modules/memcmp-tests: New file.
60269         * tests/test-memcmp.c: New file.
60270
60271 2008-05-19  Bruno Haible  <bruno@clisp.org>
60272
60273         * modules/propername (Notice, configure.ac): Put quoted "..." into
60274         --keyword option.
60275         * lib/propername.h: Update comments accordingly.
60276         Reported by Eric Blake.
60277
60278 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60279
60280         * modules/getpass-gnu (Depends-on): Add fseeko.
60281
60282 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60283
60284         * modules/base64-tests: New file.
60285
60286 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60287
60288         * lib/base64.c (base64_decode_ctx): If a decode context structure
60289         was passed in use it to ignore newlines.  If a context structure
60290         was _not_ passed in, continue to treat newlines as garbage (this
60291         is the historical behavior).  Formerly base64_decode.
60292         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60293         takes a decode context structure.
60294         * lib/base64.h (base64_decode): Macro for four-argument calls.
60295         (base64_decode_alloc): Likewise.
60296         * lib/base64.c (base64_decode_ctx): If a decode context structure
60297         was passed in use it to ignore newlines.  If a context structure
60298         was _not_ passed in, continue to treat newlines as garbage (this
60299         is the historical behavior).  Formerly base64_decode.
60300         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60301         takes a decode context structure.
60302         * lib/base64.h (base64_decode): Macro for four-argument calls.
60303         (base64_decode_alloc): Likewise.
60304
60305 2008-05-19  Jim Meyering  <meyering@redhat.com>
60306
60307         avoid a warning from gcc
60308         * lib/trim.c (IF_LINT): Define.
60309         (trim2): Use it to avoid a "may be used uninitialized" warning.
60310
60311         Fix doc typo.
60312         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60313
60314 2008-05-19  Bruno Haible  <bruno@clisp.org>
60315
60316         * doc/glibc-functions/getpass.texi: Document limits of other
60317         implementations.
60318
60319 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60320             Bruno Haible <bruno@clisp.org>
60321
60322         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60323
60324 2008-05-18  Bruno Haible  <bruno@clisp.org>
60325
60326         * modules/propername: New file, from GNU gettext.
60327         * lib/propername.h: New file, from GNU gettext.
60328         * lib/propername.c: New file, from GNU gettext.
60329         * MODULES.html.sh (Internationalization functions): Add propername.
60330
60331 2008-05-16  Jim Meyering  <meyering@redhat.com>
60332             Bruno Haible  <bruno@clisp.org>
60333
60334         Avoid some warnings from "gcc -Wshadow".
60335         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60336
60337 2008-05-15  Eric Blake  <ebb9@byu.net>
60338
60339         Extend previous patch to cygwin 1.7.0.
60340         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60341         fast implementation in cygwin >= 1.7.0.
60342         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60344
60345 2008-05-15  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60348         implementation in glibc >= 2.9.
60349         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60351
60352 2008-05-15  Bruno Haible  <bruno@clisp.org>
60353
60354         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60355         (Unicode string functions): Add unilbrk/*.
60356         Reported by Karl Berry.
60357
60358 2008-05-15  Eric Blake  <ebb9@byu.net>
60359
60360         Fix violation of <stdbool.h> replacement in regex.
60361         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60362         * lib/regexec.c (re_search_internal): Likewise.
60363         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60364
60365 2008-05-15  Jim Meyering  <meyering@redhat.com>
60366
60367         avoid distracting test output when git or cvs is not found
60368         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60369         * tests/test-vc-list-files-git.sh: Likewise.
60370
60371 2008-05-15  Eric Blake  <ebb9@byu.net>
60372
60373         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60374         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60375         glibc version.
60376         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60377         * doc/posix-functions/strstr.texi (strstr): Likewise.
60378         * lib/str-two-way.h (MAX): Sychronize with glibc.
60379
60380 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60381
60382         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60383         opr.ctx_type.
60384         (calc_first): Initialize constraint field.
60385         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60386         Fix grammar.
60387         (duplicate_node): Merge constraint field for all node types.
60388         (calc_eclosure_iter): Look at constraint field for all node types.
60389         * lib/regex_internal.c (create_cd_newstate): Don't look at
60390         opr.ctx_type.
60391
60392 2008-05-14  Bruno Haible  <bruno@clisp.org>
60393
60394         Help GCC to do better code generation.
60395         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60396         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60397         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60398         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60399         Declare with attribute 'malloc' if supported.
60400
60401 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60402
60403         use "echo STR|wc -c" rather than unportable "expr length STR"
60404         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60405         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60406
60407 2008-05-14  Jim Meyering  <meyering@redhat.com>
60408
60409         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60410         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60411         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60412         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60413         via Collin Lasse.
60414
60415 2008-05-14  Eric Blake  <ebb9@byu.net>
60416
60417         Avoid quadratic growth in gl_LIBSOURCES.
60418         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60419         Suggested by Bruno Haible.
60420
60421         Test xmemdup0.
60422         * modules/xmemdup0-tests: New file.
60423         * tests/test-xmemdup0.c: Likewise.
60424
60425 2008-05-13  Eric Blake  <ebb9@byu.net>
60426
60427         Split xmemdup0 into its own module.
60428         * modules/xmemdup0: New file.
60429         * lib/xmemdup0.h: Likewise.
60430         * lib/xmemdup0.c: Likewise.
60431         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60432         * lib/xalloc.h (xmemdup0): Remove.
60433         * lib/xmalloc.c (xmemdup0): Likewise.
60434
60435 2008-05-13  Eric Blake  <ebb9@byu.net>
60436             Bruno Haible  <bruno@clisp.org>
60437
60438         Reduce number of forks required during autoconf.
60439         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60440         and gl_LIBSOURCES_DIR.
60441         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60442         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60443         m4_syscmd per file.
60444         <m4_foreach_w>: Move...
60445         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60446
60447 2008-05-13  Eric Blake  <ebb9@byu.net>
60448
60449         * gnulib-tool: Fix various comment typos.
60450
60451 2008-05-12  Bruno Haible  <bruno@clisp.org>
60452
60453         Tailor the linebreaking algorithm.
60454         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60455
60456 2008-05-12  Bruno Haible  <bruno@clisp.org>
60457
60458         Update to Unicode 5.0.0.
60459         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60460         LBP_JV, LBP_JT. Redistribute values.
60461         (unilbrk_table): Change size.
60462         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60463         Unicode TR#14 rev. 22.
60464         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60465         LBP_JV, LBP_JT. Redistribute values.
60466         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60467         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60468         Update.
60469         * lib/unilbrk/lbrkprop1.h: Regenerated.
60470         * lib/unilbrk/lbrkprop2.h: Regenerated.
60471         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60472         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60473         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60474         Likewise.
60475         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60476         Likewise.
60477         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60478         result.
60479         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60480         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60481         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60482         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60483         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60484         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60485
60486 2008-05-11  Bruno Haible  <bruno@clisp.org>
60487
60488         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60489
60490 2008-05-11  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60493         * modules/unilbrk/gen-lbrk: New file.
60494
60495 2008-05-11  Bruno Haible  <bruno@clisp.org>
60496
60497         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60498         * m4/sha512.m4 (gl_SHA512): Likewise.
60499
60500 2008-05-11  Jim Meyering  <meyering@redhat.com>
60501
60502         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60503         * modules/crypto/sha256: New file.
60504         * modules/crypto/sha512: Likewise.
60505         * lib/sha256.c: Likewise.
60506         * lib/sha256.h: Likewise.
60507         * lib/sha512.c: Likewise.
60508         * lib/sha512.h: Likewise.
60509         * lib/u64.h: Likewise.
60510         * m4/sha256.m4: Likewise.
60511         * m4/sha512.m4: Likewise.
60512         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60513
60514 2008-05-10  Bruno Haible  <bruno@clisp.org>
60515
60516         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60517         (Input/Output <stdio.h>): Add xprintf.
60518         (Signal handling <signal.h>): Add strsignal.
60519         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60520         (Core language properties): Add func.
60521         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60522         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60523         strings.
60524         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60525         (Input/output): New section.
60526         (File system functions): Add openat-die, stat-macros.
60527         (Networking functions): Add sockets.
60528         (Unicode string functions): Add unictype/*.
60529         (Support for building libraries and executables): Add gperf.
60530         (Support for building documentation): Add agpl-3.0.
60531         (Misc): Add nocrash.
60532
60533 2008-05-10  Bruno Haible  <bruno@clisp.org>
60534
60535         * modules/unictype/gen-ctype: New file.
60536
60537 2008-05-10  Jim Meyering  <meyering@redhat.com>
60538
60539         Make chdir-safer.c more efficient on a system with no symlinks.
60540         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60541         also if ELOOP is zero.  Suggested by Bruno Haible.
60542
60543         Make chdir-safer.c slightly safer.
60544         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60545         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60546
60547         Avoid compile failure on systems without ELOOP (like mingw).
60548         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60549         Reported by Bruno Haible.
60550
60551 2008-05-10  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60554         (is_utf8_encoding): Use a case-insensitive comparison.
60555         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60556         streq.
60557
60558 2008-05-10  Bruno Haible  <bruno@clisp.org>
60559
60560         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60561         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60562         * lib/unilbrk/ulc-common.h (iconv_string_length,
60563         iconv_string_keeping_offsets): Remove declarations.
60564         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60565         Don't include <iconv.h>, streq.h, xsize.h.
60566         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60567         conversion.
60568         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60569         <iconv.h>, streq.h, xsize.h.
60570         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60571         conversion.
60572         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60573         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60574         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60575         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60576
60577 2008-05-10  Bruno Haible  <bruno@clisp.org>
60578
60579         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60580         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60581
60582         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60583         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60584
60585         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60586         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60587
60588         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60589         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60590
60591         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60592         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60593
60594         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60595         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60596
60597         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60598         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60599
60600         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60601         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60602
60603 2008-05-10  Bruno Haible  <bruno@clisp.org>
60604
60605         Split up 'linebreak' module.
60606         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60607         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60608         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60609         modifications.
60610         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60611         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60612         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60613         lib/linebreak.c.
60614         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60615         lib/linebreak.c.
60616         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60617         lib/linebreak.c.
60618         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60619         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60620         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60621         lib/linebreak.c.
60622         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60623         lib/linebreak.c.
60624         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60625         lib/linebreak.c.
60626         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60627         lib/linebreak.c.
60628         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60629         lib/linebreak.c.
60630         * modules/unilbrk/base: New file.
60631         * modules/unilbrk/tables: New file.
60632         * modules/unilbrk/u8-possible-linebreaks: New file.
60633         * modules/unilbrk/u16-possible-linebreaks: New file.
60634         * modules/unilbrk/u32-possible-linebreaks: New file.
60635         * modules/unilbrk/ulc-common: New file.
60636         * modules/unilbrk/ulc-possible-linebreaks: New file.
60637         * modules/unilbrk/u8-width-linebreaks: New file.
60638         * modules/unilbrk/u16-width-linebreaks: New file.
60639         * modules/unilbrk/u32-width-linebreaks: New file.
60640         * modules/unilbrk/ulc-width-linebreaks: New file.
60641         * lib/linebreak.h: Remove file.
60642         * lib/linebreak.c: Remove file.
60643         * m4/linebreak.m4: Remove file.
60644         * modules/linebreak: Remove file.
60645         * NEWS: Mention the changes.
60646
60647 2008-05-09  Eric Blake  <ebb9@byu.net>
60648
60649         Add xmemdup0.
60650         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60651         implementation.
60652         * lib/xmalloc.c (xmemdup0): New C implementation.
60653
60654 2008-05-08  Bruno Haible  <bruno@clisp.org>
60655
60656         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60657
60658 2008-05-07  Eric Blake  <ebb9@byu.net>
60659
60660         Support cross-compilation of <wctype.h>.
60661         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60662         AC_CACHE_CHECK.
60663
60664 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60665
60666         * build-aux/vc-list-files: Add support for bzr.
60667
60668 2008-05-03  Jim Meyering  <meyering@redhat.com>
60669
60670         avoid failed assertion with tight malloc
60671         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60672
60673 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60674
60675         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60676         are needed from arpa/inet.h.
60677         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60678         Reported by Bruno Haible.
60679
60680 2008-05-02  Jim Meyering  <meyering@redhat.com>
60681
60682         avoid compilation error on FreeBSD 6
60683         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60684
60685 2008-05-01  Jim Meyering  <meyering@redhat.com>
60686
60687         useless-if-before-free: correct --help's exit status description
60688         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60689         for one or more matches, etc.  Reported by Bruno Haible.
60690
60691         vc-list-files: make the stand-alone gnulib test work
60692         * modules/vc-list-files-tests (configure.ac):
60693         Define and AC_SUBST abs_aux_dir.
60694         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60695         $(abs_top_srcdir) to each script and having each of them
60696         duplicate the work of setting PATH, set PATH here, using
60697         the new variable, abs_aux_dir instead.
60698         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60699         * tests/test-vc-list-files-git.sh: Likewise.
60700         Reported by Bruno Haible.
60701
60702 2008-05-01  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60705         reallocation. Rename 'done' to 'found_delimiter'.
60706
60707 2008-05-01  Jim Meyering  <meyering@redhat.com>
60708
60709         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60710         * build-aux/vc-list-files: Use `...`, not $(...).
60711
60712 2008-04-30  Jim Meyering  <meyering@redhat.com>
60713
60714         add tests for vc-list-files
60715         * modules/vc-list-files-tests: New module.
60716         * tests/test-vc-list-files-cvs.sh: New file.
60717         * tests/test-vc-list-files-git.sh: New file.
60718
60719         avoid a warning from gcc
60720         * lib/getndelim2.c (IF_LINT): Define.
60721         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60722
60723         vc-list-files: work properly with build-aux/cvsu, too
60724         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60725         to all cvs-based clauses.
60726
60727         vc-list-files: work properly in the CVS+awk case, too
60728         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60729
60730         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60731         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60732         take more than one file argument, so .  Add quotes, just in case $dir
60733         ever contains a shell meta-character.  Prompted by Soren Hansen in
60734         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60735
60736 2008-04-29  Eric Blake  <ebb9@byu.net>
60737
60738         Optimize getndelim2 to use block operations when possible.
60739         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60740         freadseek, and memchr2.
60741         * lib/getndelim2.c (getndelim2): Use them for block reads.
60742
60743 2008-04-29  Bruno Haible  <bruno@clisp.org>
60744
60745         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60746         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60747         * modules/inet_ntop (Depends-on): Add extensions.
60748         * modules/inet_pton (Depends-on): Likewise.
60749         Reported by Simon Josefsson.
60750
60751 2008-04-29  Jim Meyering  <meyering@redhat.com>
60752
60753         When the is more than one match in a block, match all of them.
60754         * build-aux/useless-if-before-free: Iterate through each block
60755         until there are no more matches.
60756
60757         Fix broken useless-if-before-free script.
60758         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60759         the expression to match cast of argument to free-like function.
60760
60761 2008-04-29  Eric Blake  <ebb9@byu.net>
60762
60763         Use new header.
60764         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60765
60766 2008-04-29  Jim Meyering  <meyering@redhat.com>
60767
60768         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60769         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60770         by gnulib to exist and to declare e.g., inet_ntop.
60771         Don't include "inet_ntop.h", now removed.
60772
60773         * m4/arpa_inet_h.m4: Remove trailing blanks.
60774
60775 2008-04-29  Eric Blake  <ebb9@byu.net>
60776
60777         Silence valgrind on safe reads beyond potential array bounds.
60778         * lib/rawmemchr.valgrind: New file.
60779         * lib/strchrnul.valgrind: Likewise.
60780         * modules/rawmemchr (Files): Distribute new file.
60781         * modules/strchrnul (Files): Likewise.
60782         Suggested by Bruno Haible.
60783
60784 2008-04-29  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60787         (inet_ntop, inet_pton): Change portability warning's wording.
60788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60789         Invoke gl_CHECK_NEXT_HEADERS.
60790         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60791         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60792         set ARPA_INET_H.
60793         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60794         * modules/arpa_inet (Description): No longer only for systems that
60795         lack it.
60796         (Depends-on): Add include_next.
60797         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60798         HAVE_ARPA_INET_H.
60799
60800 2008-04-29  Jim Meyering  <meyering@redhat.com>
60801
60802         * modules/mkdir (License): Re-license as LGPLv2+.
60803
60804 2008-04-29  Bruno Haible  <bruno@clisp.org>
60805
60806         * modules/rawmemchr (Maintainer): Set to Eric.
60807         * modules/strchrnul (Maintainer): Likewise.
60808
60809 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60810
60811         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60812         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60813
60814         * modules/arpa_inet (arpa/inet.h): Use them.
60815
60816 2008-04-28  Eric Blake  <ebb9@byu.net>
60817
60818         Test getndelim2.
60819         * modules/getndelim2-tests: New file.
60820         * tests/test-getndelim2.c: Likewise.
60821         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60822         stream.
60823         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60824
60825         * MODULES.html.sh: Document new module.
60826
60827 2008-04-20  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/c-stack.c (die): Use raise.
60830         * modules/c-stack (Depends-on): Add raise.
60831
60832 2008-04-28  Bruno Haible  <bruno@clisp.org>
60833
60834         Expect rpmatch to be declared.
60835         * lib/yesno.c (rpmatch): Remove declaration.
60836
60837         Declare rpmatch.
60838         * lib/stdlib.in.h (rpmatch): New declaration.
60839         * lib/rpmatch.c: Include <stdlib.h> first.
60840         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60841         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60843         HAVE_RPMATCH.
60844         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60845         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60846         (Include): Set to <stdlib.h>.
60847         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60848         HAVE_RPMATCH.
60849         * NEWS: Document the change.
60850
60851 2008-04-28  Bruno Haible  <bruno@clisp.org>
60852
60853         Change rpmatch to use nl_langinfo when appropriate.
60854         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60855         (N_): New macro.
60856         (localized_pattern): New function/macro.
60857         (try): Remove match, nomatch arguments. Copy the pattern into safe
60858         memory before caching it.
60859         (rpmatch): Use localized_pattern. Add translator comments.
60860         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60861         Suggested by Eric Blake.
60862         * modules/rpmatch (Depends-on): Add stdbool.
60863
60864 2008-04-28  Eric Blake  <ebb9@byu.net>
60865
60866         Add rawmemchr module, matching glibc.
60867         * modules/string (Makefile.am): New indicator.
60868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60869         * lib/string.in.h (rawmemchr): Declare when appropriate.
60870         * modules/rawmemchr: New file.
60871         * m4/rawmemchr.m4: Likewise.
60872         * lib/rawmemchr.c: Likewise.
60873         * modules/rawmemchr-tests: Likewise.
60874         * tests/test-rawmemchr.c: Likewise.
60875         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60876         module.
60877         * modules/strchrnul (Depends-on): Add rawmemchr.
60878         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60879
60880         Whitespace cleanup.
60881         * tests/test-strchrnul.c: Reindent.
60882         * lib/strchrnul.c: Likewise.
60883
60884         Optimize and test strchrnul.
60885         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60886         * modules/strchrnul-tests: New file.
60887         * tests/test-strchrnul.c: Likewise.
60888
60889         Remove intprops dependency.
60890         * modules/memchr (Depends-on): Remove intprops.
60891         * modules/memrchr (Depends-on): Likewise.
60892         * modules/memchr2 (Depends-on): Likewise.
60893         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60894         * lib/memrchr.c (__memrchr): Likewise.
60895         * lib/memrchr2.c (memchr2): Likewise.
60896         Reported by Simon Josefsson.
60897
60898 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60899
60900         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60901         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60902
60903 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60904
60905         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60906
60907         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60908
60909         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60910
60911         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60912         declarations.
60913         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60914
60915         * m4/inet_pton.m4: Don't check for header files.
60916
60917         * m4/inet_ntop.m4: Don't check for header files.
60918
60919 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60920
60921         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60922         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60923         trigger for cygwin).
60924         Reported by Bruno Haible  <bruno@clisp.org>.
60925
60926 2008-04-28  Bruno Haible  <bruno@clisp.org>
60927
60928         * doc/posix-functions/strdup.texi: Mention mingw problem.
60929
60930 2008-04-27  Bruno Haible  <bruno@clisp.org>
60931
60932         * modules/stat-time-tests (Depends-on): Add sleep.
60933         * tests/test-stat-time.c (force_unlink): New function.
60934         (cleanup): Use it.
60935         (test_mtime): Remove the ctime related tests.
60936         (test_ctime): New function, containing the ctime related tests.
60937         (main): Call test_ctime, except on native Windows platforms.
60938
60939 2008-04-27  Bruno Haible  <bruno@clisp.org>
60940
60941         * lib/rpmatch.c (rpmatch): Add some comments.
60942         Reported by James Youngman <jay@gnu.org>.
60943
60944 2008-04-27  Bruno Haible  <bruno@clisp.org>
60945
60946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60947         quiet NaNs.
60948
60949 2008-04-27  Bruno Haible  <bruno@clisp.org>
60950
60951         Make test-yesno.sh work on mingw.
60952         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60953         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60954         (main): Set stdin to binary mode.
60955         * modules/yesno-tests (Depends-on): Add binary-io.
60956
60957 2008-04-27  Bruno Haible  <bruno@clisp.org>
60958
60959         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60960         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60961         argument that lie outside the IEEE 854 domain.
60962         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60963         (gl_ISFINITE): Use it.
60964         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60965
60966 2008-04-27  Bruno Haible  <bruno@clisp.org>
60967
60968         Allow local renaming in config.h.
60969         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60970
60971 2008-04-27  Bruno Haible  <bruno@clisp.org>
60972
60973         * lib/memchr.c (__memchr): Change type of 'i'.
60974         * lib/memchr2.c (memchr2): Likewise.
60975
60976 2008-04-26  Eric Blake  <ebb9@byu.net>
60977         and Bruno Haible  <bruno@clisp.org>
60978
60979         Optimize and test memrchr.
60980         * modules/memrchr (Depends-on): Add intprops.
60981         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60982         * modules/memrchr-tests: New file.
60983         * tests/test-memrchr.c: New file.
60984
60985 2008-04-26  Bruno Haible  <bruno@clisp.org>
60986
60987         Add tentative support for DragonFly BSD.
60988         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60989         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60990         fp.
60991         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60992         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60993         * lib/fpurge.c (fpurge): Likewise.
60994         * lib/freadable.c (freaadable): Likewise.
60995         * lib/freadahead.c (freadahead): Likewise.
60996         * lib/freading.c (freading): Likewise.
60997         * lib/freadptr.c (freadptr): Likewise.
60998         * lib/freadseek.c (freadptrinc): Likewise.
60999         * lib/fseeko.c (fseeko): Likewise.
61000         * lib/fseterr.c (fseterr): Likewise.
61001         * lib/fwritable.c (fwritable): Likewise.
61002         * lib/fwriting.c (fwriting): Likewise.
61003
61004 2008-04-26  Bruno Haible  <bruno@clisp.org>
61005
61006         * lib/stdio-impl.h: New file.
61007         * lib/fbufmode.c: Include stdio-impl.h.
61008         (fbufmode): Use fp_, remove redundant #defines.
61009         * lib/fflush.c: Include stdio-impl.h.
61010         (clear_ungetc_buffer): Remove redundant #defines.
61011         * lib/fpurge.c: Include stdio-impl.h.
61012         (fpurge): Remove redundant #defines.
61013         * lib/freadable.c: Include stdio-impl.h.
61014         (freadable): Remove redundant #defines.
61015         * lib/freadahead.c: Include stdio-impl.h.
61016         (freadahead): Remove redundant #defines.
61017         * lib/freading.c: Include stdio-impl.h.
61018         (freading): Remove redundant #defines.
61019         * lib/freadptr.c: Include stdio-impl.h.
61020         (freadptr): Remove redundant #defines.
61021         * lib/freadseek.c: Include stdio-impl.h.
61022         (freadptrinc): Remove redundant #defines.
61023         * lib/fseeko.c: Include stdio-impl.h.
61024         (rpl_fseeko): Remove redundant #defines.
61025         * lib/fseterr.c: Include stdio-impl.h.
61026         (fseterr): Remove redundant #defines.
61027         * lib/fwritable.c: Include stdio-impl.h.
61028         (fwritable: Remove redundant #defines.
61029         * lib/fwriting.c: Include stdio-impl.h.
61030         (fwriting): Remove redundant #defines.
61031         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61032         * modules/fflush (Files): Likewise.
61033         * modules/fpurge (Files): Likewise.
61034         * modules/freadable (Files): Likewise.
61035         * modules/freadahead (Files): Likewise.
61036         * modules/freading (Files): Likewise.
61037         * modules/freadptr (Files): Likewise.
61038         * modules/freadseek (Files): Likewise.
61039         * modules/fseeko (Files): Likewise.
61040         * modules/fseterr (Files): Likewise.
61041         * modules/fwritable (Files): Likewise.
61042         * modules/fwriting (Files): Likewise.
61043
61044 2008-04-26  Bruno Haible  <bruno@clisp.org>
61045
61046         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61047         restore_seek_optimization, update_fpos_cache): New functions, extracted
61048         from rpl_fflush.
61049         (rpl_fflush): Use them.
61050         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61051         (gl_REPLACE_FFLUSH): Use it.
61052
61053 2008-04-26  Bruno Haible  <bruno@clisp.org>
61054
61055         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61056         on Solaris.
61057         * tests/test-xstrtoimax.sh: Likewise.
61058         * tests/test-xstrtoumax.sh: Likewise.
61059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61060
61061 2008-04-26  Bruno Haible  <bruno@clisp.org>
61062
61063         * modules/memchr-tests: New file.
61064         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61065
61066 2008-04-26  Eric Blake  <ebb9@byu.net>
61067             Bruno Haible  <bruno@clisp.org>
61068
61069         * lib/memchr.c: Include intprops.h.
61070         (__memchr): Optimize parallel detection of matching bytes. Rename local
61071         variables. Add explanatory comments.
61072
61073 2008-04-26  Bruno Haible  <bruno@clisp.org>
61074
61075         Fix module 'memchr', broken since 2000-10-28.
61076         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61077
61078 2008-04-26  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61081         comments.
61082
61083 2008-04-25  Eric Blake  <ebb9@byu.net>
61084
61085         Use native fstatat on cygwin 1.7.0.
61086         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61087         first.
61088
61089 2008-04-23  Eric Blake  <ebb9@byu.net>
61090
61091         Improve memchr2 performance.
61092         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61093         NUL bytes.
61094         * modules/memchr2 (Depends-on): Use intprops.h.
61095
61096 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61097
61098         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61099         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61100         <blp@cs.stanford.edu>.
61101
61102 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61103
61104         * lib/arpa_inet.in.h: New file.
61105
61106         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61107         (Makefile.am): Sed in substitute header file.
61108
61109         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61110         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61111
61112         * modules/inet_ntop (configure.ac): Use
61113         gl_ARPA_INET_MODULE_INDICATOR.
61114
61115         * modules/inet_pton (configure.ac): Use
61116         gl_ARPA_INET_MODULE_INDICATOR.
61117
61118 2008-04-22  Jim Meyering  <meyering@redhat.com>
61119
61120         * modules/verify (License): Re-license as LGPLv2+.
61121
61122 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61123
61124         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61125         parameter to void* as per POSIX standard (MinGW uses char*).
61126
61127 2008-04-21  Bruno Haible  <bruno@clisp.org>
61128
61129         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61130         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61131         Define to replacements if REPLACE_ISWCNTRL is 1.
61132         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61133         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61134         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61135         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61136         what it fixes.
61137         * doc/posix-functions/iswalpha.texi: Likewise.
61138         * doc/posix-functions/iswblank.texi: Likewise.
61139         * doc/posix-functions/iswcntrl.texi: Likewise.
61140         * doc/posix-functions/iswdigit.texi: Likewise.
61141         * doc/posix-functions/iswgraph.texi: Likewise.
61142         * doc/posix-functions/iswlower.texi: Likewise.
61143         * doc/posix-functions/iswprint.texi: Likewise.
61144         * doc/posix-functions/iswpunct.texi: Likewise.
61145         * doc/posix-functions/iswspace.texi: Likewise.
61146         * doc/posix-functions/iswupper.texi: Likewise.
61147         * doc/posix-functions/iswxdigit.texi: Likewise.
61148         Reported by Alain Guibert.
61149
61150 2008-04-21  Bruno Haible  <bruno@clisp.org>
61151
61152         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61153         Patch by Alain Guibert.
61154
61155 2008-04-21  Bruno Haible  <bruno@clisp.org>
61156
61157         Fix test failures on mingw.
61158         * tests/test-xstrtol.c (print_no_progname): New function.
61159         (main): Install it in error_print_progname hook.
61160         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61161         * tests/test-xstrtoimax.sh: Likewise.
61162         * tests/test-xstrtoumax.sh: Likewise.
61163
61164 2008-04-21  Bruno Haible  <bruno@clisp.org>
61165
61166         Fix test failure on mingw.
61167         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61168
61169 2008-04-21  Bruno Haible  <bruno@clisp.org>
61170
61171         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61172         Actually assign a value.
61173
61174 2008-04-20  Bruno Haible  <bruno@clisp.org>
61175
61176         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61177         take 2.
61178         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61179         'canonicalize-lgpl' module is also used.
61180         * lib/canonicalize-lgpl.c: Undo last change.
61181         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61182
61183 2008-04-20  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61186         config.h. Provide _mkdir based fallback for mingw.
61187         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61188         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61189         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61190         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61191         rather than defining mkdir in config.h.
61192         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61193         (gl_SYS_STAT_H_DEFAULTS): New macro.
61194         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61195         HAVE_IO_H any more.
61196         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61197         HAVE_DECL_MKDIR and HAVE_IO_H.
61198
61199 2008-04-20  Bruno Haible  <bruno@clisp.org>
61200
61201         * lib/isapipe.c: Port to native Windows platforms.
61202
61203 2008-04-20  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61206
61207 2008-04-21  Eric Blake  <ebb9@byu.net>
61208
61209         Work around preprocessors that don't handle UINTMAX_MAX.
61210         * lib/memchr2.c (memchr2): Avoid embedded #if.
61211         Reported by Alain Guibert, fix suggested by Bruno Haible.
61212
61213 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61214
61215         * doc/posix-functions/strftime.texi (strftime): Explain better
61216         Windows incompatibility.  Suggested by Micah Cowan
61217         <micah@cowan.name>.
61218
61219 2008-04-20  Bruno Haible  <bruno@clisp.org>
61220
61221         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61222         unistr/u8-mblen.
61223
61224 2008-04-20  Bruno Haible  <bruno@clisp.org>
61225
61226         Fix test failure on platforms with non-GNU iconv.
61227         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61228         (U_TO_U8): Use it, rather than u16_to_u8.
61229         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61230         units at the end of the input string.
61231         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61232
61233 2008-04-20  Bruno Haible  <bruno@clisp.org>
61234
61235         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61236         when the resulting length is 0.
61237         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61238
61239 2008-04-20  Bruno Haible  <bruno@clisp.org>
61240
61241         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61242         works.
61243         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61244
61245 2008-04-20  Bruno Haible  <bruno@clisp.org>
61246
61247         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61248         * modules/tsearch-tests (configure.ac): Test for initstate function.
61249
61250 2008-04-20  Bruno Haible  <bruno@clisp.org>
61251
61252         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61253         for nlink_t if missing.
61254         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61255
61256 2008-04-19  Bruno Haible  <bruno@clisp.org>
61257
61258         Work around snprintf bug on Linux libc5.
61259         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61261         gl_SNPRINTF_SIZE1.
61262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61263         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61264         that test failed.
61265         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61266         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61267         * modules/snprintf (Files): Add m4/printf.m4.
61268         * modules/vsnprintf (Files): Likewise.
61269         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61270         * doc/posix-functions/vsnprintf.texi: Likewise.
61271
61272 2008-04-19  Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61275         from 0.0058 to less than 10^-7.
61276
61277 2008-04-19  Bruno Haible  <bruno@clisp.org>
61278
61279         Fix rounding when a precision is given.
61280         * lib/vasnprintf.c (is_borderline): New function.
61281         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61282         9...9x.
61283         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61284         %e, %g.
61285         * tests/test-vasprintf-posix.c (test_function): Likewise.
61286         * tests/test-snprintf-posix.h (test_function): Likewise.
61287         * tests/test-sprintf-posix.h (test_function): Likewise.
61288         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61289         * tests/test-printf-posix.h (test_function): Likewise.
61290         * tests/test-printf-posix.output: Update.
61291         Reported by John Darrington <john@darrington.wattle.id.au> via
61292         Ben Pfaff <blp@cs.stanford.edu>.
61293
61294 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61295
61296         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61297         Suggested by Bruno Haible <bruno@clisp.org>.
61298
61299 2008-04-17  Bruno Haible  <bruno@clisp.org>
61300
61301         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61302         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61303         implementation.
61304         Patch by Bruce Merry <bmerry@gmail.com>.
61305
61306 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61307
61308         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61309         doesn't work under Windows.
61310
61311 2008-04-16  Bruno Haible  <bruno@clisp.org>
61312
61313         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61314         New macros.
61315         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61316         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61317         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61318         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61319         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61320         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61321         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61322         macros.
61323         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61324         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61325         Northern Sotho, Uighur.
61326
61327 2008-04-16  Bruno Haible  <bruno@clisp.org>
61328
61329         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61330         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61331         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61332         Reported by Daniel Bergström <daniel@octocode.com>.
61333
61334 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61335             Bruno Haible  <bruno@clisp.org>
61336
61337         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61338         function.
61339         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61340         New functions, mostly extracted from gl_locale_name_default.
61341         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61342
61343 2008-04-16  Eric Blake  <ebb9@byu.net>
61344
61345         Adjust strtod detection to catch glibc 2.7 bug.
61346         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61347         Reported by John Gatewood Ham.
61348
61349 2008-04-16  Bruno Haible  <bruno@clisp.org>
61350
61351         Add tentative support for Linux libc5.
61352         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61353         * lib/fpurge.c (fpurge): Likewise.
61354         * lib/freadable.c (freadable): Likewise.
61355         * lib/freadahead.c (freadahead): Likewise.
61356         * lib/freading.c (freading): Likewise.
61357         * lib/freadptr.c (freadptr): Likewise.
61358         * lib/freadseek.c (freadptrinc): Likewise.
61359         * lib/fseeko.c (rpl_fseeko): Likewise.
61360         * lib/fseterr.c (fseterr): Likewise.
61361         * lib/fwritable.c (fwritable): Likewise.
61362         * lib/fwriting.c (fwriting): Likewise.
61363         Reported by Alain Guibert <alguibert+bts@free.fr>.
61364
61365 2008-04-15  Bruno Haible  <bruno@clisp.org>
61366
61367         * modules/mathl (configure.ac): Define module indicator.
61368
61369 2008-04-15  Bruno Haible  <bruno@clisp.org>
61370
61371         * lib/logl.c (logl): Remove unused variables.
61372
61373 2008-04-15  Bruno Haible  <bruno@clisp.org>
61374
61375         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61376         fails.
61377
61378 2008-04-15  Bruno Haible  <bruno@clisp.org>
61379
61380         * lib/trim.c (trim2): Fix argument of isspace() macro.
61381
61382 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61383
61384         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61385         to 0.
61386         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61387
61388 2008-04-14  Bruno Haible  <bruno@clisp.org>
61389
61390         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61391         AC_LANG_PROGRAM argument.
61392         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61393         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61394         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61395         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61396         * m4/math_h.m4 (gl_MATH_H): Likewise.
61397         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61398         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61399         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61400         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61401         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61402         * m4/regex.m4 (gl_REGEX): Likewise.
61403         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61404         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61406         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61408         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61410         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61411
61412 2008-04-14  Jim Meyering  <meyering@redhat.com>
61413
61414         test-strtod: fix typos: s/abs/fabs/
61415         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61416
61417 2008-04-13  Bruno Haible  <bruno@clisp.org>
61418
61419         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61420         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61421         module is also used and while not building the reloc-wrapper.
61422
61423 2008-04-13  Bruno Haible  <bruno@clisp.org>
61424
61425         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61426
61427 2008-04-13  Bruno Haible  <bruno@clisp.org>
61428
61429         Fix AIX compilation failure introduced on 2008-04-02.
61430         * tests/test-frexp.c (exp): Undefine before redefining.
61431         * tests/test-frexpl.c (exp): Likewise.
61432
61433 2008-04-13  Bruno Haible  <bruno@clisp.org>
61434
61435         Work around a HP-UX stdio bug.
61436         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61437         * tests/test-ftello.c (main): Likewise.
61438         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61439         * doc/posix-functions/ftello.texi: Likewise.
61440
61441 2008-04-13  Bruno Haible  <bruno@clisp.org>
61442
61443         Make test-signbit pass on HP-UX/hppa.
61444         * tests/test-signbit.c (minus_zerol): New variable.
61445         (test_signbitl): Use it.
61446
61447 2008-04-13  Bruno Haible  <bruno@clisp.org>
61448
61449         Make truncl work on OSF/1 4.0.
61450         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61451         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61452         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61454         HAVE_DECL_TRUNCL.
61455         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61456         HAVE_DECL_TRUNCL.
61457         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61458
61459 2008-04-13  Bruno Haible  <bruno@clisp.org>
61460
61461         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61462
61463 2008-04-13  Bruno Haible  <bruno@clisp.org>
61464
61465         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61466         expression, so as to avoid HP-UX 11 cc compiler bug.
61467
61468 2008-04-13  Bruno Haible  <bruno@clisp.org>
61469
61470         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61471
61472 2008-04-13  Bruno Haible  <bruno@clisp.org>
61473
61474         * lib/git-merge-changelog.c: Remove empty declaration outside of
61475         functions.
61476
61477 2008-04-13  Bruno Haible  <bruno@clisp.org>
61478
61479         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61480
61481 2008-04-13  Bruno Haible  <bruno@clisp.org>
61482
61483         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61484         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61485         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61486         also if it exists but lacks definitions of the SHUT_* macros.
61487         * modules/sys_socket (Description): Update.
61488         Reported by Elbert Pol <e.pol@chello.nl>.
61489
61490 2008-04-13  Bruno Haible  <bruno@clisp.org>
61491
61492         * lib/localcharset.c (OS2): Don't redefine if already defined.
61493         Reported by Elbert Pol <e.pol@chello.nl>.
61494
61495 2008-04-13  Bruno Haible  <bruno@clisp.org>
61496
61497         * lib/binary-io.h [__EMX__]: Include <io.h>.
61498         Reported by Elbert Pol <e.pol@chello.nl>.
61499
61500 2008-04-12  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/fpucw.h: Enable the definitions also for x86_64.
61503         Needed for NetBSD/x86_64.
61504         Reported by Thomas Klausner <tk@giga.or.at>.
61505
61506 2008-04-12  Bruno Haible  <bruno@clisp.org>
61507
61508         * tests/test-strtod.c: Include isnand.h.
61509         (main): Use isnand instead of isnan.
61510         Reported by Jim Meyering.
61511
61512 2008-04-12  Bruno Haible  <bruno@clisp.org>
61513
61514         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61515         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61516
61517 2008-04-12  Jim Meyering  <meyering@redhat.com>
61518
61519         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61520
61521 2008-04-12  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61524         Reported by Elbert Pol <e.pol@chello.nl>.
61525
61526 2008-04-12  Eric Blake  <ebb9@byu.net>
61527
61528         Work around Solaris 10 math.h bug.
61529         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61530         (gl_MATH_H_DEFAULTS): Set up default.
61531         * modules/math (Makefile.am): Replace new indicators.
61532         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61533         * tests/test-math.c (main): Test this.
61534         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61535         * doc/posix-headers/math.texi (math.h): Mention bug.
61536         Reported by Nelson H. F. Beebe and Jim Meyering.
61537
61538 2008-04-11  Bruno Haible  <bruno@clisp.org>
61539
61540         Adapt to future versions of Apple GCC.
61541         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61542         Reported by Peter O'Gorman <peter@pogma.com>.
61543
61544 2008-04-11  Bruno Haible  <bruno@clisp.org>
61545
61546         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61547
61548 2008-04-11  Bruno Haible  <bruno@clisp.org>
61549
61550         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61551
61552         * modules/getaddrinfo-tests (Makefile.am): Define
61553         test_getaddrinfo_LDADD.
61554
61555 2008-04-11  Bruno Haible  <bruno@clisp.org>
61556
61557         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61558         (init): Fix syntax error.
61559         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61560         is declared.
61561
61562 2008-04-11  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61565         * modules/glob (Depends-on): Add stdbool.
61566
61567 2008-04-11  Bruno Haible  <bruno@clisp.org>
61568
61569         * lib/trim.c: Include <string.h>.
61570
61571 2008-04-11  Eric Blake  <ebb9@byu.net>
61572
61573         Avoid compile failure on OS/2.
61574         * lib/regex_internal.h (internal_function): Disable optimization
61575         on OS/2 (__EMX__), where it caused compiler error.
61576         Reported by Elbert Pol.
61577
61578 2008-04-11  Bruno Haible  <bruno@clisp.org>
61579
61580         Flush the standard error stream before aborting. Needed on mingw.
61581         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61582         * tests/test-array_list.c (ASSERT): Likewise.
61583         * tests/test-array_oset.c (ASSERT): Likewise.
61584         * tests/test-avltree_list.c (ASSERT): Likewise.
61585         * tests/test-avltree_oset.c (ASSERT): Likewise.
61586         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61587         * tests/test-binary-io.c (ASSERT): Likewise.
61588         * tests/test-byteswap.c (ASSERT): Likewise.
61589         * tests/test-c-ctype.c (ASSERT): Likewise.
61590         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61591         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61592         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61593         * tests/test-c-strstr.c (ASSERT): Likewise.
61594         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61595         * tests/test-canonicalize.c (ASSERT): Likewise.
61596         * tests/test-carray_list.c (ASSERT): Likewise.
61597         * tests/test-ceilf1.c (ASSERT): Likewise.
61598         * tests/test-ceilf2.c (ASSERT): Likewise.
61599         * tests/test-ceill.c (ASSERT): Likewise.
61600         * tests/test-count-one-bits.c (ASSERT): Likewise.
61601         * tests/test-fbufmode.c (ASSERT): Likewise.
61602         * tests/test-fflush2.c (ASSERT): Likewise.
61603         * tests/test-floorf1.c (ASSERT): Likewise.
61604         * tests/test-floorf2.c (ASSERT): Likewise.
61605         * tests/test-floorl.c (ASSERT): Likewise.
61606         * tests/test-fopen.c (ASSERT): Likewise.
61607         * tests/test-fpending.c (ASSERT): Likewise.
61608         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61609         * tests/test-fpurge.c (ASSERT): Likewise.
61610         * tests/test-freadable.c (ASSERT): Likewise.
61611         * tests/test-freadahead.c (ASSERT): Likewise.
61612         * tests/test-freading.c (ASSERT): Likewise.
61613         * tests/test-freadptr.c (ASSERT): Likewise.
61614         * tests/test-freadptr2.c (ASSERT): Likewise.
61615         * tests/test-freadseek.c (ASSERT): Likewise.
61616         * tests/test-freopen.c (ASSERT): Likewise.
61617         * tests/test-frexp.c (ASSERT): Likewise.
61618         * tests/test-frexpl.c (ASSERT): Likewise.
61619         * tests/test-fseek.c (ASSERT): Likewise.
61620         * tests/test-fseeko.c (ASSERT): Likewise.
61621         * tests/test-fstrcmp.c (ASSERT): Likewise.
61622         * tests/test-ftell.c (ASSERT): Likewise.
61623         * tests/test-ftello.c (ASSERT): Likewise.
61624         * tests/test-func.c (ASSERT): Likewise.
61625         * tests/test-fwritable.c (ASSERT): Likewise.
61626         * tests/test-fwriting.c (ASSERT): Likewise.
61627         * tests/test-getdelim.c (ASSERT): Likewise.
61628         * tests/test-getline.c (ASSERT): Likewise.
61629         * tests/test-i-ring.c (ASSERT): Likewise.
61630         * tests/test-iconv-utf.c (ASSERT): Likewise.
61631         * tests/test-iconv.c (ASSERT): Likewise.
61632         * tests/test-isfinite.c (ASSERT): Likewise.
61633         * tests/test-isnand.c (ASSERT): Likewise.
61634         * tests/test-isnanf.c (ASSERT): Likewise.
61635         * tests/test-isnanl.h (ASSERT): Likewise.
61636         * tests/test-ldexpl.c (ASSERT): Likewise.
61637         * tests/test-linked_list.c (ASSERT): Likewise.
61638         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61639         * tests/test-localename.c (ASSERT): Likewise.
61640         * tests/test-lseek.c (ASSERT): Likewise.
61641         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61642         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61643         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61644         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61645         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61646         * tests/test-mbschr.c (ASSERT): Likewise.
61647         * tests/test-mbscspn.c (ASSERT): Likewise.
61648         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61649         * tests/test-mbspbrk.c (ASSERT): Likewise.
61650         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61651         * tests/test-mbsrchr.c (ASSERT): Likewise.
61652         * tests/test-mbsspn.c (ASSERT): Likewise.
61653         * tests/test-mbsstr1.c (ASSERT): Likewise.
61654         * tests/test-mbsstr2.c (ASSERT): Likewise.
61655         * tests/test-mbsstr3.c (ASSERT): Likewise.
61656         * tests/test-memchr2.c (ASSERT): Likewise.
61657         * tests/test-memmem.c (ASSERT): Likewise.
61658         * tests/test-open.c (ASSERT): Likewise.
61659         * tests/test-printf-frexp.c (ASSERT): Likewise.
61660         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61661         * tests/test-printf-posix.c (ASSERT): Likewise.
61662         * tests/test-quotearg.c (ASSERT): Likewise.
61663         * tests/test-rbtree_list.c (ASSERT): Likewise.
61664         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61665         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61666         * tests/test-round1.c (ASSERT): Likewise.
61667         * tests/test-roundf1.c (ASSERT): Likewise.
61668         * tests/test-roundl.c (ASSERT): Likewise.
61669         * tests/test-signbit.c (ASSERT): Likewise.
61670         * tests/test-sleep.c (ASSERT): Likewise.
61671         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61672         * tests/test-snprintf.c (ASSERT): Likewise.
61673         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61674         * tests/test-stat-time.c (ASSERT): Likewise.
61675         * tests/test-strcasestr.c (ASSERT): Likewise.
61676         * tests/test-strerror.c (ASSERT): Likewise.
61677         * tests/test-striconv.c (ASSERT): Likewise.
61678         * tests/test-striconveh.c (ASSERT): Likewise.
61679         * tests/test-striconveha.c (ASSERT): Likewise.
61680         * tests/test-strsignal.c (ASSERT): Likewise.
61681         * tests/test-strstr.c (ASSERT): Likewise.
61682         * tests/test-strtod.c (ASSERT): Likewise.
61683         * tests/test-trunc1.c (ASSERT): Likewise.
61684         * tests/test-trunc2.c (ASSERT): Likewise.
61685         * tests/test-truncf1.c (ASSERT): Likewise.
61686         * tests/test-truncf2.c (ASSERT): Likewise.
61687         * tests/test-truncl.c (ASSERT): Likewise.
61688         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61689         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61690         * tests/test-vasnprintf.c (ASSERT): Likewise.
61691         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61692         * tests/test-vasprintf.c (ASSERT): Likewise.
61693         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61694         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61695         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61696         * tests/test-vsnprintf.c (ASSERT): Likewise.
61697         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61698         * tests/test-wcwidth.c (ASSERT): Likewise.
61699         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61700         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61701         * tests/test-xvasprintf.c (ASSERT): Likewise.
61702         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61703         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61704         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61705         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61706         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61707         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61708         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61709         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61710         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61711         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61712         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61713         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61714         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61715         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61716         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61717         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61718         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61719         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61720         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61721         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61722         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61723         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61724         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61725         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61726         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61727         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61728         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61729         * tests/unictype/test-combining.c (ASSERT): Likewise.
61730         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61731         * tests/unictype/test-digit.c (ASSERT): Likewise.
61732         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61733         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61734         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61735         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61736         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61737         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61738         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61739         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61740         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61741         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61742         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61743         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61744         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61745         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61746         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61747         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61748         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61749         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61750         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61751         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61752         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61753         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61754         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61755         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61756         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61757         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61758         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61759         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61760         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61761         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61762         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61763         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61764         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61765         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61766         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61767         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61768         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61769         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61770         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61771         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61772         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61773         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61774         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61775         Reported by Eric Blake.
61776
61777 2008-04-11  Bruno Haible  <bruno@clisp.org>
61778
61779         * lib/wchar.in.h: Tweak comment.
61780
61781 2008-04-11  Bruno Haible  <bruno@clisp.org>
61782
61783         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61784         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61785         gl_COMMON.
61786         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61787
61788 2008-04-11  Bruno Haible  <bruno@clisp.org>
61789
61790         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61791
61792 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61793
61794         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61795         of attempting to use non-existing /dev/*random.  Based on patch
61796         from Adam Strzelecki <ono@java.pl> in
61797         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61798
61799 2008-04-08  Bruno Haible  <bruno@clisp.org>
61800
61801         Add tentative support for emx+gcc.
61802         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61803         * lib/fpurge.c (fpurge): Likewise.
61804         * lib/freadable.c (freadable): Likewise.
61805         * lib/freadahead.c (freadahead): Likewise.
61806         * lib/freading.c (freading): Likewise.
61807         * lib/freadptr.c (freadptr): Likewise.
61808         * lib/freadseek.c (freadptrinc): Likewise.
61809         * lib/fseeko.c (rpl_fseeko): Likewise.
61810         * lib/fseterr.c (fseterr): Likewise.
61811         * lib/fwritable.c (fwritable): Likewise.
61812         * lib/fwriting.c (fwriting): Likewise.
61813         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61814
61815 2008-04-09  Eric Blake  <ebb9@byu.net>
61816
61817         Avoid some autoconf warnings.
61818         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61819         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61820         * m4/afs.m4 (gl_AFS): Likewise.
61821         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61822         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61823         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61824         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61825         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61826         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61827         (AC_CHECK_DECLS_ONCE): Likewise.
61828         Rename file...
61829         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61830         gnulib-tool requires autoconf 2.59 or better.
61831         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61832
61833 2008-04-08  Eric Blake  <ebb9@byu.net>
61834
61835         Use 'git describe --match' if present (added in git 1.5.5).
61836         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61837         if possible.
61838
61839 2008-04-08  Bruno Haible  <bruno@clisp.org>
61840
61841         Add tentative support for OpenServer.
61842         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61843         _ptr, _cnt.
61844         * lib/fpurge.c (fpurge): Likewise.
61845         * lib/freadable.c (freadable): Likewise.
61846         * lib/freadahead.c (freadahead): Likewise.
61847         * lib/freading.c (freading): Likewise.
61848         * lib/freadptr.c (freadptr): Likewise.
61849         * lib/freadseek.c (freadptrinc): Likewise.
61850         * lib/fseeko.c (rpl_fseeko): Likewise.
61851         * lib/fseterr.c (fseterr): Likewise.
61852         * lib/fwritable.c (fwritable): Likewise.
61853         * lib/fwriting.c (fwriting): Likewise.
61854         Reported by Roger Cornelius <rac@tenzing.org> and
61855         Brian K. White <brian@aljex.com>.
61856
61857 2008-04-06  Jim Meyering  <meyering@redhat.com>
61858
61859         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61860
61861 2008-04-06  Bruno Haible  <bruno@clisp.org>
61862
61863         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61864         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61865         * tests/test-printf-posix.sh: Likewise.
61866         * tests/test-vfprintf-posix.sh: Likewise.
61867         * tests/test-vprintf-posix.sh: Likewise.
61868         * tests/test-xprintf-posix.sh: Likewise.
61869
61870 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61871
61872         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61873         hide error from 'ls', needed on OS/2.
61874         Report by Elbert Pol <elbert.pol@gmail.com>.
61875
61876 2008-04-04  Eric Blake  <ebb9@byu.net>
61877
61878         Make test-fseeko.c failures meaningful.
61879         * tests/test-fseeko.c: Print line number on failure.
61880         * tests/test-fseek.c: Likewise.
61881         Reported by Nelson H. F. Beebe.
61882
61883         Improve strtod bug detection check.
61884         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61885         required for Solaris 10.
61886         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61887
61888 2008-04-04  Bruno Haible  <bruno@clisp.org>
61889
61890         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61891         by m4/setenv.m4.
61892
61893 2008-04-03  Eric Blake  <ebb9@byu.net>
61894
61895         Ensure sane .version contents.
61896         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61897         version string.
61898         * build-aux/git-version-gen: Improve documentation.
61899
61900         Make GNU make output nicer.
61901         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61902         MAKECMDGOALS to enforce message for all command line targets.  Set
61903         srcdir for use in maint.mk.
61904
61905         Another maintainer tweak.
61906         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61907         a target that regenerates version.
61908
61909 2008-04-03  Jim Meyering  <meyering@redhat.com>
61910
61911         vc-list-files: don't cause coreutils "make po-check" failure
61912         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61913
61914 2008-04-03  Eric Blake  <ebb9@byu.net>
61915
61916         Allow VPATH usage of vc-list-files.
61917         * build-aux/vc-list-files (scriptversion): Add timestamp.
61918         (options): Add --help, --version, -C.
61919         (CVS): Support installed cvsu.
61920
61921 2008-04-02  Bruno Haible  <bruno@clisp.org>
61922
61923         Avoid some "statement with no effect" warnings from gcc.
61924         * tests/test-wctype.c (main): Explicitly ignore unused values.
61925         Reported by Jim Meyering.
61926
61927 2008-04-02  Jim Meyering  <meyering@redhat.com>
61928
61929         Avoid some warnings from "gcc -Wshadow".
61930         * tests/test-frexp.c (exp): Define to a different identifier.
61931         * tests/test-frexpl.c (exp): Likewise.
61932
61933 2008-04-03  Jim Meyering  <meyering@redhat.com>
61934
61935         bootstrap: remove dangling *.[ch] symlinks from lib
61936         * build-aux/bootstrap [dangling symlink removal]: Move find's
61937         -depth option to precede all others, to avoid a warning.
61938         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61939
61940 2008-04-02  Bruno Haible  <bruno@clisp.org>
61941
61942         Avoid some warnings from "gcc -Wshadow".
61943         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61944         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61945         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61946         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61947         Reported by Jim Meyering.
61948
61949 2008-04-01  Bruno Haible  <bruno@clisp.org>
61950
61951         Fix test to work on IRIX 6.5 with cc.
61952         * tests/test-math.c (numeric_equal): New function.
61953         (main): Use it.
61954
61955 2008-04-01  Bruno Haible  <bruno@clisp.org>
61956
61957         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61958
61959 2008-04-01  Bruno Haible  <bruno@clisp.org>
61960
61961         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61962         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61963         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61964         (Depends-on): Remove math.
61965
61966         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61967         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61968         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61969         (Depends-on): Remove math.
61970
61971         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61972         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61973         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61974         (Depends-on): Remove math.
61975         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61976         (Depends-on): Remove math.
61977
61978         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61979         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61980         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61981         (Depends-on): Remove math.
61982         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61983         (Depends-on): Remove math.
61984
61985         * tests/test-round1.c: Include nan.h.
61986         (main): Use NaNd instead of NAN.
61987         * modules/round-tests (Files): Add tests/nan.h.
61988
61989         * tests/test-trunc1.c: Include nan.h.
61990         (main): Use NaNd instead of NAN.
61991         * modules/trunc-tests (Files): Add tests/nan.h.
61992
61993         * tests/test-roundf1.c: Include nan.h.
61994         (main): Use NaNf instead of NAN.
61995         * modules/roundf-tests (Files): Add tests/nan.h.
61996
61997         * tests/test-truncf1.c: Include nan.h.
61998         (main): Use NaNf instead of NAN.
61999         * modules/truncf-tests (Files): Add tests/nan.h.
62000
62001         * tests/test-ceilf1.c: Include nan.h.
62002         (main): Use NaNf instead of NAN.
62003         * modules/ceilf-tests (Files): Add tests/nan.h.
62004
62005         * tests/test-floorf1.c: Include nan.h.
62006         (main): Use NaNf instead of NAN.
62007         * modules/floorf-tests (Files): Add tests/nan.h.
62008
62009         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62010         (main): Use NaNf instead of NAN.
62011         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62012
62013         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62014         (main): Use NaNd instead of NAN.
62015         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62016
62017         * tests/test-frexp.c: Include nan.h.
62018         (main): Use NaNd instead of NAN.
62019         * modules/frexp-tests (Files): Add tests/nan.h.
62020
62021         * lib/isnan.c: Don't include <math.h>.
62022         (FUNC): Don't use NAN macro.
62023         * modules/isnand-nolibm (Depends-on): Remove math.
62024         * modules/isnanf-nolibm (Depends-on): Remove math.
62025         * modules/isnanl (Depends-on): Remove math.
62026         * modules/isnanl-nolibm (Depends-on): Remove math.
62027
62028         * tests/nan.h: New file.
62029
62030 2008-04-01  Eric Blake  <ebb9@byu.net>
62031
62032         Fix typos.
62033         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62034         values to be the right type.
62035
62036         For now, cater to gnulib strtod inaccuracies.
62037         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62038         fractional results.  While not as nice from a QoI perspective, it
62039         is a quicker patch than correctly implementing decimal to binary
62040         rounding.
62041
62042 2008-03-31  Eric Blake  <ebb9@byu.net>
62043
62044         Guarantee a definition of NAN.
62045         * lib/math.in.h (NAN): Define if missing.
62046         * tests/test-math.c (main): Test it.
62047         * doc/posix-headers/math.texi (math.h): Document this.
62048         * lib/isnan.c (rpl_isnand): Use it.
62049         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62050         * tests/test-floorf1.c (NaN): Likewise.
62051         * tests/test-frexp.c (NaN): Likewise.
62052         * tests/test-isnand.c (NaN): Likewise.
62053         * tests/test-isnanf.c (NaN): Likewise.
62054         * tests/test-round1.c (NaN): Likewise.
62055         * tests/test-roundf1.c (NaN): Likewise.
62056         * tests/test-snprintf-posix.h (NaN): Likewise.
62057         * tests/test-sprintf-posix.h (NaN): Likewise.
62058         * tests/test-trunc1.c (NaN): Likewise.
62059         * tests/test-truncf1.c (NaN): Likewise.
62060         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62061         * tests/test-vasprintf-posix.c (NaN): Likewise.
62062         * modules/isnand-nolibm (Depends-on): Add math.
62063         * modules/isnanf-nolibm (Depends-on): Likewise.
62064         * modules/isnanl (Depends-on): Likewise.
62065         * modules/isnanl-nolibm (Depends-on): Likewise.
62066         * modules/snprintf-posix-tests (Depends-on): Likewise.
62067         * modules/sprintf-posix-tests (Depends-on): Likewise.
62068         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62069         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62070         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62071         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62072
62073 2008-03-31  Bruno Haible  <bruno@clisp.org>
62074
62075         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62076         * doc/posix-functions/strtod.texi: Likewise.
62077
62078 2008-03-31  Bruno Haible  <bruno@clisp.org>
62079
62080         * tests/test-strtod.c (main): Don't use C99 syntax.
62081
62082 2008-03-31  Bruno Haible  <bruno@clisp.org>
62083
62084         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62085         Reported by Eric Blake.
62086
62087 2008-03-31  Jim Meyering  <meyering@redhat.com>
62088
62089         Don't compare actual signbit return values.
62090         * tests/test-strtod.c (main): Rather, compare only their
62091         zero/non-zero nature.
62092
62093 2008-03-31  Eric Blake  <ebb9@byu.net>
62094
62095         More strtod documentation.
62096         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62097         failures as distinct bugs.
62098
62099 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62102         Problem reported by Erik Benada in
62103         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62104
62105 2008-03-30  Bruno Haible  <bruno@clisp.org>
62106
62107         * tests/test-strtod.c: Add comments about which assertion fails on which
62108         platform.
62109         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62110
62111 2008-03-30  Eric Blake  <ebb9@byu.net>
62112
62113         Test signbit behavior on zeros.
62114         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62115         (test_signbitd, test_signbitl): Likewise.
62116
62117         More strtod touchups.
62118         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62119         sign of negative underflow, for now.  Use .5, not .1.
62120         * doc/posix-functions/strtod.texi (strtod): Mention these
62121         limitations.
62122         Reported by Jim Meyering.
62123
62124 2008-03-30  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62127         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62128
62129 2008-03-30  Bruno Haible  <bruno@clisp.org>
62130
62131         Avoid failure when attempting to return empty iconv results on some
62132         platforms.
62133         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62134         allocation, don't report ENOMEM when the resulting string is empty.
62135
62136 2008-03-30  Bruno Haible  <bruno@clisp.org>
62137
62138         Fix buffer overrun.
62139         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62140         Don't consider the width for tmp_length. Check count against tmp_length
62141         before doing the padding. Ensure enough allocation during padding.
62142
62143 2008-03-30  Eric Blake  <ebb9@byu.net>
62144
62145         strtod touchups.
62146         * lib/strtod.c (strtod): Avoid compiler warnings.
62147         Reported by Jim Meyering.
62148
62149 2008-03-30  Bruno Haible  <bruno@clisp.org>
62150
62151         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62152         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62153         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62154         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62155         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62156         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62157         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62158         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62159
62160         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62161         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62162         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62163         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62164         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62165         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62166         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62167         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62168
62169         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62170         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62171         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62172         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62173         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62174         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62175         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62176         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62177
62178         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62179         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62180
62181         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62182         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62183
62184         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62185         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62186
62187         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62188         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62189         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62190
62191         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62193         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62194
62195         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62197         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62198
62199         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62201         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62202
62203         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62204         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62206         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62207         (Depends-on): Add EOVERFLOW.
62208         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62209         (Depends-on): Add EOVERFLOW.
62210         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62211         (Depends-on): Add EOVERFLOW.
62212         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62213         (Depends-on): Add EOVERFLOW.
62214         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62215         (Depends-on): Add EOVERFLOW.
62216         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62217         (Depends-on): Add EOVERFLOW.
62218         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62219         (Depends-on): Add EOVERFLOW.
62220         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62221         (Depends-on): Add EOVERFLOW.
62222
62223         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62225         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62226
62227         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62228         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62229         * modules/snprintf (Depends-on): Add EOVERFLOW.
62230
62231         * lib/poll.c (EOVERFLOW): Remove fallback.
62232         * modules/poll (Depends-on): Add EOVERFLOW.
62233
62234         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62235         * modules/getugroups (Depends-on): Add EOVERFLOW.
62236
62237         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62238         * modules/getdelim (Depends-on): Add EOVERFLOW.
62239
62240         * lib/ftell.c (EOVERFLOW): Remove fallback.
62241         * modules/ftell (Depends-on): Add EOVERFLOW.
62242
62243         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62245         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62246
62247         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62248
62249         * modules/EOVERFLOW-tests: New file.
62250         * tests/test-EOVERFLOW.c: New file.
62251
62252         * modules/EOVERFLOW: New file.
62253         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62254
62255 2008-03-30  Bruno Haible  <bruno@clisp.org>
62256
62257         Fix bug introduced on 2007-06-10.
62258         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62259         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62260
62261 2008-03-30  Bruno Haible  <bruno@clisp.org>
62262
62263         Improve freadseek's efficiency after ungetc.
62264         * lib/freadseek.c: Include freadahead.h.
62265         (freadptrinc): New function, extracted from freadseek.
62266         (freadseek): Use it in a loop. Use freadahead to determine the number
62267         of loop iterations.
62268         * modules/freadseek (Depends-on): Add freadahead.
62269         (configure.ac): Require AC_C_INLINE.
62270
62271 2008-03-30  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/freadseek.c (freadseek): Don't ignore the return value of
62274         freadptr.
62275
62276 2008-03-29  Eric Blake  <ebb9@byu.net>
62277
62278         Add hex float support.
62279         * modules/strtod (Depends-on): Add c-ctype.
62280         (Link): Mention POW_LIB.
62281         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62282         whitespace between 'e' and exponent.
62283         * tests/test-strtod.c (main): Enable hex float tests.
62284         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62285         now provides.
62286
62287         Document various strtod bugs, with some fixes.
62288         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62289         "-0x", "inf", "nan", and hex constants.
62290         * doc/posix-functions/atof.texi (atof): Likewise.
62291         * modules/stdlib (Makefile.am): Support strtod.
62292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62293         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62294         detect additional strtod bugs.
62295         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62296         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62297         bool where appropriate.  Parse 'inf' and 'nan'.
62298         * tests/test-strtod.c: New file.
62299         * modules/strtod (Depends-on): Add stdbool, stdlib.
62300         (configure.ac): Turn on module indicator.
62301         * modules/strtod-tests: New module.
62302
62303 2008-03-29  Eric Blake  <ebb9@byu.net>
62304
62305         Fix ftell on mingw.
62306         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62307         * modules/ftell-tests (Depends-on): Add binary-io.
62308         * modules/ftello-tests (Depends-on): Likewise.
62309         * tests/test-ftell.c (main): Enhance test to cover behavior after
62310         ungetc.  Enforce binary mode.
62311         * tests/test-ftello.c (main): Likewise.
62312
62313         Pass test-freadseek on cygwin.
62314         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62315         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62316         ungetc buffer.
62317
62318         * tests/test-fflush2.c (main): Fix typo.
62319
62320 2008-03-29  Bruno Haible  <bruno@clisp.org>
62321
62322         * tests/test-fflush2.c (main): Temporarily disable the contents of
62323         this test.
62324         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62325         Reported by Eric Blake.
62326
62327 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62328
62329         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62330         (GC_SHA224_DIGEST_SIZE): Add.
62331
62332         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62333         (gc_hash_digest_length): Likewise.
62334         (gc_hash_buffer): Likewise.
62335
62336 2008-03-25  Bruno Haible  <bruno@clisp.org>
62337
62338         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62339         detail which gettext release to use.
62340         Reported by Simon Josefsson.
62341
62342 2008-03-26  Jim Meyering  <meyering@redhat.com>
62343
62344         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62345         * modules/gnumakefile (clean-GNUmakefile): Also, use
62346         test ... && ... || : syntax rather than if-then ... fi.
62347
62348         gnumakefile: Don't double-quote-expand $(VPATH) value.
62349         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62350
62351 2008-03-24  Eric Blake  <ebb9@byu.net>
62352
62353         Alter GNUmakefile to install into top directory.
62354         * modules/maintainer-makefile: Split, and add dependency...
62355         * modules/gnumakefile: to this new module.
62356         * build-aux/GNUmakefile: Move...
62357         * top/GNUmakefile: ...here.
62358         * build-aux/maint.mk: Move...
62359         * top/maint.mk: ...here.
62360         * MODULES.html.sh (Support for maintaining...): Document new
62361         module.
62362
62363 2008-03-23  Bruno Haible  <bruno@clisp.org>
62364
62365         * gnulib-tool: New options --vc-files, --no-vc-files.
62366         (func_usage): Document them.
62367         (vc_files): New variable.
62368         (func_import): Consider vc_files.
62369         (func_create_testdir): Set vc_files to empty.
62370         Suggested by Jim Meyering and Karl Berry.
62371
62372 2008-03-23  Bruno Haible  <bruno@clisp.org>
62373
62374         Fix regex compilation error on HP-UX 11.
62375         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62376         * modules/regex (Files): Add m4/mbstate_t.m4.
62377         Reported by Ton Voon <ton.voon@altinity.com>.
62378
62379 2008-03-23  Bruno Haible  <bruno@clisp.org>
62380
62381         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62382
62383 2008-03-23  Eric Blake  <ebb9@byu.net>
62384             Bruno Haible  <bruno@clisp.org>
62385
62386         Install files from top/ in the destination directory.
62387         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62388         augmentation also for the files from top/.
62389         (func_import, func_create_testdir): Rewrite file names:
62390         top/filename -> filename.
62391
62392 2008-03-23  Bruno Haible  <bruno@clisp.org>
62393
62394         Tweak "gnulib --version" output.
62395         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62396
62397 2008-03-23  Bruno Haible  <bruno@clisp.org>
62398
62399         Tweak "gnulib --version" output.
62400         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62401         rather than contents of ChangeLog, when possible.
62402
62403 2008-03-21  Eric Blake  <ebb9@byu.net>
62404
62405         More --version tweaks.
62406         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62407         date of last ChangeLog entry.
62408
62409 2008-03-21  Jim Meyering  <meyering@redhat.com>
62410
62411         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62412
62413 2008-03-20  Eric Blake  <ebb9@byu.net>
62414
62415         VPATH fix.
62416         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62417
62418 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62419
62420         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62421         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62422
62423 2008-03-20  Eric Blake  <ebb9@byu.net>
62424
62425         Sync GNUmakefile with coreutils.
62426         * build-aux/GNUmakefile (have-Makefile): Rename...
62427         (_have-Makefile): ...to this, for namespace consideration.
62428         (GNUmakefile.cfg): Include, if present.
62429         (_autoreconf): Define a default.
62430         (_is-dist-target): New rule for rebuilds to pick up intra-release
62431         version.
62432         (maint-cfg.mk): Rename...
62433         (cfg.mk): ...to this.
62434
62435 2008-03-18  Jim Meyering  <meyering@redhat.com>
62436
62437         New script and module: mktempd
62438         * MODULES.html.sh (maint+release support): Add mktempd.
62439         * build-aux/mktempd: New file.
62440         * modules/mktempd: New file.
62441
62442 2008-03-15  Jim Meyering  <meyering@redhat.com>
62443
62444         Undo last change.
62445         * lib/sha1.c, lib/md5.c: 63 != ~63.
62446         Reported by Andreas Schwab.
62447
62448         sha1.c, md5.c: Hoist a redundant expression.
62449         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62450         "ctx->buflen" only once, before calling *_process_block.
62451         * lib/md5.c (md5_process_bytes): Likewise.
62452
62453 2008-03-14  Eric Blake  <ebb9@byu.net>
62454
62455         Bump copyright year in files generated by gnulib-tool.
62456         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62457         gnulib-tool, rather than hard-coding it.
62458
62459         Fix 'gnulib-tool --version' output to work with git.
62460         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62461         (startup): ...here.
62462         (func_version): Use it to invoke git-version-gen, rather than
62463         relying on CVS keyword expansion.  Modernize wording.
62464         (cvsdatestamp, last_checkin_date, version): Kill unused
62465         variables.
62466
62467 2008-03-12  Jim Meyering  <meyering@redhat.com>
62468
62469         Recognize optional cast of the argument to free.
62470         * build-aux/useless-if-before-free: Update regexps.
62471
62472         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62473
62474 2008-03-11  Bruno Haible  <bruno@clisp.org>
62475
62476         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62477         by a single package.
62478         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62479         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62480         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62481         Reported by Sam Steingold <sds@gnu.org>.
62482
62483 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62484
62485         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62486         repositories.
62487
62488 2008-03-11  Bruno Haible  <bruno@clisp.org>
62489
62490         Avoid conflicts between local macro definitions.
62491         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62492         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62493
62494 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62495             Bruno Haible  <bruno@clisp.org>
62496
62497         Make va_copy work with some version of xlc on AIX 5.1.
62498         * lib/stdarg.in.h: New file.
62499         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62500         On AIX, use a <stdarg.h> file substitute.
62501         * modules/stdarg (Files): Add lib/stdarg.in.h.
62502         (Depends-on): Add include_next.
62503         (Makefile.am): Build a stdarg.h substitute if requested.
62504         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62505
62506 2008-03-10  Bruno Haible  <bruno@clisp.org>
62507
62508         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62509         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62510         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62511
62512 2008-03-10  Bruno Haible  <bruno@clisp.org>
62513
62514         * modules/stdlib (Depends-on): Add include_next, remove
62515         absolute-header.
62516
62517 2008-03-09  Bruno Haible  <bruno@clisp.org>
62518
62519         * lib/freadahead.h (freadahead): Document more precisely.
62520         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62521         the sum of both buffer sizes.
62522         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62523         * NEWS: Document the change.
62524
62525 2008-03-09  Bruno Haible  <bruno@clisp.org>
62526
62527         Extend freadptr to return also the buffer size.
62528         * lib/freadptr.h (freadptr): Add sizep argument.
62529         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62530         (freadptr): Add sizep argument. Determine buffer size like freadahead
62531         does.
62532         * tests/test-freadptr.c: Don't include freadahead.h.
62533         (main): Adapt for new calling convention of freadptr.
62534         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62535         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62536         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62537         tests/test-freadptr2.sh.
62538         (Depends): Remove freadahead.
62539         (TESTS): Add test-freadptr2.sh.
62540         (check_PROGRAMS): Add test-freadptr2.
62541
62542 2008-03-09  Bruno Haible  <bruno@clisp.org>
62543
62544         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62545         Report and solution by Simon Josefsson.
62546
62547 2008-03-06  Bruno Haible  <bruno@clisp.org>
62548
62549         Make fflush after ungetc work on BSD platforms.
62550         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62551         * tests/test-fflush2.c: New file.
62552         * tests/test-fflush2.sh: New file.
62553         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62554         tests/test-fflush2.c.
62555         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62556         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62557
62558 2008-03-06  Eric Blake  <ebb9@byu.net>
62559
62560         Likewise for ftello.
62561         * modules/ftello (Dependencies): Add extensions.
62562         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62563
62564 2008-03-06  Bruno Haible  <bruno@clisp.org>
62565
62566         * modules/fseeko (Dependencies): Add extensions.
62567         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62568         Needed on glibc systems.
62569
62570 2008-03-06  Bruno Haible  <bruno@clisp.org>
62571
62572         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62573         email address.
62574         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62575
62576 2008-03-06  Bruno Haible  <bruno@clisp.org>
62577
62578         * users.txt: Add libgnupdf.
62579
62580 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62581
62582         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62583         (Header File Substitutes, Function Substitutes,
62584         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62585         (Build robot for gnulib): Fix typo.
62586
62587 2008-03-06  Bruno Haible  <bruno@clisp.org>
62588
62589         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62590         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62591
62592 2008-03-06  Bruno Haible  <bruno@clisp.org>
62593
62594         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62595         * doc/gnulib.texi: Include it.
62596
62597 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62598
62599         * modules/func (License): Change license to unlimited; there was
62600         no LGPL parts in the module anyway.
62601
62602 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62603
62604         * modules/__func__: Renamed to modules/func.
62605         * modules/__func__-tests: Renamed to modules/func-tests.
62606         * tests/test-__func__.c: Renamed to tests/test-func.c.
62607         * m4/__func__.m4: Renamed to m4/func.m4.
62608         * doc/gnulib.texi (__func__): Section renamed to func.
62609         Suggested by Eric Blake <ebb9@byu.net>.
62610
62611 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62612
62613         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62614         about __func__.  Make example self-contained.  Suggested by Eric
62615         Blake <ebb9@byu.net>.
62616
62617         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62618         Suggested by Eric Blake <ebb9@byu.net>.
62619
62620 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62621
62622         * modules/__func__: New file.
62623         * modules/__func__-tests: New file.
62624         * tests/test-__func__.c: New file.
62625         * m4/__func__.m4: New file.
62626         * doc/gnulib.texi (__func__): Document __func__ module.
62627
62628 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62629
62630         * modules/byteswap (License): Re-license as LGPLv2+.
62631
62632 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62633
62634         * doc/Makefile: Add pdf target.
62635
62636 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62637
62638         * modules/inline (License): Use 'unlimited', since there are only
62639         *.m4 files in this module.
62640
62641 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62642             Bruno Haible  <bruno@clisp.org>
62643
62644         Add support for HP C 7.1 on OpenVMS 8.3.
62645         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62646
62647 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62648
62649         Update VMS specifics.
62650         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62651
62652 2008-03-02  Jim Meyering  <meyering@redhat.com>
62653
62654         Remove the last dependency on the "free" module.
62655         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62656         Reported by Bob Proulx.
62657
62658         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62659
62660         Remove useless "if" tests before free.  Deprecate "free" module.
62661         * doc/posix-functions/free.texi: Mention that this
62662         module is no longer useful.
62663         * modules/free (Notice): Say this module is obsolete.
62664         * modules/readutmp (Depends-on): Remove free.
62665         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62666         * lib/putenv.c (putenv): Likewise.
62667         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62668         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62669         * tests/test-c-strcasestr.c (main): Likewise.
62670         * tests/test-c-strstr.c (main): Likewise.
62671         * tests/test-mbscasestr1.c (main): Likewise.
62672         * tests/test-mbscasestr2.c (main): Likewise.
62673         * tests/test-mbsstr1.c (main): Likewise.
62674         * tests/test-mbsstr2.c (main): Likewise.
62675         * tests/test-memmem.c (main): Likewise.
62676         * tests/test-strcasestr.c (main): Likewise.
62677         * tests/test-striconv.c (main): Likewise.
62678         * tests/test-striconveh.c (main): Likewise.
62679         * tests/test-striconveha.c (main): Likewise.
62680         * tests/test-strstr.c (main): Likewise.
62681
62682         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62683
62684         bootstrap: sync from coreutils again
62685         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62686
62687 2008-03-01  Jim Meyering  <meyering@redhat.com>
62688
62689         bootstrap: sync from coreutils
62690         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62691         also when the target doesn't exist.
62692
62693 2008-03-01  Eric Blake  <ebb9@byu.net>
62694
62695         Fix bugs in last patch.
62696         * lib/memchr2.c (memchr2): Fix typo.
62697         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62698         extension.
62699         Reported by Bruce Korb.
62700
62701         New module 'memchr2'.
62702         * modules/memchr2: New file.
62703         * modules/memchr2-tests: Likewise.
62704         * lib/memchr2.h: Likewise.
62705         * lib/memchr2.c: Likewise, based on memchr.c.
62706         * tests/test-memchr2.c: New test.
62707         * MODULES.html.sh (String handling): Add memchr2.
62708
62709 2008-02-29  Bruno Haible  <bruno@clisp.org>
62710
62711         * modules/freadseek-tests: New file.
62712         * tests/test-freadseek.sh: New file.
62713         * tests/test-freadseek.c: New file.
62714
62715         New module 'freadseek'.
62716         * modules/freadseek: New file.
62717         * lib/freadseek.h: New file.
62718         * lib/freadseek.c: New file.
62719         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62720
62721 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62722
62723         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62724         wydawca.
62725
62726         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62727         program_invocation_name and program_invocation_short_name are
62728         present.
62729
62730 2008-02-28  Bruno Haible  <bruno@clisp.org>
62731
62732         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62733         * tests/test-freadptr.sh: Also test non-seekable stdin.
62734
62735 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62736
62737         * build-aux/bootstrap (source_base, m4_base)
62738         (doc_base, tests_base): New variables.
62739         (gnulib_tool_options): Do not hardcode base directories, use
62740         the above variables instead.
62741
62742 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62743
62744         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62745
62746 2008-02-28  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/freadptr-tests: New file.
62749         * tests/test-freadptr.sh: New file.
62750         * tests/test-freadptr.c: New file.
62751
62752         New module 'freadptr'.
62753         * modules/freadptr: New file.
62754         * lib/freadptr.h: New file.
62755         * lib/freadptr.c: New file.
62756         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62757
62758 2008-02-26  Karl Berry  <karl@freefriends.org>
62759
62760         Sync from Libtool:
62761         * libltdl/argz.c (argz_add, argz_count): New functions.
62762         * libltdl/argz.in.h: Declare them.
62763         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62764
62765 2008-02-22  Bruno Haible  <bruno@clisp.org>
62766
62767         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62768         is a pointer type.  Needed for HP-UX 10.
62769         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62770         * doc/posix-functions/gmtime_r.texi: Likewise.
62771         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62772
62773 2008-02-24  Bruno Haible  <bruno@clisp.org>
62774
62775         * modules/environ-tests: New file.
62776         * tests/test-environ.c: New file.
62777
62778         New module 'environ'.
62779         * modules/environ: New file.
62780         * lib/unistd.in.h (environ): New declaration.
62781         * m4/environ.m4: New file.
62782         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62783         after use.
62784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62785         HAVE_DECL_ENVIRON.
62786         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62787         HAVE_DECL_ENVIRON.
62788         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62789         wrong claim that 'environ' is missing on some systems.
62790         * modules/execute (Depends-on): Add environ.
62791         * lib/execute.c (environ): Remove fallback declaration.
62792         * modules/pipe (Depends-on): Add environ.
62793         * lib/pipe.c (environ): Remove fallback declaration.
62794         * modules/setenv (Depends-on): Add environ.
62795         * lib/setenv.c (environ): Remove fallback declaration.
62796         * modules/unsetenv (Depends-on): Add environ.
62797         * lib/unsetenv.c (environ): Remove fallback declaration.
62798         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62799         m4/environ.m4.
62800         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62801         (gl_PREREQ_UNSETENV): Likewise.
62802
62803 2008-02-24  Bruno Haible  <bruno@clisp.org>
62804
62805         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62806
62807 2008-02-20  Bob Proulx  <bob@proulx.com>
62808
62809         Enable use of older two part flavor 'git describe'.
62810         * build-aux/git-version-gen: If using the older two part flavor of
62811         git version then recreate the third part now present in the
62812         newer three part flavor of git describe.
62813
62814 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62815
62816         * lib/fts.c (fts_build): Typo correction to comment.
62817
62818 2008-02-17  Bruno Haible  <bruno@clisp.org>
62819
62820         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62821         generating no-op conflicts.
62822
62823 2008-02-17  Bruno Haible  <bruno@clisp.org>
62824
62825         Speed up by 10%.
62826         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62827         result_entries, rather than an index-based loop.
62828
62829 2008-02-17  Bruno Haible  <bruno@clisp.org>
62830
62831         Speed up by 25%.
62832         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62833         'hashcode_cached'.
62834         (entry_create): New function.
62835         (entry_hashcode): Use the cached hashcode if possible.
62836         (read_changelog_file, try_split_merged_entry): Use entry_create.
62837
62838 2008-02-17  Bruno Haible  <bruno@clisp.org>
62839
62840         Speed up from O(n^2) to O(n) for long ChangeLog files.
62841         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62842         (read_changelog_file): Change implementation of entries_reversed list
62843         to rbtreehash.
62844         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62845
62846 2008-02-17  Bruno Haible  <bruno@clisp.org>
62847
62848         New option --split-merged-entry.
62849         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62850         (find_paragraph_end, try_split_merged_entry): New functions.
62851         (long_options): Add option --split-merged-entry.
62852         (usage): Document option --split-merged-entry.
62853         (main): Implement option --split-merged-entry.
62854         Reported by Eric Blake.
62855
62856 2008-02-17  Bruno Haible  <bruno@clisp.org>
62857
62858         * lib/git-merge-changelog.c: Include c-strstr.h.
62859         (main): Support the "git pull --rebase" situation.
62860         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62861         Reported by Eric Blake.
62862
62863 2008-02-16  Eric Blake  <ebb9@byu.net>
62864
62865         Avoid doubling \ in common case of "c-maybe" quoting style.
62866         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62867         eliding outer quotes.
62868         * lib/quotearg.h: Document this.
62869         * tests/test-quotearg.c (result_strings, inputs, results_g)
62870         (flag_results, locale_results): Test it by adding a new string to
62871         each test group.
62872         (compare_strings): Test new string.
62873
62874 2008-02-13  Eric Blake  <ebb9@byu.net>
62875
62876         Avoid trigraph quoting in default output.
62877         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62878         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62879         unless explicitly requested.
62880         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62881
62882 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62883
62884         Don't rely on signed integer overflowing to negative value.
62885         * lib/getugroups.c (getugroups): Include <limits.h>.
62886         Instead, compare against INT_MAX, and increment only if the test passes.
62887
62888 2008-02-13  Jim Meyering  <meyering@redhat.com>
62889         and Eric Blake  <ebb9@byu.net>
62890
62891         Avoid shadowing warning and compile errors on Linux.
62892         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62893         forwarding macros on Linux.
62894         (dcgettext): Define a stub, for Linux.
62895         (results_g, main): Avoid warnings.
62896
62897 2008-02-12  Eric Blake  <ebb9@byu.net>
62898
62899         Silence warning in last patch.
62900         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62901
62902         Quotearg part 4: add tests, fix c-maybe colon quoting.
62903         * lib/quotearg.h: Improve documentation.
62904         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62905         escapes when adding outer quotes.  When quoting trigraphs, use
62906         valid C notation.  When quoting NUL, omit extra characters if next
62907         character is not digit.  Alter prototype.
62908         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62909         callers.
62910         * modules/quotearg-tests: New module.
62911         * tests/test-quotearg.c: New test.
62912
62913 2008-02-07  Eric Blake  <ebb9@byu.net>
62914
62915         Quotearg part 3: add flag to control outer quote elision.
62916         * lib/quotearg.h (c_maybe_quoting_style): New style.
62917         (enum quoting_flags): Better documentation of flags.
62918         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62919         c-maybe style.
62920         (quotearg_buffer_restyled): Handle new flag to elide outer
62921         quotes.
62922
62923         Quotearg part 2: add flag that can control NUL elision.
62924         * lib/quotearg.h (set_quoting_flags): New prototype.
62925         * lib/quotearg.c (struct quoting_options): Add flag field.
62926         (set_quoting_flags): New function.
62927         (quotearg_buffer_restyled): Add flags parameter.
62928         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62929         (quotearg_n_options): Set the flag, since length cannot be
62930         returned.
62931         (quoting_options_from_style): Default flags correctly.
62932
62933         Quotearg part 1: more wrappers, restore quotearg_char state.
62934         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62935         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62936         (quotearg_colon_mem): New wrappers.
62937         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62938         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62939         functions.
62940         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62941         (quotearg_colon_mem): New functions.
62942
62943 2008-02-11  Bruno Haible  <bruno@clisp.org>
62944
62945         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62946         library in the current directory: it does not work with parallel make.
62947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62948
62949 2008-02-11  Bruno Haible  <bruno@clisp.org>
62950
62951         * .gitattributes: New file.
62952
62953 2008-02-11  Jim Meyering  <meyering@redhat.com>
62954
62955         useless-if-before-free: Fix reversed exit values.
62956         * build-aux/useless-if-before-free: Use correct values
62957         for EXIT_MATCH and EXIT_NO_MATCH.
62958
62959         * build-aux/useless-if-before-free: Close stdout carefully.
62960
62961 2008-02-10  Bruno Haible  <bruno@clisp.org>
62962
62963         New module 'git-merge-changelog'.
62964         * modules/git-merge-changelog: New file.
62965         * lib/git-merge-changelog.c: New file.
62966
62967 2008-02-10  Jim Meyering  <meyering@redhat.com>
62968
62969         useless-if-before-free: New option: --list (-l).
62970
62971         useless-if-before-free: Don't exit immediately upon open failure.
62972         * build-aux/useless-if-before-free: Exit 2 for errors.
62973         Upon failure to open a file, don't exit immediately.
62974         Rather, just warn and continue with any remaining files.
62975
62976 2008-02-10  Bruno Haible  <bruno@clisp.org>
62977
62978         New abstract list operation 'node_set_value'.
62979         * lib/gl_list.h (gl_list_node_set_value): New function.
62980         (struct gl_list_implementation): New field node_set_value.
62981         * lib/gl_list.c (gl_list_node_set_value): New function.
62982         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62983         (gl_array_list_implementation): Update.
62984         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62985         (gl_carray_list_implementation): Update.
62986         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62987         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62988         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62989         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62990         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62991         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62992         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62993         Update.
62994         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62995         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62996         (gl_sublist_list_implementation): Update.
62997
62998 2008-02-10  Bruno Haible  <bruno@clisp.org>
62999
63000         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63001         Needed when ELEMENT is #defined to 'some_type *'.
63002
63003 2008-02-10  Jim Meyering  <meyering@redhat.com>
63004
63005         New script and module: useless-if-before-free
63006         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63007         * build-aux/useless-if-before-free: New file.
63008         * modules/useless-if-before-free: New file.
63009
63010         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63011
63012         xstrtol_error: Fix typo.
63013         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63014         s/exit_failure/exit_status/.
63015
63016 2008-02-09  Jim Meyering  <meyering@redhat.com>
63017
63018         New script and module: gitlog-to-changelog
63019         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63020         * modules/gitlog-to-changelog: New file.
63021         * build-aux/gitlog-to-changelog: New file.
63022
63023 2008-02-08  Jim Meyering  <meyering@redhat.com>
63024
63025         Avoid two "parameter unused" warnings.
63026         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63027         Mark "st" as used.
63028
63029         Use "git COMMAND", not "git-COMMAND".
63030         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63031         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63032         * build-aux/git-version-gen: Use "git status", not "git-status".
63033
63034 2008-02-07  Bruno Haible  <bruno@clisp.org>
63035
63036         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63037         Avoids a crash on Windows Vista.
63038         Reported by Adam Strzelecki <ono@java.pl> via
63039         Simon Josefsson <simon@josefsson.org>.
63040
63041 2008-02-06  Bruno Haible  <bruno@clisp.org>
63042
63043         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63044         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63045         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63047         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63049         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63050         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63055         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63058         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63059         left-adjust flag.
63060         * tests/test-snprintf-posix.h (test_function): Likewise.
63061         * tests/test-sprintf-posix.h (test_function): Likewise.
63062         * tests/test-vasprintf-posix.c (test_function): Likewise.
63063         * doc/posix-functions/fprintf.texi: Update.
63064         * doc/posix-functions/printf.texi: Update.
63065         * doc/posix-functions/snprintf.texi: Update.
63066         * doc/posix-functions/sprintf.texi: Update.
63067         * doc/posix-functions/vfprintf.texi: Update.
63068         * doc/posix-functions/vprintf.texi: Update.
63069         * doc/posix-functions/vsnprintf.texi: Update.
63070         * doc/posix-functions/vsprintf.texi: Update.
63071         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63072
63073 2008-02-06  Bruno Haible  <bruno@clisp.org>
63074
63075         Fix bug introduced on 2008-01-26.
63076         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63077
63078 2008-02-06  Bruno Haible  <bruno@clisp.org>
63079
63080         Fix bug introduced on 2007-06-10.
63081         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63082         !NEED_PRINTF_FLAG_ZERO.
63083
63084 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63085
63086         getloadavg: use libperfstat on AIX5
63087         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63088
63089 2008-02-03  Bruno Haible  <bruno@clisp.org>
63090
63091         * lib/diffseq.h: Add comments about required #includes.
63092         Reported by Michael Biggs <gnulib@doubleplum.net>.
63093
63094 2008-02-01  Bruno Haible  <bruno@clisp.org>
63095
63096         * users.txt: Add gnuit.
63097
63098 2008-01-31  Bruno Haible  <bruno@clisp.org>
63099
63100         * lib/md4.c (set_uint32): Mark as inline.
63101         * lib/md5.c (set_uint32): Likewise.
63102         * lib/sha1.c (set_uint32): Likewise.
63103         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63104         * m4/md5.m4 (gl_MD5): Likewise.
63105         * m4/sha1.m4 (gl_SHA1): Likewise.
63106
63107 2008-01-31  Jim Meyering  <meyering@redhat.com>
63108
63109         Use "sizeof VAR", rather than a literal "4".
63110         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63111         * lib/md4.c (md4_read_ctx): Likewise.
63112         * lib/sha1.c (sha1_read_ctx): Likewise.
63113
63114 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63115
63116         * tests/test-sha1.c: New file, based on test-md5.c.
63117
63118         * modules/crypto/sha1-tests: New file.
63119
63120 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63121
63122         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63123
63124 2008-01-31  Jim Meyering  <meyering@redhat.com>
63125
63126         Prefer "sizeof v" over the equivalent "4".
63127         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63128         * lib/md5.c (set_uint32): Likewise.
63129         * lib/sha1.c (set_uint32): Likewise.
63130
63131 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63132
63133         * lib/sha1.c (set_uint32): Mark function as static.
63134
63135 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63136
63137         md2: clarify comments to say that alignment is not required.
63138         * lib/md2.h: Remove warning about alignment in comment.
63139         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63140         never been required.
63141
63142 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63143
63144         md4: adapt alignment constraint fix from sha1.
63145         * lib/md4.c (set_uint32): New function, from sha1.c
63146         (md4_read_ctx): Use it.
63147         (md4_finish_ctx): Doc fix.
63148         * lib/md4.h: Doc fix.
63149
63150 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63151
63152         md5: adapt alignment constraint fix from sha1.
63153         * lib/md5.c (set_uint32): New function, from sha1.c
63154         (md5_read_ctx): Use it.
63155         (md5_finish_ctx): Doc fix.
63156         * lib/md5.h: Doc fix.
63157
63158 2008-01-30  Peter Palfrader  <weasel@debian.org>
63159
63160         sha1: remove the result buffer alignment constraint
63161         * lib/sha1.c (set_uint32): New function.
63162         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63163         constraint.
63164         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63165         * lib/sha1.h: Likewise.
63166
63167 2008-01-30  Andreas Schwab  <schwab@suse.de>
63168             Bruno Haible  <bruno@clisp.org>
63169
63170         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63171         correct definition of LDBL_MIN_EXP.
63172
63173 2008-01-30  Karl Berry  <karl@gnu.org>
63174
63175         * config/srclist-update: try to preserve x bit on updates.
63176         * config/srclistvars.sh: update for karl.
63177
63178 2008-01-29  Jim Meyering  <meyering@redhat.com>
63179
63180         vasnprintf.c: Avoid warning about unused label
63181         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63182         "overflow" label definition and associated code with the
63183         same cpp condition that guards the sole use of that label.
63184
63185 2008-01-26  Bruno Haible  <bruno@clisp.org>
63186
63187         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63188         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63189         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63190         * lib/isnanl-nolibm.h (isnanl): Likewise.
63191         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63192
63193 2008-01-26  Bruno Haible  <bruno@clisp.org>
63194
63195         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63196         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63197
63198 2008-01-26  Bruno Haible  <bruno@clisp.org>
63199
63200         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63201         GCC >= 4.0 built-in.
63202         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63203
63204 2008-01-26  Bruno Haible  <bruno@clisp.org>
63205
63206         Rename isnan, applicable to 'double' only, to isnand.
63207         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63208         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63209         (configure.ac): Update.
63210         (Include): Replace "isnan.h" with "isnand.h".
63211         * m4/isnand.m4: Renamed from m4/isnan.m4.
63212         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63213         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63214         instead of isnan.c.
63215         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63216         instead of HAVE_ISNAN_IN_LIBC.
63217         (isnand): Renamed from isnan.
63218         * lib/isnand.c: New file.
63219         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63220         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63221         (Makefile.am): Update.
63222         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63223         Include isnand.h instead of isnan.h.
63224         (main): Test isnand instead of isnan.
63225         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63226         isnan-nolibm.
63227         * modules/frexp (Depends-on): Likewise.
63228         * modules/frexp-tests (Depends-on): Likewise.
63229         * modules/frexp-nolibm (Depends-on): Likewise.
63230         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63231         * modules/isfinite (Depends-on): Likewise.
63232         * modules/round-tests (Depends-on): Likewise.
63233         * modules/signbit (Depends-on): Likewise.
63234         * modules/signbit-tests (Depends-on): Likewise.
63235         * modules/snprintf-posix (Depends-on): Likewise.
63236         * modules/sprintf-posix (Depends-on): Likewise.
63237         * modules/trunc-tests (Depends-on): Likewise.
63238         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63239         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63240         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63241         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63242         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63243         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63244         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63245         * modules/vasnprintf-posix (Depends-on): Likewise.
63246         * modules/vasprintf-posix (Depends-on): Likewise.
63247         * modules/vfprintf-posix (Depends-on): Likewise.
63248         * modules/vsnprintf-posix (Depends-on): Likewise.
63249         * modules/vsprintf-posix (Depends-on): Likewise.
63250         * lib/frexp.c: Include isnand.h instead of isnan.h.
63251         (ISNAN): Set to isnand instead of isnan.
63252         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63253         (gl_isfinited): Use isnand instead of isnan.
63254         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63255         (gl_signbitd): Use isnand instead of isnan.
63256         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63257         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63258         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63259         (main): Use isnand instead of isnan.
63260         * tests/test-round1.c: Include isnand.h.
63261         (main): Use isnand instead of isnan.
63262         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63263         (ISNAN): Set to isnand instead of isnan.
63264         * tests/test-trunc1.c: Include isnand.h.
63265         (main): Use isnand instead of isnan.
63266         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63267         (equal): Use isnand instead of isnan.
63268         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63269         isnand-nolibm.
63270         * NEWS: Mention the change.
63271
63272 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63273             Bruno Haible  <bruno@clisp.org>
63274
63275         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63276         the GCC builtins for signbits are present and set
63277         REPLACE_SIGNBIT_USING_GCC if so.
63278         * lib/math.in.h (signbit): Define using GCC builtins if
63279         REPLACE_SIGNBIT_USING_GCC is set.
63280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63281         REPLACE_SIGNBIT_USING_GCC.
63282         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63283
63284 2008-01-25  Jim Meyering  <meyering@redhat.com>
63285
63286         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63287         * lib/poll.c: Include <config.h>, not "config.h".
63288         * tests/test-getaddrinfo.c: Likewise.
63289
63290 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63291
63292         * modules/sockets-tests: New file.
63293
63294 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63295
63296         * modules/sockets: New module, can be used to call WSA_Startup and
63297         WSA_Cleanup when needed.
63298
63299         * lib/sockets.h, lib/sockets.c: New files.
63300
63301         * m4/sockets.m4: New file.
63302
63303         * tests/test-sockets.c: New file.
63304
63305 2008-01-19  Bruno Haible  <bruno@clisp.org>
63306
63307         * doc/posix-headers: Renamed from doc/headers.
63308         * doc/posix-functions: Renamed from doc/functions.
63309         * doc/gnulib.texi: Update.
63310
63311 2008-01-19  Bruno Haible  <bruno@clisp.org>
63312
63313         * doc/glibc-functions/strcasestr.texi: Include contents of
63314         doc/functions/strcasestr.texi, fixing the list of platforms.
63315         * doc/functions/strcasestr.texi: Remove file.
63316
63317 2008-01-19  Bruno Haible  <bruno@clisp.org>
63318
63319         * doc/glibc-functions/memmem.texi: Include contents of
63320         doc/functions/memmem.texi.
63321         * doc/functions/memmem.texi: Remove file.
63322
63323 2008-01-18  Bruno Haible  <bruno@clisp.org>
63324
63325         * doc/glibc-functions/*.texi: New files.
63326         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63327         to use the new files.
63328
63329 2008-01-17  Bruno Haible  <bruno@clisp.org>
63330
63331         * tests/test-gethostname.c (main): Fix printf statement.
63332
63333 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63334
63335         * modules/gethostname-tests: New file.
63336
63337         * tests/test-gethostname.c: New file.
63338
63339 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63340
63341         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63342         used by the UNAME case.  Reported by Bruno Haible
63343         <bruno@clisp.org>.
63344
63345 2008-01-17  Eric Blake  <ebb9@byu.net>
63346
63347         Convert c-strcasestr to be more efficient.
63348         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63349         (Depends-on): Add c-strcase, remove malloca, strnlen.
63350         * tests/test-c-strcasestr.c (main): Enhance test.
63351         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63352
63353 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63354
63355         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63356         Use it in creating po/Makevars.
63357
63358 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63359
63360         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63361         Applications that requires it should initialize libgcrypt
63362         manually.
63363
63364 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63365
63366         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63367
63368 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         Fix problem with getdate on mingw32 reported by Simon Josefsson
63371         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63372         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63373         tzname", when deciding whether to declare tzname.
63374         * lib/strftime.c (tzname): Likewise.
63375
63376 2008-01-15  Bruno Haible  <bruno@clisp.org>
63377
63378         Work around a MacOS X 10.5 bug in frexpl().
63379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63380         * doc/functions/frexpl.texi: Document the bug.
63381         Reported by Elias Pipping <pipping@gentoo.org>.
63382
63383 2008-01-14  Eric Blake  <ebb9@byu.net>
63384
63385         Touch up previous patch.
63386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63387         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63388
63389         Convert strcasestr module to use Two-Way algorithm.
63390         * modules/strcasestr-simple: New module, based on the old
63391         strcasestr, but with Two-Way rather than KMP.
63392         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63393         * lib/string.in.h (rpl_strcasestr): Declare.
63394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63395         performance.
63396         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63397         * modules/string (Makefile.am): Support strcasestr.
63398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63399         * modules/strcasestr-tests (Depends-on): Check for alarm.
63400         * tests/test-strcasestr.c: Augment test.
63401         * lib/str-two-way.h: Clean up stray macro.
63402         * NEWS: Document new module.
63403         * MODULES.html.sh (string handling): Likewise.
63404         * doc/functions/strcasestr.texi: New file.
63405         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63406         here, since it is not a POSIX function.
63407
63408 2008-01-14  Colin Watson  <cjwatson@debian.org>
63409             Bruno Haible  <bruno@clisp.org>
63410
63411         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63412         works fine; if not, set REPLACE_STRSIGNAL.
63413         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63415         REPLACE_STRSIGNAL.
63416         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63417         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63418         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63419
63420 2008-01-14  Bruno Haible  <bruno@clisp.org>
63421
63422         * modules/strsignal (Include): Change to <string.h>.
63423
63424 2008-01-14  Colin Watson  <cjwatson@debian.org>
63425
63426         * modules/argp (Notice): Add a notice recommending to change
63427         XGETTEXT_OPTIONS.
63428         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63429
63430 2008-01-13  Colin Watson  <cjwatson@debian.org>
63431
63432         * modules/strsignal-tests: New file.
63433         * tests/test-strsignal.c: New file.
63434
63435         * lib/strsignal.c: New file, from glibc with modifications.
63436         * lib/siglist.h: New file, from glibc with modifications.
63437         * lib/string.in.h (strsignal): New declaration.
63438         * m4/strsignal.m4: New file.
63439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63440         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63441         * modules/strsignal: New file.
63442         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63443         HAVE_DECL_STRSIGNAL.
63444
63445 2008-01-13  Bruno Haible  <bruno@clisp.org>
63446
63447         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63448         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63449         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63450         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63451
63452 2008-01-13  Bruno Haible  <bruno@clisp.org>
63453
63454         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63455         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63456         * lib/argp.h (__attribute__): Likewise.
63457         * lib/c-stack.c (__attribute__): Likewise.
63458         * lib/error.h (__attribute__): Likewise.
63459         * lib/fts.c (__attribute__): Likewise.
63460         * lib/openat.h (__attribute__): Likewise.
63461         * lib/stdio.in.h (__attribute__): Likewise.
63462         * lib/string.in.h (__attribute__): Likewise.
63463         * lib/utimens.c (__attribute__): Likewise.
63464         * lib/vasnprintf.h (__attribute__): Likewise.
63465         * lib/xalloc.h (__attribute__): Likewise.
63466         * lib/xprintf.h (__attribute__): Likewise.
63467         * lib/xstrtol.h (__attribute__): Likewise.
63468         * lib/xvasprintf.h (__attribute__): Likewise.
63469
63470 2008-01-12  Bruno Haible  <bruno@clisp.org>
63471
63472         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63473         * doc/glibc-headers/a.out.texi: New file.
63474         * doc/glibc-headers/aliases.texi: New file.
63475         * doc/glibc-headers/alloca.texi: New file.
63476         * doc/glibc-headers/ar.texi: New file.
63477         * doc/glibc-headers/argp.texi: New file.
63478         * doc/glibc-headers/argz.texi: New file.
63479         * doc/glibc-headers/byteswap.texi: New file.
63480         * doc/glibc-headers/crypt.texi: New file.
63481         * doc/glibc-headers/endian.texi: New file.
63482         * doc/glibc-headers/envz.texi: New file.
63483         * doc/glibc-headers/err.texi: New file.
63484         * doc/glibc-headers/error.texi: New file.
63485         * doc/glibc-headers/execinfo.texi: New file.
63486         * doc/glibc-headers/fpu_control.texi: New file.
63487         * doc/glibc-headers/fstab.texi: New file.
63488         * doc/glibc-headers/fts.texi: New file.
63489         * doc/glibc-headers/getopt.texi: New file.
63490         * doc/glibc-headers/ieee754.texi: New file.
63491         * doc/glibc-headers/ifaddrs.texi: New file.
63492         * doc/glibc-headers/libintl.texi: New file.
63493         * doc/glibc-headers/mcheck.texi: New file.
63494         * doc/glibc-headers/mntent.texi: New file.
63495         * doc/glibc-headers/obstack.texi: New file.
63496         * doc/glibc-headers/paths.texi: New file.
63497         * doc/glibc-headers/printf.texi: New file.
63498         * doc/glibc-headers/pty.texi: New file.
63499         * doc/glibc-headers/resolv.texi: New file.
63500         * doc/glibc-headers/shadow.texi: New file.
63501         * doc/glibc-headers/sysexits.texi: New file.
63502         * doc/glibc-headers/ttyent.texi: New file.
63503
63504 2008-01-12  Jim Meyering  <meyering@redhat.com>
63505
63506         announce-gen: emit Gnulib's git-based version string.
63507         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63508         New option --gnulib-version=V, where V is expected to be
63509         the output of running git describe in the gnulib directory.
63510         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63511         not useful, and plan to stop publishing an xdelta file with each
63512         coreutils release.
63513
63514         * build-aux/announce-gen: Also check for lzma-compressed files.
63515
63516 2008-01-11  Bruno Haible  <bruno@clisp.org>
63517
63518         * tests/test-memmem.c (main): Increase maximum allowed time.
63519         * tests/test-strstr.c (main): Likewise.
63520
63521 2008-01-11  Bruno Haible  <bruno@clisp.org>
63522
63523         * doc/functions/memmem.texi: Add more precisions about platforms.
63524         * doc/functions/strstr.texi: Likewise.
63525
63526 2008-01-10  Eric Blake  <ebb9@byu.net>
63527
63528         * m4/strstr.m4: Delete cruft from copy-n-paste.
63529         Reported by Bruno Haible.
63530
63531 2008-01-10  Bruno Haible  <bruno@clisp.org>
63532
63533         Make c-strstr rely on strstr.
63534         * lib/c-strstr.c: Don't include str-kmp.h.
63535         (c_strstr): Define in terms of strstr.
63536         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63537         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63538
63539 2008-01-10  Bruno Haible  <bruno@clisp.org>
63540
63541         * doc/gnulib.texi (String Functions in C Locale): New section.
63542         * doc/c-ctype.texi: New file.
63543         * doc/c-strcase.texi: New file.
63544         * doc/c-strcaseeq.texi: New file.
63545         * doc/c-strcasestr.texi: New file.
63546         * doc/c-strstr.texi: New file.
63547         * doc/c-strtod.texi: New file.
63548         * doc/c-strtold.texi: New file.
63549
63550 2008-01-10  Eric Blake  <ebb9@byu.net>
63551
63552         * lib/relocatable.h: Fix a comment.
63553
63554 2008-01-10  Eric Blake  <ebb9@byu.net>
63555
63556         Share two-way algorithm.
63557         * lib/str-two-way.h: New file, merged from...
63558         * lib/memmem.c: ...here...
63559         * lib/strstr.c: ...and here.
63560         * modules/memmem (Files): Use it.
63561         * modules/strstr (Files): Likewise.
63562
63563         Avoid quadratic strstr implementations.
63564         * lib/strstr.c: New file.
63565         * m4/strstr.m4: Likewise.
63566         * modules/strstr: Likewise.
63567         * modules/strstr-tests: Likewise.
63568         * tests/test-strstr.c: Likewise.
63569         * lib/string.in.h (rpl_strstr): Declare.
63570         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63572         * modules/string (Makefile.am): Likewise.
63573         * MODULES.html.sh (string handling): Mention new module.
63574         * doc/functions/strstr.texi (strstr): Document the bug.
63575
63576 2008-01-10  Bruno Haible  <bruno@clisp.org>
63577
63578         * lib/relocatable.h (relocate): State whether result is freshly
63579         allocated or not.
63580         * lib/relocatable.c (relocate): Return a freshly allocated string
63581         instead of a pointer to a privately held string.
63582         Reported by Sylvain Beucler <beuc@gnu.org>.
63583
63584 2008-01-10  Colin Watson  <cjwatson@debian.org>
63585
63586         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63587         s/S_ISNLK/S_ISLNK/.
63588
63589 2008-01-09  Bruno Haible  <bruno@clisp.org>
63590
63591         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63592         and other files.
63593         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63594         if it's only a guess.
63595         * modules/memmem: Simplify by depending on memmem-simple.
63596
63597 2008-01-09  Bruno Haible  <bruno@clisp.org>
63598
63599         Work around OpenBSD 4.0 tdelete() bug.
63600         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63601         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63602         macros and don't redefine the enum values.
63603         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63604         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63605         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63606
63607 2008-01-09  Bruno Haible  <bruno@clisp.org>
63608
63609         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63610         (main): Don't perform the tests if setlocale did not install a UTF-8
63611         locale. Needed on OpenBSD 4.0.
63612         * modules/wcwidth-tests (Depends-on): Add localcharset.
63613
63614 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63617         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63618         * NEWS: announce this.
63619         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63620
63621 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63622         and Eric Blake  <ebb9@byu.net>
63623
63624         Add memmem-simple module.
63625         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63626         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63627         * modules/memmem-simple: New file.
63628         * modules/memmem (Description): Tweak.
63629         * MODULES.html.sh (string handling): Mention new module.
63630         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63631         addressed by memmem-simple.
63632         * NEWS: Document the difference.
63633
63634 2008-01-09  Eric Blake  <ebb9@byu.net>
63635
63636         Give gcc some memmem optimization hints.
63637         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63638         (strcasestr): Declare as pure.
63639         * modules/memmem (Maintainer): Claim my implementation.
63640
63641 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63642
63643         Support AIX 6.1 and higher.
63644         * build-aux/config.libpath: Likewise.
63645         * build-aux/config.rpath: Likewise.
63646
63647 2008-01-08  Jim Meyering  <meyering@redhat.com>
63648             Bruno Haible  <bruno@clisp.org>
63649
63650         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63651         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63652         Reported by Peter Fales in
63653         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63654
63655 2008-01-08  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/unictype/category-of (Depends-on): Add
63658         unictype/category-none.
63659         * modules/unictype/category-and-tests (Depends-on): Add
63660         unictype/category-{L,N,Lu,Nd}.
63661         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63662         * modules/unictype/category-or-tests (Depends-on): Add
63663         unictype/category-{L,N}.
63664         * modules/unictype/category-name-tests (Depends-on): Add
63665         unictype/category-{Z,Nl}.
63666         Reported by Simon Josefsson.
63667
63668 2008-01-08  Bruno Haible  <bruno@clisp.org>
63669
63670         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63671         convention better.
63672         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63673         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63674         Reported by Peter Miller <millerp@canb.auug.org.au>.
63675
63676 2008-01-08  Eric Blake  <ebb9@byu.net>
63677
63678         Rewrite memmem to guarantee linear complexity without malloc.
63679         * lib/memmem.c (memmem): Use Two-Way rather than
63680         Knuth-Morris-Pratt, to allow O(1) space usage.
63681         (critical_factorization, two_way_short_needle)
63682         (two_way_long_needle): New functions.
63683         (knuth_morris_pratt): Delete.
63684         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63685         Add stdint.
63686         * tests/test-memmem.c (main): Add tests for periodic needle and
63687         sublinear performance.
63688         * doc/functions/memmem.texi (memmem): Document other deficiencies
63689         in cygwin and older glibc.
63690
63691 2008-01-08  Bruno Haible  <bruno@clisp.org>
63692
63693         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63694         augmentation.
63695
63696 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63697
63698         Add a configure time option: --disable-acl.
63699         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63700         AC_ARG_ENABLE(acl).
63701
63702 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63703
63704         * tests/test-localename.c: Don't include obsolete "setenv.h".
63705
63706         * modules/localename-tests (Depends-on): Need unsetenv.
63707
63708 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63709
63710         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63711
63712 2008-01-06  Colin Watson  <cjwatson@debian.org>
63713
63714         * users.txt: Add man-db.
63715
63716 2008-01-07  Bruno Haible  <bruno@clisp.org>
63717
63718         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63719         previous section name.
63720
63721 2008-01-07  Bruno Haible  <bruno@clisp.org>
63722
63723         * lib/progname.c (set_program_name): Don't strip off a leading
63724         "lt-" prefix outside a .libs directory.
63725         Suggested by Paul Eggert.
63726
63727 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63728             Bruno Haible  <bruno@clisp.org>
63729
63730         Improve memory cleanup in 'relocatable' module.
63731         * lib/relocatable.h (compute_curr_prefix): Change return type to
63732         'char *'.
63733         * lib/relocatable.c (compute_curr_prefix): Change return type to
63734         'char *'. Free curr_installdir after use.
63735         (relocate): Free curr_prefix_better after use.
63736         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63737
63738 2008-01-01  Bruno Haible  <bruno@clisp.org>
63739
63740         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63741         failure on older glibc systems.
63742         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63743
63744 2008-01-05  Eric Blake  <ebb9@byu.net>
63745
63746         Avoid quadratic system memmem.
63747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63748         Reported by Ralf Wildenhues.
63749
63750         Fix memmem test for mingw.
63751         * modules/memmem-tests (configure.ac): Check for alarm.
63752         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63753         it.
63754         * doc/functions/memmem.texi: New file.
63755         * doc/gnulib.texi (Function Substitutes): Add memmem.
63756         Reported by Bruno Haible.
63757
63758 2008-01-04  Bruno Haible  <bruno@clisp.org>
63759
63760         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63761         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63762         gl_HEADER_STRING_H_DEFAULTS.
63763
63764 2008-01-04  Eric Blake  <ebb9@byu.net>
63765
63766         Shorten duration of memmem test.
63767         * tests/test-memmem.c (main): Use alarm to declare failure if test
63768         is taking too long.
63769         Reported by Ralf Wildenhues.
63770
63771 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63772
63773         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63774         string, needed by strerror.
63775
63776 2008-01-03  Colin Watson  <cjwatson@debian.org>
63777             Bruno Haible  <bruno@clisp.org>
63778
63779         * doc/gnulib-tool.texi (Localization): New section.
63780
63781 2008-01-02  Bruno Haible  <bruno@clisp.org>
63782
63783         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63784         variables to 'unsigned char *' type.
63785         Reported by Paul Eggert.
63786
63787 2008-01-02  Jim Meyering  <jim@meyering.net>
63788
63789         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63790
63791 2007-12-31  Jim Meyering  <jim@meyering.net>
63792
63793         Avoid use of private FTS type name.
63794         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63795
63796 2007-12-30  Karl Berry  <karl@gnu.org>
63797
63798         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63799         work around defect in Texinfo and/or the standalone Info browser.
63800
63801 2007-12-30  Bruno Haible  <bruno@clisp.org>
63802
63803         Unify 5 copies of the KMP code.
63804         * lib/str-kmp.h: New file.
63805         * lib/c-strcasestr.c: Include str-kmp.h.
63806         (knuth_morris_pratt): Remove function.
63807         (c_strcasestr): Update.
63808         * lib/c-strstr.c: Include str-kmp.h.
63809         (knuth_morris_pratt): Remove function.
63810         (c_strcasestr): Update.
63811         * lib/mbscasestr.c: Include str-kmp.h.
63812         (knuth_morris_pratt_unibyte): Remove function.
63813         * lib/mbsstr.c: Include str-kmp.h.
63814         (knuth_morris_pratt_unibyte): Remove function.
63815         * lib/strcasestr.c: Include str-kmp.h.
63816         (knuth_morris_pratt): Remove function.
63817         (strcasestr): Update.
63818         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63819         * modules/c-strstr (Files): Likewise.
63820         * modules/mbscasestr (Files): Likewise.
63821         * modules/mbsstr (Files): Likewise.
63822         * modules/strcasestr (Files): Likewise.
63823         Suggested by Paul Eggert.
63824
63825 2007-12-30  Bruno Haible  <bruno@clisp.org>
63826
63827         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63828         defined.
63829
63830 2007-12-30  Bruno Haible  <bruno@clisp.org>
63831
63832         * lib/xmalloca.h: Include xalloc.h.
63833         (xnmalloca): New macro.
63834
63835 2007-12-30  Bruno Haible  <bruno@clisp.org>
63836
63837         * lib/malloca.h (nmalloca): New macro.
63838         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63839         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63840         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63841         knuth_morris_pratt_multibyte): Likewise.
63842         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63843         knuth_morris_pratt_multibyte): Likewise.
63844         * lib/memmem.c (knuth_morris_pratt): Likewise.
63845         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63846
63847 2007-12-25  Bruno Haible  <bruno@clisp.org>
63848
63849         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63850         * lib/glob.c: Don't include openat.h.
63851         (link_exists2_p): Add back the code that deals with the
63852         !GLOB_ALTDIRFUNC case.
63853         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63854         let it do the filename concatenation.
63855         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63856         * modules/glob (Depends-on): Remove openat.
63857
63858 2007-12-31  Bruno Haible  <bruno@clisp.org>
63859
63860         * modules/dirfd (License): Change to LGPLv2+.
63861         Approved by Jim Meyering.
63862
63863 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63864
63865         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63866         when multiplying M by sizeof (size_t).
63867
63868 2007-12-10  Martin Lambers  <marlam@marlam.de>
63869
63870         Override getpagesize on mingw.
63871         * lib/getpagesize.c: New file.
63872         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63873         * modules/getpagesize (Files): Add lib/getpagesize.c.
63874         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63876         REPLACE_GETPAGESIZE.
63877         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63878
63879 2007-12-25  Bruno Haible  <bruno@clisp.org>
63880
63881         * modules/localcharset (Notice): New field.
63882         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63883         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63884
63885 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63886             Bruno Haible  <bruno@clisp.org>
63887
63888         Avoid using the syntax symbol() in formatted documentation.
63889         * MODULES.html.sh (func_module): When replacing symbol() with a
63890         hyperlink, remove the parentheses. Show an error if some remain.
63891         Recognize and render the '...' syntax.
63892         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63893         Rework. Add paragraph about GCC's inlining.
63894         * doc/alloca.texi: Likewise.
63895         * doc/error.texi: Remove parentheses from symbol reference.
63896         * doc/gnulib-intro.texi: Likewise.
63897         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63898         * modules/fnmatch (Description): Reword to say "the ... function".
63899         * modules/full-read (Description): Likewise.
63900         * modules/full-write (Description): Likewise.
63901         * modules/safe-read (Description): Likewise.
63902         * modules/safe-write (Description): Likewise.
63903         * modules/strchrnul (Description): Likewise.
63904         * modules/trim (Description): Likewise.
63905         * modules/error (Description): Remove parentheses from symbol
63906         references.
63907         * modules/verror (Description): Likewise.
63908         Reported by Karl Berry.
63909
63910 2007-12-25  Bruno Haible  <bruno@clisp.org>
63911
63912         Fixup after 2007-10-16 commit.
63913         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63914
63915 2007-12-24  Bruno Haible  <bruno@clisp.org>
63916
63917         Make --enable-relocatable work with DESTDIR.
63918         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63919         to compute installdir from destprog.
63920         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63921         also set the RELOC_DESTDIR variable.
63922         Reported by Левашев Иван <octagram@bluebottle.com>.
63923
63924 2007-12-24  Bruno Haible  <bruno@clisp.org>
63925
63926         Fix link error due to xalloc_die().
63927         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63928         of xreadlink.
63929         * lib/relocwrapper.c: Update comments.
63930         * build-aux/install-reloc: Remove xreadlink.c from file list.
63931         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63932         xreadlink.c.
63933         Reported by Левашев Иван <octagram@bluebottle.com>.
63934
63935 2007-12-24  Bruno Haible  <bruno@clisp.org>
63936
63937         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63938         * lib/setenv.h: Remove file.
63939         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63940         lib/setenv.h.
63941         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63942         (Depends-on): Add stdlib.
63943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63944         gl_FUNC_UNSETENV.
63945         (Include): Replace setenv.h with <stdlib.h>.
63946         * modules/unsetenv: New file.
63947         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63948         * lib/unsetenv.c: Include <stdlib.h> first.
63949         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63950         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63951         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63952         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63953         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63954         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63956         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63957         * doc/functions/unsetenv.texi: Update.
63958         * modules/xsetenv (Depends-on): Add unsetenv.
63959         * modules/getdate (Depends-on): Likewise.
63960         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63961         * lib/xsetenv.c: Don't include setenv.h.
63962         * lib/getdate.y: Likewise.
63963         * lib/relocwrapper.c: Likewise.
63964         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63965         (Depends-on): Add stdlib.
63966         * NEWS: Mention the changes.
63967         Reported by Левашев Иван <octagram@bluebottle.com>.
63968
63969 2007-12-23  Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63972         indentation.
63973
63974 2007-12-23  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/c-strcasestr.c: Add more comments.
63977         * lib/c-strstr.c: Likewise.
63978         * lib/mbscasestr.c: Likewise.
63979         * lib/mbsstr.c: Likewise.
63980         * lib/strcasestr.c: Likewise.
63981         * lib/memmem.c: Likewise.
63982
63983 2007-12-23  Bruno Haible  <bruno@clisp.org>
63984
63985         * tests/test-memmem.c: Include <string.h> first.
63986
63987 2007-12-22  Bruno Haible  <bruno@clisp.org>
63988
63989         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63990         the contents of $testsbase.
63991         Reported by Ralf Wildenhues.
63992
63993 2007-12-22  Bruno Haible  <bruno@clisp.org>
63994
63995         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63996         two variables local_ldadd_before, local_ldadd_last.
63997
63998 2007-12-20  Eric Blake  <ebb9@byu.net>
63999
64000         Work around circular library issue when cross-compiling.
64001         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64002         that progname.o does not need to pull in rpl_memcmp.
64003
64004 2007-12-19  Eric Blake  <ebb9@byu.net>
64005
64006         Fix memmem to avoid O(n^2) worst-case complexity.
64007         * lib/memmem.c (knuth_morris_pratt): New function.
64008         (memmem): Use it if first few naive iterations fail.
64009         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64010         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64011         * modules/memchr (License): Likewise.
64012         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64013         malloca.
64014         * tests/test-memmem.c: Rewrite, borrowing ideas from
64015         test-mbsstr1.c; the old version wouldn't even compile!
64016         * modules/memmem-tests: New file.
64017         * lib/string.in.h (rpl_memmem): Add declaration.
64018         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64020         REPLACE_MEMMEM.
64021
64022 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64025         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64026         before any system include files, and undef after them all.  This
64027         should fix a problem on VMS reported by John E. Malmberg in
64028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64029
64030 2007-12-17  Eric Blake  <ebb9@byu.net>
64031
64032         Revert addition of verify, for BSD/OS.
64033         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64034         can't handle large files, for the sake of obsolete platforms.
64035         * modules/fseeko (Depends-on): Remove verify.
64036         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64037         * doc/functions/ftello.texi (ftello): Likewise.
64038         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64039         Reported by Larry Jones.
64040
64041 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64042
64043         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64044         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64045
64046 2007-12-17  Jim Meyering  <meyering@redhat.com>
64047
64048         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64049         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64050         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64051         * modules/getcwd (Depends-on): Add openat.
64052         Reported by Petr Salinger.
64053
64054 2007-12-17  Bruno Haible  <bruno@clisp.org>
64055
64056         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64057         avoid a segmentation fault of the configure test on x86_64 systems.
64058
64059 2007-12-15  Jim Meyering  <meyering@redhat.com>
64060
64061         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64062
64063 2007-12-13  Eric Blake  <ebb9@byu.net>
64064
64065         Another fseek test.
64066         * tests/test-fseek.c (main): Also test ungetc handling.
64067         * tests/test-fseeko.c (main): Likewise.
64068         * modules/fseeko (Depends-on): Add verify.
64069         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64070         large.
64071         Reported by Larry Jones.
64072
64073         Fix fseeko on mingw.
64074         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64075         seek.
64076
64077         Beef up fseek tests.
64078         * tests/test-fseek.c (main): Also test eof handling.
64079         * tests/test-fseeko.c (main): Likewise.
64080         Reported by Larry Jones.
64081
64082 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64083
64084         Fix fseeko on BSD-based platforms.
64085         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64086         successful seek.
64087
64088 2007-12-12  Eric Blake  <ebb9@byu.net>
64089
64090         Allow circular dependency of separate libtests.a
64091         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64092         when use_libtests.
64093
64094 2007-12-11  Eric Blake  <ebb9@byu.net>
64095
64096         Fix bug with -0.0L in previous patch.
64097         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64098         * tests/test-isnan.c (main): Also test on zeroes.
64099         * tests/test-isnanf.c (main): Likewise.
64100         * tests/test-isnanl.h (main): Likewise.
64101
64102         Detect pseudo-denormals on x86 even when cross-compiling.
64103         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64104         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64105         invalid bit patterns that happen to satisfy ==.
64106
64107         Avoid link failures with separate libtests.a.
64108         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64109         last, to satisfy circular dependencies.
64110
64111 2007-12-11  Eric Blake  <ebb9@byu.net>
64112         and Bruno Haible  <bruno@clisp.org>
64113
64114         Fix OpenBSD 4.0 <float.h> handling of long double.
64115         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64116         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64117         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64118
64119 2007-12-11  Jim Meyering  <meyering@redhat.com>
64120
64121         * users.txt: Add libvirt.
64122
64123         Support versions of autoconf prior to 2.59c.
64124         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64125         if it is not already defined.
64126
64127 2007-12-09  Bruno Haible  <bruno@clisp.org>
64128
64129         Let 'gnulib-tool --import' collect sources needed for the tests in
64130         tests/ rather than in lib/.
64131         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64132         argument. If true, add rules to generate libtests.a, and put libtests.a
64133         into $(LDADD). Consider source files in subdirectories and set
64134         uses_subdirs.
64135         (func_emit_initmacro_start, func_emit_initmacro_end,
64136         func_emit_initmacro_done): Pass all arguments explicitly.
64137         (func_import): Determine two module lists main_modules,
64138         testsrelated_modules. Determine use_libtests. Determine two variables
64139         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64140         instead of just sed_transform_lib_file. Determine two variables
64141         main_files and testsrelated_files. Compute 'files' as the union of
64142         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64143         func_add_or_update. In the generated gnulib-comp.m4, collect the
64144         object files for tests/ in different variables than those for lib/.
64145         Substitute LIBTESTS_LIBDEPS.
64146         (func_create_testdir): Combine the uses_subdirs results from
64147         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64148
64149 2007-12-09  Bruno Haible  <bruno@clisp.org>
64150
64151         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64152         the build-aux directory.
64153
64154 2007-12-09  Bruno Haible  <bruno@clisp.org>
64155
64156         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64157         introduced on 2006-09-09.
64158
64159 2007-12-07  Jim Meyering  <meyering@redhat.com>
64160
64161         Let these macros work also with autoconf-2.59.
64162         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64163         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64164         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64165
64166 2007-12-06  Jim Meyering  <meyering@redhat.com>
64167
64168         Avoid a configure-time syntax error in gl_FUNC_ACL.
64169         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64170         function in each branch, before testing the cache variable.
64171
64172 2007-12-04  Eric Blake  <ebb9@byu.net>
64173
64174         Make scripts executable.
64175         * build-aux/config.guess: Add execute permissions.
64176         * build-aux/config.sub: Likewise.
64177         * build-aux/gendocs.sh: Likewise.
64178
64179         Fix frexp on mingw.
64180         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64181         cross-compiling.
64182         * doc/functions/frexp.texi (frexp): Document the bug.
64183
64184         Make cygwin fseeko check more reliable.
64185         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64186         version numbers, rather than unrelated feature check.
64187         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64188         * doc/functions/ftello.texi (ftello): Likewise.
64189         Reported by Bruno Haible.
64190
64191         * m4/strerror.m4: Bump version number.
64192
64193 2007-12-03  Bruno Haible  <bruno@clisp.org>
64194
64195         * doc/functions/mprotect.texi: Mention the mingw problem.
64196
64197 2007-12-03  Eric Blake  <ebb9@byu.net>
64198
64199         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64200         REPLACE_STRERROR is initialized before this macro.
64201
64202 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64205         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64206         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64207         put -lsec in even for programs other than 'ls'.  This fixes a problem
64208         for gettext reported by Bruno Haible in
64209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64210         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64211         Add support for Solaris 10.  This isn't efficient, but should get the
64212         job done for now.
64213
64214 2007-12-03  James Youngman  <jay@gnu.org>
64215
64216         * doc/regexprops-generic.texi: change "an close-group" to "a
64217         close-group" and "illegal" to "not allowed".
64218
64219 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64220
64221         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64222         pr_byname.h. Needed for the rare case when the maintainer has done
64223         "make maintainer-clean" in the source directory and then attempts a
64224         build outside the source directory.
64225         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64226         scripts_byname.h.
64227
64228 2007-12-02  Martin Lambers <marlam@marlam.de>
64229             Bruno Haible  <bruno@clisp.org>
64230
64231         * lib/getpagesize.h: Remove file.
64232         * lib/unistd.in.h: Include declaration of getpagesize here.
64233         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64234         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64235         HAVE_SYS_PARAM_H.
64236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64237         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64238         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64239         (Depends-on): Add unistd.
64240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64241         (Include): Use <unistd.h> instead of getpagesize.h.
64242         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64243         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64244         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64245         gl_GETPAGESIZE invocation, already handled by module dependency.
64246         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64247
64248 2007-12-02  Bruno Haible  <bruno@clisp.org>
64249
64250         * modules/strings-tests: New file.
64251         * tests/test-strings.c: New file.
64252
64253         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64254         * lib/strings.in.h: New file.
64255         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64256         * m4/strings_h.m4: New file.
64257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64258         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64259         * modules/strings: New file.
64260         * modules/string (Makefile.am): Update.
64261         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64262         Reported by Karl Berry.
64263
64264 2007-12-01  Eric Blake  <ebb9@byu.net>
64265
64266         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64267         accommodate fix in cygwin 1.5.25.
64268
64269 2007-12-01  Jim Meyering  <meyering@redhat.com>
64270
64271         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64272         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64273         that would inhibit utf8-optimization of a regexp containing line-
64274         or buffer-anchors, e.g., `^', `$'.
64275
64276 2007-11-30  Bruno Haible  <bruno@clisp.org>
64277
64278         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64279         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64280         glthread_recursive_lock_init.
64281         * lib/lock.c (glthread_recursive_lock_init)
64282         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64283         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64284
64285 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64286
64287         New function qset_acl, like set_acl but with syscall semantics.
64288         * lib/acl.h (qset_acl): New decl.
64289         * lib/acl.c (qset_acl): New function.
64290         (set_acl): Use new function.  Use more-consistent diagnostics.
64291
64292 2007-11-28  Jim Meyering  <meyering@redhat.com>
64293
64294         * modules/physmem (License): Change from GPL to LGPLv2+.
64295
64296 2007-11-26  Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64299         'long double' type has excess precision.
64300         Reported by Jim Meyering in
64301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64302
64303 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64304
64305         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64306         Sync from <http://gnu.org/licenses>.
64307         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64308         with license text from same location.
64309         * doc/maintain.texi, doc/standards.texi:  Sync from
64310         <http://savannah.gnu.org/projects/gnustandards>.
64311
64312 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64313         and Jim Meyering  <meyering@redhat.com>
64314
64315         Adjust getdate' grammar to accept a slightly more regular language.
64316         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64317         Before, the former was rejected.
64318         * lib/getdate.y (digits_to_date_time): New function, factored
64319         out of ...
64320         (number): ...here.  Just call digits_to_date_time.
64321         (hybrid): New non-terminal to handle an <unsigned number,
64322         signed relative offset> sequence consistently.
64323
64324 2007-11-18  Jim Meyering  <meyering@redhat.com>
64325
64326         Pull my changes from coreutils:
64327         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64328         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64329         use of $gnulib_tool_option_extras, so that it's separated from the
64330         preceding argument.
64331
64332         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64333         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64334         parent destination directories before copying a file into place.
64335
64336 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64337
64338         bootstrap: work also with 4-argument variant of AC_INIT
64339         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64340
64341 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         Port test-getaddrinfo to Solaris.
64344         Problem reported by Bruno Haible in
64345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64346         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64347         explanation of setting 'hints'.
64348         Don't reject an implementation merely because it returns EAI_SERVICE.
64349         (EAI_SERVICE): Define to 0 if not defined.
64350
64351 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64352
64353         The license of gnu-make and posix-shell is now "GPLed build tool".
64354         * modules/gnu-make (License): Likewise.
64355         * modules/posix-shell (License): Likewise.
64356
64357         New module posix-shell, for determining a POSIX shell
64358         or perhaps something that is close enough to a POSIX shell.
64359         * m4/posix-shell.m4: New file.
64360         * modules/posix-shell: New file.
64361
64362         * MODULES.html.sh: Mention new module.
64363
64364         New module gnu-make, for determining whether we're using GNU Make.
64365         * m4/gnu-make.m4: New file.
64366         * modules/gnu-make: New file.
64367         * MODULES.html.sh: Mention new module.
64368
64369 2007-11-14  Jim Meyering  <meyering@redhat.com>
64370
64371         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64372         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64373         use this macro to create a function _definition_.
64374         Remove useless "#undef ARGMATCH_DIE".
64375
64376 2007-11-14  Bruno Haible  <bruno@clisp.org>
64377
64378         * lib/config.charset: Update for OpenBSD 4.1.
64379         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64380
64381 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64382
64383         Document 64-bit #if problems in stdint.texi.
64384         * doc/headers/stdint.texi (stdint.h): Mention problems with
64385         64-bit-#if, and how to work around them.
64386
64387         Don't insist on 'long long int' support in the preprocessor.  It
64388         breaks too many things.  For example, PRIdMAX still uses a 'long
64389         long int' format with the latest Sun compiler, even though
64390         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64391         preprocessor problem.  This causes the latest coreutils to dump
64392         core on Solaris 10 sparc with the Sun C compiler.
64393         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64394         the troublesome expressions at configure-time, not at #if-time.
64395         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64396         preprocessor.
64397         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64398         compile-time C checks, done at 'configure'-time.
64399         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64400         * modules/inttypes (Makefile): Substitute the new symbols that
64401         gl_INTTYPES_H now generates.
64402         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64403
64404 2007-11-12  Bruno Haible  <bruno@clisp.org>
64405
64406         Tests for Unicode character classification functions.
64407
64408         * modules/unictype/bidicategory-byname-tests: New file.
64409         * modules/unictype/bidicategory-name-tests: New file.
64410         * modules/unictype/bidicategory-of-tests: New file.
64411         * modules/unictype/bidicategory-test-tests: New file.
64412         * modules/unictype/block-list-tests: New file.
64413         * modules/unictype/block-of-tests: New file.
64414         * modules/unictype/block-test-tests: New file.
64415         * modules/unictype/category-C-tests: New file.
64416         * modules/unictype/category-Cc-tests: New file.
64417         * modules/unictype/category-Cf-tests: New file.
64418         * modules/unictype/category-Cn-tests: New file.
64419         * modules/unictype/category-Co-tests: New file.
64420         * modules/unictype/category-Cs-tests: New file.
64421         * modules/unictype/category-L-tests: New file.
64422         * modules/unictype/category-Ll-tests: New file.
64423         * modules/unictype/category-Lm-tests: New file.
64424         * modules/unictype/category-Lo-tests: New file.
64425         * modules/unictype/category-Lt-tests: New file.
64426         * modules/unictype/category-Lu-tests: New file.
64427         * modules/unictype/category-M-tests: New file.
64428         * modules/unictype/category-Mc-tests: New file.
64429         * modules/unictype/category-Me-tests: New file.
64430         * modules/unictype/category-Mn-tests: New file.
64431         * modules/unictype/category-N-tests: New file.
64432         * modules/unictype/category-Nd-tests: New file.
64433         * modules/unictype/category-Nl-tests: New file.
64434         * modules/unictype/category-No-tests: New file.
64435         * modules/unictype/category-P-tests: New file.
64436         * modules/unictype/category-Pc-tests: New file.
64437         * modules/unictype/category-Pd-tests: New file.
64438         * modules/unictype/category-Pe-tests: New file.
64439         * modules/unictype/category-Pf-tests: New file.
64440         * modules/unictype/category-Pi-tests: New file.
64441         * modules/unictype/category-Po-tests: New file.
64442         * modules/unictype/category-Ps-tests: New file.
64443         * modules/unictype/category-S-tests: New file.
64444         * modules/unictype/category-Sc-tests: New file.
64445         * modules/unictype/category-Sk-tests: New file.
64446         * modules/unictype/category-Sm-tests: New file.
64447         * modules/unictype/category-So-tests: New file.
64448         * modules/unictype/category-Z-tests: New file.
64449         * modules/unictype/category-Zl-tests: New file.
64450         * modules/unictype/category-Zp-tests: New file.
64451         * modules/unictype/category-Zs-tests: New file.
64452         * modules/unictype/category-and-not-tests: New file.
64453         * modules/unictype/category-and-tests: New file.
64454         * modules/unictype/category-byname-tests: New file.
64455         * modules/unictype/category-name-tests: New file.
64456         * modules/unictype/category-none-tests: New file.
64457         * modules/unictype/category-of-tests: New file.
64458         * modules/unictype/category-or-tests: New file.
64459         * modules/unictype/category-test-withtable-tests: New file.
64460         * modules/unictype/combining-class-tests: New file.
64461         * modules/unictype/ctype-alnum-tests: New file.
64462         * modules/unictype/ctype-alpha-tests: New file.
64463         * modules/unictype/ctype-blank-tests: New file.
64464         * modules/unictype/ctype-cntrl-tests: New file.
64465         * modules/unictype/ctype-digit-tests: New file.
64466         * modules/unictype/ctype-graph-tests: New file.
64467         * modules/unictype/ctype-lower-tests: New file.
64468         * modules/unictype/ctype-print-tests: New file.
64469         * modules/unictype/ctype-punct-tests: New file.
64470         * modules/unictype/ctype-space-tests: New file.
64471         * modules/unictype/ctype-upper-tests: New file.
64472         * modules/unictype/ctype-xdigit-tests: New file.
64473         * modules/unictype/decimal-digit-tests: New file.
64474         * modules/unictype/digit-tests: New file.
64475         * modules/unictype/mirror-tests: New file.
64476         * modules/unictype/numeric-tests: New file.
64477         * modules/unictype/property-alphabetic-tests: New file.
64478         * modules/unictype/property-ascii-hex-digit-tests: New file.
64479         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64480         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64481         * modules/unictype/property-bidi-block-separator-tests: New file.
64482         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64483         * modules/unictype/property-bidi-common-separator-tests: New file.
64484         * modules/unictype/property-bidi-control-tests: New file.
64485         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64486         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64487         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64488         * modules/unictype/property-bidi-european-digit-tests: New file.
64489         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64490         * modules/unictype/property-bidi-left-to-right-tests: New file.
64491         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64492         * modules/unictype/property-bidi-other-neutral-tests: New file.
64493         * modules/unictype/property-bidi-pdf-tests: New file.
64494         * modules/unictype/property-bidi-segment-separator-tests: New file.
64495         * modules/unictype/property-bidi-whitespace-tests: New file.
64496         * modules/unictype/property-byname-tests: New file.
64497         * modules/unictype/property-combining-tests: New file.
64498         * modules/unictype/property-composite-tests: New file.
64499         * modules/unictype/property-currency-symbol-tests: New file.
64500         * modules/unictype/property-dash-tests: New file.
64501         * modules/unictype/property-decimal-digit-tests: New file.
64502         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64503         * modules/unictype/property-deprecated-tests: New file.
64504         * modules/unictype/property-diacritic-tests: New file.
64505         * modules/unictype/property-extender-tests: New file.
64506         * modules/unictype/property-format-control-tests: New file.
64507         * modules/unictype/property-grapheme-base-tests: New file.
64508         * modules/unictype/property-grapheme-extend-tests: New file.
64509         * modules/unictype/property-grapheme-link-tests: New file.
64510         * modules/unictype/property-hex-digit-tests: New file.
64511         * modules/unictype/property-hyphen-tests: New file.
64512         * modules/unictype/property-id-continue-tests: New file.
64513         * modules/unictype/property-id-start-tests: New file.
64514         * modules/unictype/property-ideographic-tests: New file.
64515         * modules/unictype/property-ids-binary-operator-tests: New file.
64516         * modules/unictype/property-ids-trinary-operator-tests: New file.
64517         * modules/unictype/property-ignorable-control-tests: New file.
64518         * modules/unictype/property-iso-control-tests: New file.
64519         * modules/unictype/property-join-control-tests: New file.
64520         * modules/unictype/property-left-of-pair-tests: New file.
64521         * modules/unictype/property-line-separator-tests: New file.
64522         * modules/unictype/property-logical-order-exception-tests: New file.
64523         * modules/unictype/property-lowercase-tests: New file.
64524         * modules/unictype/property-math-tests: New file.
64525         * modules/unictype/property-non-break-tests: New file.
64526         * modules/unictype/property-not-a-character-tests: New file.
64527         * modules/unictype/property-numeric-tests: New file.
64528         * modules/unictype/property-other-alphabetic-tests: New file.
64529         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64530         * modules/unictype/property-other-grapheme-extend-tests: New file.
64531         * modules/unictype/property-other-id-continue-tests: New file.
64532         * modules/unictype/property-other-id-start-tests: New file.
64533         * modules/unictype/property-other-lowercase-tests: New file.
64534         * modules/unictype/property-other-math-tests: New file.
64535         * modules/unictype/property-other-uppercase-tests: New file.
64536         * modules/unictype/property-paired-punctuation-tests: New file.
64537         * modules/unictype/property-paragraph-separator-tests: New file.
64538         * modules/unictype/property-pattern-syntax-tests: New file.
64539         * modules/unictype/property-pattern-white-space-tests: New file.
64540         * modules/unictype/property-private-use-tests: New file.
64541         * modules/unictype/property-punctuation-tests: New file.
64542         * modules/unictype/property-quotation-mark-tests: New file.
64543         * modules/unictype/property-radical-tests: New file.
64544         * modules/unictype/property-sentence-terminal-tests: New file.
64545         * modules/unictype/property-soft-dotted-tests: New file.
64546         * modules/unictype/property-space-tests: New file.
64547         * modules/unictype/property-terminal-punctuation-tests: New file.
64548         * modules/unictype/property-test-tests: New file.
64549         * modules/unictype/property-titlecase-tests: New file.
64550         * modules/unictype/property-unassigned-code-value-tests: New file.
64551         * modules/unictype/property-unified-ideograph-tests: New file.
64552         * modules/unictype/property-uppercase-tests: New file.
64553         * modules/unictype/property-variation-selector-tests: New file.
64554         * modules/unictype/property-white-space-tests: New file.
64555         * modules/unictype/property-xid-continue-tests: New file.
64556         * modules/unictype/property-xid-start-tests: New file.
64557         * modules/unictype/property-zero-width-tests: New file.
64558         * modules/unictype/scripts-tests: New file.
64559         * modules/unictype/syntax-c-ident-tests: New file.
64560         * modules/unictype/syntax-c-whitespace-tests: New file.
64561         * modules/unictype/syntax-java-ident-tests: New file.
64562         * modules/unictype/syntax-java-whitespace-tests: New file.
64563         * tests/unictype/test-bidi_byname.c: New file.
64564         * tests/unictype/test-bidi_name.c: New file.
64565         * tests/unictype/test-bidi_of.c: New file.
64566         * tests/unictype/test-bidi_test.c: New file.
64567         * tests/unictype/test-block_list.c: New file.
64568         * tests/unictype/test-block_of.c: New file.
64569         * tests/unictype/test-block_test.c: New file.
64570         * tests/unictype/test-categ_and.c: New file.
64571         * tests/unictype/test-categ_and_not.c: New file.
64572         * tests/unictype/test-categ_byname.c: New file.
64573         * tests/unictype/test-categ_name.c: New file.
64574         * tests/unictype/test-categ_none.c: New file.
64575         * tests/unictype/test-categ_of.c: New file.
64576         * tests/unictype/test-categ_or.c: New file.
64577         * tests/unictype/test-categ_test_withtable.c: New file.
64578         * tests/unictype/test-combining.c: New file.
64579         * tests/unictype/test-decdigit.c: New file.
64580         * tests/unictype/test-digit.c: New file.
64581         * tests/unictype/test-mirror.c: New file.
64582         * tests/unictype/test-numeric.c: New file.
64583         * tests/unictype/test-pr_byname.c: New file.
64584         * tests/unictype/test-pr_test.c: New file.
64585         * tests/unictype/test-predicate-part1.h: New file.
64586         * tests/unictype/test-predicate-part2.h: New file.
64587         * tests/unictype/test-scripts.c: New file.
64588         * tests/unictype/test-sy_c_ident.c: New file.
64589         * tests/unictype/test-sy_java_ident.c: New file.
64590
64591         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64592         for Unicode 5.0.0.
64593         * tests/unictype/test-categ_Cc.c: Likewise.
64594         * tests/unictype/test-categ_Cf.c: Likewise.
64595         * tests/unictype/test-categ_Cn.c: Likewise.
64596         * tests/unictype/test-categ_Co.c: Likewise.
64597         * tests/unictype/test-categ_Cs.c: Likewise.
64598         * tests/unictype/test-categ_L.c: Likewise.
64599         * tests/unictype/test-categ_Ll.c: Likewise.
64600         * tests/unictype/test-categ_Lm.c: Likewise.
64601         * tests/unictype/test-categ_Lo.c: Likewise.
64602         * tests/unictype/test-categ_Lt.c: Likewise.
64603         * tests/unictype/test-categ_Lu.c: Likewise.
64604         * tests/unictype/test-categ_M.c: Likewise.
64605         * tests/unictype/test-categ_Mc.c: Likewise.
64606         * tests/unictype/test-categ_Me.c: Likewise.
64607         * tests/unictype/test-categ_Mn.c: Likewise.
64608         * tests/unictype/test-categ_N.c: Likewise.
64609         * tests/unictype/test-categ_Nd.c: Likewise.
64610         * tests/unictype/test-categ_Nl.c: Likewise.
64611         * tests/unictype/test-categ_No.c: Likewise.
64612         * tests/unictype/test-categ_P.c: Likewise.
64613         * tests/unictype/test-categ_Pc.c: Likewise.
64614         * tests/unictype/test-categ_Pd.c: Likewise.
64615         * tests/unictype/test-categ_Pe.c: Likewise.
64616         * tests/unictype/test-categ_Pf.c: Likewise.
64617         * tests/unictype/test-categ_Pi.c: Likewise.
64618         * tests/unictype/test-categ_Po.c: Likewise.
64619         * tests/unictype/test-categ_Ps.c: Likewise.
64620         * tests/unictype/test-categ_S.c: Likewise.
64621         * tests/unictype/test-categ_Sc.c: Likewise.
64622         * tests/unictype/test-categ_Sk.c: Likewise.
64623         * tests/unictype/test-categ_Sm.c: Likewise.
64624         * tests/unictype/test-categ_So.c: Likewise.
64625         * tests/unictype/test-categ_Z.c: Likewise.
64626         * tests/unictype/test-categ_Zl.c: Likewise.
64627         * tests/unictype/test-categ_Zp.c: Likewise.
64628         * tests/unictype/test-categ_Zs.c: Likewise.
64629         * tests/unictype/test-ctype_alnum.c: Likewise.
64630         * tests/unictype/test-ctype_alpha.c: Likewise.
64631         * tests/unictype/test-ctype_blank.c: Likewise.
64632         * tests/unictype/test-ctype_cntrl.c: Likewise.
64633         * tests/unictype/test-ctype_digit.c: Likewise.
64634         * tests/unictype/test-ctype_graph.c: Likewise.
64635         * tests/unictype/test-ctype_lower.c: Likewise.
64636         * tests/unictype/test-ctype_print.c: Likewise.
64637         * tests/unictype/test-ctype_punct.c: Likewise.
64638         * tests/unictype/test-ctype_space.c: Likewise.
64639         * tests/unictype/test-ctype_upper.c: Likewise.
64640         * tests/unictype/test-ctype_xdigit.c: Likewise.
64641         * tests/unictype/test-decdigit.h: Likewise.
64642         * tests/unictype/test-digit.h: Likewise.
64643         * tests/unictype/test-numeric.h: Likewise.
64644         * tests/unictype/test-pr_alphabetic.c: Likewise.
64645         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64646         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64647         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64648         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64649         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64650         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64651         * tests/unictype/test-pr_bidi_control.c: Likewise.
64652         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64653         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64654         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64655         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64656         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64657         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64658         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64659         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64660         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64661         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64662         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64663         * tests/unictype/test-pr_combining.c: Likewise.
64664         * tests/unictype/test-pr_composite.c: Likewise.
64665         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64666         * tests/unictype/test-pr_dash.c: Likewise.
64667         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64668         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64669         * tests/unictype/test-pr_deprecated.c: Likewise.
64670         * tests/unictype/test-pr_diacritic.c: Likewise.
64671         * tests/unictype/test-pr_extender.c: Likewise.
64672         * tests/unictype/test-pr_format_control.c: Likewise.
64673         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64674         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64675         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64676         * tests/unictype/test-pr_hex_digit.c: Likewise.
64677         * tests/unictype/test-pr_hyphen.c: Likewise.
64678         * tests/unictype/test-pr_id_continue.c: Likewise.
64679         * tests/unictype/test-pr_id_start.c: Likewise.
64680         * tests/unictype/test-pr_ideographic.c: Likewise.
64681         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64682         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64683         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64684         * tests/unictype/test-pr_iso_control.c: Likewise.
64685         * tests/unictype/test-pr_join_control.c: Likewise.
64686         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64687         * tests/unictype/test-pr_line_separator.c: Likewise.
64688         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64689         * tests/unictype/test-pr_lowercase.c: Likewise.
64690         * tests/unictype/test-pr_math.c: Likewise.
64691         * tests/unictype/test-pr_non_break.c: Likewise.
64692         * tests/unictype/test-pr_not_a_character.c: Likewise.
64693         * tests/unictype/test-pr_numeric.c: Likewise.
64694         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64695         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64696         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64697         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64698         * tests/unictype/test-pr_other_id_start.c: Likewise.
64699         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64700         * tests/unictype/test-pr_other_math.c: Likewise.
64701         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64702         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64703         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64704         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64705         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64706         * tests/unictype/test-pr_private_use.c: Likewise.
64707         * tests/unictype/test-pr_punctuation.c: Likewise.
64708         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64709         * tests/unictype/test-pr_radical.c: Likewise.
64710         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64711         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64712         * tests/unictype/test-pr_space.c: Likewise.
64713         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64714         * tests/unictype/test-pr_titlecase.c: Likewise.
64715         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64716         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64717         * tests/unictype/test-pr_uppercase.c: Likewise.
64718         * tests/unictype/test-pr_variation_selector.c: Likewise.
64719         * tests/unictype/test-pr_white_space.c: Likewise.
64720         * tests/unictype/test-pr_xid_continue.c: Likewise.
64721         * tests/unictype/test-pr_xid_start.c: Likewise.
64722         * tests/unictype/test-pr_zero_width.c: Likewise.
64723         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64724         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64725
64726 2007-11-12  Bruno Haible  <bruno@clisp.org>
64727
64728         Unicode character classification functions.
64729         * lib/unictype.h: New file.
64730         * modules/unictype/base: New file.
64731         * modules/unictype/category-L: New file.
64732         * modules/unictype/category-Lu: New file.
64733         * modules/unictype/category-Ll: New file.
64734         * modules/unictype/category-Lt: New file.
64735         * modules/unictype/category-Lm: New file.
64736         * modules/unictype/category-Lo: New file.
64737         * modules/unictype/category-M: New file.
64738         * modules/unictype/category-Mn: New file.
64739         * modules/unictype/category-Mc: New file.
64740         * modules/unictype/category-Me: New file.
64741         * modules/unictype/category-N: New file.
64742         * modules/unictype/category-Nd: New file.
64743         * modules/unictype/category-Nl: New file.
64744         * modules/unictype/category-No: New file.
64745         * modules/unictype/category-P: New file.
64746         * modules/unictype/category-Pc: New file.
64747         * modules/unictype/category-Pd: New file.
64748         * modules/unictype/category-Ps: New file.
64749         * modules/unictype/category-Pe: New file.
64750         * modules/unictype/category-Pi: New file.
64751         * modules/unictype/category-Pf: New file.
64752         * modules/unictype/category-Po: New file.
64753         * modules/unictype/category-S: New file.
64754         * modules/unictype/category-Sm: New file.
64755         * modules/unictype/category-Sc: New file.
64756         * modules/unictype/category-Sk: New file.
64757         * modules/unictype/category-So: New file.
64758         * modules/unictype/category-Z: New file.
64759         * modules/unictype/category-Zs: New file.
64760         * modules/unictype/category-Zl: New file.
64761         * modules/unictype/category-Zp: New file.
64762         * modules/unictype/category-C: New file.
64763         * modules/unictype/category-Cc: New file.
64764         * modules/unictype/category-Cf: New file.
64765         * modules/unictype/category-Cs: New file.
64766         * modules/unictype/category-Co: New file.
64767         * modules/unictype/category-Cn: New file.
64768         * modules/unictype/category-or: New file.
64769         * modules/unictype/category-of: New file.
64770         * modules/unictype/category-test: New file.
64771         * modules/unictype/category-test-withtable: New file.
64772         * modules/unictype/category-byname: New file.
64773         * modules/unictype/category-none: New file.
64774         * modules/unictype/category-and: New file.
64775         * modules/unictype/category-and-not: New file.
64776         * modules/unictype/category-name: New file.
64777         * modules/unictype/combining-class: New file.
64778         * modules/unictype/category-all: New file.
64779         * modules/unictype/bidicategory-all: New file.
64780         * modules/unictype/bidicategory-byname: New file.
64781         * modules/unictype/bidicategory-name: New file.
64782         * modules/unictype/bidicategory-of: New file.
64783         * modules/unictype/bidicategory-test: New file.
64784         * modules/unictype/decimal-digit: New file.
64785         * modules/unictype/digit: New file.
64786         * modules/unictype/numeric: New file.
64787         * modules/unictype/mirror: New file.
64788         * modules/unictype/property-white-space: New file.
64789         * modules/unictype/property-alphabetic: New file.
64790         * modules/unictype/property-other-alphabetic: New file.
64791         * modules/unictype/property-not-a-character: New file.
64792         * modules/unictype/property-default-ignorable-code-point: New file.
64793         * modules/unictype/property-other-default-ignorable-code-point: New
64794         file.
64795         * modules/unictype/property-deprecated: New file.
64796         * modules/unictype/property-logical-order-exception: New file.
64797         * modules/unictype/property-variation-selector: New file.
64798         * modules/unictype/property-private-use: New file.
64799         * modules/unictype/property-unassigned-code-value: New file.
64800         * modules/unictype/property-uppercase: New file.
64801         * modules/unictype/property-other-uppercase: New file.
64802         * modules/unictype/property-lowercase: New file.
64803         * modules/unictype/property-other-lowercase: New file.
64804         * modules/unictype/property-titlecase: New file.
64805         * modules/unictype/property-soft-dotted: New file.
64806         * modules/unictype/property-id-start: New file.
64807         * modules/unictype/property-other-id-start: New file.
64808         * modules/unictype/property-id-continue: New file.
64809         * modules/unictype/property-other-id-continue: New file.
64810         * modules/unictype/property-xid-start: New file.
64811         * modules/unictype/property-xid-continue: New file.
64812         * modules/unictype/property-pattern-white-space: New file.
64813         * modules/unictype/property-pattern-syntax: New file.
64814         * modules/unictype/property-join-control: New file.
64815         * modules/unictype/property-grapheme-base: New file.
64816         * modules/unictype/property-grapheme-extend: New file.
64817         * modules/unictype/property-other-grapheme-extend: New file.
64818         * modules/unictype/property-grapheme-link: New file.
64819         * modules/unictype/property-bidi-control: New file.
64820         * modules/unictype/property-bidi-left-to-right: New file.
64821         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64822         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64823         * modules/unictype/property-bidi-european-digit: New file.
64824         * modules/unictype/property-bidi-eur-num-separator: New file.
64825         * modules/unictype/property-bidi-eur-num-terminator: New file.
64826         * modules/unictype/property-bidi-arabic-digit: New file.
64827         * modules/unictype/property-bidi-common-separator: New file.
64828         * modules/unictype/property-bidi-block-separator: New file.
64829         * modules/unictype/property-bidi-segment-separator: New file.
64830         * modules/unictype/property-bidi-whitespace: New file.
64831         * modules/unictype/property-bidi-non-spacing-mark: New file.
64832         * modules/unictype/property-bidi-boundary-neutral: New file.
64833         * modules/unictype/property-bidi-pdf: New file.
64834         * modules/unictype/property-bidi-embedding-or-override: New file.
64835         * modules/unictype/property-bidi-other-neutral: New file.
64836         * modules/unictype/property-hex-digit: New file.
64837         * modules/unictype/property-ascii-hex-digit: New file.
64838         * modules/unictype/property-ideographic: New file.
64839         * modules/unictype/property-unified-ideograph: New file.
64840         * modules/unictype/property-radical: New file.
64841         * modules/unictype/property-ids-binary-operator: New file.
64842         * modules/unictype/property-ids-trinary-operator: New file.
64843         * modules/unictype/property-zero-width: New file.
64844         * modules/unictype/property-space: New file.
64845         * modules/unictype/property-non-break: New file.
64846         * modules/unictype/property-iso-control: New file.
64847         * modules/unictype/property-format-control: New file.
64848         * modules/unictype/property-dash: New file.
64849         * modules/unictype/property-hyphen: New file.
64850         * modules/unictype/property-punctuation: New file.
64851         * modules/unictype/property-line-separator: New file.
64852         * modules/unictype/property-paragraph-separator: New file.
64853         * modules/unictype/property-quotation-mark: New file.
64854         * modules/unictype/property-sentence-terminal: New file.
64855         * modules/unictype/property-terminal-punctuation: New file.
64856         * modules/unictype/property-currency-symbol: New file.
64857         * modules/unictype/property-math: New file.
64858         * modules/unictype/property-other-math: New file.
64859         * modules/unictype/property-paired-punctuation: New file.
64860         * modules/unictype/property-left-of-pair: New file.
64861         * modules/unictype/property-combining: New file.
64862         * modules/unictype/property-composite: New file.
64863         * modules/unictype/property-decimal-digit: New file.
64864         * modules/unictype/property-numeric: New file.
64865         * modules/unictype/property-diacritic: New file.
64866         * modules/unictype/property-extender: New file.
64867         * modules/unictype/property-ignorable-control: New file.
64868         * modules/unictype/property-test: New file.
64869         * modules/unictype/property-byname: New file.
64870         * modules/unictype/property-all: New file.
64871         * modules/unictype/scripts: New file.
64872         * modules/unictype/scripts-all: New file.
64873         * modules/unictype/block-of: New file.
64874         * modules/unictype/block-test: New file.
64875         * modules/unictype/block-list: New file.
64876         * modules/unictype/block-all: New file.
64877         * modules/unictype/syntax-c-whitespace: New file.
64878         * modules/unictype/syntax-java-whitespace: New file.
64879         * modules/unictype/syntax-c-ident: New file.
64880         * modules/unictype/syntax-java-ident: New file.
64881         * modules/unictype/ctype-alnum: New file.
64882         * modules/unictype/ctype-alpha: New file.
64883         * modules/unictype/ctype-cntrl: New file.
64884         * modules/unictype/ctype-digit: New file.
64885         * modules/unictype/ctype-graph: New file.
64886         * modules/unictype/ctype-lower: New file.
64887         * modules/unictype/ctype-print: New file.
64888         * modules/unictype/ctype-punct: New file.
64889         * modules/unictype/ctype-space: New file.
64890         * modules/unictype/ctype-upper: New file.
64891         * modules/unictype/ctype-xdigit: New file.
64892         * modules/unictype/ctype-blank: New file.
64893         * lib/unictype/bidi_byname.c: New file.
64894         * lib/unictype/bidi_name.c: New file.
64895         * lib/unictype/bidi_of.c: New file.
64896         * lib/unictype/bidi_test.c: New file.
64897         * lib/unictype/bitmap.h: New file.
64898         * lib/unictype/block_test.c: New file.
64899         * lib/unictype/blocks.c: New file.
64900         * lib/unictype/categ_C.c: New file.
64901         * lib/unictype/categ_Cc.c: New file.
64902         * lib/unictype/categ_Cf.c: New file.
64903         * lib/unictype/categ_Cn.c: New file.
64904         * lib/unictype/categ_Co.c: New file.
64905         * lib/unictype/categ_Cs.c: New file.
64906         * lib/unictype/categ_L.c: New file.
64907         * lib/unictype/categ_Ll.c: New file.
64908         * lib/unictype/categ_Lm.c: New file.
64909         * lib/unictype/categ_Lo.c: New file.
64910         * lib/unictype/categ_Lt.c: New file.
64911         * lib/unictype/categ_Lu.c: New file.
64912         * lib/unictype/categ_M.c: New file.
64913         * lib/unictype/categ_Mc.c: New file.
64914         * lib/unictype/categ_Me.c: New file.
64915         * lib/unictype/categ_Mn.c: New file.
64916         * lib/unictype/categ_N.c: New file.
64917         * lib/unictype/categ_Nd.c: New file.
64918         * lib/unictype/categ_Nl.c: New file.
64919         * lib/unictype/categ_No.c: New file.
64920         * lib/unictype/categ_P.c: New file.
64921         * lib/unictype/categ_Pc.c: New file.
64922         * lib/unictype/categ_Pd.c: New file.
64923         * lib/unictype/categ_Pe.c: New file.
64924         * lib/unictype/categ_Pf.c: New file.
64925         * lib/unictype/categ_Pi.c: New file.
64926         * lib/unictype/categ_Po.c: New file.
64927         * lib/unictype/categ_Ps.c: New file.
64928         * lib/unictype/categ_S.c: New file.
64929         * lib/unictype/categ_Sc.c: New file.
64930         * lib/unictype/categ_Sk.c: New file.
64931         * lib/unictype/categ_Sm.c: New file.
64932         * lib/unictype/categ_So.c: New file.
64933         * lib/unictype/categ_Z.c: New file.
64934         * lib/unictype/categ_Zl.c: New file.
64935         * lib/unictype/categ_Zp.c: New file.
64936         * lib/unictype/categ_Zs.c: New file.
64937         * lib/unictype/categ_and.c: New file.
64938         * lib/unictype/categ_and_not.c: New file.
64939         * lib/unictype/categ_byname.c: New file.
64940         * lib/unictype/categ_name.c: New file.
64941         * lib/unictype/categ_none.c: New file.
64942         * lib/unictype/categ_of.c: New file.
64943         * lib/unictype/categ_or.c: New file.
64944         * lib/unictype/categ_test.c: New file.
64945         * lib/unictype/combining.c: New file.
64946         * lib/unictype/ctype_alnum.c: New file.
64947         * lib/unictype/ctype_alpha.c: New file.
64948         * lib/unictype/ctype_blank.c: New file.
64949         * lib/unictype/ctype_cntrl.c: New file.
64950         * lib/unictype/ctype_digit.c: New file.
64951         * lib/unictype/ctype_graph.c: New file.
64952         * lib/unictype/ctype_lower.c: New file.
64953         * lib/unictype/ctype_print.c: New file.
64954         * lib/unictype/ctype_punct.c: New file.
64955         * lib/unictype/ctype_space.c: New file.
64956         * lib/unictype/ctype_upper.c: New file.
64957         * lib/unictype/ctype_xdigit.c: New file.
64958         * lib/unictype/decdigit.c: New file.
64959         * lib/unictype/digit.c: New file.
64960         * lib/unictype/identsyntaxmap.h: New file.
64961         * lib/unictype/mirror.c: New file.
64962         * lib/unictype/numeric.c: New file.
64963         * lib/unictype/pr_alphabetic.c: New file.
64964         * lib/unictype/pr_ascii_hex_digit.c: New file.
64965         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64966         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64967         * lib/unictype/pr_bidi_block_separator.c: New file.
64968         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64969         * lib/unictype/pr_bidi_common_separator.c: New file.
64970         * lib/unictype/pr_bidi_control.c: New file.
64971         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64972         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64973         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64974         * lib/unictype/pr_bidi_european_digit.c: New file.
64975         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64976         * lib/unictype/pr_bidi_left_to_right.c: New file.
64977         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64978         * lib/unictype/pr_bidi_other_neutral.c: New file.
64979         * lib/unictype/pr_bidi_pdf.c: New file.
64980         * lib/unictype/pr_bidi_segment_separator.c: New file.
64981         * lib/unictype/pr_bidi_whitespace.c: New file.
64982         * lib/unictype/pr_byname.c: New file.
64983         * lib/unictype/pr_byname.gperf: New file.
64984         * lib/unictype/pr_combining.c: New file.
64985         * lib/unictype/pr_composite.c: New file.
64986         * lib/unictype/pr_currency_symbol.c: New file.
64987         * lib/unictype/pr_dash.c: New file.
64988         * lib/unictype/pr_decimal_digit.c: New file.
64989         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64990         * lib/unictype/pr_deprecated.c: New file.
64991         * lib/unictype/pr_diacritic.c: New file.
64992         * lib/unictype/pr_extender.c: New file.
64993         * lib/unictype/pr_format_control.c: New file.
64994         * lib/unictype/pr_grapheme_base.c: New file.
64995         * lib/unictype/pr_grapheme_extend.c: New file.
64996         * lib/unictype/pr_grapheme_link.c: New file.
64997         * lib/unictype/pr_hex_digit.c: New file.
64998         * lib/unictype/pr_hyphen.c: New file.
64999         * lib/unictype/pr_id_continue.c: New file.
65000         * lib/unictype/pr_id_start.c: New file.
65001         * lib/unictype/pr_ideographic.c: New file.
65002         * lib/unictype/pr_ids_binary_operator.c: New file.
65003         * lib/unictype/pr_ids_trinary_operator.c: New file.
65004         * lib/unictype/pr_ignorable_control.c: New file.
65005         * lib/unictype/pr_iso_control.c: New file.
65006         * lib/unictype/pr_join_control.c: New file.
65007         * lib/unictype/pr_left_of_pair.c: New file.
65008         * lib/unictype/pr_line_separator.c: New file.
65009         * lib/unictype/pr_logical_order_exception.c: New file.
65010         * lib/unictype/pr_lowercase.c: New file.
65011         * lib/unictype/pr_math.c: New file.
65012         * lib/unictype/pr_non_break.c: New file.
65013         * lib/unictype/pr_not_a_character.c: New file.
65014         * lib/unictype/pr_numeric.c: New file.
65015         * lib/unictype/pr_other_alphabetic.c: New file.
65016         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65017         * lib/unictype/pr_other_grapheme_extend.c: New file.
65018         * lib/unictype/pr_other_id_continue.c: New file.
65019         * lib/unictype/pr_other_id_start.c: New file.
65020         * lib/unictype/pr_other_lowercase.c: New file.
65021         * lib/unictype/pr_other_math.c: New file.
65022         * lib/unictype/pr_other_uppercase.c: New file.
65023         * lib/unictype/pr_paired_punctuation.c: New file.
65024         * lib/unictype/pr_paragraph_separator.c: New file.
65025         * lib/unictype/pr_pattern_syntax.c: New file.
65026         * lib/unictype/pr_pattern_white_space.c: New file.
65027         * lib/unictype/pr_private_use.c: New file.
65028         * lib/unictype/pr_punctuation.c: New file.
65029         * lib/unictype/pr_quotation_mark.c: New file.
65030         * lib/unictype/pr_radical.c: New file.
65031         * lib/unictype/pr_sentence_terminal.c: New file.
65032         * lib/unictype/pr_soft_dotted.c: New file.
65033         * lib/unictype/pr_space.c: New file.
65034         * lib/unictype/pr_terminal_punctuation.c: New file.
65035         * lib/unictype/pr_test.c: New file.
65036         * lib/unictype/pr_titlecase.c: New file.
65037         * lib/unictype/pr_unassigned_code_value.c: New file.
65038         * lib/unictype/pr_unified_ideograph.c: New file.
65039         * lib/unictype/pr_uppercase.c: New file.
65040         * lib/unictype/pr_variation_selector.c: New file.
65041         * lib/unictype/pr_white_space.c: New file.
65042         * lib/unictype/pr_xid_continue.c: New file.
65043         * lib/unictype/pr_xid_start.c: New file.
65044         * lib/unictype/pr_zero_width.c: New file.
65045         * lib/unictype/scripts.c: New file.
65046         * lib/unictype/sy_c_ident.c: New file.
65047         * lib/unictype/sy_c_whitespace.c: New file.
65048         * lib/unictype/sy_java_ident.c: New file.
65049         * lib/unictype/sy_java_whitespace.c: New file.
65050
65051         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65052         Unicode 5.0.0.
65053         * lib/unictype/blocks.h: Likewise.
65054         * lib/unictype/categ_C.h: Likewise.
65055         * lib/unictype/categ_Cc.h: Likewise.
65056         * lib/unictype/categ_Cf.h: Likewise.
65057         * lib/unictype/categ_Cn.h: Likewise.
65058         * lib/unictype/categ_Co.h: Likewise.
65059         * lib/unictype/categ_Cs.h: Likewise.
65060         * lib/unictype/categ_L.h: Likewise.
65061         * lib/unictype/categ_Ll.h: Likewise.
65062         * lib/unictype/categ_Lm.h: Likewise.
65063         * lib/unictype/categ_Lo.h: Likewise.
65064         * lib/unictype/categ_Lt.h: Likewise.
65065         * lib/unictype/categ_Lu.h: Likewise.
65066         * lib/unictype/categ_M.h: Likewise.
65067         * lib/unictype/categ_Mc.h: Likewise.
65068         * lib/unictype/categ_Me.h: Likewise.
65069         * lib/unictype/categ_Mn.h: Likewise.
65070         * lib/unictype/categ_N.h: Likewise.
65071         * lib/unictype/categ_Nd.h: Likewise.
65072         * lib/unictype/categ_Nl.h: Likewise.
65073         * lib/unictype/categ_No.h: Likewise.
65074         * lib/unictype/categ_P.h: Likewise.
65075         * lib/unictype/categ_Pc.h: Likewise.
65076         * lib/unictype/categ_Pd.h: Likewise.
65077         * lib/unictype/categ_Pe.h: Likewise.
65078         * lib/unictype/categ_Pf.h: Likewise.
65079         * lib/unictype/categ_Pi.h: Likewise.
65080         * lib/unictype/categ_Po.h: Likewise.
65081         * lib/unictype/categ_Ps.h: Likewise.
65082         * lib/unictype/categ_S.h: Likewise.
65083         * lib/unictype/categ_Sc.h: Likewise.
65084         * lib/unictype/categ_Sk.h: Likewise.
65085         * lib/unictype/categ_Sm.h: Likewise.
65086         * lib/unictype/categ_So.h: Likewise.
65087         * lib/unictype/categ_Z.h: Likewise.
65088         * lib/unictype/categ_Zl.h: Likewise.
65089         * lib/unictype/categ_Zp.h: Likewise.
65090         * lib/unictype/categ_Zs.h: Likewise.
65091         * lib/unictype/categ_of.h: Likewise.
65092         * lib/unictype/combining.h: Likewise.
65093         * lib/unictype/ctype_alnum.h: Likewise.
65094         * lib/unictype/ctype_alpha.h: Likewise.
65095         * lib/unictype/ctype_blank.h: Likewise.
65096         * lib/unictype/ctype_cntrl.h: Likewise.
65097         * lib/unictype/ctype_digit.h: Likewise.
65098         * lib/unictype/ctype_graph.h: Likewise.
65099         * lib/unictype/ctype_lower.h: Likewise.
65100         * lib/unictype/ctype_print.h: Likewise.
65101         * lib/unictype/ctype_punct.h: Likewise.
65102         * lib/unictype/ctype_space.h: Likewise.
65103         * lib/unictype/ctype_upper.h: Likewise.
65104         * lib/unictype/ctype_xdigit.h: Likewise.
65105         * lib/unictype/decdigit.h: Likewise.
65106         * lib/unictype/digit.h: Likewise.
65107         * lib/unictype/mirror.h: Likewise.
65108         * lib/unictype/numeric.h: Likewise.
65109         * lib/unictype/pr_alphabetic.h: Likewise.
65110         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65111         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65112         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65113         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65114         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65115         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65116         * lib/unictype/pr_bidi_control.h: Likewise.
65117         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65118         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65119         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65120         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65121         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65122         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65123         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65124         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65125         * lib/unictype/pr_bidi_pdf.h: Likewise.
65126         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65127         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65128         * lib/unictype/pr_combining.h: Likewise.
65129         * lib/unictype/pr_composite.h: Likewise.
65130         * lib/unictype/pr_currency_symbol.h: Likewise.
65131         * lib/unictype/pr_dash.h: Likewise.
65132         * lib/unictype/pr_decimal_digit.h: Likewise.
65133         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65134         * lib/unictype/pr_deprecated.h: Likewise.
65135         * lib/unictype/pr_diacritic.h: Likewise.
65136         * lib/unictype/pr_extender.h: Likewise.
65137         * lib/unictype/pr_format_control.h: Likewise.
65138         * lib/unictype/pr_grapheme_base.h: Likewise.
65139         * lib/unictype/pr_grapheme_extend.h: Likewise.
65140         * lib/unictype/pr_grapheme_link.h: Likewise.
65141         * lib/unictype/pr_hex_digit.h: Likewise.
65142         * lib/unictype/pr_hyphen.h: Likewise.
65143         * lib/unictype/pr_id_continue.h: Likewise.
65144         * lib/unictype/pr_id_start.h: Likewise.
65145         * lib/unictype/pr_ideographic.h: Likewise.
65146         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65147         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65148         * lib/unictype/pr_ignorable_control.h: Likewise.
65149         * lib/unictype/pr_iso_control.h: Likewise.
65150         * lib/unictype/pr_join_control.h: Likewise.
65151         * lib/unictype/pr_left_of_pair.h: Likewise.
65152         * lib/unictype/pr_line_separator.h: Likewise.
65153         * lib/unictype/pr_logical_order_exception.h: Likewise.
65154         * lib/unictype/pr_lowercase.h: Likewise.
65155         * lib/unictype/pr_math.h: Likewise.
65156         * lib/unictype/pr_non_break.h: Likewise.
65157         * lib/unictype/pr_not_a_character.h: Likewise.
65158         * lib/unictype/pr_numeric.h: Likewise.
65159         * lib/unictype/pr_other_alphabetic.h: Likewise.
65160         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65161         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65162         * lib/unictype/pr_other_id_continue.h: Likewise.
65163         * lib/unictype/pr_other_id_start.h: Likewise.
65164         * lib/unictype/pr_other_lowercase.h: Likewise.
65165         * lib/unictype/pr_other_math.h: Likewise.
65166         * lib/unictype/pr_other_uppercase.h: Likewise.
65167         * lib/unictype/pr_paired_punctuation.h: Likewise.
65168         * lib/unictype/pr_paragraph_separator.h: Likewise.
65169         * lib/unictype/pr_pattern_syntax.h: Likewise.
65170         * lib/unictype/pr_pattern_white_space.h: Likewise.
65171         * lib/unictype/pr_private_use.h: Likewise.
65172         * lib/unictype/pr_punctuation.h: Likewise.
65173         * lib/unictype/pr_quotation_mark.h: Likewise.
65174         * lib/unictype/pr_radical.h: Likewise.
65175         * lib/unictype/pr_sentence_terminal.h: Likewise.
65176         * lib/unictype/pr_soft_dotted.h: Likewise.
65177         * lib/unictype/pr_space.h: Likewise.
65178         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65179         * lib/unictype/pr_titlecase.h: Likewise.
65180         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65181         * lib/unictype/pr_unified_ideograph.h: Likewise.
65182         * lib/unictype/pr_uppercase.h: Likewise.
65183         * lib/unictype/pr_variation_selector.h: Likewise.
65184         * lib/unictype/pr_white_space.h: Likewise.
65185         * lib/unictype/pr_xid_continue.h: Likewise.
65186         * lib/unictype/pr_xid_start.h: Likewise.
65187         * lib/unictype/pr_zero_width.h: Likewise.
65188         * lib/unictype/scripts.h: Likewise.
65189         * lib/unictype/scripts_byname.gperf: Likewise.
65190         * lib/unictype/sy_c_ident.h: Likewise.
65191         * lib/unictype/sy_c_whitespace.h: Likewise.
65192         * lib/unictype/sy_java_ident.h: Likewise.
65193         * lib/unictype/sy_java_whitespace.h: Likewise.
65194
65195         * lib/unictype/Makefile: New file.
65196         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65197         glibc.
65198         * lib/unictype/3level.h: New file, copied from glibc.
65199         * lib/unictype/3levelbit.h: New file.
65200
65201 2007-11-11  Bruno Haible  <bruno@clisp.org>
65202
65203         * modules/gperf: New file.
65204         * modules/iconv_open (Depends-on): Add it.
65205         (Makefile.am): Remove the GPERF definition.
65206
65207 2007-11-11  Bruno Haible  <bruno@clisp.org>
65208
65209         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65210         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65211
65212 2007-11-11  Bruno Haible  <bruno@clisp.org>
65213
65214         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65215         (usage): Remove function.
65216
65217 2007-11-11  Bruno Haible  <bruno@clisp.org>
65218
65219         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65220         gl_FUNC_CEILF_LIBS.
65221         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65222         gl_FUNC_CEIL_LIBS.
65223         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65224         gl_FUNC_CEILL_LIBS.
65225         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65226         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65227         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65228
65229 2007-11-11  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65232         roundf were declared but do not exist on functions.
65233         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65234         roundl were declared but do not exist on functions.
65235         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65236         HAVE_FLOORL_AND_CEILL, respectively.
65237         Needed for Sun C on Solaris 10.
65238
65239 2007-11-11  Bruno Haible  <bruno@clisp.org>
65240
65241         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65242         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65243         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65244         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65245         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65246         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65247         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65248         HAVE_DECL_ROUNDF.
65249         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65250         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65252         of HAVE_DECL_ROUND*.
65253         * modules/math (Makefile.am): Update.
65254
65255 2007-11-10  Bruno Haible  <bruno@clisp.org>
65256
65257         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65258         ptrdiff_t as m4/intl.m4.
65259
65260 2007-11-10  Jim Meyering  <meyering@redhat.com>
65261
65262         Avoid link failure for the argmatch test.
65263         * tests/test-argmatch.c (usage): Define function to avoid a link
65264         failure: argmatch_die requires a usage function.
65265
65266 2007-11-09  Bruno Haible  <bruno@clisp.org>
65267
65268         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65269         * doc/functions/vsnprintf.texi: Likewise.
65270         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65271         with a size argument < 2.
65272
65273 2007-11-09  Bruno Haible  <bruno@clisp.org>
65274
65275         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65276         buffer. Fixes an inefficiency introduced on 2007-11-03.
65277
65278 2007-11-09  Bruno Haible  <bruno@clisp.org>
65279
65280         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65281         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65282
65283 2007-11-08  Jim Meyering  <meyering@redhat.com>
65284
65285         Change cache variable name prefix "jm_" to "gl_" everywhere.
65286         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65287         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65288         * m4/uptime.m4: s/gl_/jm_/
65289
65290 2007-11-07  Bruno Haible  <bruno@clisp.org>
65291
65292         Update to GNU gettext 0.17.
65293         * m4/intl.m4: Update to GNU gettext 0.17.
65294         * m4/po.m4: Likewise.
65295         * modules/gettext (Files): Remove m4/ulonglong.m4.
65296         (configure.ac): Require gettext infrastructure from version 0.17.
65297
65298 2007-11-06  Bruno Haible  <bruno@clisp.org>
65299
65300         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65301         symbolic values are not defined in a public header.
65302         * lib/freadable.c (freadable) [QNX]: Likewise.
65303         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65304         * lib/freading.c (freading) [QNX]: Likewise.
65305         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65306         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65307         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65308         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65309         Reported by Alain Magloire.
65310
65311         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65312
65313 2007-11-05  Bruno Haible  <bruno@clisp.org>
65314
65315         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65316         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65317         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65318         Reported by Eric Blake.
65319
65320 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65321             Bruno Haible  <bruno@clisp.org>
65322
65323         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65324         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65325         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65326         (malloc): Undefine also before including <stdlib.h>.
65327         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65328         Needed on OSF/1 4.0.
65329
65330 2007-11-05  Jim Meyering  <meyering@redhat.com>
65331
65332         git-version-gen: sync from coreutils.
65333         * build-aux/git-version-gen: Add comments.
65334         Change the first '-' to '.' in the snapshot version string,
65335         e.g., 6.9-377-08144 -> 6.9.377-08144
65336         Remove first parameter.
65337         Don't declare a version "-dirty" merely because a time
65338         stamp has changed.
65339
65340 2007-11-04  Bruno Haible  <bruno@clisp.org>
65341
65342         * lib/lock.h: Protect all macro definitions containing an 'if'
65343         statement through a "do { ... } while (0)".
65344         * lib/tls.h: Likewise.
65345
65346 2007-11-04  Bruno Haible  <bruno@clisp.org>
65347
65348         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65349
65350 2007-11-04  Bruno Haible  <bruno@clisp.org>
65351
65352         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65353         * modules/fprintf-posix (Depends-on): Add nocrash.
65354         * modules/snprintf-posix (Depends-on): Likewise.
65355         * modules/sprintf-posix (Depends-on): Likewise.
65356         * modules/vasnprintf-posix (Depends-on): Likewise.
65357         * modules/vasprintf-posix (Depends-on): Likewise.
65358         * modules/vfprintf-posix (Depends-on): Likewise.
65359         * modules/vsnprintf-posix (Depends-on): Likewise.
65360         * modules/vsprintf-posix (Depends-on): Likewise.
65361         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65362         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65363         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65364         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65365         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65366         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65367         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65368
65369 2007-11-04  Bruno Haible  <bruno@clisp.org>
65370
65371         * modules/nocrash: New file.
65372         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65373         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65374
65375 2007-11-04  Bruno Haible  <bruno@clisp.org>
65376
65377         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65378         precision handling.
65379         * tests/test-vasprintf-posix.c (test_function): Likewise.
65380         * tests/test-snprintf-posix.h (test_function): Likewise.
65381         * tests/test-sprintf-posix.h (test_function): Likewise.
65382
65383         Fix *printf behaviour for large precisions on mingw and BeOS.
65384         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65385         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65387         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65389         gl_PRINTF_PRECISION and test its result. Invoke
65390         gl_PREREQ_VASNPRINTF_PRECISION.
65391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65395         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65397         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65398         * doc/functions/fprintf.texi: Update.
65399         * doc/functions/printf.texi: Update.
65400         * doc/functions/snprintf.texi: Update.
65401         * doc/functions/sprintf.texi: Update.
65402         * doc/functions/vfprintf.texi: Update.
65403         * doc/functions/vprintf.texi: Update.
65404         * doc/functions/vsnprintf.texi: Update.
65405         * doc/functions/vsprintf.texi: Update.
65406
65407 2007-11-04  Bruno Haible  <bruno@clisp.org>
65408
65409         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65410
65411 2007-11-04  Bruno Haible  <bruno@clisp.org>
65412
65413         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65414         Reported by Sylvain Beucler <beuc@gnu.org>.
65415
65416 2007-11-03  Bruno Haible  <bruno@clisp.org>
65417
65418         * tests/test-fprintf-posix2.sh: New file.
65419         * tests/test-fprintf-posix2.c: New file.
65420         * modules/fprintf-posix-tests (Files): Add them.
65421         (TESTS): Add test-fprintf-posix2.sh.
65422         (configure.ac): Check for getrlimit and setrlimit.
65423         (check_PROGRAMS): Add test-fprintf-posix2.
65424
65425         * tests/test-printf-posix2.sh: New file.
65426         * tests/test-printf-posix2.c: New file.
65427         * modules/printf-posix-tests (Files): Add them.
65428         (TESTS): Add test-printf-posix2.sh.
65429         (configure.ac): Check for getrlimit and setrlimit.
65430         (check_PROGRAMS): Add test-printf-posix2.
65431
65432         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65433         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65434         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65435         (decode_double): New function, copied from decode_long_double.
65436         (scale10_round_decimal_decoded): New function, extracted from
65437         scale10_round_decimal_long_double.
65438         (scale10_round_decimal_long_double): Use it.
65439         (scale10_round_decimal_double): New function.
65440         (floorlog10): New function.
65441         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65443         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65445         gl_PRINTF_ENOMEM and test its result. Invoke
65446         gl_PREREQ_VASNPRINTF_ENOMEM.
65447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65449         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65450         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65451         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65453         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65454         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65455         * modules/snprintf-posix (Depends-on): Likewise.
65456         * modules/sprintf-posix (Depends-on): Likewise.
65457         * modules/vasnprintf-posix (Depends-on): Likewise.
65458         * modules/vasprintf-posix (Depends-on): Likewise.
65459         * modules/vfprintf-posix (Depends-on): Likewise.
65460         * modules/vsnprintf-posix (Depends-on): Likewise.
65461         * modules/vsprintf-posix (Depends-on): Likewise.
65462         * doc/functions/fprintf.texi: Update.
65463         * doc/functions/printf.texi: Update.
65464         * doc/functions/snprintf.texi: Update.
65465         * doc/functions/sprintf.texi: Update.
65466         * doc/functions/vfprintf.texi: Update.
65467         * doc/functions/vprintf.texi: Update.
65468         * doc/functions/vsnprintf.texi: Update.
65469         * doc/functions/vsprintf.texi: Update.
65470
65471 2007-11-03  Bruno Haible  <bruno@clisp.org>
65472
65473         * modules/frexp-nolibm-tests: New file.
65474
65475         * modules/frexp-nolibm: New file.
65476         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65477
65478 2007-11-03  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65481         value is C99 compliant.
65482         Needed for OSF/1 5.1.
65483
65484 2007-11-03  Bruno Haible  <bruno@clisp.org>
65485
65486         Fix out-of-memory handling of vasnprintf.
65487         * lib/printf-parse.c: Include <errno.h>.
65488         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65489         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65490         is already set.
65491
65492 2007-11-02  Eric Blake  <ebb9@byu.net>
65493
65494         Fix tests on cygwin.
65495         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65496
65497 2007-11-01  Bruno Haible  <bruno@clisp.org>
65498
65499         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65500         warning.
65501         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65502         needed for POSIX compatibility.
65503
65504 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65507         for compatibility with GNU.
65508
65509 2007-11-01  Bruno Haible  <bruno@clisp.org>
65510
65511         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65512         (putenv): Renamed from rpl_putenv. Change argument type from
65513         'const char *' to 'char *'.
65514         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65515         of defining putenv in config.h, just set REPLACE_PUTENV.
65516         * modules/putenv (Depends-on): Add stdlib.
65517         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65518         (Include): Use <stdlib.h>.
65519         * lib/stdlib.in.h (putenv): New declaration.
65520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65521         REPLACE_PUTENV.
65522         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65523         REPLACE_PUTENV.
65524         Needed for MacOS X 10.5.0.
65525         Reported by Peter O'Gorman <peter@pogma.com>.
65526
65527 2007-11-01  Jim Meyering  <meyering@redhat.com>
65528
65529         Treat an empty date string exactly like "0".
65530         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65531         if the remaining date string (to be parsed) is empty, use "0".
65532         Reported by Mischa Molhoek and discussed in this thread:
65533         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65534
65535 2007-10-31  Bruno Haible  <bruno@clisp.org>
65536
65537         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65538         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65539         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65540         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65541         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65542         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65543
65544 2007-10-31  Bruno Haible  <bruno@clisp.org>
65545
65546         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65547         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65548         (AC_TYPE_LONG_LONG_INT): Use it.
65549         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65550         it as well.
65551         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65552         to m4/longlong.m4.
65553         * modules/stdint (Files): Remove m4/ulonglong.m4.
65554         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65555         m4/ulonglong.m4.
65556         * modules/strtoumax (Files): Likewise.
65557
65558 2007-10-30  Bruno Haible  <bruno@clisp.org>
65559
65560         * modules/xvasprintf-posix: New file.
65561         Suggested by Eric Blake.
65562
65563 2007-10-30  Bruno Haible  <bruno@clisp.org>
65564
65565         * modules/xprintf-posix-tests: New file.
65566         * tests/test-xprintf-posix.sh: New file.
65567         * tests/test-xprintf-posix.c: New file.
65568         * tests/test-xfprintf-posix.c: New file.
65569
65570         * modules/xprintf-posix: New file.
65571
65572 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65573
65574         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65575         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65576         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65577
65578 2007-10-29  Bruno Haible  <bruno@clisp.org>
65579
65580         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65581         contain the special marker '_cv_'.
65582         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65583         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65584         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65585         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65586         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65587         Reported by Ralf Wildenhues.
65588
65589 2007-10-29  Bruno Haible  <bruno@clisp.org>
65590
65591         * gnulib-tool (func_import): When --lgpl is not specified, set
65592         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65593         GPLv3.
65594         Reported by Simon Josefsson.
65595
65596 2007-10-28  Bruno Haible  <bruno@clisp.org>
65597
65598         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65599         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65600         HAVE_DECL_ISFINITE.
65601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65602         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65603         HAVE_DECL_ISFINITE.
65604
65605 2007-10-28  Bruno Haible  <bruno@clisp.org>
65606
65607         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65608         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65609
65610 2007-10-28  Bruno Haible  <bruno@clisp.org>
65611
65612         Fix link errors with Sun C 5.0 on Solaris 10.
65613         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65614         function is declared but not present in the compiler's libm.
65615         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65616         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65617         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65618         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65619         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65620         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65621         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65623         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65624         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65625         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65626         HAVE_DECL_FLOORL.
65627
65628 2007-10-28  Bruno Haible  <bruno@clisp.org>
65629
65630         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65631         gl_FUNC_FLOORL. Cache the result.
65632         (gl_FUNC_FLOORL): Use it.
65633         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65634         gl_FUNC_CEILL. Cache the result.
65635         (gl_FUNC_CEILL): Use it.
65636
65637         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65638         gl_FUNC_FLOOR. Cache the result.
65639         (gl_FUNC_FLOOR): Use it.
65640         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65641         gl_FUNC_CEIL. Cache the result.
65642         (gl_FUNC_CEIL): Use it.
65643
65644         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65645         gl_FUNC_FLOORF. Cache the result.
65646         (gl_FUNC_FLOORF): Use it.
65647         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65648         gl_FUNC_CEILF. Cache the result.
65649         (gl_FUNC_CEILF): Use it.
65650
65651 2007-10-28  Bruno Haible  <bruno@clisp.org>
65652
65653         * gnulib-tool: Allow specifying the LGPL version number through
65654         --lgpl=2 or --lgpl=3.
65655         (func_usage): Document --lgpl with argument.
65656         Handle --lgpl=... arguments.
65657         (func_import): Recognize also gl_LGPL calls with an argument. When
65658         --lgpl=2 is used and the module's license is just LGPL, report an
65659         error. Set sed_transform_lib_file according to the lgpl variable. In
65660         the generated files, use --lgpl or gl_LGPL invocations with argument,
65661         if necessary.
65662         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65663         an LGPv2+ license.
65664         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65665         gl_LGPL macro.
65666
65667 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65668             Bruno Haible  <bruno@clisp.org>
65669
65670         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65671         (u16_uctomb_aux): Likewise.
65672         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65673         !HAVE_INLINE.
65674         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65675
65676 2007-10-28  Bruno Haible  <bruno@clisp.org>
65677
65678         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65679         Invoke AM_GETTEXT_OPTION if it exists.
65680         * modules/vasprintf: Likewise.
65681         * modules/verror: Likewise.
65682         * modules/xprintf: Likewise.
65683         * modules/xvasprintf: Likewise.
65684
65685 2007-10-27  Ben Pfaff  <blp@gnu.org>
65686
65687         * lib/math.in.h: Define isfinite macro and prototypes for
65688         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65689         implementations.
65690         * m4/math_h.m4: New substitutions for isfinite module.
65691         * lib/isfinite.c: New file.
65692         * m4/isfinite.m4: New file.
65693         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65694         * modules/isfinite: New file.
65695         * modules/isfinite-tests: New file.
65696         * tests/tests-isfinite.c: New file.
65697         * doc/functions/isfinite.texi: Mention isfinite module.
65698         * MODULES.html.sh: Mention new module.
65699
65700 2007-10-27  Ben Pfaff  <blp@gnu.org>
65701
65702         Ralf Wildenhues reported that Tru64 4.0D declares the round
65703         functions but does not have definitions.
65704         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65705         cannot be found in any library, set the output variable to
65706         "missing" instead of "".
65707         * m4/round.m4: Also use our substitute if we cannot find round in
65708         any library, even if it is declared.
65709         * m4/roundf.m4: Likewise for roundf.
65710         * m4/roundl.m4: Likewise for roundl.
65711         * lib/math.in.h: Undefine roundf, round, roundl before defining
65712         their replacements, to allow for hypothetical systems where these
65713         may be defined as macros but not available in libraries.
65714
65715 2007-10-27  Bruno Haible  <bruno@clisp.org>
65716
65717         * doc/gnulib.texi: Invoke @firstparagraphindent.
65718         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65719         changes in gnulib.
65720         (Source changes): New section.
65721
65722 2007-10-26  Bruno Haible  <bruno@clisp.org>
65723
65724         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65725         borrowed from autoconf.
65726
65727 2007-10-26  Bruno Haible  <bruno@clisp.org>
65728
65729         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65730         strerror returned the empty string. Needed on HP-UX 11.00.
65731
65732 2007-10-24  Micah Cowan  <micah@cowan.name>
65733
65734         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65735         * build-aux/bootstrap: Remove support for now-unnecessary option,
65736         --cvs-user, and envvars CVS_USER, CVS_RSH.
65737
65738 2007-10-24  Jim Meyering  <meyering@redhat.com>
65739
65740         Avoid diagnostics from sha1sum when there is no cached checksum.
65741         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65742         if the po.s1 file hasn't been created yet.
65743
65744         * build-aux/bootstrap: Sync from coreutils:
65745         2007-10-24  Jim Meyering  <meyering@redhat.com>
65746         Get gnulib from the git repository, not from an obsolete cvs one.
65747         * build-aux/bootstrap: Suggestion from Micah Cowan.
65748         2007-10-04  Jim Meyering  <jim@meyering.net>
65749         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65750         (update_po_files): Work also when there are no .po files in po/.
65751
65752 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         * README: Append ".git" to git and cg examples.
65755         Problem reported by Benoit Sigoure.
65756
65757 2007-10-23  Micah Cowan  <micah@cowan.name>
65758
65759         * users.txt: Add wget.
65760
65761 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65762
65763         Fix linking of some unistdio tests on FreeBSD.
65764         * modules/unistdio/u16-vsnprintf-tests
65765         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65766         * modules/unistdio/u16-vsprintf-tests
65767         (test_u16_vsnprintf1_LDADD): Likewise.
65768         * modules/unistdio/u32-vsnprintf-tests
65769         (test_u32_vsnprintf1_LDADD): Likewise.
65770         * modules/unistdio/u32-vsprintf-tests
65771         (test_u32_vsprintf1_LDADD): Likewise.
65772         * modules/unistdio/u8-vsnprintf-tests
65773         (test_u8_vsnprintf1_LDADD): Likewise.
65774         * modules/unistdio/u8-vsprintf-tests
65775         (test_u8_vsprintf1_LDADD): Likewise.
65776         * modules/unistdio/ulc-vsnprintf-tests
65777         (test_ulc_vsnprintf1_LDADD): Likewise.
65778         * modules/unistdio/ulc-vsprintf-tests
65779         (test_ulc_vsprintf1_LDADD): Likewise.
65780
65781         Fix linking of some uniconv tests on FreeBSD.
65782         * modules/uniconv/u16-conv-from-enc-tests
65783         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65784         * modules/uniconv/u16-conv-to-enc-tests
65785         (test_u16_conv_to_enc_LDADD): Likewise.
65786         * modules/uniconv/u16-strconv-from-enc-tests
65787         (test_u16_strconv_from_enc_LDADD): Likewise.
65788         * modules/uniconv/u16-strconv-to-enc-tests
65789         (test_u16_strconv_to_enc_LDADD): Likewise.
65790         * modules/uniconv/u32-conv-from-enc-tests
65791         (test_u32_conv_from_enc_LDADD): Likewise.
65792         * modules/uniconv/u32-conv-to-enc-tests
65793         (test_u32_conv_to_enc_LDADD): Likewise.
65794         * modules/uniconv/u32-strconv-from-enc-tests
65795         (test_u32_strconv_from_enc_LDADD): Likewise.
65796         * modules/uniconv/u32-strconv-to-enc-tests
65797         (test_u32_strconv_to_enc_LDADD): Likewise.
65798         * modules/uniconv/u8-conv-from-enc-tests
65799         (test_u8_conv_from_enc_LDADD): Likewise.
65800         * modules/uniconv/u8-conv-to-enc-tests
65801         (test_u8_conv_to_enc_LDADD): Likewise.
65802         * modules/uniconv/u8-strconv-from-enc-tests
65803         (test_u8_strconv_from_enc_LDADD): Likewise.
65804         * modules/uniconv/u8-strconv-to-enc-tests
65805         (test_u8_strconv_to_enc_LDADD): Likewise.
65806
65807 2007-10-22  Bruno Haible  <bruno@clisp.org>
65808
65809         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65810         size.
65811
65812 2007-10-22  Eric Blake  <ebb9@byu.net>
65813
65814         Tweak x*printf documentation.
65815         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65816         variable name and comments.
65817         Suggested by Bruno Haible.
65818
65819 2007-10-22  Bruno Haible  <bruno@clisp.org>
65820
65821         * lib/acl.c (copy_acl): Fix file name in comment.
65822
65823 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         Fix Tru64 problem with stdbool.h.
65826         * lib/stdbool.in.h (false, true):
65827         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65828         Don't declare as an enum in this situation; it runs afoul of Tru64.
65829         Problem reported by Steven M. Schweda in
65830         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65831
65832 2007-10-22  Eric Blake  <ebb9@byu.net>
65833
65834         Also wrap vf?printf.
65835         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65836         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65837         (xvprintf, xvfprintf): New functions.
65838
65839 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65840
65841         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65842         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65843
65844         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65845         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65846
65847 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65850         by Bruno Haible.
65851
65852 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65853
65854         * lib/getloadavg.c
65855         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65856         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65857
65858         * tests/test-i-ring.c: Work for C89.
65859
65860 2007-10-22  Bruno Haible  <bruno@clisp.org>
65861
65862         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65863         -1u, in preprocessor expression, so that we don't test for the bug
65864         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65866
65867 2007-10-22  Eric Blake  <ebb9@byu.net>
65868
65869         * tests/test-yesno.sh: Silence stderr during test.
65870
65871 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65872
65873         * modules/crypto/gc-camellia: New file.
65874
65875         * m4/gc-camellia.m4: New file.
65876
65877         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65878
65879         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65880
65881 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65882
65883         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65884         --help to stdout.  Reported by sms@antinode.org (Steven
65885         M. Schweda).
65886
65887 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65888
65889         * users.txt: Fix link to libksba.
65890
65891 2007-10-21  Ben Pfaff  <blp@gnu.org>
65892
65893         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65894         round.c roundf implementation that depends on floorf and ceilf to
65895         be tested unconditionally.
65896
65897 2007-10-21  Ben Pfaff  <blp@gnu.org>
65898
65899         * m4/check-libm-func.m4: Removed.
65900         * m4/check-math-lib.m4: New file.
65901         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65902         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65903         definition and lack of AC_LIBOBJ([roundf]).
65904         * m4/roundl.m4: Ditto, and similarly for roundl.
65905         * modules/round: Reference new m4 file.
65906         * modules/roundf: Ditto.
65907         * modules/roundl: Ditto.
65908         * tests/test-round2.c (main): Use ROUND instead of round.
65909         Bug report from Bruno Haible.
65910
65911 2007-10-21  Bruno Haible  <bruno@clisp.org>
65912
65913         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65914         context.
65915
65916 2007-10-21  Bruno Haible  <bruno@clisp.org>
65917
65918         * tests/test-wcwidth.c (main): Allow negative result for some control
65919         characters.
65920
65921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65922         Needed on OSF/1 5.1.
65923
65924 2007-10-21  Bruno Haible  <bruno@clisp.org>
65925
65926         * tests/test-floorf1.c: Include isnanf.h.
65927         (main): Use isnanf() instead of isnan().
65928         * tests/test-ceilf1.c: Include isnanf.h.
65929         (main): Use isnanf() instead of isnan().
65930         * tests/test-truncf1.c: Include isnanf.h.
65931         (main): Use isnanf() instead of isnan().
65932         * tests/test-roundf1.c: Include isnanf.h.
65933         (main): Use isnanf() instead of isnan().
65934
65935 2007-10-21  Eric Blake  <ebb9@byu.net>
65936
65937         * users.txt: Update URL for m4.
65938
65939 2007-10-21  Bruno Haible  <bruno@clisp.org>
65940
65941         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65942
65943 2007-10-21  Bruno Haible  <bruno@clisp.org>
65944
65945         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65946         Git's management files if the CVS files are not present.
65947
65948 2007-10-20  Bruno Haible  <bruno@clisp.org>
65949
65950         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65951         gcc-3.4.x.
65952
65953 2007-10-20  Ben Pfaff  <blp@gnu.org>
65954
65955         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65956         implementations.
65957         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65958         * lib/round.c: New file.
65959         * lib/roundf.c: New file.
65960         * lib/roundl.c: New file.
65961         * m4/round.m4: New file.
65962         * m4/roundf.m4: New file.
65963         * m4/roundl.m4: New file.
65964         * m4/check-libm-func-m4: New file.
65965         * modules/math: Replace round, roundf, roundl related @VARS@ in
65966         math.in.h.
65967         * modules/round: New file.
65968         * modules/round-tests: New file.
65969         * modules/roundf: New file.
65970         * modules/roundf-tests: New file.
65971         * modules/roundl: New file.
65972         * modules/roundl-tests: New file.
65973         * tests/test-round1.c: New file.
65974         * tests/test-round2.c: New file.
65975         * tests/test-roundf1.c: New file.
65976         * tests/test-roundf2.c: New file.
65977         * tests/test-roundl.c: New file.
65978         * doc/functions/round.texi: Mention round module.
65979         * doc/functions/roundf.texi: Mention roundf module.
65980         * doc/functions/roundl.texi: Mention roundl module.
65981         * MODULES.html.sh: Mention new modules.
65982         Thanks to Bruno Haible for suggestions.
65983
65984 2007-10-20  Jim Meyering  <meyering@redhat.com>
65985
65986         * lib/xprintf.c: Include <config.h> unconditionally.
65987
65988         Change xprintf's license to GPL.
65989         * modules/xprintf (License): s/LGPL/GPL/, since this module
65990         depends on modules (exit and exitfail) which are GPL.
65991         Suggestion from Bruno Haible.
65992
65993         xprintf fixes.
65994         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65995         Use a clearer diagnostic.
65996         Patch from Bruno Haible.
65997
65998 2007-10-20  Bruno Haible  <bruno@clisp.org>
65999
66000         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66001         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66003
66004 2007-10-20  Bruno Haible  <bruno@clisp.org>
66005
66006         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66007         precision in the comparison result > x - 1 or similar.
66008         * tests/test-ceilf2.c (correct_result_p): Likewise.
66009         * tests/test-truncf2.c (correct_result_p): Likewise.
66010         * tests/test-trunc2.c (correct_result_p): Likewise.
66011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66012
66013 2007-10-20  Bruno Haible  <bruno@clisp.org>
66014
66015         * modules/ceil: New file.
66016         * m4/ceil.m4: New file.
66017         * doc/functions/ceil.texi: Mention the 'ceil' module.
66018
66019 2007-10-20  Bruno Haible  <bruno@clisp.org>
66020
66021         * modules/floor: New file.
66022         * m4/floor.m4: New file.
66023         * doc/functions/floor.texi: Mention the 'floor' module.
66024
66025 2007-10-20  Bruno Haible  <bruno@clisp.org>
66026
66027         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66028         of %a.
66029         * modules/floorf-tests (Depends-on): Likewise.
66030         * modules/truncf-tests (Depends-on): Likewise.
66031         * modules/trunc-tests (Depends-on): Likewise.
66032         Reported by Ben Pfaff.
66033
66034 2007-10-19  Jim Meyering  <meyering@redhat.com>
66035
66036         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66037         Don't bother testing specific errno values.  Just test ferror.
66038
66039         New module: xprintf
66040         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66041
66042 2007-10-19  Bruno Haible  <bruno@clisp.org>
66043
66044         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66045         syntax.
66046         * modules/javaexec (Makefile.am): Likewise.
66047         * modules/relocatable-prog (Makefile.am): Likewise.
66048         Suggested by Jim Meyering.
66049
66050 2007-10-18  Bruno Haible  <bruno@clisp.org>
66051
66052         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66053         Reported by Jim Meyering.
66054
66055 2007-10-18  Eric Blake  <ebb9@byu.net>
66056
66057         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66058
66059 2007-10-18  Bruno Haible  <bruno@clisp.org>
66060
66061         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66062         the format string into writable memory. Needed in Fortify conditions.
66063
66064 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66065             Bruno Haible  <bruno@clisp.org>
66066
66067         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66068         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66069         * modules/trim (Depends-on): Add mbchar.
66070         (configure.ac): Add gl_FUNC_MBRTOWC.
66071         (Makefile.am): Augment lib_SOURCES.
66072
66073 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66074
66075         Modify glob.c to use fstatat and dirfd, to simplify it.
66076         Suggested by Eric Blake.
66077         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66078         Don't include <stdbool.h>; not used.
66079         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66080         (link_exists_p): Simplify implementation, since we can now assume
66081         dirfd and fstatat.
66082         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66083
66084 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66085
66086         * gnulib-tool (func_get_dependencies): Fix sed script to
66087         match only tests.
66088
66089 2007-10-17  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66092         allow locale names without encoding suffix.
66093         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66095
66096 2007-10-16  Bruno Haible  <bruno@clisp.org>
66097
66098         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66099         * lib/getgroups.c (getgroups): Likewise.
66100         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66101
66102 2007-10-16  Bruno Haible  <bruno@clisp.org>
66103
66104         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66105         * modules/malloc-posix (License): Likewise.
66106         * modules/realloc-posix (License): Likewise.
66107         * modules/calloc-posix (License): Likewise.
66108         * modules/intprops (License): Change from GPL to LGPL, with
66109         Paul Eggert's approval.
66110
66111 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66112
66113         Merge glibc changes into lib/glob.c.
66114
66115         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66116         2007-10-15 04:59:03 UTC.  Here are the changes:
66117
66118         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66119
66120         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66121
66122         * lib/glob.c: Add some branch prediction throughout.
66123
66124         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66125
66126         [BZ #5103]
66127         * lib/glob.c (glob): Recognize patterns starting \/.
66128
66129         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66130
66131         [BZ #3996]
66132         * lib/glob.c (attribute_hidden): Define if not defined.
66133         (glob): Unescape dirname, filename or username when needed and not
66134         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66135         is NULL.  Handle unescaped [ in pattern without closing ].
66136         Don't pass GLOB_CHECK down to recursive glob for directories.
66137         (__glob_pattern_type): New function.
66138         (__glob_pattern_p): Implement using __glob_pattern_type.
66139         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66140         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66141         Remove unreachable code.
66142
66143         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66144
66145         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66146         explain why there are no leaks.
66147
66148         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66149
66150         [BZ #3253]
66151         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66152         time, rather allocate increasingly bigger arrays of pointers, if
66153         possible with alloca, if too large with malloc.
66154
66155 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66158         Problem reported by H.Merijn Brand in
66159         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66161         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66162
66163 2007-10-15  Bruno Haible  <bruno@clisp.org>
66164
66165         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66166         with explicit rpl_ prefix.
66167         * lib/fopen.c (fopen): Likewise.
66168         * lib/freopen.c (freopen): Likewise.
66169         * lib/iconv.c (iconv): Likewise.
66170         * lib/iconv_close.c (iconv_close): Likewise.
66171
66172 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66173
66174         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66175
66176 2007-10-15  Bruno Haible  <bruno@clisp.org>
66177
66178         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66179         <stddef.h> instead of <stdlib.h> since we only need NULL.
66180         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66181
66182 2007-10-15  Bruno Haible  <bruno@clisp.org>
66183
66184         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66185         Replace paragraph talking about LIBOBJS.
66186         Reported by Colin Watson <cjwatson@debian.org>.
66187
66188 2007-10-15  Bruno Haible  <bruno@clisp.org>
66189
66190         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66191         <stdlib.h> before using NULL.
66192
66193 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66194
66195         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66196         Reported by Albert Chin <china@thewrittenword.com>.
66197
66198 2007-10-14  Bruno Haible  <bruno@clisp.org>
66199
66200         * modules/iconv_open-utf-tests: New file.
66201         * tests/test-iconv-utf.c: New file.
66202
66203         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66204         * modules/iconv_open-utf: New file.
66205         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66206         (iconv, iconv_close): New declarations.
66207         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66208         be defined.
66209         (iconv_open): Add special handling of conversion between UTF-8 and
66210         UTF-{16,32}{BE,LE}.
66211         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66212         * lib/iconv_close.c: New file.
66213         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66214         gl_FUNC_ICONV_OPEN.
66215         (gl_FUNC_ICONV_OPEN): Use it.
66216         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66217         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66218         and REPLACE_ICONV_UTF.
66219         * modules/iconv_open (Depends-on): Add c-strcase.
66220         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66221         ICONV_CONST.
66222         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66223
66224 2007-10-13  Albert Chin  <china@thewrittenword.com>
66225             Bruno Haible  <bruno@clisp.org>
66226
66227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66228         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66229
66230 2007-10-13  Bruno Haible  <bruno@clisp.org>
66231
66232         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66233         defined, use the ISO C99 inline semantics.
66234         * lib/argp.h (ARGP_EI): Likewise.
66235
66236 2007-10-13  Bruno Haible  <bruno@clisp.org>
66237
66238         Handle 'inline' change in gcc 4.3.0.
66239         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66240         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66241         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66242         argp_fmtstream_point): Disable 'extern' declaration if the function
66243         definition is going to be provided inline.
66244         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66245         semantics, not the ISO C99 inline semantics.
66246         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66247         'extern' declaration if the function definition is going to be provided
66248         inline.
66249         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66250         the GNU C inline semantics, not the ISO C99 inline semantics. With
66251         GCC 4.2, avoid a warning.
66252
66253 2007-10-13  Bruno Haible  <bruno@clisp.org>
66254
66255         * lib/freading.h (freading): Enable the use of __freading for
66256         glibc >= 2.7.
66257         * lib/freading.c (freading): Likewise.
66258
66259 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66260
66261         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66262         "warning: C99 inline functions are not supported; using GNU89".
66263
66264 2007-10-12  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66267         of 2.
66268         * tests/test-ceilf2.c: New file.
66269         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66270
66271         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66272         * modules/ceilf-tests: Update.
66273
66274 2007-10-12  Bruno Haible  <bruno@clisp.org>
66275
66276         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66277         of 2.
66278         * tests/test-floorf2.c: New file.
66279         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66280
66281         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66282         * modules/floorf-tests: Update.
66283
66284 2007-10-12  Bruno Haible  <bruno@clisp.org>
66285
66286         * tests/test-trunc2.c: New file.
66287         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66288
66289         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66290         * modules/trunc-tests: Update.
66291
66292 2007-10-12  Bruno Haible  <bruno@clisp.org>
66293
66294         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66295         of 2.
66296         * tests/test-truncf2.c: New file.
66297         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66298
66299         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66300         * modules/truncf-tests: Update.
66301
66302 2007-10-11  Eric Blake  <ebb9@byu.net>
66303
66304         Don't claim strerror is broken on Interix.
66305         * doc/functions/strerror.texi (strerror): Known broken systems are
66306         now Solaris 8, and not Interix.
66307         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66308         Interix on cross-compile.
66309         Reported by Martin Koeppe in
66310         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66311
66312 2007-10-11  Bruno Haible  <bruno@clisp.org>
66313
66314         * modules/i-ring-tests: New file.
66315         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66316         instead of assert.
66317
66318 2007-10-11  Bruno Haible  <bruno@clisp.org>
66319
66320         * modules/filenamecat-tests: New file.
66321         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66322         * lib/filenamecat.c: Remove test code.
66323
66324 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66325
66326         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66327
66328         * lib/strerror.c: Include <string.h> always, to test interface,
66329         and to remove the need for the dummy.
66330         Include intprops.h to compute width instead of doing it ourselves
66331         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66332         (strerror): Define it to return NULL if there's no system strerror.
66333         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66334         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66335         ancient pre-strerror Unix systems well any more.  Saying "unknown
66336         system error" is enough.
66337         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66338         simpler strerror.c implementation.
66339         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66340         Simplify the tests to reflect the simpler strerror implementation.
66341         * modules/strerror (Depends-on): Add intprops.
66342
66343 2007-10-09  Eric Blake  <ebb9@byu.net>
66344
66345         Silence test-fpending.
66346         * modules/fpending-tests (Files): Add wrapper script.
66347         * tests/test-fpending.sh: New file.
66348
66349 2007-10-09  Bruno Haible  <bruno@clisp.org>
66350
66351         * MODULES.html.sh (func_module): Don't create a hyperlink for
66352         function names like 'printf_frexp'.
66353         (Misc): Add crc, memxor.
66354         (Characteristics of floating types): New section.
66355         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66356         isnanf-nolibm, signbit, trunc, truncf, truncl.
66357         (Enhancements for ISO C 99 functions): New subsection Input/output.
66358         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66359         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66360         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66361         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66362         (Enhancements for POSIX:2001 functions): Add chdir-long.
66363         (File system functions): Add areadlink, chdir-safer, read-file.
66364         Remove cycle-check.
66365         (File system as inode set): New section.
66366         (Date and time): Add gethrxtime.
66367         (Multithreading): Add openmp.
66368         (Internationalization functions): Add localename.
66369         (Unicode string functions): Add unistr/u*-mbsnlen.
66370         (Support for maintaining and releasing projects): Add git-version-gen.
66371         (Lone files): Remove directories.
66372
66373 2007-10-08  Ben Pfaff  <blp@gnu.org>
66374
66375         * lib/xmalloca.h: Fix typo in comment.
66376
66377 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66380         when avoiding problems with integer overflow.  Use a portable test
66381         instead.
66382
66383 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66384
66385         * modules/dummy (License): Change to LGPLv2+.
66386         * modules/float (License): Likewise
66387         * modules/realloc (License): Likewise
66388         * modules/stdlib (License): Likewise
66389
66390 2007-10-07  Bruno Haible  <bruno@clisp.org>
66391
66392         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66393         * floor.c (TWO_MANT_DIG): Likewise.
66394         * ceil.c (TWO_MANT_DIG): Likewise.
66395         Reported by Ben Pfaff.
66396
66397 2007-10-07  Bruno Haible  <bruno@clisp.org>
66398
66399         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66400         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66401         * lib/frexp.c (FUNC): Likewise.
66402         * lib/printf-frexp.h (printf_frexp): Likewise.
66403         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66404         * lib/printf-frexp.c (FUNC): Likewise.
66405         Suggested by Jim Meyering.
66406
66407 2007-10-07  Jim Meyering  <meyering@redhat.com>
66408
66409         Make xnanosleep's integer overflow test more robust.
66410         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66411         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66412
66413 2007-10-07  Bruno Haible  <bruno@clisp.org>
66414
66415         * NEWS: Mention the license change.
66416
66417         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66418         abbreviations in the modules files.
66419
66420         Change copyright notice from GPLv2+ to GPLv3+.
66421         * README: Change copyright notice.
66422         * MODULES.html.sh: Likewise.
66423         * build-aux/bootstrap.conf: Likewise.
66424         * build-aux/config.libpath: Likewise.
66425         * build-aux/csharpcomp.sh.in: Likewise.
66426         * build-aux/csharpexec.sh.in: Likewise.
66427         * build-aux/install-reloc: Likewise.
66428         * build-aux/javacomp.sh.in: Likewise.
66429         * build-aux/javaexec.sh.in: Likewise.
66430         * build-aux/ldd.sh.in: Likewise.
66431         * build-aux/reloc-ldflags: Likewise.
66432         * build-aux/relocatable.sh.in: Likewise.
66433         * build-aux/x-to-1.in: Likewise.
66434         * check-module: Likewise.
66435         * config/srclistvars.sh: Likewise.
66436         * gnulib-tool: Likewise.
66437         * lib/acl-internal.h: Likewise.
66438         * lib/acl.c: Likewise.
66439         * lib/acl.h: Likewise.
66440         * lib/acl_entries.c: Likewise.
66441         * lib/areadlink-with-size.c: Likewise.
66442         * lib/areadlink.c: Likewise.
66443         * lib/areadlink.h: Likewise.
66444         * lib/argmatch.c: Likewise.
66445         * lib/argmatch.h: Likewise.
66446         * lib/argp-ba.c: Likewise.
66447         * lib/argp-eexst.c: Likewise.
66448         * lib/argp-fmtstream.c: Likewise.
66449         * lib/argp-fmtstream.h: Likewise.
66450         * lib/argp-fs-xinl.c: Likewise.
66451         * lib/argp-help.c: Likewise.
66452         * lib/argp-namefrob.h: Likewise.
66453         * lib/argp-parse.c: Likewise.
66454         * lib/argp-pin.c: Likewise.
66455         * lib/argp-pv.c: Likewise.
66456         * lib/argp-pvh.c: Likewise.
66457         * lib/argp-xinl.c: Likewise.
66458         * lib/argp.h: Likewise.
66459         * lib/at-func.c: Likewise.
66460         * lib/atanl.c: Likewise.
66461         * lib/backupfile.c: Likewise.
66462         * lib/backupfile.h: Likewise.
66463         * lib/basename.c: Likewise.
66464         * lib/binary-io.h: Likewise.
66465         * lib/byteswap.in.h: Likewise.
66466         * lib/c-stack.c: Likewise.
66467         * lib/c-stack.h: Likewise.
66468         * lib/c-strcasestr.c: Likewise.
66469         * lib/c-strcasestr.h: Likewise.
66470         * lib/c-strstr.c: Likewise.
66471         * lib/c-strstr.h: Likewise.
66472         * lib/c-strtod.c: Likewise.
66473         * lib/calloc.c: Likewise.
66474         * lib/canon-host.c: Likewise.
66475         * lib/canon-host.h: Likewise.
66476         * lib/canonicalize-lgpl.c: Likewise.
66477         * lib/canonicalize.c: Likewise.
66478         * lib/canonicalize.h: Likewise.
66479         * lib/ceil.c: Likewise.
66480         * lib/ceilf.c: Likewise.
66481         * lib/ceill.c: Likewise.
66482         * lib/chdir-long.c: Likewise.
66483         * lib/chdir-long.h: Likewise.
66484         * lib/chdir-safer.c: Likewise.
66485         * lib/chdir-safer.h: Likewise.
66486         * lib/chown.c: Likewise.
66487         * lib/classpath.c: Likewise.
66488         * lib/classpath.h: Likewise.
66489         * lib/clean-temp.c: Likewise.
66490         * lib/clean-temp.h: Likewise.
66491         * lib/cloexec.c: Likewise.
66492         * lib/close-stream.c: Likewise.
66493         * lib/closein.c: Likewise.
66494         * lib/closein.h: Likewise.
66495         * lib/closeout.c: Likewise.
66496         * lib/closeout.h: Likewise.
66497         * lib/concat-filename.c: Likewise.
66498         * lib/copy-file.c: Likewise.
66499         * lib/copy-file.h: Likewise.
66500         * lib/count-one-bits.h: Likewise.
66501         * lib/crc.c: Likewise.
66502         * lib/crc.h: Likewise.
66503         * lib/creat-safer.c: Likewise.
66504         * lib/csharpcomp.c: Likewise.
66505         * lib/csharpcomp.h: Likewise.
66506         * lib/csharpexec.c: Likewise.
66507         * lib/csharpexec.h: Likewise.
66508         * lib/cycle-check.c: Likewise.
66509         * lib/cycle-check.h: Likewise.
66510         * lib/diacrit.c: Likewise.
66511         * lib/diacrit.h: Likewise.
66512         * lib/diffseq.h: Likewise.
66513         * lib/dirchownmod.c: Likewise.
66514         * lib/dirent.in.h: Likewise.
66515         * lib/dirfd.c: Likewise.
66516         * lib/dirfd.h: Likewise.
66517         * lib/dirname.c: Likewise.
66518         * lib/dirname.h: Likewise.
66519         * lib/dummy.c: Likewise.
66520         * lib/dup-safer.c: Likewise.
66521         * lib/dup2.c: Likewise.
66522         * lib/eealloc.h: Likewise.
66523         * lib/error.c: Likewise.
66524         * lib/error.h: Likewise.
66525         * lib/euidaccess.c: Likewise.
66526         * lib/exclude.c: Likewise.
66527         * lib/exclude.h: Likewise.
66528         * lib/execute.c: Likewise.
66529         * lib/execute.h: Likewise.
66530         * lib/exitfail.c: Likewise.
66531         * lib/exitfail.h: Likewise.
66532         * lib/expl.c: Likewise.
66533         * lib/fatal-signal.c: Likewise.
66534         * lib/fatal-signal.h: Likewise.
66535         * lib/fbufmode.c: Likewise.
66536         * lib/fbufmode.h: Likewise.
66537         * lib/fchdir.c: Likewise.
66538         * lib/fchmodat.c: Likewise.
66539         * lib/fchownat.c: Likewise.
66540         * lib/fcntl--.h: Likewise.
66541         * lib/fcntl-safer.h: Likewise.
66542         * lib/fcntl.in.h: Likewise.
66543         * lib/fd-safer.c: Likewise.
66544         * lib/fflush.c: Likewise.
66545         * lib/file-has-acl.c: Likewise.
66546         * lib/file-set.c: Likewise.
66547         * lib/file-type.c: Likewise.
66548         * lib/file-type.h: Likewise.
66549         * lib/fileblocks.c: Likewise.
66550         * lib/filemode.c: Likewise.
66551         * lib/filemode.h: Likewise.
66552         * lib/filename.h: Likewise.
66553         * lib/filenamecat.c: Likewise.
66554         * lib/filenamecat.h: Likewise.
66555         * lib/findprog.c: Likewise.
66556         * lib/findprog.h: Likewise.
66557         * lib/float.in.h: Likewise.
66558         * lib/floor.c: Likewise.
66559         * lib/floorf.c: Likewise.
66560         * lib/floorl.c: Likewise.
66561         * lib/fopen-safer.c: Likewise.
66562         * lib/fopen.c: Likewise.
66563         * lib/fpending.c: Likewise.
66564         * lib/fpending.h: Likewise.
66565         * lib/fprintf.c: Likewise.
66566         * lib/fprintftime.h: Likewise.
66567         * lib/fpucw.h: Likewise.
66568         * lib/fpurge.c: Likewise.
66569         * lib/fpurge.h: Likewise.
66570         * lib/freadable.c: Likewise.
66571         * lib/freadable.h: Likewise.
66572         * lib/freadahead.c: Likewise.
66573         * lib/freadahead.h: Likewise.
66574         * lib/freading.c: Likewise.
66575         * lib/freading.h: Likewise.
66576         * lib/free.c: Likewise.
66577         * lib/freopen.c: Likewise.
66578         * lib/frexp.c: Likewise.
66579         * lib/frexpl.c: Likewise.
66580         * lib/fseek.c: Likewise.
66581         * lib/fseterr.c: Likewise.
66582         * lib/fseterr.h: Likewise.
66583         * lib/fstatat.c: Likewise.
66584         * lib/fstrcmp.c: Likewise.
66585         * lib/fstrcmp.h: Likewise.
66586         * lib/fsusage.c: Likewise.
66587         * lib/fsusage.h: Likewise.
66588         * lib/ftell.c: Likewise.
66589         * lib/ftello.c: Likewise.
66590         * lib/fts-cycle.c: Likewise.
66591         * lib/fts.c: Likewise.
66592         * lib/fts_.h: Likewise.
66593         * lib/full-read.c: Likewise.
66594         * lib/full-read.h: Likewise.
66595         * lib/full-write.c: Likewise.
66596         * lib/full-write.h: Likewise.
66597         * lib/fwritable.c: Likewise.
66598         * lib/fwritable.h: Likewise.
66599         * lib/fwriteerror.c: Likewise.
66600         * lib/fwriteerror.h: Likewise.
66601         * lib/fwriting.c: Likewise.
66602         * lib/fwriting.h: Likewise.
66603         * lib/gcd.c: Likewise.
66604         * lib/gcd.h: Likewise.
66605         * lib/getcwd.c: Likewise.
66606         * lib/getdate.h: Likewise.
66607         * lib/getdate.y: Likewise.
66608         * lib/getdomainname.c: Likewise.
66609         * lib/getdomainname.h: Likewise.
66610         * lib/getgroups.c: Likewise.
66611         * lib/gethostname.c: Likewise.
66612         * lib/gethrxtime.c: Likewise.
66613         * lib/gethrxtime.h: Likewise.
66614         * lib/getloadavg.c: Likewise.
66615         * lib/getndelim2.c: Likewise.
66616         * lib/getndelim2.h: Likewise.
66617         * lib/getnline.c: Likewise.
66618         * lib/getnline.h: Likewise.
66619         * lib/getopt.c: Likewise.
66620         * lib/getopt.in.h: Likewise.
66621         * lib/getopt1.c: Likewise.
66622         * lib/getopt_int.h: Likewise.
66623         * lib/getpagesize.h: Likewise.
66624         * lib/getsubopt.c: Likewise.
66625         * lib/gettime.c: Likewise.
66626         * lib/getugroups.c: Likewise.
66627         * lib/getugroups.h: Likewise.
66628         * lib/getusershell.c: Likewise.
66629         * lib/gl_anyavltree_list1.h: Likewise.
66630         * lib/gl_anyavltree_list2.h: Likewise.
66631         * lib/gl_anyhash_list1.h: Likewise.
66632         * lib/gl_anyhash_list2.h: Likewise.
66633         * lib/gl_anylinked_list1.h: Likewise.
66634         * lib/gl_anylinked_list2.h: Likewise.
66635         * lib/gl_anyrbtree_list1.h: Likewise.
66636         * lib/gl_anyrbtree_list2.h: Likewise.
66637         * lib/gl_anytree_list1.h: Likewise.
66638         * lib/gl_anytree_list2.h: Likewise.
66639         * lib/gl_anytree_oset.h: Likewise.
66640         * lib/gl_anytreehash_list1.h: Likewise.
66641         * lib/gl_anytreehash_list2.h: Likewise.
66642         * lib/gl_array_list.c: Likewise.
66643         * lib/gl_array_list.h: Likewise.
66644         * lib/gl_array_oset.c: Likewise.
66645         * lib/gl_array_oset.h: Likewise.
66646         * lib/gl_avltree_list.c: Likewise.
66647         * lib/gl_avltree_list.h: Likewise.
66648         * lib/gl_avltree_oset.c: Likewise.
66649         * lib/gl_avltree_oset.h: Likewise.
66650         * lib/gl_avltreehash_list.c: Likewise.
66651         * lib/gl_avltreehash_list.h: Likewise.
66652         * lib/gl_carray_list.c: Likewise.
66653         * lib/gl_carray_list.h: Likewise.
66654         * lib/gl_linked_list.c: Likewise.
66655         * lib/gl_linked_list.h: Likewise.
66656         * lib/gl_linkedhash_list.c: Likewise.
66657         * lib/gl_linkedhash_list.h: Likewise.
66658         * lib/gl_list.c: Likewise.
66659         * lib/gl_list.h: Likewise.
66660         * lib/gl_oset.c: Likewise.
66661         * lib/gl_oset.h: Likewise.
66662         * lib/gl_rbtree_list.c: Likewise.
66663         * lib/gl_rbtree_list.h: Likewise.
66664         * lib/gl_rbtree_oset.c: Likewise.
66665         * lib/gl_rbtree_oset.h: Likewise.
66666         * lib/gl_rbtreehash_list.c: Likewise.
66667         * lib/gl_rbtreehash_list.h: Likewise.
66668         * lib/gl_sublist.c: Likewise.
66669         * lib/gl_sublist.h: Likewise.
66670         * lib/group-member.c: Likewise.
66671         * lib/group-member.h: Likewise.
66672         * lib/hard-locale.c: Likewise.
66673         * lib/hard-locale.h: Likewise.
66674         * lib/hash-pjw.c: Likewise.
66675         * lib/hash-pjw.h: Likewise.
66676         * lib/hash-triple.c: Likewise.
66677         * lib/hash.c: Likewise.
66678         * lib/hash.h: Likewise.
66679         * lib/human.c: Likewise.
66680         * lib/human.h: Likewise.
66681         * lib/i-ring.c: Likewise.
66682         * lib/i-ring.h: Likewise.
66683         * lib/idcache.c: Likewise.
66684         * lib/imaxabs.c: Likewise.
66685         * lib/imaxdiv.c: Likewise.
66686         * lib/inet_pton.c: Likewise.
66687         * lib/inet_pton.h: Likewise.
66688         * lib/intprops.h: Likewise.
66689         * lib/inttostr.c: Likewise.
66690         * lib/inttostr.h: Likewise.
66691         * lib/inttypes.in.h: Likewise.
66692         * lib/isapipe.c: Likewise.
66693         * lib/isdir.c: Likewise.
66694         * lib/isnan.c: Likewise.
66695         * lib/isnan.h: Likewise.
66696         * lib/isnanf.c: Likewise.
66697         * lib/isnanf.h: Likewise.
66698         * lib/isnanl-nolibm.h: Likewise.
66699         * lib/isnanl.c: Likewise.
66700         * lib/isnanl.h: Likewise.
66701         * lib/javacomp.c: Likewise.
66702         * lib/javacomp.h: Likewise.
66703         * lib/javaexec.c: Likewise.
66704         * lib/javaexec.h: Likewise.
66705         * lib/javaversion.c: Likewise.
66706         * lib/javaversion.h: Likewise.
66707         * lib/javaversion.java: Likewise.
66708         * lib/lbrkprop.h: Likewise.
66709         * lib/lchmod.h: Likewise.
66710         * lib/lchown.c: Likewise.
66711         * lib/ldexpl.c: Likewise.
66712         * lib/linebreak.c: Likewise.
66713         * lib/linebreak.h: Likewise.
66714         * lib/linebuffer.c: Likewise.
66715         * lib/linebuffer.h: Likewise.
66716         * lib/locale.in.h: Likewise.
66717         * lib/logl.c: Likewise.
66718         * lib/long-options.c: Likewise.
66719         * lib/long-options.h: Likewise.
66720         * lib/lstat.c: Likewise.
66721         * lib/lstat.h: Likewise.
66722         * lib/math.in.h: Likewise.
66723         * lib/mbchar.c: Likewise.
66724         * lib/mbchar.h: Likewise.
66725         * lib/mbfile.h: Likewise.
66726         * lib/mbiter.h: Likewise.
66727         * lib/mbscasecmp.c: Likewise.
66728         * lib/mbscasestr.c: Likewise.
66729         * lib/mbschr.c: Likewise.
66730         * lib/mbscspn.c: Likewise.
66731         * lib/mbslen.c: Likewise.
66732         * lib/mbsncasecmp.c: Likewise.
66733         * lib/mbsnlen.c: Likewise.
66734         * lib/mbspbrk.c: Likewise.
66735         * lib/mbspcasecmp.c: Likewise.
66736         * lib/mbsrchr.c: Likewise.
66737         * lib/mbssep.c: Likewise.
66738         * lib/mbsspn.c: Likewise.
66739         * lib/mbsstr.c: Likewise.
66740         * lib/mbstok_r.c: Likewise.
66741         * lib/mbswidth.c: Likewise.
66742         * lib/mbswidth.h: Likewise.
66743         * lib/mbuiter.h: Likewise.
66744         * lib/memcasecmp.c: Likewise.
66745         * lib/memcasecmp.h: Likewise.
66746         * lib/memchr.c: Likewise.
66747         * lib/memcmp.c: Likewise.
66748         * lib/memcoll.c: Likewise.
66749         * lib/memcoll.h: Likewise.
66750         * lib/memcpy.c: Likewise.
66751         * lib/memrchr.c: Likewise.
66752         * lib/mkancesdirs.c: Likewise.
66753         * lib/mkdir-p.c: Likewise.
66754         * lib/mkdir-p.h: Likewise.
66755         * lib/mkdir.c: Likewise.
66756         * lib/mkdirat.c: Likewise.
66757         * lib/mkdtemp.c: Likewise.
66758         * lib/mkstemp-safer.c: Likewise.
66759         * lib/mkstemp.c: Likewise.
66760         * lib/modechange.c: Likewise.
66761         * lib/modechange.h: Likewise.
66762         * lib/mountlist.c: Likewise.
66763         * lib/mountlist.h: Likewise.
66764         * lib/mpsort.c: Likewise.
66765         * lib/nanosleep.c: Likewise.
66766         * lib/obstack.c: Likewise.
66767         * lib/obstack.h: Likewise.
66768         * lib/open-safer.c: Likewise.
66769         * lib/open.c: Likewise.
66770         * lib/openat-die.c: Likewise.
66771         * lib/openat-priv.h: Likewise.
66772         * lib/openat-proc.c: Likewise.
66773         * lib/openat.c: Likewise.
66774         * lib/openat.h: Likewise.
66775         * lib/pagealign_alloc.c: Likewise.
66776         * lib/pagealign_alloc.h: Likewise.
66777         * lib/physmem.c: Likewise.
66778         * lib/physmem.h: Likewise.
66779         * lib/pipe-safer.c: Likewise.
66780         * lib/pipe.c: Likewise.
66781         * lib/pipe.h: Likewise.
66782         * lib/posixtm.c: Likewise.
66783         * lib/posixtm.h: Likewise.
66784         * lib/posixver.c: Likewise.
66785         * lib/printf-frexp.c: Likewise.
66786         * lib/printf-frexp.h: Likewise.
66787         * lib/printf-frexpl.c: Likewise.
66788         * lib/printf-frexpl.h: Likewise.
66789         * lib/printf.c: Likewise.
66790         * lib/progname.c: Likewise.
66791         * lib/progname.h: Likewise.
66792         * lib/progreloc.c: Likewise.
66793         * lib/putenv.c: Likewise.
66794         * lib/quote.c: Likewise.
66795         * lib/quote.h: Likewise.
66796         * lib/quotearg.c: Likewise.
66797         * lib/quotearg.h: Likewise.
66798         * lib/raise.c: Likewise.
66799         * lib/readline.c: Likewise.
66800         * lib/readline.h: Likewise.
66801         * lib/readlink.c: Likewise.
66802         * lib/readtokens.c: Likewise.
66803         * lib/readtokens.h: Likewise.
66804         * lib/readtokens0.c: Likewise.
66805         * lib/readtokens0.h: Likewise.
66806         * lib/readutmp.c: Likewise.
66807         * lib/readutmp.h: Likewise.
66808         * lib/realloc.c: Likewise.
66809         * lib/relocwrapper.c: Likewise.
66810         * lib/rename-dest-slash.c: Likewise.
66811         * lib/rename.c: Likewise.
66812         * lib/rmdir.c: Likewise.
66813         * lib/rpmatch.c: Likewise.
66814         * lib/safe-read.c: Likewise.
66815         * lib/safe-read.h: Likewise.
66816         * lib/safe-write.c: Likewise.
66817         * lib/safe-write.h: Likewise.
66818         * lib/same-inode.h: Likewise.
66819         * lib/same.c: Likewise.
66820         * lib/same.h: Likewise.
66821         * lib/save-cwd.c: Likewise.
66822         * lib/save-cwd.h: Likewise.
66823         * lib/savedir.c: Likewise.
66824         * lib/savedir.h: Likewise.
66825         * lib/savewd.c: Likewise.
66826         * lib/savewd.h: Likewise.
66827         * lib/search.in.h: Likewise.
66828         * lib/setenv.c: Likewise.
66829         * lib/setenv.h: Likewise.
66830         * lib/settime.c: Likewise.
66831         * lib/sh-quote.c: Likewise.
66832         * lib/sh-quote.h: Likewise.
66833         * lib/sig2str.c: Likewise.
66834         * lib/sig2str.h: Likewise.
66835         * lib/signal.in.h: Likewise.
66836         * lib/signbitd.c: Likewise.
66837         * lib/signbitf.c: Likewise.
66838         * lib/signbitl.c: Likewise.
66839         * lib/sigprocmask.c: Likewise.
66840         * lib/sincosl.c: Likewise.
66841         * lib/sleep.c: Likewise.
66842         * lib/sprintf.c: Likewise.
66843         * lib/sqrtl.c: Likewise.
66844         * lib/stat-time.h: Likewise.
66845         * lib/stdio--.h: Likewise.
66846         * lib/stdio-safer.h: Likewise.
66847         * lib/stdlib--.h: Likewise.
66848         * lib/stdlib-safer.h: Likewise.
66849         * lib/stdlib.in.h: Likewise.
66850         * lib/stpcpy.c: Likewise.
66851         * lib/stpncpy.c: Likewise.
66852         * lib/strchrnul.c: Likewise.
66853         * lib/strcspn.c: Likewise.
66854         * lib/strerror.c: Likewise.
66855         * lib/strftime.c: Likewise.
66856         * lib/strftime.h: Likewise.
66857         * lib/striconveh.c: Likewise.
66858         * lib/striconveh.h: Likewise.
66859         * lib/striconveha.c: Likewise.
66860         * lib/striconveha.h: Likewise.
66861         * lib/stripslash.c: Likewise.
66862         * lib/strnlen1.c: Likewise.
66863         * lib/strnlen1.h: Likewise.
66864         * lib/strtod.c: Likewise.
66865         * lib/strtoimax.c: Likewise.
66866         * lib/strtok_r.c: Likewise.
66867         * lib/strtol.c: Likewise.
66868         * lib/strtoll.c: Likewise.
66869         * lib/strtoul.c: Likewise.
66870         * lib/strtoull.c: Likewise.
66871         * lib/sysexits.in.h: Likewise.
66872         * lib/tempname.c: Likewise.
66873         * lib/tempname.h: Likewise.
66874         * lib/timespec.h: Likewise.
66875         * lib/tls.c: Likewise.
66876         * lib/tls.h: Likewise.
66877         * lib/tmpdir.c: Likewise.
66878         * lib/tmpdir.h: Likewise.
66879         * lib/tmpfile-safer.c: Likewise.
66880         * lib/tmpfile.c: Likewise.
66881         * lib/trigl.c: Likewise.
66882         * lib/trigl.h: Likewise.
66883         * lib/trim.c: Likewise.
66884         * lib/trim.h: Likewise.
66885         * lib/trunc.c: Likewise.
66886         * lib/truncf.c: Likewise.
66887         * lib/truncl.c: Likewise.
66888         * lib/tsearch.c: Likewise.
66889         * lib/unicodeio.c: Likewise.
66890         * lib/unicodeio.h: Likewise.
66891         * lib/unistd--.h: Likewise.
66892         * lib/unistd-safer.h: Likewise.
66893         * lib/unistdio/ulc-fprintf.c: Likewise.
66894         * lib/unistdio/ulc-vfprintf.c: Likewise.
66895         * lib/unlinkdir.c: Likewise.
66896         * lib/unlinkdir.h: Likewise.
66897         * lib/unlocked-io.h: Likewise.
66898         * lib/unsetenv.c: Likewise.
66899         * lib/userspec.c: Likewise.
66900         * lib/utime.c: Likewise.
66901         * lib/utimecmp.c: Likewise.
66902         * lib/utimecmp.h: Likewise.
66903         * lib/utimens.c: Likewise.
66904         * lib/verify.h: Likewise.
66905         * lib/verror.c: Likewise.
66906         * lib/verror.h: Likewise.
66907         * lib/version-etc-fsf.c: Likewise.
66908         * lib/version-etc.c: Likewise.
66909         * lib/version-etc.h: Likewise.
66910         * lib/vfprintf.c: Likewise.
66911         * lib/vprintf.c: Likewise.
66912         * lib/vsprintf.c: Likewise.
66913         * lib/w32spawn.h: Likewise.
66914         * lib/wait-process.c: Likewise.
66915         * lib/wait-process.h: Likewise.
66916         * lib/wcwidth.c: Likewise.
66917         * lib/write-any-file.c: Likewise.
66918         * lib/xalloc-die.c: Likewise.
66919         * lib/xalloc.h: Likewise.
66920         * lib/xasprintf.c: Likewise.
66921         * lib/xgetcwd.c: Likewise.
66922         * lib/xgetcwd.h: Likewise.
66923         * lib/xgetdomainname.c: Likewise.
66924         * lib/xgetdomainname.h: Likewise.
66925         * lib/xgethostname.c: Likewise.
66926         * lib/xmalloc.c: Likewise.
66927         * lib/xmalloca.c: Likewise.
66928         * lib/xmalloca.h: Likewise.
66929         * lib/xmemcoll.c: Likewise.
66930         * lib/xnanosleep.c: Likewise.
66931         * lib/xreadlink.c: Likewise.
66932         * lib/xreadlink.h: Likewise.
66933         * lib/xsetenv.c: Likewise.
66934         * lib/xsetenv.h: Likewise.
66935         * lib/xstriconv.c: Likewise.
66936         * lib/xstriconv.h: Likewise.
66937         * lib/xstrndup.c: Likewise.
66938         * lib/xstrndup.h: Likewise.
66939         * lib/xstrtod.c: Likewise.
66940         * lib/xstrtod.h: Likewise.
66941         * lib/xstrtol-error.c: Likewise.
66942         * lib/xstrtol.c: Likewise.
66943         * lib/xstrtol.h: Likewise.
66944         * lib/xtime.h: Likewise.
66945         * lib/xvasprintf.c: Likewise.
66946         * lib/xvasprintf.h: Likewise.
66947         * lib/yesno.c: Likewise.
66948         * lib/yesno.h: Likewise.
66949         * posix-modules: Likewise.
66950         * tests/test-alloca-opt.c: Likewise.
66951         * tests/test-arcfour.c: Likewise.
66952         * tests/test-arctwo.c: Likewise.
66953         * tests/test-argmatch.c: Likewise.
66954         * tests/test-argp-2.sh: Likewise.
66955         * tests/test-argp.c: Likewise.
66956         * tests/test-arpa_inet.c: Likewise.
66957         * tests/test-array_list.c: Likewise.
66958         * tests/test-array_oset.c: Likewise.
66959         * tests/test-atexit.c: Likewise.
66960         * tests/test-avltree_list.c: Likewise.
66961         * tests/test-avltree_oset.c: Likewise.
66962         * tests/test-avltreehash_list.c: Likewise.
66963         * tests/test-base64.c: Likewise.
66964         * tests/test-binary-io.c: Likewise.
66965         * tests/test-byteswap.c: Likewise.
66966         * tests/test-c-ctype.c: Likewise.
66967         * tests/test-c-strcasecmp.c: Likewise.
66968         * tests/test-c-strcasestr.c: Likewise.
66969         * tests/test-c-strncasecmp.c: Likewise.
66970         * tests/test-c-strstr.c: Likewise.
66971         * tests/test-canonicalize-lgpl.c: Likewise.
66972         * tests/test-canonicalize.c: Likewise.
66973         * tests/test-carray_list.c: Likewise.
66974         * tests/test-ceilf.c: Likewise.
66975         * tests/test-ceill.c: Likewise.
66976         * tests/test-count-one-bits.c: Likewise.
66977         * tests/test-crc.c: Likewise.
66978         * tests/test-dirname.c: Likewise.
66979         * tests/test-fbufmode.c: Likewise.
66980         * tests/test-fcntl.c: Likewise.
66981         * tests/test-fflush.c: Likewise.
66982         * tests/test-floorf.c: Likewise.
66983         * tests/test-floorl.c: Likewise.
66984         * tests/test-fopen.c: Likewise.
66985         * tests/test-fprintf-posix.c: Likewise.
66986         * tests/test-fprintf-posix.h: Likewise.
66987         * tests/test-fpurge.c: Likewise.
66988         * tests/test-freadable.c: Likewise.
66989         * tests/test-freadahead.c: Likewise.
66990         * tests/test-freading.c: Likewise.
66991         * tests/test-freopen.c: Likewise.
66992         * tests/test-frexp.c: Likewise.
66993         * tests/test-frexpl.c: Likewise.
66994         * tests/test-fseek.c: Likewise.
66995         * tests/test-fseeko.c: Likewise.
66996         * tests/test-fseterr.c: Likewise.
66997         * tests/test-fstrcmp.c: Likewise.
66998         * tests/test-ftell.c: Likewise.
66999         * tests/test-ftello.c: Likewise.
67000         * tests/test-fwritable.c: Likewise.
67001         * tests/test-fwriting.c: Likewise.
67002         * tests/test-getaddrinfo.c: Likewise.
67003         * tests/test-getpass.c: Likewise.
67004         * tests/test-gettimeofday.c: Likewise.
67005         * tests/test-hmac-md5.c: Likewise.
67006         * tests/test-hmac-sha1.c: Likewise.
67007         * tests/test-iconv.c: Likewise.
67008         * tests/test-iconvme.c: Likewise.
67009         * tests/test-inttypes.c: Likewise.
67010         * tests/test-isnan.c: Likewise.
67011         * tests/test-isnanf.c: Likewise.
67012         * tests/test-isnanl-nolibm.c: Likewise.
67013         * tests/test-isnanl.c: Likewise.
67014         * tests/test-isnanl.h: Likewise.
67015         * tests/test-ldexpl.c: Likewise.
67016         * tests/test-linked_list.c: Likewise.
67017         * tests/test-linkedhash_list.c: Likewise.
67018         * tests/test-locale.c: Likewise.
67019         * tests/test-localename.c: Likewise.
67020         * tests/test-lock.c: Likewise.
67021         * tests/test-lseek.c: Likewise.
67022         * tests/test-malloca.c: Likewise.
67023         * tests/test-math.c: Likewise.
67024         * tests/test-mbscasecmp.c: Likewise.
67025         * tests/test-mbscasestr1.c: Likewise.
67026         * tests/test-mbscasestr2.c: Likewise.
67027         * tests/test-mbscasestr3.c: Likewise.
67028         * tests/test-mbscasestr4.c: Likewise.
67029         * tests/test-mbschr.c: Likewise.
67030         * tests/test-mbscspn.c: Likewise.
67031         * tests/test-mbsncasecmp.c: Likewise.
67032         * tests/test-mbspbrk.c: Likewise.
67033         * tests/test-mbspcasecmp.c: Likewise.
67034         * tests/test-mbsrchr.c: Likewise.
67035         * tests/test-mbsspn.c: Likewise.
67036         * tests/test-mbsstr1.c: Likewise.
67037         * tests/test-mbsstr2.c: Likewise.
67038         * tests/test-mbsstr3.c: Likewise.
67039         * tests/test-md5.c: Likewise.
67040         * tests/test-memmem.c: Likewise.
67041         * tests/test-netinet_in.c: Likewise.
67042         * tests/test-open.c: Likewise.
67043         * tests/test-printf-frexp.c: Likewise.
67044         * tests/test-printf-frexpl.c: Likewise.
67045         * tests/test-printf-posix.c: Likewise.
67046         * tests/test-printf-posix.h: Likewise.
67047         * tests/test-rbtree_list.c: Likewise.
67048         * tests/test-rbtree_oset.c: Likewise.
67049         * tests/test-rbtreehash_list.c: Likewise.
67050         * tests/test-read-file.c: Likewise.
67051         * tests/test-rijndael.c: Likewise.
67052         * tests/test-search.c: Likewise.
67053         * tests/test-signbit.c: Likewise.
67054         * tests/test-sleep.c: Likewise.
67055         * tests/test-snprintf-posix.c: Likewise.
67056         * tests/test-snprintf-posix.h: Likewise.
67057         * tests/test-snprintf.c: Likewise.
67058         * tests/test-sprintf-posix.c: Likewise.
67059         * tests/test-sprintf-posix.h: Likewise.
67060         * tests/test-stat-time.c: Likewise.
67061         * tests/test-stdbool.c: Likewise.
67062         * tests/test-stdint.c: Likewise.
67063         * tests/test-stdio.c: Likewise.
67064         * tests/test-stdlib.c: Likewise.
67065         * tests/test-stpncpy.c: Likewise.
67066         * tests/test-strcasestr.c: Likewise.
67067         * tests/test-striconv.c: Likewise.
67068         * tests/test-striconveh.c: Likewise.
67069         * tests/test-striconveha.c: Likewise.
67070         * tests/test-string.c: Likewise.
67071         * tests/test-sys_select.c: Likewise.
67072         * tests/test-sys_socket.c: Likewise.
67073         * tests/test-sys_stat.c: Likewise.
67074         * tests/test-sys_time.c: Likewise.
67075         * tests/test-sysexits.c: Likewise.
67076         * tests/test-time.c: Likewise.
67077         * tests/test-tls.c: Likewise.
67078         * tests/test-trunc.c: Likewise.
67079         * tests/test-truncf.c: Likewise.
67080         * tests/test-truncl.c: Likewise.
67081         * tests/test-unistd.c: Likewise.
67082         * tests/test-vasnprintf-posix.c: Likewise.
67083         * tests/test-vasnprintf-posix2.c: Likewise.
67084         * tests/test-vasnprintf.c: Likewise.
67085         * tests/test-vasprintf-posix.c: Likewise.
67086         * tests/test-vasprintf.c: Likewise.
67087         * tests/test-verify.c: Likewise.
67088         * tests/test-vfprintf-posix.c: Likewise.
67089         * tests/test-vprintf-posix.c: Likewise.
67090         * tests/test-vsnprintf-posix.c: Likewise.
67091         * tests/test-vsnprintf.c: Likewise.
67092         * tests/test-vsprintf-posix.c: Likewise.
67093         * tests/test-wchar.c: Likewise.
67094         * tests/test-wctype.c: Likewise.
67095         * tests/test-wcwidth.c: Likewise.
67096         * tests/test-xstrtol.c: Likewise.
67097         * tests/test-xvasprintf.c: Likewise.
67098         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67099         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67100         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67101         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67102         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67103         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67104         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67105         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67106         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67107         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67108         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67109         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67110         * tests/uniname/test-uninames.c: Likewise.
67111         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67112         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67113         * tests/unistdio/test-u16-printf1.h: Likewise.
67114         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67115         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67116         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67117         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67118         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67119         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67120         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67121         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67122         * tests/unistdio/test-u32-printf1.h: Likewise.
67123         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67124         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67125         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67126         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67127         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67128         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67129         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67130         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67131         * tests/unistdio/test-u8-printf1.h: Likewise.
67132         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67133         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67134         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67135         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67136         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67137         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67138         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67139         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67140         * tests/unistdio/test-ulc-printf1.h: Likewise.
67141         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67142         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67143         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67144         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67145         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67146         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67147         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67148         * tests/uniwidth/test-u16-width.c: Likewise.
67149         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67150         * tests/uniwidth/test-u32-width.c: Likewise.
67151         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67152         * tests/uniwidth/test-u8-width.c: Likewise.
67153         * tests/uniwidth/test-uc_width.c: Likewise.
67154         * config/srclist-update: Likewise.
67155         (fixlicense): Update to GPLv3+.
67156
67157         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67158         * tests/test-tsearch.c: Change copyright notice.
67159
67160         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67161         * lib/c-strcaseeq.h: Change copyright notice.
67162         * lib/streq.h: Likewise.
67163         * lib/uniconv.h: Likewise.
67164         * lib/uniconv/u-conv-from-enc.h: Likewise.
67165         * lib/uniconv/u-conv-to-enc.h: Likewise.
67166         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67167         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67168         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67169         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67170         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67171         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67172         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67173         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67174         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67175         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67176         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67177         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67178         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67179         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67180         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67181         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67182         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67183         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67184         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67185         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67186         * lib/uniname.h: Likewise.
67187         * lib/uniname/uniname.c: Likewise.
67188         * lib/unistdio.h: Likewise.
67189         * lib/unistdio/u-asnprintf.h: Likewise.
67190         * lib/unistdio/u-asprintf.h: Likewise.
67191         * lib/unistdio/u-printf-args.c: Likewise.
67192         * lib/unistdio/u-printf-args.h: Likewise.
67193         * lib/unistdio/u-printf-parse.h: Likewise.
67194         * lib/unistdio/u-snprintf.h: Likewise.
67195         * lib/unistdio/u-sprintf.h: Likewise.
67196         * lib/unistdio/u-vasprintf.h: Likewise.
67197         * lib/unistdio/u-vsnprintf.h: Likewise.
67198         * lib/unistdio/u-vsprintf.h: Likewise.
67199         * lib/unistdio/u16-asnprintf.c: Likewise.
67200         * lib/unistdio/u16-asprintf.c: Likewise.
67201         * lib/unistdio/u16-printf-parse.c: Likewise.
67202         * lib/unistdio/u16-snprintf.c: Likewise.
67203         * lib/unistdio/u16-sprintf.c: Likewise.
67204         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67205         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67206         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67207         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67208         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67209         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67210         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67211         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67212         * lib/unistdio/u16-vasnprintf.c: Likewise.
67213         * lib/unistdio/u16-vasprintf.c: Likewise.
67214         * lib/unistdio/u16-vsnprintf.c: Likewise.
67215         * lib/unistdio/u16-vsprintf.c: Likewise.
67216         * lib/unistdio/u32-asnprintf.c: Likewise.
67217         * lib/unistdio/u32-asprintf.c: Likewise.
67218         * lib/unistdio/u32-printf-parse.c: Likewise.
67219         * lib/unistdio/u32-snprintf.c: Likewise.
67220         * lib/unistdio/u32-sprintf.c: Likewise.
67221         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67222         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67223         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67224         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67225         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67226         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67227         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67228         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67229         * lib/unistdio/u32-vasnprintf.c: Likewise.
67230         * lib/unistdio/u32-vasprintf.c: Likewise.
67231         * lib/unistdio/u32-vsnprintf.c: Likewise.
67232         * lib/unistdio/u32-vsprintf.c: Likewise.
67233         * lib/unistdio/u8-asnprintf.c: Likewise.
67234         * lib/unistdio/u8-asprintf.c: Likewise.
67235         * lib/unistdio/u8-printf-parse.c: Likewise.
67236         * lib/unistdio/u8-snprintf.c: Likewise.
67237         * lib/unistdio/u8-sprintf.c: Likewise.
67238         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67239         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67240         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67241         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67242         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67243         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67244         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67245         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67246         * lib/unistdio/u8-vasnprintf.c: Likewise.
67247         * lib/unistdio/u8-vasprintf.c: Likewise.
67248         * lib/unistdio/u8-vsnprintf.c: Likewise.
67249         * lib/unistdio/u8-vsprintf.c: Likewise.
67250         * lib/unistdio/ulc-asnprintf.c: Likewise.
67251         * lib/unistdio/ulc-asprintf.c: Likewise.
67252         * lib/unistdio/ulc-printf-parse.c: Likewise.
67253         * lib/unistdio/ulc-snprintf.c: Likewise.
67254         * lib/unistdio/ulc-sprintf.c: Likewise.
67255         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67256         * lib/unistdio/ulc-vasprintf.c: Likewise.
67257         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67258         * lib/unistdio/ulc-vsprintf.c: Likewise.
67259         * lib/unistr.h: Likewise.
67260         * lib/unistr/u-cpy-alloc.h: Likewise.
67261         * lib/unistr/u-cpy.h: Likewise.
67262         * lib/unistr/u-endswith.h: Likewise.
67263         * lib/unistr/u-move.h: Likewise.
67264         * lib/unistr/u-set.h: Likewise.
67265         * lib/unistr/u-startswith.h: Likewise.
67266         * lib/unistr/u-stpcpy.h: Likewise.
67267         * lib/unistr/u-stpncpy.h: Likewise.
67268         * lib/unistr/u-strcat.h: Likewise.
67269         * lib/unistr/u-strcpy.h: Likewise.
67270         * lib/unistr/u-strcspn.h: Likewise.
67271         * lib/unistr/u-strdup.h: Likewise.
67272         * lib/unistr/u-strlen.h: Likewise.
67273         * lib/unistr/u-strncat.h: Likewise.
67274         * lib/unistr/u-strncpy.h: Likewise.
67275         * lib/unistr/u-strnlen.h: Likewise.
67276         * lib/unistr/u-strpbrk.h: Likewise.
67277         * lib/unistr/u-strspn.h: Likewise.
67278         * lib/unistr/u-strstr.h: Likewise.
67279         * lib/unistr/u-strtok.h: Likewise.
67280         * lib/unistr/u16-check.c: Likewise.
67281         * lib/unistr/u16-chr.c: Likewise.
67282         * lib/unistr/u16-cmp.c: Likewise.
67283         * lib/unistr/u16-cpy-alloc.c: Likewise.
67284         * lib/unistr/u16-cpy.c: Likewise.
67285         * lib/unistr/u16-endswith.c: Likewise.
67286         * lib/unistr/u16-mblen.c: Likewise.
67287         * lib/unistr/u16-mbsnlen.c: Likewise.
67288         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67289         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67290         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67291         * lib/unistr/u16-mbtouc.c: Likewise.
67292         * lib/unistr/u16-mbtoucr.c: Likewise.
67293         * lib/unistr/u16-move.c: Likewise.
67294         * lib/unistr/u16-next.c: Likewise.
67295         * lib/unistr/u16-prev.c: Likewise.
67296         * lib/unistr/u16-set.c: Likewise.
67297         * lib/unistr/u16-startswith.c: Likewise.
67298         * lib/unistr/u16-stpcpy.c: Likewise.
67299         * lib/unistr/u16-stpncpy.c: Likewise.
67300         * lib/unistr/u16-strcat.c: Likewise.
67301         * lib/unistr/u16-strchr.c: Likewise.
67302         * lib/unistr/u16-strcmp.c: Likewise.
67303         * lib/unistr/u16-strcpy.c: Likewise.
67304         * lib/unistr/u16-strcspn.c: Likewise.
67305         * lib/unistr/u16-strdup.c: Likewise.
67306         * lib/unistr/u16-strlen.c: Likewise.
67307         * lib/unistr/u16-strmblen.c: Likewise.
67308         * lib/unistr/u16-strmbtouc.c: Likewise.
67309         * lib/unistr/u16-strncat.c: Likewise.
67310         * lib/unistr/u16-strncmp.c: Likewise.
67311         * lib/unistr/u16-strncpy.c: Likewise.
67312         * lib/unistr/u16-strnlen.c: Likewise.
67313         * lib/unistr/u16-strpbrk.c: Likewise.
67314         * lib/unistr/u16-strrchr.c: Likewise.
67315         * lib/unistr/u16-strspn.c: Likewise.
67316         * lib/unistr/u16-strstr.c: Likewise.
67317         * lib/unistr/u16-strtok.c: Likewise.
67318         * lib/unistr/u16-to-u32.c: Likewise.
67319         * lib/unistr/u16-to-u8.c: Likewise.
67320         * lib/unistr/u16-uctomb-aux.c: Likewise.
67321         * lib/unistr/u16-uctomb.c: Likewise.
67322         * lib/unistr/u32-check.c: Likewise.
67323         * lib/unistr/u32-chr.c: Likewise.
67324         * lib/unistr/u32-cmp.c: Likewise.
67325         * lib/unistr/u32-cpy-alloc.c: Likewise.
67326         * lib/unistr/u32-cpy.c: Likewise.
67327         * lib/unistr/u32-endswith.c: Likewise.
67328         * lib/unistr/u32-mblen.c: Likewise.
67329         * lib/unistr/u32-mbsnlen.c: Likewise.
67330         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67331         * lib/unistr/u32-mbtouc.c: Likewise.
67332         * lib/unistr/u32-mbtoucr.c: Likewise.
67333         * lib/unistr/u32-move.c: Likewise.
67334         * lib/unistr/u32-next.c: Likewise.
67335         * lib/unistr/u32-prev.c: Likewise.
67336         * lib/unistr/u32-set.c: Likewise.
67337         * lib/unistr/u32-startswith.c: Likewise.
67338         * lib/unistr/u32-stpcpy.c: Likewise.
67339         * lib/unistr/u32-stpncpy.c: Likewise.
67340         * lib/unistr/u32-strcat.c: Likewise.
67341         * lib/unistr/u32-strchr.c: Likewise.
67342         * lib/unistr/u32-strcmp.c: Likewise.
67343         * lib/unistr/u32-strcpy.c: Likewise.
67344         * lib/unistr/u32-strcspn.c: Likewise.
67345         * lib/unistr/u32-strdup.c: Likewise.
67346         * lib/unistr/u32-strlen.c: Likewise.
67347         * lib/unistr/u32-strmblen.c: Likewise.
67348         * lib/unistr/u32-strmbtouc.c: Likewise.
67349         * lib/unistr/u32-strncat.c: Likewise.
67350         * lib/unistr/u32-strncmp.c: Likewise.
67351         * lib/unistr/u32-strncpy.c: Likewise.
67352         * lib/unistr/u32-strnlen.c: Likewise.
67353         * lib/unistr/u32-strpbrk.c: Likewise.
67354         * lib/unistr/u32-strrchr.c: Likewise.
67355         * lib/unistr/u32-strspn.c: Likewise.
67356         * lib/unistr/u32-strstr.c: Likewise.
67357         * lib/unistr/u32-strtok.c: Likewise.
67358         * lib/unistr/u32-to-u16.c: Likewise.
67359         * lib/unistr/u32-to-u8.c: Likewise.
67360         * lib/unistr/u32-uctomb.c: Likewise.
67361         * lib/unistr/u8-check.c: Likewise.
67362         * lib/unistr/u8-chr.c: Likewise.
67363         * lib/unistr/u8-cmp.c: Likewise.
67364         * lib/unistr/u8-cpy-alloc.c: Likewise.
67365         * lib/unistr/u8-cpy.c: Likewise.
67366         * lib/unistr/u8-endswith.c: Likewise.
67367         * lib/unistr/u8-mblen.c: Likewise.
67368         * lib/unistr/u8-mbsnlen.c: Likewise.
67369         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67370         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67371         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67372         * lib/unistr/u8-mbtouc.c: Likewise.
67373         * lib/unistr/u8-mbtoucr.c: Likewise.
67374         * lib/unistr/u8-move.c: Likewise.
67375         * lib/unistr/u8-next.c: Likewise.
67376         * lib/unistr/u8-prev.c: Likewise.
67377         * lib/unistr/u8-set.c: Likewise.
67378         * lib/unistr/u8-startswith.c: Likewise.
67379         * lib/unistr/u8-stpcpy.c: Likewise.
67380         * lib/unistr/u8-stpncpy.c: Likewise.
67381         * lib/unistr/u8-strcat.c: Likewise.
67382         * lib/unistr/u8-strchr.c: Likewise.
67383         * lib/unistr/u8-strcmp.c: Likewise.
67384         * lib/unistr/u8-strcpy.c: Likewise.
67385         * lib/unistr/u8-strcspn.c: Likewise.
67386         * lib/unistr/u8-strdup.c: Likewise.
67387         * lib/unistr/u8-strlen.c: Likewise.
67388         * lib/unistr/u8-strmblen.c: Likewise.
67389         * lib/unistr/u8-strmbtouc.c: Likewise.
67390         * lib/unistr/u8-strncat.c: Likewise.
67391         * lib/unistr/u8-strncmp.c: Likewise.
67392         * lib/unistr/u8-strncpy.c: Likewise.
67393         * lib/unistr/u8-strnlen.c: Likewise.
67394         * lib/unistr/u8-strpbrk.c: Likewise.
67395         * lib/unistr/u8-strrchr.c: Likewise.
67396         * lib/unistr/u8-strspn.c: Likewise.
67397         * lib/unistr/u8-strstr.c: Likewise.
67398         * lib/unistr/u8-strtok.c: Likewise.
67399         * lib/unistr/u8-to-u16.c: Likewise.
67400         * lib/unistr/u8-to-u32.c: Likewise.
67401         * lib/unistr/u8-uctomb-aux.c: Likewise.
67402         * lib/unistr/u8-uctomb.c: Likewise.
67403         * lib/unitypes.h: Likewise.
67404         * lib/uniwidth.h: Likewise.
67405         * lib/uniwidth/cjk.h: Likewise.
67406         * lib/uniwidth/u16-strwidth.c: Likewise.
67407         * lib/uniwidth/u16-width.c: Likewise.
67408         * lib/uniwidth/u32-strwidth.c: Likewise.
67409         * lib/uniwidth/u32-width.c: Likewise.
67410         * lib/uniwidth/u8-strwidth.c: Likewise.
67411         * lib/uniwidth/u8-width.c: Likewise.
67412         * lib/uniwidth/width.c: Likewise.
67413
67414 2007-10-07  Bruno Haible  <bruno@clisp.org>
67415
67416         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67417         The file is still under LGPL (see modules/inttypes).
67418
67419 2007-10-06  Bruno Haible  <bruno@clisp.org>
67420
67421         * modules/trunc (Dependencies): Add 'extensions'.
67422         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67423         Reported by Ben Pfaff <blp@gnu.org>.
67424
67425 2007-10-06  Bruno Haible  <bruno@clisp.org>
67426
67427         * modules/freopen-tests: New file.
67428         * tests/test-freopen.c: New file.
67429
67430         * modules/fopen-tests: New file.
67431         * tests/test-fopen.c: New file.
67432
67433         * modules/fopen: New file.
67434         * lib/fopen.c: New file.
67435         * m4/fopen.m4: New file.
67436         * modules/freopen: New file.
67437         * lib/freopen.c: New file.
67438         * m4/freopen.m4: New file.
67439         * lib/stdio.in.h (fopen, freopen): New declarations.
67440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67441         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67442         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67443         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67444         * doc/functions/fopen.texi: Mention the 'fopen' module.
67445         * doc/functions/freopen.texi: Mention the 'freopen' module.
67446
67447 2007-10-06  Bruno Haible  <bruno@clisp.org>
67448
67449         * modules/open-tests: New file.
67450         * tests/test-open.c: New file.
67451
67452         * modules/open: New file.
67453         * lib/open.c: New file.
67454         * m4/open.m4: New file.
67455         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67456         lib/open.c does.
67457         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67458         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67459         macros.
67460         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67461         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67462         REPLACE_OPEN.
67463         * doc/functions/open.texi: Mention the 'open' module.
67464
67465 2007-10-04  Bruno Haible  <bruno@clisp.org>
67466
67467         * modules/ceill-tests: New file.
67468         * tests/test-ceill.c: New file.
67469
67470         * modules/ceill: New file.
67471         * lib/ceill.c: Replace entire file.
67472         * m4/ceill.m4: New file.
67473         * lib/math.in.h (ceill): Replace declaration.
67474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67475         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67476         * doc/functions/ceill.texi: Mention the 'ceill' module.
67477         * modules/mathl (Files): Remove lib/ceill.c.
67478         (Depends-on): Add ceill.
67479
67480 2007-10-04  Bruno Haible  <bruno@clisp.org>
67481
67482         * modules/ceilf-tests: New file.
67483         * tests/test-ceilf.c: New file.
67484
67485         * modules/ceilf: New file.
67486         * lib/ceil.c: New file.
67487         * lib/ceilf.c: New file.
67488         * m4/ceilf.m4: New file.
67489         * lib/math.in.h (ceilf): New declaration.
67490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67491         HAVE_DECL_CEILF.
67492         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67493         HAVE_DECL_CEILF.
67494         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67495
67496 2007-10-04  Bruno Haible  <bruno@clisp.org>
67497
67498         * modules/floorl-tests: New file.
67499         * tests/test-floorl.c: New file.
67500
67501         * modules/floorl: New file.
67502         * lib/floorl.c: Replace entire file.
67503         * m4/floorl.m4: New file.
67504         * lib/math.in.h (floorl): Replace declaration.
67505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67506         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67507         * doc/functions/floorl.texi: Mention the 'floorl' module.
67508         * modules/mathl (Files): Remove lib/floorl.c.
67509         (Depends-on): Add floorl.
67510
67511 2007-10-04  Bruno Haible  <bruno@clisp.org>
67512
67513         * modules/floorf-tests: New file.
67514         * tests/test-floorf.c: New file.
67515
67516         * modules/floorf: New file.
67517         * lib/floor.c: New file.
67518         * lib/floorf.c: New file.
67519         * m4/floorf.m4: New file.
67520         * lib/math.in.h (floorf): New declaration.
67521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67522         HAVE_DECL_FLOORF.
67523         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67524         HAVE_DECL_FLOORF.
67525         * doc/functions/floorf.texi: Mention the 'floorf' module.
67526
67527 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67528             Bruno Haible  <bruno@clisp.org>
67529
67530         Advertise for the Git server instead of the CVS server.
67531         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67532         repository instead of the CVS one.
67533         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67534         about all VCS systems generically.
67535         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67536
67537 2007-10-04  Bruno Haible  <bruno@clisp.org>
67538
67539         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67540         means.
67541         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67542
67543 2007-10-04  Bruno Haible  <bruno@clisp.org>
67544
67545         * modules/truncl-tests: New file.
67546         * tests/test-truncl.c: New file.
67547
67548         * modules/truncl: New file.
67549         * lib/truncl.c: New file.
67550         * m4/truncl.m4: New file.
67551         * lib/math.in.h (truncl): New declaration.
67552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67553         HAVE_DECL_TRUNCL.
67554         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67555         HAVE_DECL_TRUNCL.
67556         * doc/functions/truncl.texi: Mention the 'truncl' module.
67557
67558 2007-10-04  Bruno Haible  <bruno@clisp.org>
67559
67560         * modules/truncf-tests: New file.
67561         * tests/test-truncf.c: New file.
67562
67563         * modules/truncf: New file.
67564         * lib/trunc.c: Make paramerizable through USE_* macros.
67565         * lib/truncf.c: New file.
67566         * m4/truncf.m4: New file.
67567         * lib/math.in.h (truncf): New declaration.
67568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67569         HAVE_DECL_TRUNCF.
67570         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67571         HAVE_DECL_TRUNCF.
67572         * doc/functions/truncf.texi: Mention the 'truncf' module.
67573
67574 2007-10-03  Bruno Haible  <bruno@clisp.org>
67575
67576         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67577         augmentation also for tests modules.
67578         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67579         * modules/atexit-tests (Makefile.am): Likewise.
67580         * modules/binary-io-tests (Makefile.am): Likewise.
67581         * modules/c-strcase-tests (Makefile.am): Likewise.
67582         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67583         * modules/canonicalize-tests (Makefile.am): Likewise.
67584         * modules/closein-tests (Makefile.am): Likewise.
67585         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67586         * modules/freadahead-tests (Makefile.am): Likewise.
67587         * modules/fseek-tests (Makefile.am): Likewise.
67588         * modules/fseeko-tests (Makefile.am): Likewise.
67589         * modules/ftell-tests (Makefile.am): Likewise.
67590         * modules/ftello-tests (Makefile.am): Likewise.
67591         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67592         * modules/isnanl-tests (Makefile.am): Likewise.
67593         * modules/lseek-tests (Makefile.am): Likewise.
67594         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67595         * modules/mbscasestr-tests (Makefile.am): Likewise.
67596         * modules/mbschr-tests (Makefile.am): Likewise.
67597         * modules/mbscspn-tests (Makefile.am): Likewise.
67598         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67599         * modules/mbspbrk-tests (Makefile.am): Likewise.
67600         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67601         * modules/mbsrchr-tests (Makefile.am): Likewise.
67602         * modules/mbsspn-tests (Makefile.am): Likewise.
67603         * modules/mbsstr-tests (Makefile.am): Likewise.
67604         * modules/printf-posix-tests (Makefile.am): Likewise.
67605         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67606         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67607         * modules/tsearch-tests (Makefile.am): Likewise.
67608         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67609         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67610         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67611         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67612         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67613         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67614         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67615         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67616         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67617         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67618         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67619         * modules/xstrtol-tests (Makefile.am): Likewise.
67620         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67621         * modules/yesno-tests (Makefile.am): Likewise.
67622
67623 2007-10-03  Bruno Haible  <bruno@clisp.org>
67624
67625         * modules/trunc-tests: New file.
67626         * tests/test-trunc.c: New file.
67627
67628         * modules/trunc: New file.
67629         * lib/trunc.c: New file.
67630         * m4/trunc.m4: New file.
67631         * lib/math.in.h (trunc): New declaration.
67632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67633         HAVE_DECL_TRUNC.
67634         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67635         HAVE_DECL_TRUNC.
67636         * doc/functions/trunc.texi: Mention the 'trunc' module.
67637
67638 2007-10-03  Bruno Haible  <bruno@clisp.org>
67639
67640         * tests/test-fpending.c: New file, mostly copied
67641         from coreutils/lib/t-fpending.c.
67642         * modules/fpending-tests: New file.
67643
67644 2007-10-03  Bruno Haible  <bruno@clisp.org>
67645
67646         Port the stdio extensions to QNX (untested).
67647         * lib/fseterr.c (fseterr): Add support for QNX.
67648         * lib/fbufmode.c (fbufmode): Likewise.
67649         * lib/freadable.c (freadable): Likewise.
67650         * lib/fwritable.c (fwritable): Likewise.
67651         * lib/freading.c (freading): Likewise.
67652         * lib/fwriting.c (fwriting): Likewise.
67653         * lib/freadahead.c (freadahed): Likewise.
67654         * lib/fpurge.c (fpurge): Likewise.
67655         * lib/fseeko.c (rpl_fseeko): Likewise.
67656
67657 2007-10-03  Bruno Haible  <bruno@clisp.org>
67658             Jim Meyering  <jim@meyering.net>
67659             Eric Blake  <ebb9@byu.net>
67660
67661         * doc/relocatable.texi: Use @command instead of @program.
67662
67663 2007-10-02  Jim Meyering  <jim@meyering.net>
67664
67665         Perform one more "_.h" -> ".in.h" substitution.
67666         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67667         instead of unistd_.h here, too.
67668
67669 2007-10-01  Bruno Haible  <bruno@clisp.org>
67670
67671         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67672         Needed for the alloca-opt module.
67673
67674 2007-09-30  Bruno Haible  <bruno@clisp.org>
67675
67676         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67677         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67678         alloca_.h.
67679         * lib/argz.in.h: Renamed from lib/argz_.h.
67680         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67681         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67682         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67683         byteswap_.h.
67684         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67685         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67686         dirent_.h.
67687         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67688         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67689         fcntl_.h.
67690         * lib/float.in.h: Renamed from lib/float_.h.
67691         * modules/float (Files, Makefile.am): Use float.in.h instead of
67692         float_.h.
67693         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67694         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67695         fnmatch_.h.
67696         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67697         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67698         getopt_.h.
67699         * lib/glob.in.h: Renamed from lib/glob_.h.
67700         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67701         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67702         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67703         iconv_.h.
67704         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67705         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67706         inttypes_.h.
67707         * lib/locale.in.h: Renamed from lib/locale_.h.
67708         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67709         locale_.h.
67710         * lib/math.in.h: Renamed from lib/math_.h.
67711         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67712         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67713         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67714         of netinet_in_.h. Add dependency.
67715         * lib/poll.in.h: Renamed from lib/poll_.h.
67716         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67717         * lib/search.in.h: Renamed from lib/search_.h.
67718         * modules/search (Files, Makefile.am): Use search.in.h instead of
67719         search_.h.
67720         * lib/signal.in.h: Renamed from lib/signal_.h.
67721         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67722         _signal.h.
67723         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67724         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67725         stdbool_.h.
67726         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67727         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67728         stdint_.h.
67729         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67730         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67731         stdio_.h.
67732         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67733         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67734         stdlib_.h.
67735         * lib/string.in.h: Renamed from lib/string_.h.
67736         * modules/string (Files, Makefile.am): Use string.in.h instead of
67737         string_.h.
67738         * doc/gnulib-tool.texi (Initial import): Update.
67739         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67740         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67741         of sys_select_.h. Add dependency.
67742         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67743         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67744         of sys_socket_.h.
67745         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67746         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67747         sys_stat_.h.
67748         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67749         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67750         sys_time_.h.
67751         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67752         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67753         sysexits_.h.
67754         * lib/time.in.h: Renamed from lib/time_.h.
67755         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67756         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67757         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67758         unistd_.h.
67759         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67760         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67761         wchar_.h.
67762         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67763         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67764         wctype_.h.
67765         * build-aux/bootstrap (slurp): Update.
67766         * lib/.cppi-disable: Update.
67767
67768 2007-09-30  Bruno Haible  <bruno@clisp.org>
67769
67770         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67771         Needed on BeOS.
67772
67773 2007-09-30  Bruno Haible  <bruno@clisp.org>
67774
67775         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67776
67777 2007-09-29  Bruno Haible  <bruno@clisp.org>
67778
67779         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67780
67781 2007-09-29  Bruno Haible  <bruno@clisp.org>
67782
67783         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67784         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67785         * build-aux/install-reloc: Compile also areadlink.c.
67786         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67787
67788 2007-09-29  Bruno Haible  <bruno@clisp.org>
67789
67790         * gnulib-tool (func_emit_initmacro_done): Indentation.
67791
67792 2007-09-29  Bruno Haible  <bruno@clisp.org>
67793
67794         * README: Add CVS checkout update instructions.
67795         Info from Bob Proulx <bob@proulx.com>.
67796
67797 2007-09-28  Eric Blake  <ebb9@byu.net>
67798
67799         Provide move-if-change.
67800         * build-aux/move-if-change: New file, based on best practice
67801         rather than any canonical upstream location.
67802
67803 2007-09-28  Jim Meyering  <jim@meyering.net>
67804
67805         Fix canonicalize loop-detection corner case.
67806         Do not attempt to stat the symlink values stored via seen_triple.
67807         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67808         on linux-2.6.18, (but not 2.6.22).
67809         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67810         triple_compare.  The former compares dev,ino,filename, while the latter
67811         would actually stat dirname(filename) when dev and ino were equal.
67812         * lib/hash-triple.c: Install <string.h>.
67813         (STREQ): Define.
67814         (triple_compare_ino_str): New function.
67815         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67816
67817 2007-09-28  Eric Blake  <ebb9@byu.net>
67818
67819         Enforce that AC_REPLACE_FUNCS files exist.
67820         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67821         override check for typos.
67822
67823         Fix test-closein on Solaris 10.
67824         * tests/test-closein.c (main): Don't assume stdin can be inherited
67825         closed on all systems.
67826         * tests/test-closein.sh: Likewise.
67827         Reported by Piotr Tarnowski.
67828
67829 2007-09-28  Jim Meyering  <jim@meyering.net>
67830
67831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67832
67833 2007-09-27  Jim Meyering  <jim@meyering.net>
67834
67835         canonicalize: Avoid a false-positive cycle failure.
67836         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67837         Sort.  Remove cycle-check.
67838         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67839         not cycle-check.h.
67840         (seen_triple): New function.
67841         (canonicalize_filename_mode): Use it instead of cycle-check.
67842         * tests/test-canonicalize.c: Add a test for this bug.
67843         * tests/test-canonicalize.sh: Set up and run the test.
67844
67845         New module, file-set, from coreutils.
67846         * modules/file-set: Define it.
67847         * lib/file-set.c, lib/file-set.h: Implement.
67848
67849         New module, hash-triple, from coreutils.
67850         * modules/hash-triple: Define it.
67851         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67852
67853 2007-09-25  Eric Blake  <ebb9@byu.net>
67854
67855         Fix strerror on Interix.
67856         * lib/string_.h (strerror): Declare replacement.
67857         * doc/functions/strerror.texi (strerror): Document the Interix
67858         shortcoming.
67859         * modules/string (Makefile.am): Support new hooks.
67860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67861         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67862         gl_FUNC_STRERROR_SEPARATE.
67863         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67864         * lib/strerror.c (rpl_strerror): Provide replacement.
67865         * modules/strerror (Depends-on): Add string.
67866         (configure.ac): Detect use of module.
67867         * tests/test-strerror.c: New file.
67868         * modules/strerror-tests: New test module.
67869         * modules/argp (Depends-on): Add strerror.
67870         * modules/error (Depends-on): Likewise.
67871         Reported by Martin Koeppe.
67872
67873 2007-09-24  Bruno Haible  <bruno@clisp.org>
67874
67875         * README: Update git instructions.
67876
67877 2007-09-24  Eric Blake  <ebb9@byu.net>
67878
67879         Revert fpending breakage from 2007-09-08.
67880         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67881         __fpending.c.
67882
67883 2007-09-24  Jim Meyering  <jim@meyering.net>
67884
67885         filenamecat.c: Add a test.
67886         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67887         showing how the function works when DIR is the empty string.
67888
67889 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67890
67891         * tests/test-canonicalize.sh: Turn on executable bit.
67892
67893 2007-09-19  Eric Blake  <ebb9@byu.net>
67894
67895         * README: Update CVS instructions.
67896
67897 2007-09-18  Bruno Haible  <bruno@clisp.org>
67898
67899         * modules/areadlink: New file.
67900         * lib/areadlink.h (areadlink): New declaration.
67901         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67902
67903 2007-09-17  Jim Meyering  <jim@meyering.net>
67904
67905         * lib/savewd.c (ESTALE) [!defined]: Define.
67906         Reported to be required on Interix by Martin Koeppe.
67907
67908 2007-09-17  Bruno Haible  <bruno@clisp.org>
67909
67910         * gnulib-tool (func_version): Use $version.
67911
67912 2007-09-16  Bruno Haible  <bruno@clisp.org>
67913
67914         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67915         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67916         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67917         Reported by Greg Schafer <gschafer@zip.com.au>.
67918
67919 2007-09-15  Bruno Haible  <bruno@clisp.org>
67920
67921         * gnulib-tool (sed): Try a little harder to make bash understand the
67922         alias.
67923         Reported by Bruce Korb <bruce.korb@gmail.com>.
67924
67925 2007-09-13  Eric Blake  <ebb9@byu.net>
67926
67927         * ChangeLog: Remove conflict markers.
67928
67929 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67930
67931         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67932         Reported by Bruno Haible <bruno@clisp.org>.
67933
67934 2007-09-12  Bruno Haible  <bruno@clisp.org>
67935
67936         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67937         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67938         is not defined.
67939
67940 2007-09-12  Eric Blake  <ebb9@byu.net>
67941
67942         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67943         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67944         Autoconf definition.
67945         * modules/euidaccess (Depends-on): Add extensions, for
67946         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67947         * modules/fnmatch (Depends-on): Likewise.
67948         * modules/getaddrinfo (Depends-on): Likewise.
67949         * modules/getdelim (Depends-on): Likewise.
67950         * modules/getline (Depends-on): Likewise.
67951         * modules/getsubopt (Depends-on): Likewise.
67952         * modules/gettext (Depends-on): Likewise.
67953         * modules/group-member (Depends-on): Likewise.
67954         * modules/mbchar (Depends-on): Likewise.
67955         * modules/memmem (Depends-on): Likewise.
67956         * modules/mempcpy (Depends-on): Likewise.
67957         * modules/memrchr (Depends-on): Likewise.
67958         * modules/pagealign_alloc (Depends-on): Likewise.
67959         * modules/readutmp (Depends-on): Likewise.
67960         * modules/stpcpy (Depends-on): Likewise.
67961         * modules/stpncpy (Depends-on): Likewise.
67962         * modules/strchrnul (Depends-on): Likewise.
67963         * modules/strndup (Depends-on): Likewise.
67964         * modules/strsep (Depends-on): Likewise.
67965         * modules/strverscmp (Depends-on): Likewise.
67966         * modules/vasprintf (Depends-on): Likewise.
67967         * modules/wcwidth (Depends-on): Likewise.
67968         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67969         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67970         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67971         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67972         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67973         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67974         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67975         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67976         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67977         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67978         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67979         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67980         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67981         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67982         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67983         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67985         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67987         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67989         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67990         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67991         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67992         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67994         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67995         so that lock.m4 can be used in gettext without extensions module.
67996
67997 2007-09-11  Bruno Haible  <bruno@clisp.org>
67998
67999         * m4/isc-posix.m4: Remove file.
68000         Suggested by Eric Blake.
68001
68002 2007-09-11  Eric Blake  <ebb9@byu.net>
68003
68004         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68005
68006 2007-09-10  Bruno Haible  <bruno@clisp.org>
68007
68008         * posix-modules: Fix typo in error message.
68009         Reported by Matt <mkraai@beckman.com>.
68010
68011 2007-09-09  Bruno Haible  <bruno@clisp.org>
68012
68013         * doc/functions/getdelim.texi: Update list of platforms lacking the
68014         function.
68015         * doc/functions/getline.texi: Likewise.
68016
68017 2007-09-09  Jim Meyering  <jim@meyering.net>
68018
68019         * lib/hash.c (hash_initialize): Detect calloc failure.
68020         Reported by Bruno Haible.
68021
68022 2007-09-09  Bruno Haible  <bruno@clisp.org>
68023
68024         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68025         malloc or realloc fails.
68026
68027 2007-09-09  Bruno Haible  <bruno@clisp.org>
68028
68029         * modules/getcwd (Depends-on): Add malloc-posix.
68030         * modules/glob (Depends-on): Likewise.
68031         * modules/putenv (Depends-on): Likewise.
68032         * modules/strdup (Depends-on): Likewise.
68033         * modules/getdelim (Depends-on): Add realloc-posix.
68034         * modules/read-file (Depends-on): Likewise.
68035
68036 2007-09-09  Bruno Haible  <bruno@clisp.org>
68037
68038         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68039         (gl_FUNC_MALLOC_POSIX): Require it.
68040         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68041         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68042         * modules/realloc (Files): Add m4/malloc.m4.
68043         * modules/calloc (Files): Likewise.
68044
68045 2007-09-09  Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/malloc-posix: New file.
68048         * modules/malloc (Depends-on): Add malloc-posix.
68049         * lib/malloc.c: Include errno.h.
68050         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68051         and a POSIX-compatible malloc into a single function. Set ENOMEM
68052         when returning NULL.
68053         * m4/malloc.m4: New file.
68054         * doc/functions/malloc.texi: Mention the malloc-posix module.
68055         * lib/stdlib_.h (malloc): New declaration.
68056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68057         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68058         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68059         and HAVE_MALLOC_POSIX.
68060
68061 2007-09-09  Bruno Haible  <bruno@clisp.org>
68062
68063         * modules/realloc-posix: New file.
68064         * modules/realloc (Depends-on): Add realloc-posix.
68065         * lib/realloc.c: Include errno.h.
68066         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68067         and a POSIX-compatible realloc into a single function. Set ENOMEM
68068         when returning NULL.
68069         * m4/realloc.m4: New file.
68070         * doc/functions/realloc.texi: Mention the realloc-posix module.
68071         * lib/stdlib_.h (realloc): New declaration.
68072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68073         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68074         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68075         and HAVE_REALLOC_POSIX.
68076
68077 2007-09-09  Bruno Haible  <bruno@clisp.org>
68078
68079         * modules/calloc-posix: New file.
68080         * modules/calloc (Depends-on): Add calloc-posix.
68081         * lib/calloc.c: Include errno.h.
68082         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68083         and a POSIX-compatible calloc into a single function. Set ENOMEM
68084         when returning NULL.
68085         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68086         * doc/functions/calloc.texi: Mention the calloc-posix module.
68087         * lib/stdlib_.h (calloc): New declaration.
68088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68089         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68090         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68091         and HAVE_CALLOC_POSIX.
68092
68093 2007-09-09  Bruno Haible  <bruno@clisp.org>
68094
68095         Allow for modules to show an arbitrary notice.
68096         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68097         * gnulib-tool: New option --extract-notice.
68098         (func_usage): Document it.
68099         (sed_extract_prog): Update.
68100         (func_get_notice): New function.
68101         (func_modules_notice): New function.
68102         (func_import, func_create_testdir): Invoke it.
68103         Suggested by Jim Meyering.
68104
68105 2007-09-09  Bruno Haible  <bruno@clisp.org>
68106
68107         * gnulib-tool: New options --verbose, --quiet.
68108         (func_usage): Document them.
68109         (verbose): New variable.
68110         (func_execute_command): New function.
68111         (func_import): Don't show the module list and the file list if
68112         $verbose < 0.
68113         (func_create_testdir): Likewise. Use func_execute_command.
68114         (func_create_megatestdir): Use func_execute_command.
68115
68116 2007-09-08  Bruno Haible  <bruno@clisp.org>
68117
68118         * gnulib-tool (func_import): Prefer rsync over wget when available,
68119         for fetching the PO files.
68120
68121 2007-09-08  Bruno Haible  <bruno@clisp.org>
68122
68123         * posix-modules: New file. Portions copied from gnulib-tool.
68124         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68125
68126 2007-09-08  Jim Meyering  <jim@meyering.net>
68127
68128         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68129         * lib/fpending.h: Rename from __fpending.h.
68130         * lib/fpending.c: Rename from __fpending.c.
68131         Include "fpending.h", not "__fpending.h".
68132         * lib/__fpending.h, lib/__fpending.c: Remove files.
68133         * modules/fpending (Files): Reflect new file names.
68134         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68135
68136 2007-09-08  Bruno Haible  <bruno@clisp.org>
68137
68138         * m4/inttypes-h.m4: Remove stub file.
68139
68140 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68141
68142         * doc/headers/stdint.texi: Discuss #include_next issue.
68143
68144 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68145
68146         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68147
68148 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68149
68150         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68151         in variable name.
68152
68153 2007-09-03  Jim Meyering  <jim@meyering.net>
68154
68155         New module: git-version-gen.
68156         * modules/git-version-gen: New file.
68157
68158         Import changes from coreutils for bootstrap script.
68159
68160         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68161
68162         bootstrap: uses rsync to download the .po files
68163         * build-aux/bootstrap (po_download_command_format): New global.
68164         (download_po_files): Use rsync.
68165         (update_po_files): Don't remove .po files after download,
68166         so future rsync runs can take advantage of the copies.
68167
68168         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68169
68170         Solve the unnecessary-.po-file-regeneration problem once and for all.
68171         * build-aux/bootstrap (download_po_files): New function, renamed from
68172         get_translations.  Now, downloads, but doesn't update LINGUAS.
68173         (update_po_files): New function.
68174
68175         bootstrap: Ignore more.
68176         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68177         uniwidth to e.g., lib/.gitignore.
68178         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68179
68180         * build-aux/bootstrap: New setting: vc_ignore.
68181         (insert_sorted_if_absent): Create $file if absent.
68182         Adapt to new, possibly empty, list: $vc_ignore.
68183
68184         bootstrap: generate more ignorable names
68185         * build-aux/bootstrap (slurp): When generating ignorable names,
68186         also map .sin to .sed, .gperf to .c, and .y to .c.
68187
68188 2007-09-03  Jim Meyering  <jim@meyering.net>
68189
68190         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68191         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68192
68193 2007-09-02  Bruno Haible  <bruno@clisp.org>
68194
68195         Fix mis-recognition of 'mcs' on QNX 6.
68196         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68197         output contains the string "Mono".
68198         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68199         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68200
68201 2007-09-01  Bruno Haible  <bruno@clisp.org>
68202
68203         Fix collision between uniwidth/* and linebreak modules.
68204         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68205         u32_width): Remove declarations.
68206         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68207         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68208         streq3, streq2, streq1, streq0): Remove functions.
68209         (STREQ): Remove macro.
68210         (is_cjk_encoding): Remove function.
68211         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68212         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68213         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68214         * NEWS: Document the change.
68215
68216 2007-09-01  Bruno Haible  <bruno@clisp.org>
68217
68218         * lib/streq.h: Add double-inclusion guard.
68219
68220 2007-09-01  Karl Berry  <karl@gnu.org>
68221
68222         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68223
68224 2007-08-28  Jim Meyering  <jim@meyering.net>
68225
68226         Rename mreadlink_with_size to areadlink_with_size.
68227         * NEWS: Document the change.
68228         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68229         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68230         * lib/mreadlink.h: Rename this to...
68231         * lib/areadlink.h: ...this.
68232         * modules/mreadlink-with-size: Rename this to...
68233         * modules/areadlink-with-size: ...this.
68234         * lib/canonicalize.c: Reflect the renaming.
68235         * modules/canonicalize: Likewise.
68236
68237 2007-08-26  Bruno Haible  <bruno@clisp.org>
68238
68239         * gnulib-tool (func_import): When deciding which files to remove,
68240         consider also dangling symbolic links.
68241         Reported by Eric Blake.
68242
68243 2007-08-26  Bruno Haible  <bruno@clisp.org>
68244
68245         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68246
68247 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68248
68249         * lib/readline.c: Don't include getline.h, the prototype is now
68250         found in stdio.h.
68251
68252 2007-08-23  Jim Meyering  <jim@meyering.net>
68253
68254         Getdelim touchup.
68255         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68256         around the funlockfile call, since funlockfile never sets errno.
68257         Don't set errno upon failed realloc.
68258
68259 2007-08-22  Eric Blake  <ebb9@byu.net>
68260
68261         Getline touchups.
68262         * lib/getdelim.c (getdelim): Revert regression that required *n to
68263         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68264         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68265         getdelim, rather than whether implementation is missing.
68266         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68267         * lib/stdio_.h (getline): Also declare if replacement is
68268         required.
68269         * doc/functions/getdelim.texi: New file.
68270         * doc/functions/getline.texi: Likewise.
68271         * doc/gnulib.texi (Function Substitutes): Add new files.
68272         Reported by Bruno Haible.
68273
68274 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68275
68276         * users.txt: Add Guile.
68277
68278 2007-08-22  Eric Blake  <ebb9@byu.net>
68279
68280         * tests/test-getdelim.c (main): Use remove, not unlink.
68281         * tests/test-getline.c (main): Likewise.
68282
68283         Move getline and getdelim into stdio.h, per POSIX 200x.
68284         * modules/getline (Files): Remove getline.h.
68285         (Depends-on): Add stdio.
68286         (configure.ac): Add module indicator.
68287         * modules/getdelim (Files): Remove getdelim.h.
68288         (Depends-on): Add stdio.
68289         (configure.ac): Add module indicator.
68290         * modules/stdio (Makefile.am): Work with new indicators.
68291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68292         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68293         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68294         * lib/getdelim.h: Delete.
68295         * lib/getline.h: Delete.
68296         * lib/stdio_.h (getdelim, getline): Declare.
68297         * modules/getdelim-tests: New module.
68298         * modules/getline-tests: Likewise.
68299         * tests/test-getdelim.c: New file.
68300         * tests/test-getline.c: Likewise.
68301         * NEWS: Document the change.
68302         * lib/getline.c: Update choice of header.
68303         * lib/csharpcomp.c: Likewise.
68304         * lib/getpass.c: Likewise.
68305         * lib/javacomp.c: Likewise.
68306         * lib/javaversion.c: Likewise.
68307         * lib/yesno.c: Likewise.
68308         * lib/getdelim.c: Likewise.
68309         (getdelim): Set errno on failure, and avoid memory leak.
68310
68311 2007-08-19  Bruno Haible  <bruno@clisp.org>
68312
68313         * modules/closein (Depends-on): Add freadahead.
68314         * lib/closein.c: Include freadahead.h.
68315         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68316         is zero.
68317
68318 2007-08-19  Bruno Haible  <bruno@clisp.org>
68319
68320         * modules/freadahead-tests: New file.
68321         * tests/test-freadahead.sh: New file.
68322         * tests/test-freadahead.c: New file.
68323
68324         * modules/freadahead: New file.
68325         * lib/freadahead.h: New file.
68326         * lib/freadahead.c: New file.
68327         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68328         fbufmode, fpurge, freadable, fwritable.
68329
68330 2007-08-19  Eric Blake  <ebb9@byu.net>
68331
68332         Test yesno in combination with closein.
68333         * lib/yesno.c (yesno): Document use of stdin.
68334         * modules/yesno-tests (Files): New module.
68335         * tests/test-yesno.c (main): New file.
68336         * tests/test-yesno.sh: Likewise.
68337
68338 2007-08-19  Bruno Haible  <bruno@clisp.org>
68339
68340         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68341         * lib/fseeko.c (rpl_fseeko): Likewise.
68342         * lib/fseterr.c (fseterr): Likewise.
68343
68344 2007-08-19  Bruno Haible  <bruno@clisp.org>
68345
68346         * tests/test-lseek.c (main): Disable a test for BeOS.
68347         * doc/functions/lseek.texi: Document the BeOS bug.
68348
68349 2007-08-19  Bruno Haible  <bruno@clisp.org>
68350             Eric Blake  <ebb9@byu.net>
68351
68352         * lib/lseek.c: Include <sys/stat.h>.
68353         (rpl_lseek): Add workaround code also for Unix platforms.
68354         Needed for BeOS.
68355         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68356         * doc/functions/lseek.texi: Document BeOS definiency.
68357
68358 2007-08-18  Bruno Haible  <bruno@clisp.org>
68359
68360         * modules/fstrcmp-tests: New file.
68361         * tests/test-fstrcmp.c: New file.
68362
68363 2007-08-18  Bruno Haible  <bruno@clisp.org>
68364
68365         * modules/fstrcmp: New file, from GNU gettext with modifications.
68366         * lib/fstrcmp.h: New file, from GNU gettext.
68367         * lib/fstrcmp.c: New file, from GNU gettext.
68368         * MODULES.html.sh (String handling): Add fstrcmp.
68369
68370 2007-08-18  Bruno Haible  <bruno@clisp.org>
68371
68372         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68373         'bool'.
68374         (diag, compareseq): Remove const from the ctxt argument.
68375         (USE_HEURISTIC): Undefine at the end.
68376
68377 2007-08-18  Jim Meyering  <jim@meyering.net>
68378
68379         New file: lib/idcache.h
68380         * NEWS: Mention the addition.
68381         * modules/idcache (Files): Add lib/idcache.h
68382         * lib/idcache.c: Include "idcache.h".
68383         Don't include <sys/types.h>.
68384         Add a FIXME comment.
68385         Move file-scoped "static" declarations to the top.
68386         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68387
68388 2007-08-17  Bruno Haible  <bruno@clisp.org>
68389         and Paul Eggert  <eggert@cs.ucla.edu>
68390
68391         * MODULES.html.sh: Add diffseq.
68392         * modules/diffseq: New file.
68393         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68394         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68395
68396 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         Import changes from coreutils for bootstrap script.
68399
68400         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68401
68402         * build-aux/bootstrap (slurp): Work even in environments where
68403         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68404         current code does not slurp files whose names start with ".", and
68405         this looks like it might be a troublesome area.
68406
68407         2007-07-11  Jim Meyering  <jim@meyering.net>
68408
68409         If there's a GPL vN copyright comment, require that N == 3.
68410
68411         2007-07-08  Jim Meyering  <jim@meyering.net>
68412
68413         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68414         * build-aux/bootstrap (mam_template): Move definition out of loop.
68415
68416         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68417
68418         * build-aux/bootstrap (symlink_to_dir): Rename function from
68419         symlink_to_gnulib.  Add a directory parameter.  Update all
68420         callers.
68421         (cp_mark_as_generated): Also check for -- and link to -- files in
68422         gl/.
68423
68424         2007-07-08  Jim Meyering  <jim@meyering.net>
68425
68426         Adapt to deeper hierarchy in gnulib.
68427         * build-aux/bootstrap (symlink_to_dir): If the destination
68428         directory doesn't exist, create it. This is required at least for
68429         "lib/uniwidth/cjk.h".
68430
68431         2007-05-15  Jim Meyering  <jim@meyering.net>
68432
68433         * build-aux/bootstrap: Now that generated Makefile.am files
68434         are no longer under version control, they must be created at
68435         bootstrap time.
68436
68437 2007-08-14  Ben Pfaff  <blp@gnu.org>
68438
68439         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68440
68441 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68442
68443         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68444         given the changes below.
68445         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68446         even on hosts that have padding bits beyond the supported 64.
68447
68448 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68451         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68452         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68453         depends on it.
68454         (xstrtol_error): Remove.
68455         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68456         but with a different signature.
68457         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68458         * lib/xstrtol-error.c: Include exitfail.h.
68459         (xstrtol_fatal): New function, with a different signature from the
68460         old xstrtol_error, so that the caller need not worry about passing
68461         in an exit status, or about storage management of the option argument.
68462         (xstrtol_error): Now a static function.  Redo signature to
68463         implement xstrtol_fatal.  Output the correct number of hyphens in
68464         front of the option so that the caller need not worry about
68465         storage management.
68466         (N_): New macro.
68467         (_): Remove; not used now.
68468         * modules/xstrtol: Depend on getopt.
68469         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68470         of old STRTOL_FATAL_ERROR macro.
68471         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68472         of test program.
68473         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68474         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68475
68476 2007-08-08  Eric Blake  <ebb9@byu.net>
68477
68478         * lib/xstrtol-error.c: Add missing include.
68479
68480         Move xstrtol messages into gnulib domain, when --pobase is used.
68481         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68482         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68483         * modules/xstrtol (Files): Distribute new file.
68484         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68485         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68486         * tests/test-xstrtol.c: ...into new file.
68487         * tests/test-xstrtoul.c: Also test xstrtoul.
68488         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68489         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68490         * tests/test-xstrtol.sh: Drive the tests.
68491         * tests/test-xstrtoimax.sh: Likewise.
68492         * tests/test-xstrtoumax.sh: Likewise.
68493         * modules/xstrtol-tests: New module.
68494         * modules/xstrtoimax-tests: Likewise.
68495         * modules/xstrtoumax-tests: Likewise.
68496
68497 2007-08-08  Jim Meyering  <jim@meyering.net>
68498
68499         New function: mfile_name_concat.
68500         * lib/filenamecat.c (mfile_name_concat): New function, just like
68501         file_name_concat, but return NULL upon failure rather than exiting
68502         with a diagnostic.
68503         * lib/filenamecat.h: Declare it.
68504
68505 2007-08-07  Bruno Haible  <bruno@clisp.org>
68506
68507         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68508         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68509         warning from gcc.
68510         Reported by Eric Blake.
68511
68512 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68513
68514         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68515         * modules/crypto/arcfour (License): Likewise.
68516         * modules/crypto/des-tests (License): Likewise.
68517         * modules/crypto/gc-arctwo-tests (License): Likewise.
68518         * modules/crypto/gc-des-tests (License): Likewise.
68519         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68520         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68521         * modules/crypto/gc-md2-tests (License): Likewise.
68522         * modules/crypto/gc-md4-tests (License): Likewise.
68523         * modules/crypto/gc-md5-tests (License): Likewise.
68524         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68525         * modules/crypto/gc-rijndael-tests (License): Likewise.
68526         * modules/crypto/gc-sha1-tests (License): Likewise.
68527         * modules/crypto/gc-tests (License): Likewise.
68528         * modules/crypto/hmac-md5 (License): Likewise.
68529         * modules/crypto/hmac-sha1 (License): Likewise.
68530         * modules/crypto/md2-tests (License): Likewise.
68531         * modules/crypto/md4-tests (License): Likewise.
68532         * modules/crypto/md5 (License): Likewise.
68533         * modules/crypto/rijndael (License): Likewise.
68534         * modules/crypto/sha1 (License): Likewise.
68535         * modules/memxor (License): Likewise.
68536
68537 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68538         and Bruno Haible  <bruno@clisp.org>
68539
68540         * NEWS: Describe interface changes to human, xstrtol.
68541         * lib/human.h: Include <xstrtol.h>.
68542         (human_options): Return enum strtol_error, not int.  Remove
68543         bool arg; take int * instead.
68544         * lib/human.c: Don't include "gettext.h".
68545         (_): Remove; no longer used.
68546         Don't include <xstrtol.h>, since human.h does it.
68547         (human_options): Adjust to abovementioned interface changes.
68548         Do not report error to stderr; that's now the caller's
68549         responsibility.
68550         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68551         interface change.
68552         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68553         Str, Argument_type_string.  All uses changed.  Put " argument"
68554         in diagnostics to make them clearer.  Change wording of suffix
68555         message for clarity.
68556         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68557         Argument_type_string.
68558         (STRTOL_FATAL_WARN): Remove; no longer used.
68559         * modules/human (Depends-on): Remove gettext-h.
68560
68561 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68562
68563         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68564
68565 2007-07-31  Bruno Haible  <bruno@clisp.org>
68566
68567         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68568         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68569         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68570
68571 2007-07-31  Bruno Haible  <bruno@clisp.org>
68572
68573         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68574         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68575
68576 2007-07-30  Bruno Haible  <bruno@clisp.org>
68577
68578         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68579         * modules/c-ctype (License): Likewise.
68580         * modules/c-strcase (License): Likewise.
68581         * modules/check-version (License): Likewise.
68582         * modules/iconv (License): Likewise.
68583         * modules/iconv_open (License): Likewise.
68584         * modules/read-file (License): Likewise.
68585         * modules/striconv (License): Likewise.
68586         * modules/strverscmp (License): Likewise.
68587         * modules/vasprintf (License): Likewise.
68588         * modules/crypto/des (License): Likewise.
68589         * modules/crypto/gc (License): Likewise.
68590         * modules/crypto/gc-arcfour (License): Likewise.
68591         * modules/crypto/gc-arctwo (License): Likewise.
68592         * modules/crypto/gc-des (License): Likewise.
68593         * modules/crypto/gc-hmac-md5 (License): Likewise.
68594         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68595         * modules/crypto/gc-md2 (License): Likewise.
68596         * modules/crypto/gc-md4 (License): Likewise.
68597         * modules/crypto/gc-md5 (License): Likewise.
68598         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68599         * modules/crypto/gc-random (License): Likewise.
68600         * modules/crypto/gc-rijndael (License): Likewise.
68601         * modules/crypto/gc-sha1 (License): Likewise.
68602         * modules/crypto/md2 (License): Likewise.
68603         * modules/crypto/md4 (License): Likewise.
68604
68605 2007-07-30  Jim Meyering  <jim@meyering.net>
68606
68607         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68608         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68609         it has valid stat data.  This bug would cause du not to count the
68610         sizes of inaccessible directories.
68611         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68612         in <http://bugzilla.redhat.com/250077>.
68613
68614 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68615             Bruno Haible  <bruno@clisp.org>
68616
68617         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68618         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68619         #include_next, gives a diagnostic about it, but reports no error in
68620         the exit code.
68621         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68622
68623 2007-07-24  Ben Pfaff  <blp@gnu.org>
68624
68625         Improve name: "count-one-bits" is better than "popcount".
68626         * MODULES.html.sh: Update name.
68627         * lib/popcount.h: Renamed lib/count-one-bits.h.
68628         (popcount): Renamed count_one_bits.
68629         (popcountl): Renamed count_one_bits_l.
68630         (popcountll): Renamed count_one_bits_ll.
68631         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68632         * modules/popcount: Renamed module/count-one-bits.
68633         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68634         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68635
68636 2007-07-23  Ben Pfaff  <blp@gnu.org>
68637
68638         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68639         better code generation, and add U to large constants to avoid
68640         warnings, in non-GCC case.
68641         Suggested by Bruno Haible.
68642
68643 2007-07-23  Ben Pfaff  <blp@gnu.org>
68644
68645         * lib/popcount.h: Use verify_true instead of if...abort.
68646         * modules/popcount: Depend on verify module.
68647         Suggested by Jim Meyering.
68648
68649 2007-07-23  Bruno Haible  <bruno@clisp.org>
68650
68651         * gnulib-tool (func_import): Create a .cvsignore file also when the
68652         directory is not yet in CVS but the toplevel directory is. When
68653         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68654         Reported by Karl Berry.
68655
68656 2007-07-22  Ben Pfaff  <blp@gnu.org>
68657
68658         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68659         case.
68660         Suggested by Eric Blake.
68661
68662 2007-07-22  Ben Pfaff  <blp@gnu.org>
68663
68664         New module: popcount.
68665         * MODULES.html.sh: Add popcount.
68666         * modules/popcount: New file.
68667         * modules/popcount-tests: New file.
68668         * tests/test-popcount.c: New file.
68669         * lib/popcount.h: New file.
68670         * m4/popcount.m4: New file.
68671
68672 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68673
68674         * build-aux/announce-gen: Update to GPLv3.
68675
68676         * build-aux/config.guess: Update from config.
68677
68678 2007-07-21  Bruno Haible  <bruno@clisp.org>
68679
68680         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68681         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68682
68683 2007-07-20  Jim Meyering  <jim@meyering.net>
68684
68685         * check-module: Diagnose a self-dependency.
68686
68687 2007-07-19  Bruno Haible  <bruno@clisp.org>
68688
68689         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68690         empty.
68691         Reported by Eric Blake.
68692
68693 2007-07-18  Bruno Haible  <bruno@clisp.org>
68694
68695         * gnulib-tool: New options --po-base, --po-domain.
68696         (func_usage): Document them.
68697         (pobase, po_domain): New variables.
68698         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68699         DEFAULT_TEXT_DOMAIN.
68700         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68701         (func_import): Consider pobase and po_domain. Create a po/ directory.
68702         (func_create_testdir): Set pobase and po_domain to empty.
68703         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68704         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68705
68706 2007-07-18  Bruno Haible  <bruno@clisp.org>
68707
68708         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68709         EXTRA_DIST augmentation for files in build-aux/.
68710
68711 2007-07-16  Bruno Haible  <bruno@clisp.org>
68712
68713         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68714         * modules/getdelim (License): Likewise.
68715
68716 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68717
68718         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68719         * modules/d-type (License): Likewise.
68720         * modules/extensions (License): Likewise.
68721         * modules/fnmatch (License): Likewise.
68722         * modules/fseeko (License): Likewise.
68723         * modules/getaddrinfo (License): Likewise.
68724         * modules/getline (License): Likewise.
68725         * modules/getlogin_r (License): Likewise.
68726         * modules/getpass (License): Likewise.
68727         * modules/gettimeofday (License): Likewise.
68728         * modules/glob (License): Likewise.
68729         * modules/inet_ntop (License): Likewise.
68730         * modules/malloc (License): Likewise.
68731         * modules/malloca (License): Likewise.
68732         * modules/memmem (License): Likewise.
68733         * modules/mempcpy (License): Likewise.
68734         * modules/memset (License): Likewise.
68735         * modules/minmax (License): Likewise.
68736         * modules/mktime (License): Likewise.
68737         * modules/netinet_in (License): Likewise.
68738         * modules/pathmax (License): Likewise.
68739         * modules/poll (License): Likewise.
68740         * modules/regex (License): Likewise.
68741         * modules/snprintf (License): Likewise.
68742         * modules/stdbool (License): Likewise.
68743         * modules/stdint (License): Likewise.
68744         * modules/stdio (License): Likewise.
68745         * modules/strcase (License): Likewise.
68746         * modules/strcasestr (License): Likewise.
68747         * modules/strdup (License): Likewise.
68748         * modules/string (License): Likewise.
68749         * modules/strndup (License): Likewise.
68750         * modules/strnlen (License): Likewise.
68751         * modules/strpbrk (License): Likewise.
68752         * modules/strptime (License): Likewise.
68753         * modules/strsep (License): Likewise.
68754         * modules/sys_select (License): Likewise.
68755         * modules/sys_socket (License): Likewise.
68756         * modules/sys_stat (License): Likewise.
68757         * modules/sys_time (License): Likewise.
68758         * modules/time (License): Likewise.
68759         * modules/time_r (License): Likewise.
68760         * modules/timegm (License): Likewise.
68761         * modules/unistd (License): Likewise.
68762         * modules/vsnprintf (License): Likewise.
68763         * modules/wctype (License): Likewise.
68764
68765 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68766
68767         * modules/argz (License): LGPLv2+.
68768
68769 2007-07-15  Karl Berry  <karl@gnu.org>
68770
68771         * doc/gnulib.texi: revise node structure per new fdl.texi.
68772
68773 2007-07-14  Bruno Haible  <bruno@clisp.org>
68774
68775         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68776         the output file.
68777         * lib/uniname/uninames.h: Regenerated.
68778
68779 2007-07-14  Karl Berry  <karl@gnu.org>
68780
68781         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68782         omitting sectioning and index commands.
68783
68784 2007-07-13  Bruno Haible  <bruno@clisp.org>
68785
68786         New gnulib-tool option --more-symlinks.
68787         * gnulib-tool (func_usage): Document --more-symlinks.
68788         (do_copyrights): New variable.
68789         Recognize option --more-symlinks.
68790         (func_import): Don't add a copyright notice transform to
68791         sed_transform_lib_file if do_copyrights is empty.
68792
68793 2007-07-13  Bruno Haible  <bruno@clisp.org>
68794
68795         * lib/vasnprintf.c (decimal_point_char): Define also if
68796         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68797         && !NEED_PRINTF_DIRECTIVE_A.
68798         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68799         Gary V. Vaughan <gary@gnu.org>.
68800
68801 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68802
68803         * lib/inttypes_.h: Undo previous change, since it was fixed
68804         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68805
68806 2007-07-13  Bruno Haible  <bruno@clisp.org>
68807
68808         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68809         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68810
68811 2007-07-13  Jim Meyering  <jim@meyering.net>
68812
68813         df: Don't fail for Tru64's "file-on-file mount".
68814         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68815         so we fall through and use statfs instead.  Details here:
68816         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68817         Reported by Albert Chin.
68818
68819 2007-07-13  Bruno Haible  <bruno@clisp.org>
68820
68821         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68822         * modules/configmake (License): Likewise.
68823         * modules/gettext (License): Likewise.
68824         * modules/gettext-h (License): Likewise.
68825         * modules/include_next (License): Likewise.
68826         * modules/link-warning (License): Likewise.
68827         * modules/localcharset (License): Likewise.
68828         * modules/localename (License): Likewise.
68829         * modules/lock (License): Likewise.
68830         * modules/relocatable-lib-lgpl (License): Likewise.
68831         * modules/size_max (License): Likewise.
68832         * modules/vasnprintf (License): Likewise.
68833         * modules/wchar (License): Likewise.
68834         * modules/xsize (License): Likewise.
68835
68836 2007-07-13  Bruno Haible  <bruno@clisp.org>
68837
68838         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68839         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68840
68841 2007-07-12  Bruno Haible  <bruno@clisp.org>
68842
68843         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68844         in the modules files.
68845
68846 2007-07-11  Karl Berry  <karl@gnu.org>
68847
68848         * MODULES.html.sh (func_module): use
68849          sed -e '\|^'"${includefile}"'$|d'
68850          instead of /.../d, to avoid errors on $includefile's containing /.
68851
68852 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68853
68854         * gnulib-tool (func_import): Avoid duplication of --avoid
68855         statements
68856         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68857         names to `_' in variable names.
68858
68859 2007-07-10  Eric Blake  <ebb9@byu.net>
68860
68861         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68862         * NEWS: Document this change.
68863
68864 2007-07-08  Bruno Haible  <bruno@clisp.org>
68865
68866         Update to Unicode 5.0.
68867         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68868         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68869         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68870         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68871         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68872         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68873         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68874         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68875         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68876         U+10A3F, U+1D242..U+1D244.
68877         (nonspacing_table_ind): Update.
68878         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68879         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68880
68881 2007-07-08  Bruno Haible  <bruno@clisp.org>
68882
68883         Update to Unicode 5.0.
68884         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68885         code transform. Extend the name index field of unicode_name_to_code and
68886         unicode_code_to_name from 16 to 24 bits.
68887         * lib/uniname/uniname.c (unicode_character_name,
68888         unicode_name_character): Add the range 0x12xxx to the code transform.
68889         * lib/uniname/uninames.h: Regenerated.
68890         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68891
68892 2007-07-07  Bruno Haible  <bruno@clisp.org>
68893
68894         * modules/wcwidth-tests: New file.
68895         * tests/test-wcwidth.c: New file.
68896
68897         Work around MacOS X wcwidth() bug.
68898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68899         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68900         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68901         original wcwidth in non-UTF-8 locales.
68902         * modules/wcwidth (Depends-on): Add localcharset, streq,
68903         uniwidth/width.
68904         * doc/functions/wcwidth.texi: Update.
68905
68906 2007-07-07  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68909         (wcwidth): New declaration.
68910         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68911         macros.
68912         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68913         here. Prepare for creating <wchar.h> unconditionally.
68914         * modules/wchar (Depends-on): Add link-warning.
68915         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68916         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68917         * lib/wcwidth.h: Remove file.
68918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68919         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68920         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68921         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68922         (Include): Replace wcwidth.h with <wchar.h>.
68923         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68924         * lib/mbchar.h: Don't include wcwidth.h.
68925         * lib/mbswidth.c: Likewise.
68926         * NEWS: Mention the change.
68927
68928 2007-07-07  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68931         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68932         definition with an external declaration.
68933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68934         defined as a function. Remove AC_C_INLINE requirement.
68935         * modules/wcwidth (Files): Add lib/wcwidth.c.
68936         (Makefile.am): Remove redundant statement.
68937
68938 2007-07-07  Bruno Haible  <bruno@clisp.org>
68939
68940         * MODULES.html.sh (Unicode string functions): Add the new modules.
68941
68942         * tests/uniwidth/test-u32-strwidth.c: New file.
68943         * modules/uniwidth/u32-strwidth-tests: New file.
68944
68945         * lib/uniwidth/u32-strwidth.c: New file.
68946         * modules/uniwidth/u32-strwidth: New file.
68947
68948         * tests/uniwidth/test-u16-strwidth.c: New file.
68949         * modules/uniwidth/u16-strwidth-tests: New file.
68950
68951         * lib/uniwidth/u16-strwidth.c: New file.
68952         * modules/uniwidth/u16-strwidth: New file.
68953
68954         * tests/uniwidth/test-u8-strwidth.c: New file.
68955         * modules/uniwidth/u8-strwidth-tests: New file.
68956
68957         * lib/uniwidth/u8-strwidth.c: New file.
68958         * modules/uniwidth/u8-strwidth: New file.
68959
68960         * tests/uniwidth/test-u32-width.c: New file.
68961         * modules/uniwidth/u32-width-tests: New file.
68962
68963         * lib/uniwidth/u32-width.c: New file.
68964         * modules/uniwidth/u32-width: New file.
68965
68966         * tests/uniwidth/test-u16-width.c: New file.
68967         * modules/uniwidth/u16-width-tests: New file.
68968
68969         * lib/uniwidth/u16-width.c: New file.
68970         * modules/uniwidth/u16-width: New file.
68971
68972         * tests/uniwidth/test-u8-width.c: New file.
68973         * modules/uniwidth/u8-width-tests: New file.
68974
68975         * lib/uniwidth/u8-width.c: New file.
68976         * modules/uniwidth/u8-width: New file.
68977
68978         * tests/uniwidth/test-uc_width.c: New file.
68979         * modules/uniwidth/width-tests: New file.
68980
68981         * lib/uniwidth/width.c: New file, from GNU libiconv.
68982         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68983         * modules/uniwidth/width: New file.
68984
68985         * lib/uniwidth.h: New file, from GNU libiconv.
68986         * modules/uniwidth/base: New file.
68987
68988 2007-07-07  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/uniname.h: New file, from GNU gettext.
68991         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68992         * lib/uniname/uninames.h: New file, from GNU gettext.
68993         * lib/uniname/uniname.c: New file, from GNU gettext.
68994         * tests/uniname/test-uninames.sh: New file.
68995         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68996         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68997         * modules/uniname/base: New file.
68998         * modules/uniname/uniname: New file.
68999         * modules/uniname/uniname-tests: New file.
69000         * MODULES.html.sh (Unicode string functions): Add the new modules.
69001
69002 2007-07-06  Bruno Haible  <bruno@clisp.org>
69003
69004         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69005
69006 2007-07-06  Bruno Haible  <bruno@clisp.org>
69007
69008         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69009         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69010         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69011         include <sys/time.h>.
69012         Reported by Eric Blake.
69013
69014 2007-07-06  Eric Blake  <ebb9@byu.net>
69015
69016         Fix testing canonicalize on cygwin.
69017         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69018         Revert patch from 2007-06-19.
69019         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69020         canonicalize module is also in use.
69021         * tests/test-canonicalize.c: New file.
69022         * tests/test-canonicalize.sh: Likewise.
69023         * modules/canonicalize-tests: Likewise.
69024
69025 2007-07-06  Jim Meyering  <jim@meyering.net>
69026
69027         * lib/getugroups.c (getugroups): Detect getgrent failure.
69028         Adjust comment to reflect reality: this function may return -1.
69029
69030 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69031
69032         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69033         the new TP address.
69034         (usage): Fix typo
69035         (gnulib_mk): New variable.
69036
69037 2007-07-05  Jim Meyering  <jim@meyering.net>
69038
69039         Don't let endgrent clobber errno, no matter how improbable.
69040         * lib/getugroups.c (getugroups): Save and restore errno around
69041         endgrent call.
69042
69043         Close the group DB even when failing with 2^31 or more members.
69044         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69045
69046 2007-07-04  Jim Meyering  <jim@meyering.net>
69047
69048         * lib/getugroups.h: New file.
69049         * lib/getugroups.c: Include "getugroups.h".
69050         Remove uses of "register" keyword.
69051         Move local variable, "cp", down into scope where used.
69052         Give "username" parameter the "const" attribute.
69053         * modules/getugroups (Files): Add lib/getugroups.h
69054
69055 2007-07-04  Karl Berry  <karl@gnu.org>
69056
69057         * MODULES.html.sh (func_all_modules): Complete rename of
69058         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69059
69060 2007-07-02  Bruno Haible  <bruno@clisp.org>
69061
69062         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69063         mode, when inttypes.h comes from gnulib.
69064         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69065
69066 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69067
69068         * NEWS: Mention lgpl module name change.
69069
69070         * modules/lgpl-2.1: Renamed from lgpl.
69071
69072         * NEWS: Mention gpl module name change.
69073
69074         * modules/gpl-3.0: New file, based on gpl-2.0.
69075
69076         * modules/gpl-2.0: Renamed from gpl.
69077
69078         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69079         doc/gpl-2.0.texi.
69080
69081 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69084         #define __STDC_LIMIT_MACROS temporarily while including
69085         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69086         Problem reported by Joel E. Denny in
69087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69088
69089 2007-07-01  Bruno Haible  <bruno@clisp.org>
69090
69091         * lib/unistdio.h: New file.
69092         * lib/unistdio/u-asnprintf.h: New file.
69093         * lib/unistdio/u-asprintf.h: New file.
69094         * lib/unistdio/u-printf-args.c: New file.
69095         * lib/unistdio/u-printf-args.h: New file.
69096         * lib/unistdio/u-printf-parse.h: New file.
69097         * lib/unistdio/u-snprintf.h: New file.
69098         * lib/unistdio/u-sprintf.h: New file.
69099         * lib/unistdio/u-vasprintf.h: New file.
69100         * lib/unistdio/u-vsnprintf.h: New file.
69101         * lib/unistdio/u-vsprintf.h: New file.
69102         * lib/unistdio/ulc-asnprintf.c: New file.
69103         * lib/unistdio/ulc-asprintf.c: New file.
69104         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69105         * lib/unistdio/ulc-printf-parse.c: New file.
69106         * lib/unistdio/ulc-snprintf.c: New file.
69107         * lib/unistdio/ulc-sprintf.c: New file.
69108         * lib/unistdio/ulc-vasnprintf.c: New file.
69109         * lib/unistdio/ulc-vasprintf.c: New file.
69110         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69111         * lib/unistdio/ulc-vsnprintf.c: New file.
69112         * lib/unistdio/ulc-vsprintf.c: New file.
69113         * lib/unistdio/u8-asnprintf.c: New file.
69114         * lib/unistdio/u8-asprintf.c: New file.
69115         * lib/unistdio/u8-printf-parse.c: New file.
69116         * lib/unistdio/u8-snprintf.c: New file.
69117         * lib/unistdio/u8-sprintf.c: New file.
69118         * lib/unistdio/u8-vasnprintf.c: New file.
69119         * lib/unistdio/u8-vasprintf.c: New file.
69120         * lib/unistdio/u8-vsnprintf.c: New file.
69121         * lib/unistdio/u8-vsprintf.c: New file.
69122         * lib/unistdio/u8-u8-asnprintf.c: New file.
69123         * lib/unistdio/u8-u8-asprintf.c: New file.
69124         * lib/unistdio/u8-u8-snprintf.c: New file.
69125         * lib/unistdio/u8-u8-sprintf.c: New file.
69126         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69127         * lib/unistdio/u8-u8-vasprintf.c: New file.
69128         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69129         * lib/unistdio/u8-u8-vsprintf.c: New file.
69130         * lib/unistdio/u16-asnprintf.c: New file.
69131         * lib/unistdio/u16-asprintf.c: New file.
69132         * lib/unistdio/u16-printf-parse.c: New file.
69133         * lib/unistdio/u16-snprintf.c: New file.
69134         * lib/unistdio/u16-sprintf.c: New file.
69135         * lib/unistdio/u16-vasnprintf.c: New file.
69136         * lib/unistdio/u16-vasprintf.c: New file.
69137         * lib/unistdio/u16-vsnprintf.c: New file.
69138         * lib/unistdio/u16-vsprintf.c: New file.
69139         * lib/unistdio/u16-u16-asnprintf.c: New file.
69140         * lib/unistdio/u16-u16-asprintf.c: New file.
69141         * lib/unistdio/u16-u16-snprintf.c: New file.
69142         * lib/unistdio/u16-u16-sprintf.c: New file.
69143         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69144         * lib/unistdio/u16-u16-vasprintf.c: New file.
69145         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69146         * lib/unistdio/u16-u16-vsprintf.c: New file.
69147         * lib/unistdio/u32-asnprintf.c: New file.
69148         * lib/unistdio/u32-asprintf.c: New file.
69149         * lib/unistdio/u32-printf-parse.c: New file.
69150         * lib/unistdio/u32-snprintf.c: New file.
69151         * lib/unistdio/u32-sprintf.c: New file.
69152         * lib/unistdio/u32-vasnprintf.c: New file.
69153         * lib/unistdio/u32-vasprintf.c: New file.
69154         * lib/unistdio/u32-vsnprintf.c: New file.
69155         * lib/unistdio/u32-vsprintf.c: New file.
69156         * lib/unistdio/u32-u32-asnprintf.c: New file.
69157         * lib/unistdio/u32-u32-asprintf.c: New file.
69158         * lib/unistdio/u32-u32-snprintf.c: New file.
69159         * lib/unistdio/u32-u32-sprintf.c: New file.
69160         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69161         * lib/unistdio/u32-u32-vasprintf.c: New file.
69162         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69163         * lib/unistdio/u32-u32-vsprintf.c: New file.
69164         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69165         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69166         * tests/unistdio/test-ulc-printf1.h: New file.
69167         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69168         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69169         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69170         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69171         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69172         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69173         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69174         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69175         * tests/unistdio/test-u8-asnprintf1.c: New file.
69176         * tests/unistdio/test-u8-asnprintf1.h: New file.
69177         * tests/unistdio/test-u8-printf1.h: New file.
69178         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69179         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69180         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69181         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69182         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69183         * tests/unistdio/test-u8-vasprintf1.c: New file.
69184         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69185         * tests/unistdio/test-u8-vsprintf1.c: New file.
69186         * tests/unistdio/test-u16-asnprintf1.c: New file.
69187         * tests/unistdio/test-u16-asnprintf1.h: New file.
69188         * tests/unistdio/test-u16-printf1.h: New file.
69189         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69190         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69191         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69192         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69193         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69194         * tests/unistdio/test-u16-vasprintf1.c: New file.
69195         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69196         * tests/unistdio/test-u16-vsprintf1.c: New file.
69197         * tests/unistdio/test-u32-asnprintf1.c: New file.
69198         * tests/unistdio/test-u32-asnprintf1.h: New file.
69199         * tests/unistdio/test-u32-printf1.h: New file.
69200         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69201         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69202         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69203         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69204         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69205         * tests/unistdio/test-u32-vasprintf1.c: New file.
69206         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69207         * tests/unistdio/test-u32-vsprintf1.c: New file.
69208         * modules/unistdio/base: New file.
69209         * modules/unistdio/u-printf-args: New file.
69210         * modules/unistdio/ulc-asnprintf: New file.
69211         * modules/unistdio/ulc-asprintf: New file.
69212         * modules/unistdio/ulc-fprintf: New file.
69213         * modules/unistdio/ulc-printf-parse: New file.
69214         * modules/unistdio/ulc-snprintf: New file.
69215         * modules/unistdio/ulc-sprintf: New file.
69216         * modules/unistdio/ulc-vasnprintf: New file.
69217         * modules/unistdio/ulc-vasprintf: New file.
69218         * modules/unistdio/ulc-vfprintf: New file.
69219         * modules/unistdio/ulc-vsnprintf: New file.
69220         * modules/unistdio/ulc-vsprintf: New file.
69221         * modules/unistdio/u8-asnprintf: New file.
69222         * modules/unistdio/u8-asprintf: New file.
69223         * modules/unistdio/u8-printf-parse: New file.
69224         * modules/unistdio/u8-snprintf: New file.
69225         * modules/unistdio/u8-sprintf: New file.
69226         * modules/unistdio/u8-vasnprintf: New file.
69227         * modules/unistdio/u8-vasprintf: New file.
69228         * modules/unistdio/u8-vsnprintf: New file.
69229         * modules/unistdio/u8-vsprintf: New file.
69230         * modules/unistdio/u8-u8-asnprintf: New file.
69231         * modules/unistdio/u8-u8-asprintf: New file.
69232         * modules/unistdio/u8-u8-snprintf: New file.
69233         * modules/unistdio/u8-u8-sprintf: New file.
69234         * modules/unistdio/u8-u8-vasnprintf: New file.
69235         * modules/unistdio/u8-u8-vasprintf: New file.
69236         * modules/unistdio/u8-u8-vsnprintf: New file.
69237         * modules/unistdio/u8-u8-vsprintf: New file.
69238         * modules/unistdio/u16-asnprintf: New file.
69239         * modules/unistdio/u16-asprintf: New file.
69240         * modules/unistdio/u16-printf-parse: New file.
69241         * modules/unistdio/u16-snprintf: New file.
69242         * modules/unistdio/u16-sprintf: New file.
69243         * modules/unistdio/u16-vasnprintf: New file.
69244         * modules/unistdio/u16-vasprintf: New file.
69245         * modules/unistdio/u16-vsnprintf: New file.
69246         * modules/unistdio/u16-vsprintf: New file.
69247         * modules/unistdio/u16-u16-asnprintf: New file.
69248         * modules/unistdio/u16-u16-asprintf: New file.
69249         * modules/unistdio/u16-u16-snprintf: New file.
69250         * modules/unistdio/u16-u16-sprintf: New file.
69251         * modules/unistdio/u16-u16-vasnprintf: New file.
69252         * modules/unistdio/u16-u16-vasprintf: New file.
69253         * modules/unistdio/u16-u16-vsnprintf: New file.
69254         * modules/unistdio/u16-u16-vsprintf: New file.
69255         * modules/unistdio/u32-asnprintf: New file.
69256         * modules/unistdio/u32-asprintf: New file.
69257         * modules/unistdio/u32-printf-parse: New file.
69258         * modules/unistdio/u32-snprintf: New file.
69259         * modules/unistdio/u32-sprintf: New file.
69260         * modules/unistdio/u32-vasnprintf: New file.
69261         * modules/unistdio/u32-vasprintf: New file.
69262         * modules/unistdio/u32-vsnprintf: New file.
69263         * modules/unistdio/u32-vsprintf: New file.
69264         * modules/unistdio/u32-u32-asnprintf: New file.
69265         * modules/unistdio/u32-u32-asprintf: New file.
69266         * modules/unistdio/u32-u32-snprintf: New file.
69267         * modules/unistdio/u32-u32-sprintf: New file.
69268         * modules/unistdio/u32-u32-vasnprintf: New file.
69269         * modules/unistdio/u32-u32-vasprintf: New file.
69270         * modules/unistdio/u32-u32-vsnprintf: New file.
69271         * modules/unistdio/u32-u32-vsprintf: New file.
69272         * modules/unistdio/ulc-asnprintf-tests: New file.
69273         * modules/unistdio/ulc-vasnprintf-tests: New file.
69274         * modules/unistdio/ulc-vasprintf-tests: New file.
69275         * modules/unistdio/ulc-vsnprintf-tests: New file.
69276         * modules/unistdio/ulc-vsprintf-tests: New file.
69277         * modules/unistdio/u8-asnprintf-tests: New file.
69278         * modules/unistdio/u8-vasnprintf-tests: New file.
69279         * modules/unistdio/u8-vasprintf-tests: New file.
69280         * modules/unistdio/u8-vsnprintf-tests: New file.
69281         * modules/unistdio/u8-vsprintf-tests: New file.
69282         * modules/unistdio/u16-asnprintf-tests: New file.
69283         * modules/unistdio/u16-vasnprintf-tests: New file.
69284         * modules/unistdio/u16-vasprintf-tests: New file.
69285         * modules/unistdio/u16-vsnprintf-tests: New file.
69286         * modules/unistdio/u16-vsprintf-tests: New file.
69287         * modules/unistdio/u32-asnprintf-tests: New file.
69288         * modules/unistdio/u32-vasnprintf-tests: New file.
69289         * modules/unistdio/u32-vasprintf-tests: New file.
69290         * modules/unistdio/u32-vsnprintf-tests: New file.
69291         * modules/unistdio/u32-vsprintf-tests: New file.
69292         * MODULES.html.sh (Unicode string functions): Add the new modules.
69293
69294 2007-07-01  Bruno Haible  <bruno@clisp.org>
69295
69296         * lib/sprintf.c (sprintf): Limit the available length estimation,
69297         to avoid address wraparound.
69298         * lib/vsprintf.c (vsprintf): Likewise.
69299         * modules/sprintf-posix (Dependencies): Add stdint.
69300         * modules/vsprintf-posix (Dependencies): Likewise.
69301
69302 2007-07-01  Bruno Haible  <bruno@clisp.org>
69303
69304         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69305         Windows PATH as well. Conservative double-quoting. Comments.
69306
69307 2007-07-01  Bruno Haible  <bruno@clisp.org>
69308             Eric Blake  <ebb9@byu.net>
69309             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69310
69311         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69312         empty components in $PATH, denoting '.'.
69313
69314 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69315
69316         * gnulib-tool: Fix indentation.
69317         (func_create_megatestdir): Likewise.
69318         Report by Bruno Haible.
69319
69320 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69321
69322         Sync from Automake.
69323         * build-aux/gnupload: Fix shell portability issues with for loops.
69324         Report by Karl Berry.
69325
69326 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69327
69328         * build-aux/maint.mk (POURL): Use translationproject.org.
69329
69330 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69331             Bruno Haible  <bruno@clisp.org>
69332
69333         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69334         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69335         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69336         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69337         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69338
69339 2007-06-27  Bruno Haible  <bruno@clisp.org>
69340
69341         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69342         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69343
69344 2007-06-26  Karl Berry  <karl@gnu.org>
69345
69346         * MODULES.html.sh: remove xreadlink-with-size.
69347
69348 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69351         method that I hope also handles the double-include problem noted
69352         by Bruno Haible in
69353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69354
69355 2007-06-23  Bruno Haible  <bruno@clisp.org>
69356
69357         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69358         Don't let the 'mostlyclean' target fail if the last subdirectory could
69359         not be removed.
69360         Reported by Karl Berry.
69361
69362 2007-06-23  Bruno Haible  <bruno@clisp.org>
69363
69364         * gnulib-tool (echo): Add a speedier workaround for ksh.
69365         * tests/test-echo.sh: Likewise.
69366
69367 2007-06-23  Bruno Haible  <bruno@clisp.org>
69368
69369         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69370         * tests/test-echo.sh: Likewise.
69371
69372 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69373
69374         * gnulib-tool (IFS): Initialize early, so we don't set it to
69375         empty later.
69376         (self_abspathname): Rewrite algorithm to set it, reindent.
69377         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69378         (func_create_megatestdir): Merge some sed scripts.
69379
69380 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69383         exposed by Sun Studio 11 cc on Solaris 8.
69384
69385 2007-06-22  Bruno Haible  <bruno@clisp.org>
69386
69387         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69388         backslashes.
69389         * tests/test-echo.sh: New file.
69390
69391 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69392
69393         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69394         simplify `sed_replace_build_aux' scripts, they are portable but
69395         echoing them with `echo' is not.
69396         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69397
69398 2007-06-21  Karl Berry  <karl@gnu.org>
69399
69400         * config/srclist.txt: guess we can't handle the licenses via
69401         srclist at the moment.
69402
69403 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69404
69405         * MODULES.html.sh: Add include_next.
69406         * modules/include_next: New file.
69407
69408 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69409
69410         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69411         INCLUDE_NEXT.
69412         (gl_CHECK_NEXT_HEADERS): New macro.
69413         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69414         the obsolescent gl_ABSOLUTE_HEADER.
69415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69416         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69417         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69418         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69419         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69420         * m4/math_h.m4 (gl_MATH_H): Likewise.
69421         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69422         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69423         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69424         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69425         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69426         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69427         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69428         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69429         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69430         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69432         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69433         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69434         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69435         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69436         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69437         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69438         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69439         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69440         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69441         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69442         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69443         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69444         * lib/float_.h: Likewise.
69445         * lib/inttypes_.h: Likewise.
69446         * lib/math_.h: Likewise.
69447         * lib/search_.h: Likewise.
69448         * lib/signal_.h: Likewise.
69449         * lib/stdint_.h: Likewise.
69450         * lib/stdio_.h: Likewise.
69451         * lib/stdlib_.h: Likewise.
69452         * lib/string_.h: Likewise.
69453         * lib/sys_stat_.h: Likewise.
69454         * lib/sys_time_.h: Likewise.
69455         * lib/time_.h: Likewise.
69456         * lib/unistd_.h: Likewise.
69457         * lib/wchar_.h: Likewise.
69458         * lib/wctype_.h: Likewise.
69459         * lib/dirent_.h: Likewise.
69460         * lib/iconv_.h: Likewise.
69461         * lib/locale_.h: Likewise.
69462         * lib/netinet_in_.h: Likewise.
69463         * lib/sys_select_.h: Likewise.
69464         * lib/sys_socket_.h: Likewise.
69465         * lib/sysexits_.h: Likewise.
69466         * modules/fcntl (Depends-on): Depend on include_next, not
69467         absolute_header.
69468         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69469         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69470         * modules/fchdir: Likewise.
69471         * modules/float: Likewise.
69472         * modules/iconv_open: Likewise.
69473         * modules/inttypes: Likewise.
69474         * modules/locale: Likewise.
69475         * modules/math: Likewise.
69476         * modules/netinet_in: Likewise.
69477         * modules/search: Likewise.
69478         * modules/signal: Likewise.
69479         * modules/stdint: Likewise.
69480         * modules/stdio: Likewise.
69481         * modules/stdlib: Likewise.
69482         * modules/string: Likewise.
69483         * modules/sys_select: Likewise.
69484         * modules/sys_socket: Likewise.
69485         * modules/sys_stat: Likewise.
69486         * modules/sys_time: Likewise.
69487         * modules/sysexits: Likewise.
69488         * modules/time: Likewise.
69489         * modules/unistd: Likewise.
69490         * modules/wchar: Likewise.
69491         * modules/wctype: Likewise.
69492         * modules/sys_stat: Change maintainer to "all".
69493         * modules/unistd: Likewise.
69494
69495 2007-06-20  Karl Berry  <karl@gnu.org>
69496
69497         * config/srclist.txt: track www changes in license files.
69498
69499 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69500
69501         * build-aux/bootstrap: Remove stray dot.
69502         Make sure build_aux settings are honored when linking
69503         gnulib_extra_files.
69504
69505 2007-06-19  Eric Blake  <ebb9@byu.net>
69506
69507         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69508         Allow compilation on cygwin.
69509
69510 2007-06-19  Jim Meyering  <jim@meyering.net>
69511
69512         xreadlink-with-size: Remove module.  No longer used.
69513         Ex-callers now use xreadlink or mreadlink-with-size.
69514         * modules/xreadlink-with-size: Remove module.
69515         * lib/xreadlink-with-size.c: Remove file.
69516         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69517         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69518         just before the function definition *is* accurate.
69519
69520         Eliminate one way canonicalize_filename_mode could exit.
69521         * lib/canonicalize.c (canonicalize_filename_mode):
69522         Use mreadlink_with_size, not xreadlink_with_size.
69523
69524 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69525
69526         Detect porting problems to FreeBSD/arm, which has time_t wider than
69527         long int.  Original problem reported for GNU diff by Xin Li in
69528         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69529         * modules/getdate (Depends-on): Add intprops, verify.
69530         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69531         is an integer type no wider than long int.
69532
69533 2007-06-18  Jim Meyering  <jim@meyering.net>
69534
69535         New module: mreadlink-with-size.
69536         * MODULES.html.sh: Add mreadlink-with-size.
69537         * modules/mreadlink-with-size: New module
69538         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69539         not xreadlink-with-size.
69540         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69541
69542 2007-06-16  Bruno Haible  <bruno@clisp.org>
69543
69544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69545         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69546         Reported by Gary V. Vaughan <gary@gnu.org>.
69547
69548 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         Revamp lchown so that it lives in unistd.h where it belongs.
69551         * lib/lchown.h: Remove.
69552         * lib/dirchownmod.c: Don't include lib/lchown.h.
69553         * lib/fchownat.c: Likewise.
69554         * lib/openat.c: Likewise.
69555         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69556         does not follow symlinks.
69557         (EOPNOTSUPP): Define if not defined.
69558         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69559         is defined to 0.
69560         (lchown): New decl.
69561         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69562         Do not check for lchown decl.
69563         Set REPLACE_LCHOWN.
69564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69565         REPLACE_LCHOWN.
69566         * modules/chown: Make it clear it follows symlinks.
69567         * modules/lchown: Make it clear it doesn't follow symlinks.
69568         (Files): Remove lib/lchown.h
69569         (Depends-on): Add unistd.
69570         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69571         (Include): Include <unistd.h>, not "lchown.h".
69572         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69573         REPLACE_LCHOWN.
69574
69575 2007-06-15  Jim Meyering  <jim@meyering.net>
69576
69577         Change license (GPL to LGPL) of fsusage and dependents.
69578         * modules/fsusage (License): Change to LGPL.
69579         * modules/full-read (License): Likewise.
69580         * modules/full-write (License): Likewise.
69581         * modules/safe-read (License): Likewise.
69582         * modules/safe-write (License): Likewise.
69583
69584 2007-06-14  Ben Pfaff  <blp@gnu.org>
69585
69586         Missing part of allocsa -> malloca transition.
69587         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69588         gl_MALLOCA.
69589
69590 2007-06-12  Bruno Haible  <bruno@clisp.org>
69591
69592         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69593         to ia64, x86_64, i386.
69594         Reported by Eric Blake.
69595
69596 2007-06-12  Bruno Haible  <bruno@clisp.org>
69597
69598         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69599         cross-compiling to x86_64.
69600
69601 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69604         glitch reported by Ralf Wildenhues in
69605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69606
69607         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69608         Vin Shelton.
69609
69610 2007-06-11  Bruno Haible  <bruno@clisp.org>
69611
69612         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69613         replacement string.
69614         Reported by Eric Blake.
69615
69616 2007-06-10  Bruno Haible  <bruno@clisp.org>
69617
69618         Prepare vasnprintf code for use with Unicode strings.
69619         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69620         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69621         TYPE_U32_STRING.
69622         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69623         a_u32_string variants.
69624         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69625         * lib/printf-args.c: Don't include config.h and the specification
69626         header if PRINTF_FETCHARGS is already defined.
69627         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69628         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69629         TYPE_U16_STRING, TYPE_U32_STRING.
69630         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69631         u16_directive, u16_directives, u32_directive, u32_directives): New
69632         types.
69633         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69634         New declarations.
69635         * lib/printf-parse.c: Don't include config.h and the specification
69636         header if PRINTF_PARSE is already defined. Eliminate the set of
69637         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69638         them now. Include c-ctype.h.
69639         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69640         directive and CHAR_T_ONLY_ASCII.
69641         * lib/vasnprintf.c: Don't include config.h and the specification header
69642         if VASNPRINTF is already defined.
69643         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69644         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69645         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69646         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69647         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69648         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69649         code accordingly.
69650         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69651         pad_ourselves also in this case, with the 'c' and 's' directives, and
69652         with a different notion of "width".
69653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69654
69655 2007-06-10  Bruno Haible  <bruno@clisp.org>
69656
69657         * modules/unistr/u32-mbsnlen: New file.
69658         * lib/unistr/u32-mbsnlen.c: New file.
69659
69660         * modules/unistr/u16-mbsnlen: New file.
69661         * lib/unistr/u16-mbsnlen.c: New file.
69662
69663         * modules/unistr/u8-mbsnlen: New file.
69664         * lib/unistr/u8-mbsnlen.c: New file.
69665
69666         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69667         declarations.
69668
69669 2007-06-10  Bruno Haible  <bruno@clisp.org>
69670
69671         * lib/string_.h (mbsnlen): New declaration.
69672         * lib/mbsnlen.c: New file.
69673         * m4/mbsnlen.m4: New file.
69674         * modules/mbsnlen: New file.
69675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69676         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69677         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69678
69679 2007-06-10  Bruno Haible  <bruno@clisp.org>
69680
69681         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69682
69683 2007-06-10  Bruno Haible  <bruno@clisp.org>
69684
69685         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69686         * lib/mbuiter.h: Likewise.
69687
69688 2007-06-10  Bruno Haible  <bruno@clisp.org>
69689
69690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69691         declaration.
69692
69693 2007-06-10  Karl Berry  <karl@gnu.org>
69694
69695         * config/srclist.txt: remove gettext entries, Bruno prefers
69696         to update individually.
69697
69698 2007-06-10  Bruno Haible  <bruno@clisp.org>
69699
69700         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69701         'maxlen'. Ensure only length + width bytes are allocated, not
69702         length + 1 + width.
69703
69704 2007-06-09  Bruno Haible  <bruno@clisp.org>
69705
69706         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69707         (CHAR_T): Remove macro.
69708         (VASNPRINTF): Update.
69709
69710 2007-06-09  Bruno Haible  <bruno@clisp.org>
69711
69712         * MODULES.html.sh (Unicode string functions): Add the new modules.
69713
69714         * modules/uniconv/u32-conv-to-enc: New file.
69715         * lib/uniconv/u32-conv-to-enc.c: New file.
69716         * modules/uniconv/u32-conv-to-enc-tests: New file.
69717         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69718
69719         * modules/uniconv/u16-conv-to-enc: New file.
69720         * lib/uniconv/u16-conv-to-enc.c: New file.
69721         * lib/uniconv/u-conv-to-enc.h: New file.
69722         * modules/uniconv/u16-conv-to-enc-tests: New file.
69723         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69724
69725         * modules/uniconv/u8-conv-to-enc: New file.
69726         * lib/uniconv/u8-conv-to-enc.c: New file.
69727         * modules/uniconv/u8-conv-to-enc-tests: New file.
69728         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69729
69730         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69731         u32_conv_to_encoding): New declarations.
69732
69733 2007-06-09  Bruno Haible  <bruno@clisp.org>
69734
69735         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69736
69737 2007-06-09  Bruno Haible  <bruno@clisp.org>
69738
69739         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69740         * modules/malloca: Renamed from modules/allocsa, updated.
69741         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69742         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69743         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69744         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69745         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69746         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69747         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69748         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69749         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69750         * modules/c-strcasestr (Depends-on): Update.
69751         * lib/c-strcasestr.c: Update.
69752         * modules/c-strstr (Depends-on): Update.
69753         * lib/c-strstr.c: Update.
69754         * modules/canonicalize-lgpl (Depends-on): Update.
69755         * lib/canonicalize-lgpl.c: Update.
69756         * modules/clean-temp (Depends-on): Update.
69757         * lib/clean-temp.c: Update.
69758         * modules/csharpcomp (Depends-on): Update.
69759         * lib/csharpcomp.c: Update.
69760         * modules/csharpexec (Depends-on): Update.
69761         * lib/csharpexec.c: Update.
69762         * modules/javacomp (Depends-on): Update.
69763         * lib/javacomp.c: Update.
69764         * modules/javaexec (Depends-on): Update.
69765         * lib/javaexec.c: Update.
69766         * modules/mbscasestr (Depends-on): Update.
69767         * lib/mbscasestr.c: Update.
69768         * modules/mbsstr (Depends-on): Update.
69769         * lib/mbsstr.c: Update.
69770         * modules/setenv (Depends-on): Update.
69771         * lib/setenv.c: Update.
69772         * modules/strcasestr (Depends-on): Update.
69773         * lib/strcasestr.c: Update.
69774         * modules/striconveha (Depends-on): Update.
69775         * lib/striconveha.c: Update.
69776         * modules/relocatable-prog-wrapper (Files): Update.
69777         * lib/relocwrapper.c: Update.
69778         * build-aux/install-reloc: Update.
69779         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69780
69781 2007-06-08  Bruno Haible  <bruno@clisp.org>
69782
69783         Port to uClibc.
69784         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69785         * lib/fpurge.c (fpurge): Likewise.
69786         * lib/freading.c (freading): Likewise.
69787         * lib/fseeko.c (rpl_fseeko): Likewise.
69788         * lib/fseterr.c (fseterr): Likewise.
69789         * lib/fwriting.c (fwriting): Likewise.
69790         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69791
69792 2007-06-08  Bruno Haible  <bruno@clisp.org>
69793
69794         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69795         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69796         * modules/gettext (Files): Add m4/intlmacosx.m4.
69797
69798 2007-06-07  Bruno Haible  <bruno@clisp.org>
69799
69800         * modules/localename-tests: New file.
69801         * tests/test-localename.c: New file.
69802
69803         New module 'localename'.
69804         * lib/localename.h: New file.
69805         * lib/localename.c: New file, from GNU gettext.
69806         * m4/localename.m4: New file.
69807         * modules/localename: New file.
69808
69809 2007-06-07  Bruno Haible  <bruno@clisp.org>
69810
69811         Work around the lack of <wchar.h> on some builds of uClibc.
69812         * doc/headers/wchar.texi: Update.
69813         * lib/wchar_.h: Include <wchar.h> only if it exists.
69814         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69815         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69816         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69817         doesn't exist.
69818         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69819         * modules/mbfile (Depends-on): Add wchar.
69820         * modules/mbiter (Depends-on): Likewise.
69821         * modules/mbuiter (Depends-on): Likewise.
69822         Reported by Simon Josefsson.
69823
69824 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         Work around problem reported by Steven M. Schweda in
69827         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69828         Tru64 5.1B with the Compaq compiler environment installed declares
69829         an 'isblank' function but does not define it in the C library.
69830         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69831         * lib/regex_internal.h (isblank): Likewise.
69832         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69833         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69834
69835 2007-06-05  Bruno Haible  <bruno@clisp.org>
69836
69837         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69838         ia64.
69839         * modules/printf-safe: New file.
69840         * modules/fprintf-posix (Depends-on): Add printf-safe.
69841         * modules/printf-posix (Depends-on): Likewise.
69842         * modules/snprintf-posix (Depends-on): Likewise.
69843         * modules/sprintf-posix (Depends-on): Likewise.
69844         * modules/vasnprintf-posix (Depends-on): Likewise.
69845         * modules/vasprintf-posix (Depends-on): Likewise.
69846         * modules/vfprintf-posix (Depends-on): Likewise.
69847         * modules/vprintf-posix (Depends-on): Likewise.
69848         * modules/vsnprintf-posix (Depends-on): Likewise.
69849         * modules/vsprintf-posix (Depends-on): Likewise.
69850         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69851         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69852         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69853         "no" on i386, x86_64, ia64.
69854         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69855         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69856         on i386, x86_64, ia64.
69857         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69858         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69859         on i386, x86_64, ia64.
69860         * tests/test-vasnprintf-posix.c: Include float.h.
69861         (LDBL80_WORDS): New macro.
69862         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69863         on i386, x86_64, ia64.
69864         * tests/test-vasprintf-posix.c: Include float.h.
69865         (LDBL80_WORDS): New macro.
69866         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69867         on i386, x86_64, ia64.
69868         * tests/test-snprintf-posix.c: Include float.h.
69869         * tests/test-sprintf-posix.c: Likewise.
69870         * tests/test-vsnprintf-posix.c: Likewise.
69871         * tests/test-vsprintf-posix.c: Likewise.
69872
69873 2007-06-05  Bruno Haible  <bruno@clisp.org>
69874
69875         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69876         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69877         non-IEEE numbers on i386, x86_64, ia64.
69878         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69879         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69880         * tests/test-isnanl.h: Include float.h.
69881         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69882
69883 2007-06-05  Bruno Haible  <bruno@clisp.org>
69884
69885         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69886         also the %a / %A. Handle the %a / %A code before this extra handling.
69887
69888 2007-06-05  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69891         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69892
69893 2007-06-05  Bruno Haible  <bruno@clisp.org>
69894
69895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69896         typo in variable name.
69897
69898 2007-06-05  Eric Blake  <ebb9@byu.net>
69899
69900         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69901         Reported by Simon Josefsson.
69902
69903 2007-06-04  Bruno Haible  <bruno@clisp.org>
69904
69905         Avoid test failures on some PowerPC platforms.
69906         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69907         Define differently for PowerPC.
69908         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69909         Reported by Gary V. Vaughan <gary@gnu.org>.
69910
69911 2007-06-02  Bruno Haible  <bruno@clisp.org>
69912
69913         Fix test-stdint failure on FreeBSD/ia64.
69914         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69915         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69916         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69917         * doc/headers/stdint.texi: Update.
69918
69919 2007-06-01  Bruno Haible  <bruno@clisp.org>
69920
69921         * tests/test-binary-io.c (main): Pass a third argument to open().
69922         Reported by Gary V. Vaughan <gary@gnu.org>.
69923
69924 2007-06-01  Bruno Haible  <bruno@clisp.org>
69925
69926         * doc/functions/frexpl.texi: Update for mingw.
69927
69928 2007-06-01  Bruno Haible  <bruno@clisp.org>
69929
69930         * tests/test-lseek.c (main): Disable test of errno for invalid third
69931         argument.
69932         * doc/functions/lseek.texi: Update.
69933         Reported by Gary V. Vaughan <gary@gnu.org>.
69934
69935 2007-05-28  Bruno Haible  <bruno@clisp.org>
69936
69937         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69938
69939 2007-05-31  Eric Blake  <ebb9@byu.net>
69940
69941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69942         cross compiling.
69943
69944 2007-05-30  Eric Blake  <ebb9@byu.net>
69945         and Bruno Haible  <bruno@clisp.org>
69946
69947         Work around mingw test failures exposed by m4-1.4.9b.
69948         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69949         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69950         moment.
69951
69952 2007-05-30  Bruno Haible  <bruno@clisp.org>
69953
69954         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69955         assuming that they are closed. Needed on HP-UX 11.
69956
69957 2007-05-29  Bruno Haible  <bruno@clisp.org>
69958
69959         Fix a problem with #include_next.
69960         * lib/dirent_.h: Split the double-inclusion guard.
69961         * lib/fcntl_.h: Likewise.
69962         * lib/float_.h: Likewise.
69963         * lib/iconv_.h: Likewise.
69964         * lib/inttypes_.h: Likewise.
69965         * lib/locale_.h: Likewise.
69966         * lib/math_.h: Likewise.
69967         * lib/netinet_in_.h: Likewise.
69968         * lib/search_.h: Likewise.
69969         * lib/signal_.h: Likewise.
69970         * lib/stdint_.h: Likewise.
69971         * lib/stdio_.h: Likewise.
69972         * lib/stdlib_.h: Likewise.
69973         * lib/string_.h: Likewise.
69974         * lib/sys_select_.h: Likewise.
69975         * lib/sys_socket_.h: Likewise.
69976         * lib/sys_stat_.h: Likewise.
69977         * lib/sys_time_.h: Likewise.
69978         * lib/sysexits_.h: Likewise.
69979         * lib/time_.h: Likewise.
69980         * lib/unistd_.h: Likewise.
69981         * lib/wchar_.h: Likewise.
69982         * lib/wctype_.h: Likewise.
69983
69984 2007-05-29  Bruno Haible  <bruno@clisp.org>
69985
69986         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69987         for the moment.
69988
69989 2007-05-29  Bruno Haible  <bruno@clisp.org>
69990
69991         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69992         invocation.
69993         Reported by Eric Blake.
69994
69995 2007-05-29  Bruno Haible  <bruno@clisp.org>
69996
69997         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69998         compiling case.
69999
70000 2007-05-29  Eric Blake  <ebb9@byu.net>
70001             Bruno Haible  <bruno@clisp.org>
70002
70003         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70004         cross compiles.
70005
70006 2007-05-28  Eric Blake  <ebb9@byu.net>
70007
70008         * modules/closein-tests (test_closein_LDADD): Support test on
70009         cygwin with libtool.
70010
70011 2007-05-28  Bruno Haible  <bruno@clisp.org>
70012
70013         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70014         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70015         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70016         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70017         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70018         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70019         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70020         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70021         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70022
70023 2007-05-28  Eric Blake  <ebb9@byu.net>
70024
70025         Unconditionally include <config.h> in unit tests.
70026         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70027         * tests/test-allocsa.c, tests/test-arcfour.c,
70028         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70029         tests/test-array_list.c, tests/test-array_oset.c,
70030         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70031         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70032         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70033         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70034         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70035         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70036         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70037         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70038         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70039         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70040         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70041         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70042         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70043         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70044         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70045         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70046         test-md5.c, test-memmem.c, test-printf-posix.c,
70047         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70048         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70049         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70050         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70051         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70052         test-vasnprintf-posix2.c, test-vasnprintf.c,
70053         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70054         test-vfprintf-posix.c, test-vprintf-posix.c,
70055         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70056         test-xvasprintf.c: Likewise.
70057
70058 2007-05-28  Bruno Haible  <bruno@clisp.org>
70059
70060         * gnulib-tool (func_import): Remember the --with-tests command-line
70061         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70062         Reported by Eric Blake.
70063
70064 2007-05-28  Bruno Haible  <bruno@clisp.org>
70065
70066         * modules/ftell-tests: New file.
70067         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70068         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70069
70070         * lib/ftell.c: New file.
70071         * modules/ftell: New file.
70072         * m4/ftell.m4: New file.
70073         * doc/functions/ftell.texi: Update.
70074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70075         REPLACE_FTELL.
70076         * lib/stdio_.h (rpl_ftell): New declaration.
70077         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70078         REPLACE_FTELL.
70079
70080 2007-05-28  Eric Blake  <ebb9@byu.net>
70081
70082         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70083
70084 2007-05-28  Bruno Haible  <bruno@clisp.org>
70085
70086         * modules/fseek-tests: New file.
70087         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70088         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70089
70090         * lib/fseek.c: New file.
70091         * modules/fseek: New file.
70092         * m4/fseek.m4: New file.
70093         * doc/functions/fseek.texi: Update.
70094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70095         REPLACE_FSEEK.
70096         * lib/stdio_.h (rpl_fseek): New declaration.
70097         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70098         REPLACE_FSEEK.
70099
70100 2007-05-28  Bruno Haible  <bruno@clisp.org>
70101
70102         * lib/stdio_.h (fflush): More comments.
70103
70104 2007-05-28  Bruno Haible  <bruno@clisp.org>
70105
70106         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70107         runtime test.
70108
70109 2007-05-28  Eric Blake  <ebb9@byu.net>
70110
70111         Improve lseek module.
70112         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70113         * lib/unistd_.h (lseek): Scale back link warning message.
70114         * tests/test-lseek.c: Beef up test.
70115         * tests/test-lseek.sh: Exercise more facets of lseek.
70116         Reported by Bruno Haible.
70117
70118 2007-05-28  Bruno Haible  <bruno@clisp.org>
70119
70120         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70121         to define.
70122
70123 2007-05-27  Bruno Haible  <bruno@clisp.org>
70124
70125         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70126
70127 2007-05-27  Bruno Haible  <bruno@clisp.org>
70128
70129         * modules/openmp: New file.
70130         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70131         Noah Misch.
70132
70133 2007-05-26  Bruno Haible  <bruno@clisp.org>
70134
70135         * modules/chdir-long (Depends-on): Add fchdir.
70136         * modules/chdir-safer (Depends-on): Likewise.
70137         * modules/fts (Depends-on): Likewise.
70138         * modules/fts-lgpl (Depends-on): Likewise.
70139         * modules/openat (Depends-on): Likewise.
70140         * modules/savewd (Depends-on): Likewise.
70141
70142 2007-05-24  Eric Blake  <ebb9@byu.net>
70143
70144         Fix lseek on mingw.
70145         * modules/lseek: New module.
70146         * m4/lseek.m4: New file.
70147         * lib/lseek.c: New file.
70148         * modules/lseek-tests: New file.
70149         * tests/test-lseek.c: New file.
70150         * tests/test-lseek.sh: New file.
70151         * MODULES.html.sh: Document lseek module.
70152         * modules/fflush (Depends-on): Add lseek, fseeko.
70153         * modules/fseeko (Depends-on): Likewise.
70154         * modules/ftello (Depends-on): Likewise.
70155         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70156         broken.
70157         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70158         broken.
70159         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70160         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70161         * lib/ftello.c (rpl_ftello): Likewise.
70162         * tests/test-fseeko.c (main): Test this.
70163         * tests/test-fseeko.sh: Likewise.
70164         * tests/test-ftello.c (main): Likewise.
70165         * tests/test-ftello.sh: Likewise.
70166         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70167         implies replacing fseek.
70168         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70169         HAVE_FTELLO.
70170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70171         * modules/unistd (Makefile.am): Likewise.
70172         * lib/unistd_.h (lseek): Declare a replacement.
70173         * doc/functions/lseek.texi (lseek): Document this fix.
70174         * doc/functions/fseek.texi (fseek): Likewise.
70175         * doc/functions/ftell.texi (ftell): Likewise.
70176
70177 2007-05-24  Bruno Haible  <bruno@clisp.org>
70178
70179         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70180         in the printed representation of a NaN.
70181         * tests/test-vasprintf-posix.c (test_function): Likewise.
70182         * tests/test-snprintf-posix.h (test_function): Likewise.
70183         * tests/test-sprintf-posix.h (test_function): Likewise.
70184         Reported by Eric Blake.
70185
70186 2007-05-23  Eric Blake  <ebb9@byu.net>
70187
70188         Fix fseeko/ftello on cygwin 1.5.24.
70189         * doc/functions/fseeko.texi (fseeko): Document the fix.
70190         * doc/functions/ftello.texi (ftello): Document the fix.
70191         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70192         * doc/functions/stdout.text (stdout): New file.
70193         * doc/functions/stderr.text (stderr): New file.
70194         * doc/gnulib.texi (Function Substitutes): Use new files.
70195         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70196         prior to 1.7.0.
70197         * tests/test-ftello.c (main): Likewise for ftello.
70198         * tests/test-fseeko.sh: New file.
70199         * tests/test-ftello.sh: New file.
70200         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70201         with seekable stdin.
70202         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70203         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70204         (gl_REPLACE_FSEEKO): New macro.
70205         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70206         * modules/fseeko (Files): Distribute fseeko.c.
70207         * modules/ftello (Files): Distribute ftello.c.
70208         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70209         mode.
70210         * lib/ftello.c (rpl_ftello): New file.
70211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70212         fseeko, ftello.
70213         (gl_STDIN_LARGE_OFFSET): New macro.
70214         * modules/stdio (Makefile.am): Perform the replacement.
70215         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70216
70217 2007-05-23  Bruno Haible  <bruno@clisp.org>
70218
70219         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70220         GNULIB_POSIXCHECK is defined.
70221
70222 2007-05-21  Bruno Haible  <bruno@clisp.org>
70223
70224         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70225         Check also the output for NaN arguments. When cross-compiling, guess
70226         no on IRIX.
70227         * lib/vasnprintf.c: Update comments.
70228         * tests/test-vasnprintf-posix.c (strisnan): New function.
70229         (test_function): Use it.
70230         * tests/test-vasprintf-posix.c (strisnan): New function.
70231         (test_function): Use it.
70232         * tests/test-snprintf-posix.h (strisnan): New function.
70233         (test_function): Use it.
70234         * tests/test-sprintf-posix.h (strisnan): New function.
70235         (test_function): Use it.
70236         Reported by Eric Blake.
70237
70238 2007-05-20  Bruno Haible  <bruno@clisp.org>
70239
70240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70241         numbers that fails on BeOS.
70242         * doc/functions/frexpl.texi: Update.
70243
70244 2007-05-20  Jim Meyering  <jim@meyering.net>
70245
70246         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70247         forced upon us by glibc-2.6.
70248
70249 2007-05-20  Bruno Haible  <bruno@clisp.org>
70250
70251         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70252         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70253         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70254         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70255         NEED_PRINTF_INFINITE.
70256         (is_infinitel): New function.
70257         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70259         gl_PREREQ_VASNPRINTF_INFINITE.
70260         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70261         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70262         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70263         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70264         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70265         gl_PREREQ_VASNPRINTF_INFINITE.
70266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70270         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70273         * doc/functions/fprintf.texi: Update.
70274         * doc/functions/printf.texi: Update.
70275         * doc/functions/snprintf.texi: Update.
70276         * doc/functions/sprintf.texi: Update.
70277         * doc/functions/vfprintf.texi: Update.
70278         * doc/functions/vprintf.texi: Update.
70279         * doc/functions/vsnprintf.texi: Update.
70280         * doc/functions/vsprintf.texi: Update.
70281
70282 2007-05-20  Bruno Haible  <bruno@clisp.org>
70283
70284         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70285         was not found in libc.
70286         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70287
70288 2007-05-20  Bruno Haible  <bruno@clisp.org>
70289
70290         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70291         printed as "-nan" instead of "nan".
70292         * tests/test-vasprintf-posix.c (test_function): Likewise.
70293         * tests/test-snprintf-posix.h (test_function): Likewise.
70294         * tests/test-sprintf-posix.h (test_function): Likewise.
70295         Needed for HP-UX 11.
70296
70297 2007-05-20  Jim Meyering  <jim@meyering.net>
70298
70299         Fix buggy test for the fchownat-deref bug.
70300         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70301         symlink required for the run-test.  Without it, this test would
70302         always declare that fchownat doesn't work, and client code would
70303         unnecessarily use the replacement function with fixed libc.
70304         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70305         Reported by Greg Schafer.
70306
70307 2007-05-19  Bruno Haible  <bruno@clisp.org>
70308
70309         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70310         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70311         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70312         Needed for IRIX 6.5 and Solaris 2.5.1.
70313
70314 2007-05-19  Bruno Haible  <bruno@clisp.org>
70315
70316         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70317         (test_function): Skip tests involving -0.0 on platforms where
70318         -0.0 = 0.0.
70319         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70320         (test_function): Skip tests involving -0.0 on platforms where
70321         -0.0 = 0.0.
70322         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70323         (test_function): Skip tests involving -0.0 on platforms where
70324         -0.0 = 0.0.
70325         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70326         (test_function): Skip tests involving -0.0 on platforms where
70327         -0.0 = 0.0.
70328         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70329         tests.
70330         * tests/test-printf-posix.h (test_function): Likewise.
70331         * tests/test-printf-posix.output: Remove all -0.0 related results.
70332         Needed for IRIX 6.5.
70333
70334 2007-05-19  Bruno Haible  <bruno@clisp.org>
70335
70336         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70337         printed as "nan0x7fffffff" instead of "nan".
70338         * tests/test-vasprintf-posix.c (test_function): Likewise.
70339         * tests/test-snprintf-posix.h (test_function): Likewise.
70340         * tests/test-sprintf-posix.h (test_function): Likewise.
70341         * tests/test-fprintf-posix.h (NaN): Remove macro.
70342         (test_function): Remove all NaN related tests.
70343         * tests/test-printf-posix.h (NaN): Remove macro.
70344         (test_function): Remove all NaN related tests.
70345         * tests/test-printf-posix.output: Remove all NaN related results.
70346         Needed for IRIX 6.5.
70347
70348 2007-05-19  Bruno Haible  <bruno@clisp.org>
70349
70350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70351         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70352
70353 2007-05-19  Bruno Haible  <bruno@clisp.org>
70354
70355         * lib/float_.h: New file.
70356         * m4/float_h.m4: New file.
70357         * modules/float: New file.
70358         * modules/isnanl (Dependencies): Add float.
70359         * modules/isnanl-nolibm (Dependencies): Likewise.
70360         * modules/mathl (Dependencies): Likewise.
70361         * modules/printf-frexpl (Dependencies): Likewise.
70362         * modules/signbit (Dependencies): Likewise.
70363         * modules/vasnprintf (Dependencies): Likewise.
70364         * doc/headers/float.texi: Update.
70365
70366 2007-05-19  Jim Meyering  <jim@meyering.net>
70367
70368         * lib/utimens.c (gl_futimens): Rename from futimens,
70369         now that glibc-2.6 declares futimens.
70370         * lib/utimens.h: Likewise.
70371
70372 2007-05-19  Bruno Haible  <bruno@clisp.org>
70373
70374         Avoid test failures on mingw.
70375         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70376         * tests/test-printf-posix.sh: Likewise.
70377         * tests/test-vfprintf-posix.sh: Likewise.
70378         * tests/test-vprintf-posix.sh: Likewise.
70379
70380 2007-05-19  Bruno Haible  <bruno@clisp.org>
70381
70382         Fix *printf result for NaN, Inf, -0.0 on mingw.
70383         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70384         * lib/vasnprintf.c: Include math.h and isnan.h.
70385         (is_infinite_or_zero): New function.
70386         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70387         values in the %f, %F, %e, %E, %g, %G directives.
70388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70390         gl_PRINTF_INFINITE and test its result. Invoke
70391         gl_PREREQ_VASNPRINTF_INFINITE.
70392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70399         * doc/functions/fprintf.texi: Update.
70400         * doc/functions/printf.texi: Update.
70401         * doc/functions/snprintf.texi: Update.
70402         * doc/functions/sprintf.texi: Update.
70403         * doc/functions/vfprintf.texi: Update.
70404         * doc/functions/vprintf.texi: Update.
70405         * doc/functions/vsnprintf.texi: Update.
70406         * doc/functions/vsprintf.texi: Update.
70407
70408 2007-05-19  Bruno Haible  <bruno@clisp.org>
70409
70410         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70411         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70412         Instead of multiplying with 10^k, set extra_zeroes to k.
70413         (scale10_round_long_double): Remove function.
70414
70415 2007-05-18  Bruno Haible  <bruno@clisp.org>
70416
70417         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70418         introduced on 2007-05-06.
70419
70420 2007-05-18  Bruno Haible  <bruno@clisp.org>
70421
70422         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70423         %g directives.
70424         * tests/test-vasprintf-posix.c (test_function): Likewise.
70425         * tests/test-snprintf-posix.h (test_function): Likewise.
70426         * tests/test-sprintf-posix.h (test_function): Likewise.
70427
70428 2007-05-18  Bruno Haible  <bruno@clisp.org>
70429
70430         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70431         (strmatch): New function.
70432         (test_function): Test the %f directive on numbers of various exponents.
70433         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70434         (strmatch): New function.
70435         (test_function): Test the %f directive on numbers of various exponents.
70436         * tests/test-snprintf-posix.h (strmatch): New function.
70437         (test_function): Test the %f directive on numbers of various exponents.
70438         * tests/test-sprintf-posix.h (strmatch): New function.
70439         (test_function): Test the %f directive on numbers of various exponents.
70440         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70441         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70442         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70443         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70444
70445 2007-05-18  Bruno Haible  <bruno@clisp.org>
70446
70447         Add support for 'long double' number output.
70448         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70449         * lib/vasnprintf.c: Include math.h and float+.h.
70450         (mp_limb_t): New type.
70451         (GMP_LIMB_BITS): New macro.
70452         (mp_twolimb_t): New type.
70453         (GMP_TWOLIMB_BITS): New macro.
70454         (mpn_t): New type.
70455         (multiply, divide, convert_to_decimal, decode_long_double,
70456         scale10_round_long_double, scale10_round_decimal_long_double,
70457         floorlog10l): New functions.
70458         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70459         for the %f, %F, %e, %E, %g, %G directives.
70460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70461         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70462         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70463         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70464         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70465         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70466         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70468         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70471         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70472         * modules/snprintf-posix (Depends-on): Likewise.
70473         * modules/sprintf-posix (Depends-on): Likewise.
70474         * modules/vasnprintf-posix (Depends-on): Likewise.
70475         * modules/vasprintf-posix (Depends-on): Likewise.
70476         * modules/vfprintf-posix (Depends-on): Likewise.
70477         * modules/vsnprintf-posix (Depends-on): Likewise.
70478         * modules/vsprintf-posix (Depends-on): Likewise.
70479         * modules/vasnprintf (Files): Add lib/float+.h.
70480         * doc/functions/fprintf.texi: Update.
70481         * doc/functions/printf.texi: Update.
70482         * doc/functions/snprintf.texi: Update.
70483         * doc/functions/sprintf.texi: Update.
70484         * doc/functions/vfprintf.texi: Update.
70485         * doc/functions/vprintf.texi: Update.
70486         * doc/functions/vsnprintf.texi: Update.
70487         * doc/functions/vsprintf.texi: Update.
70488
70489 2007-05-18  Bruno Haible  <bruno@clisp.org>
70490
70491         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70492
70493 2007-05-18  Bruno Haible  <bruno@clisp.org>
70494
70495         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70496         for printing 64-bit integers. Needed for mingw.
70497
70498 2007-05-18  Bruno Haible  <bruno@clisp.org>
70499
70500         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70501         gl_FUNC_FREXPL_WORKS.
70502         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70503
70504 2007-05-18  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/frexpl-nolibm-tests: New file.
70507
70508         * modules/frexpl-nolibm: New file.
70509         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70510
70511 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70514         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70515         GCC 4.2, which otherwise issues a lot of warnings.
70516         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70517         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70518         Likewise.
70519         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70520         * modules/iconv_open (iconv.h): Likewise.
70521         * modules/locale (locale.h): Likewise.
70522         * modules/netinet_in (netinet/in.h): Likewise.
70523         * modules/sys_select (sys_select.h): Likewise.
70524         * modules/sys_socket (sys/socket.h): Likewise.
70525         * modules/sys_stat (sys/stat.h): Likewise.
70526         * modules/sysexits (sysexits.h): Likewise.
70527         * modules/unistd (unistd.h): Likewise.
70528
70529 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70530
70531         * modules/closein-tests (Makefile.am): Distribute
70532         `test-closein.sh'.
70533
70534 2007-05-17  Bruno Haible  <bruno@clisp.org>
70535
70536         * tests/test-printf-posix.output: Renamed from
70537         tests/test-fprintf-posix.out.
70538         * modules/fprintf-posix-tests: Update.
70539         * modules/printf-posix-tests: Update.
70540         * modules/vfprintf-posix-tests: Update.
70541         * modules/vprintf-posix-tests: Update.
70542         * tests/test-fprintf-posix.sh: Update.
70543         * tests/test-printf-posix.sh: Update.
70544         * tests/test-vfprintf-posix.sh: Update.
70545         * tests/test-vprintf-posix.sh: Update.
70546         Reported by Ralf Wildenhues.
70547
70548 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70551         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70552         GCC 4.2, which otherwise issues a lot of warnings.
70553         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70554         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70555         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70556         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70557         it should no longer be needed.
70558         * lib/string_.h: Likewise.
70559         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70560         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70561         * modules/inttypes (inttypes.h): Likewise.
70562         * modules/math (math.h): Likewise.
70563         * modules/search (search.h): Likewise.
70564         * modules/signal (signal.h): Likewise.
70565         * modules/stdint (stdint.h): Likewise.
70566         * modules/stdio (stdio.h): Likewise.
70567         * modules/stdlib (stdlib.h): Likewise.
70568         * modules/string (string.h): Likewise.
70569         * modules/sys_time (sys/time.h): Likewise.
70570         * modules/time (time.h): Likewise.
70571         * modules/wchar (wchar.h): Likewise.
70572         * modules/wctype (wtype.h): Likewise.
70573
70574 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70575
70576         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70577
70578 2007-05-13  Bruno Haible  <bruno@clisp.org>
70579
70580         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70581         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70582         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70583         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70584         (gl_PREREQ_STRTOK_R): Don't require it here.
70585
70586 2007-05-13  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70589         when used in C++ mode.
70590
70591 2007-05-12  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/linebuffer.h: Tweak doc.
70594         * lib/linebuffer.c: Likewise.
70595
70596 2007-05-12  James Youngman  <jay@gnu.org>
70597
70598         * lib/linebuffer.c (readlinebuffer_delim): New function,
70599         like readlinebuffer, but use a caller-specified delimiter.
70600         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70601         as the delimiter.
70602         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70603
70604 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70605
70606         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70607         * modules/openat (Files): Remove openat-die.c.
70608         (Depends-on): Add openat-die.
70609         * modules/openat-die: New module.
70610
70611 2007-05-06  Bruno Haible  <bruno@clisp.org>
70612
70613         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70614         Update with info about Cygwin.
70615         * doc/functions/fprintf.texi: Update.
70616         * doc/functions/printf.texi: Update.
70617         * doc/functions/snprintf.texi: Update.
70618         * doc/functions/sprintf.texi: Update.
70619         * doc/functions/vfprintf.texi: Update.
70620         * doc/functions/vprintf.texi: Update.
70621         * doc/functions/vsnprintf.texi: Update.
70622         * doc/functions/vsprintf.texi: Update.
70623         Reported by Eric Blake.
70624
70625 2007-05-06  Bruno Haible  <bruno@clisp.org>
70626
70627         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70628         padding ourselves for the floating-point directives.
70629         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70632         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70633         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70634         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70641         * tests/test-snprintf-posix.h (test_function): Also check the width
70642         and some flags in the %f directive.
70643         * tests/test-sprintf-posix.h (test_function): Likewise.
70644         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70645         * tests/test-vasprintf-posix.c (test_function): Likewise.
70646         * doc/functions/fprintf.texi: Update.
70647         * doc/functions/printf.texi: Update.
70648         * doc/functions/snprintf.texi: Update.
70649         * doc/functions/sprintf.texi: Update.
70650         * doc/functions/vfprintf.texi: Update.
70651         * doc/functions/vprintf.texi: Update.
70652         * doc/functions/vsnprintf.texi: Update.
70653         * doc/functions/vsprintf.texi: Update.
70654
70655 2007-05-06  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70658         pass the ' flag character to sprintf or snprintf.
70659         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70662         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70663         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70664         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70665         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70666         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70667         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70668         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70669         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70670         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70671         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70672         flag.
70673         * tests/test-sprintf-posix.h (test_function): Likewise.
70674         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70675         * tests/test-vasprintf-posix.c (test_function): Likewise.
70676         * doc/functions/fprintf.texi: Update.
70677         * doc/functions/printf.texi: Update.
70678         * doc/functions/snprintf.texi: Update.
70679         * doc/functions/sprintf.texi: Update.
70680         * doc/functions/vfprintf.texi: Update.
70681         * doc/functions/vprintf.texi: Update.
70682         * doc/functions/vsnprintf.texi: Update.
70683         * doc/functions/vsprintf.texi: Update.
70684
70685 2007-05-01  Bruno Haible  <bruno@clisp.org>
70686
70687         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70688
70689 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70692         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70693
70694 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70695
70696         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70697         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70699
70700 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70701
70702         * lib/argp-help.c (struct hol_entry): New member `ord'.
70703         (HOL_ENTRY_PTRCMP): Use ord for comparison
70704         (hol_sort): Initialize ord.
70705
70706 2007-05-01  Bruno Haible  <bruno@clisp.org>
70707
70708         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70709         Reported by Eric Blake.
70710         * doc/gnulib.texi (Function Substitutes): Update.
70711
70712 2007-05-01  Bruno Haible  <bruno@clisp.org>
70713
70714         * doc/functions.texi: Remove file, now redundant through
70715         doc/functions/*.texi.
70716
70717 2007-05-01  Bruno Haible  <bruno@clisp.org>
70718
70719         * modules/argp (Depends-on): Add sleep.
70720
70721 2007-05-01  Bruno Haible  <bruno@clisp.org>
70722
70723         * modules/sleep-tests: New file.
70724         * tests/test-sleep.c: New file.
70725
70726         * modules/sleep: New file.
70727         * lib/sleep.c: New file.
70728         * m4/sleep.m4: New file.
70729         * lib/unistd_.h (sleep): New declaration.
70730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70731         HAVE_SLEEP.
70732         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70733         * doc/functions/sleep.texi: Document the sleep module.
70734
70735 2007-05-01  Bruno Haible  <bruno@clisp.org>
70736
70737         * lib/sigprocmask.h: Remove file.
70738         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70739         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70740         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70741         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70742         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70743         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70744         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70745         HAVE_SIGSET_T as a shell variable.
70746         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70747         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70748         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70749         (Depends-on): Add signal. Remove verify.
70750         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70751         (Include): Mention <signal.h> instead of sigprocmask.h.
70752         * NEWS: Mention the change.
70753         * lib/fatal-signal.c: Don't include sigprocmask.h.
70754
70755 2007-05-01  Bruno Haible  <bruno@clisp.org>
70756
70757         * modules/signal: New file.
70758         * lib/signal_.h: New file.
70759         * m4/signal_h.m4: New file.
70760
70761 2007-05-01  Bruno Haible  <bruno@clisp.org>
70762
70763         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70764         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70765         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70766         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70767
70768 2007-05-01  Bruno Haible  <bruno@clisp.org>
70769
70770         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70771         configure time.
70772         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70773         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70774         * modules/sys_stat (Makefile.am): Substitute their values into
70775         sys/stat.h.
70776
70777 2007-05-01  Bruno Haible  <bruno@clisp.org>
70778
70779         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70780         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70781         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70782
70783 2007-05-01  Bruno Haible  <bruno@clisp.org>
70784
70785         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70786         'assert' module here.
70787
70788 2007-05-01  Bruno Haible  <bruno@clisp.org>
70789
70790         * doc/functions/*.texi: New files.
70791         * doc/functions/google-ranking.txt: New file.
70792         * doc/gnulib.texi (Function Substitutes): New chapter.
70793         (ctime, inet_ntoa): Remove sections.
70794         * doc/ctime.texi: Remove file.
70795         * doc/inet_ntoa.texi: Remove file.
70796         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70797         dependencies.
70798         (%.info): New rule, specifying a --reference-limit.
70799
70800 2007-05-01  Bruno Haible  <bruno@clisp.org>
70801
70802         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70803
70804 2007-05-01  Bruno Haible  <bruno@clisp.org>
70805
70806         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70807         the portability of 'mkdir' to mingw systems.
70808
70809 2007-05-01  Bruno Haible  <bruno@clisp.org>
70810
70811         * doc/headers/google-ranking.txt: New file.
70812
70813 2007-04-30  Eric Blake  <ebb9@byu.net>
70814
70815         Prefer fseeko to fseek.
70816         * modules/getpass (Depends-on): Add fseeko.
70817         * lib/getpass.c (getpass): Use fseeko, not fseek.
70818
70819 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70820
70821         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70822         assumes the sorting is stable, while most qsort implementations
70823         are not.  Use argument addresses to ensure they never compare as
70824         equal.
70825
70826         * tests/test-argp-2.sh (usage-indent test): Fix output
70827         (func_compare): Restore diff options
70828         * tests/test-argp.c: Restore #include "progname.h"
70829
70830 2007-04-29  Bruno Haible  <bruno@clisp.org>
70831
70832         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70834         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70836         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70837         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70838         (TESTS, check_PROGRAMS): Add test-snprintf.
70839         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70840         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70841         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70842         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70843         assertions that fail on HP-UX, OSF/1, or IRIX.
70844         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70845
70846 2007-04-29  Bruno Haible  <bruno@clisp.org>
70847
70848         * MODULES.html.sh (posix_functions): Remove 'contents'.
70849
70850 2007-04-29  Karl Berry  <karl@gnu.org>
70851
70852         * config/srclist.txt (gendocs_template_min): new entry.
70853
70854 2007-04-29  Bruno Haible  <bruno@clisp.org>
70855
70856         Work around fpurge bug on BSD systems.
70857         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70858         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70859         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70860         fpurge to rpl_fpurge if the system already has this function.
70861         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70862         the case where the system already has this function. Correct invariants
70863         on BSD systems.
70864         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70865         BSD systems.
70866
70867 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70868
70869         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70870         proposed by Sven Verdoolaege.
70871
70872         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70873         options.
70874         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70875         (usage and help tests): Update
70876
70877 2007-04-29  Bruno Haible  <bruno@clisp.org>
70878
70879         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70880         Print more information in case of failure. Disable a test on BeOS.
70881
70882 2007-04-29  Bruno Haible  <bruno@clisp.org>
70883
70884         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70885         This helps debugging on systems on which no gdb is available.
70886
70887 2007-04-29  Bruno Haible  <bruno@clisp.org>
70888
70889         * lib/freading.h: Improve comments.
70890         * lib/fwriting.h: Likewise.
70891         * tests/test-freading.c (main): Don't check freading immediately after
70892         repositioning. Needed for glibc.
70893
70894 2007-04-29  Bruno Haible  <bruno@clisp.org>
70895
70896         * lib/freading.c (freading): Trivial simplification.
70897
70898 2007-04-28  Bruno Haible  <bruno@clisp.org>
70899
70900         * tests/test-fwriting.c (main): Also test the interaction between
70901         fflush and fwriting.
70902         * modules/fwriting-tests (Depends-on): Add fflush.
70903
70904         * tests/test-freading.c (main): Also test the interaction between
70905         fflush and freading.
70906         * modules/freading-tests (Depends-on): Add fflush.
70907
70908 2007-04-28  Bruno Haible  <bruno@clisp.org>
70909
70910         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70911         fseeko and ftello.
70912         Suggested by Eric Blake.
70913
70914 2007-04-28  Jim Meyering  <jim@meyering.net>
70915
70916         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70917         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70918         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70919
70920 2007-04-27  Eric Blake  <ebb9@byu.net>
70921
70922         * doc/headers/assert.texi (assert.h): Document assert module use.
70923
70924 2007-04-27  Bruno Haible  <bruno@clisp.org>
70925
70926         * doc/headers/*.texi: New files.
70927         * doc/gnulib.texi (Header File Substitutes): New chapter.
70928         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70929         dependencies.
70930         (standards.info ,standards.html, standards.dvi): Update dependencies.
70931         (mostlyclean, clean): New targets.
70932
70933 2007-04-27  Bruno Haible  <bruno@clisp.org>
70934
70935         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70936         * modules/sysexits (Files, Makefile.am): Update.
70937
70938         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70939         * modules/sys_socket (Files, Makefile.am): Update.
70940
70941         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70942         * modules/sys_stat (Files, Makefile.am): Update.
70943
70944 2007-04-27  Eric Blake  <ebb9@byu.net>
70945
70946         * lib/freading.h: Improve comments.
70947         * lib/fwriting.h: Likewise.
70948         * lib/fflush.c: Likewise.
70949
70950         Fix closein for mingw.
70951         * modules/closein-tests: Add tests for closein.
70952         * tests/test-closein.c: New file.
70953         * tests/test-closein.sh: Likewise.
70954         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70955         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70956
70957 2007-04-27  Bruno Haible  <bruno@clisp.org>
70958
70959         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70960         version is < 6.
70961         * lib/math_.h [__DECC]: Likewise.
70962         * lib/stdio_.h [__DECC]: Likewise.
70963         * lib/stdlib_.h [__DECC]: Likewise.
70964         * lib/string_.h [__DECC]: Likewise.
70965         * lib/time_.h [__DECC]: Likewise.
70966         * lib/wchar_.h [__DECC]: Likewise.
70967         * lib/wctype_.h [__DECC]: Likewise.
70968
70969 2007-04-27  Bruno Haible  <bruno@clisp.org>
70970
70971         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70972
70973 2007-04-27  Bruno Haible  <bruno@clisp.org>
70974
70975         * lib/fflush.c: Add comments.
70976         * modules/fpurge-tests (Depends-on): Add fflush.
70977         * modules/freadable-tests (Depends-on): Likewise.
70978         * modules/fwritable-tests (Depends-on): Likewise.
70979
70980 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70981
70982         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70983         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70984         Report by Bruno Haible <bruno@clisp.org>.
70985
70986 2007-04-26  Eric Blake  <ebb9@byu.net>
70987
70988         Fix fflush on mingw.
70989         * modules/fflush (Depends-on): Add freading.
70990         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70991         but unread data.
70992
70993 2007-04-26  Eric Blake  <ebb9@byu.net>
70994         and Bruno Haible  <bruno@clisp.org>
70995
70996         Implement freading and fwriting.
70997         * lib/freading.c: New file.
70998         * lib/freading.h: Likewise.
70999         * m4/freading.m4: Likewise.
71000         * modules/freading: Likewise.
71001         * modules/freading-tests: Likewise.
71002         * tests/test-freading.c: Likewise.
71003         * lib/fwriting.c: New file.
71004         * lib/fwriting.h: Likewise.
71005         * m4/fwriting.m4: Likewise.
71006         * modules/fwriting: Likewise.
71007         * modules/fwriting-tests: Likewise.
71008         * tests/test-fwriting.c: Likewise.
71009         * MODULES.html.sh (File stream based Input/Output): Mention them.
71010
71011 2007-04-26  Bruno Haible  <bruno@clisp.org>
71012
71013         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71014         'long' when we assume it.
71015         Suggested by Eric Blake.
71016
71017 2007-04-26  Bruno Haible  <bruno@clisp.org>
71018
71019         Ensure fseeko, ftello are declared on glibc systems.
71020         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71021         * modules/fseeko (configure.ac-early): Likewise.
71022         * modules/ftello (configure.ac-early): Likewise.
71023         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71024         AC_FUNC_FSEEKO for this.
71025         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71026         (gl_CHECK_FSEEKO): Remove macro.
71027
71028 2007-04-26  Bruno Haible  <bruno@clisp.org>
71029
71030         * tests/test-fflush.c (main): Also check the ftell result after
71031         fflush and fseek/fseeko.
71032         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71033         file descriptor position cache in the stream.
71034         * lib/fseeko.c (rpl_fseeko): Likewise.
71035
71036 2007-04-26  Bruno Haible  <bruno@clisp.org>
71037
71038         * modules/fflush-tests (Depends-on): Add fseeko.
71039
71040 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71041             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71042
71043         * lib/argz_.h: ensure error_t definition is obtained in same
71044         mechanism system argz.h would have.
71045         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71046         argz facilities are known bad.  Err on the side of caution if
71047         cross-compiling.
71048
71049 2007-04-25  Eric Blake  <ebb9@byu.net>
71050
71051         * lib/fpurge.c (includes): Use stdlib.h for free.
71052         * tests/test-fflush.c (main): Also test fflush-fseeko.
71053
71054 2007-04-25  Bruno Haible  <bruno@clisp.org>
71055
71056         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71057         * lib/fseeko.c: New file.
71058         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71059         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71060         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71061         gl_FUNC_FSEEKO.
71062         (gl_FUNC_FSEEKO): Invoke it.
71063         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71064         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71065         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71066
71067 2007-04-25  Bruno Haible  <bruno@clisp.org>
71068
71069         * modules/fflush (Depends-on): Add ftello.
71070
71071 2007-04-25  Bruno Haible  <bruno@clisp.org>
71072
71073         * modules/ftello-tests: New file.
71074         * tests/test-ftello.c: New file.
71075
71076         * modules/ftello: New file.
71077         * m4/ftello.m4: New file.
71078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71079         HAVE_FTELLO.
71080         * lib/stdio_.h (ftello): New declaration.
71081         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71082         HAVE_FTELLO.
71083
71084 2007-04-25  Bruno Haible  <bruno@clisp.org>
71085
71086         * modules/fseeko-tests: New file.
71087         * tests/test-fseeko.c: New file.
71088
71089         * modules/fseeko: New file.
71090         * m4/fseeko.m4: New file.
71091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71092         HAVE_FSEEKO.
71093         * lib/stdio_.h (fseeko): New declaration.
71094         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71095         HAVE_FSEEKO.
71096
71097 2007-04-25  Bruno Haible  <bruno@clisp.org>
71098
71099         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71100
71101 2007-04-25  Bruno Haible  <bruno@clisp.org>
71102
71103         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71104         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71105         * tests/test-unistd.c: Likewise.
71106         * tests/test-fcntl.c: Likewise.
71107
71108 2007-04-23  Eric Blake  <ebb9@byu.net>
71109
71110         * lib/fflush.c: Fix missing include.
71111         Reported by Bruno Haible.
71112
71113 2007-04-23  Bruno Haible  <bruno@clisp.org>
71114
71115         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71116         Reported by Eric Blake.
71117
71118 2007-04-23  Bruno Haible  <bruno@clisp.org>
71119
71120         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71121
71122 2007-04-23  Bruno Haible  <bruno@clisp.org>
71123
71124         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71125
71126 2007-04-23  Bruno Haible  <bruno@clisp.org>
71127
71128         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71129         Needed on HP-UX 11.
71130
71131 2007-04-16  Eric Blake  <ebb9@byu.net>
71132
71133         Make fflush rely on fpurge.
71134         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71135         open coding all variants.
71136         * modules/fflush (Depends-on): Add fpurge and unistd.
71137         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71138         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71139
71140         Fix --with-tests compilation on cygwin.
71141         * modules/argmatch-tests (Makefile.am): List gnulib library first
71142         in LDADD.
71143         * modules/argp-tests (Makefile.am): Likewise.
71144         * modules/array-list-tests (Makefile.am): Likewise.
71145         * modules/array-oset-tests (Makefile.am): Likewise.
71146         * modules/avltree-list-tests (Makefile.am): Likewise.
71147         * modules/avltree-oset-tests (Makefile.am): Likewise.
71148         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71149         * modules/carray-list-tests (Makefile.am): Likewise.
71150         * modules/dirname-tests (Makefile.am): Likewise.
71151         * modules/frexp-tests (Makefile.am): Likewise.
71152         * modules/isnanl-tests (Makefile.am): Likewise.
71153         * modules/linked-list-tests (Makefile.am): Likewise.
71154         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71155         * modules/lock-tests (Makefile.am): Likewise.
71156         * modules/rbtree-list-tests (Makefile.am): Likewise.
71157         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71158         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71159         * modules/tls-tests (Makefile.am): Likewise.
71160         * modules/tsearch-tests (Makefile.am): Likewise.
71161         * modules/xvasprintf-tests (Makefile.am): Likewise.
71162
71163         Fix fpurge for cygwin.
71164         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71165         value.
71166         * modules/fpurge-tests (Depends-on): Clean up trash.
71167
71168 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71169
71170         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71171
71172         * m4/autobuild.m4: Re-indent.
71173
71174 2007-04-13  Bruno Haible  <bruno@clisp.org>
71175
71176         * modules/fpurge-tests: New file.
71177         * tests/test-fpurge.c: New file.
71178
71179         * modules/fpurge: New file.
71180         * lib/fpurge.h: New file.
71181         * lib/fpurge.c: New file.
71182         * m4/fpurge.m4: New file.
71183
71184 2007-04-13  Bruno Haible  <bruno@clisp.org>
71185
71186         * modules/fbufmode-tests: New file.
71187         * tests/test-fbufmode.c: New file.
71188
71189         * modules/fbufmode: New file.
71190         * lib/fbufmode.h: New file.
71191         * lib/fbufmode.c: New file.
71192         * m4/fbufmode.m4: New file.
71193
71194 2007-04-13  Bruno Haible  <bruno@clisp.org>
71195
71196         * modules/fwritable-tests: New file.
71197         * tests/test-fwritable.c: New file.
71198
71199         * modules/fwritable: New file.
71200         * lib/fwritable.h: New file.
71201         * lib/fwritable.c: New file.
71202         * m4/fwritable.m4: New file.
71203
71204 2007-04-13  Bruno Haible  <bruno@clisp.org>
71205
71206         * modules/freadable-tests: New file.
71207         * tests/test-freadable.c: New file.
71208
71209         * modules/freadable: New file.
71210         * lib/freadable.h: New file.
71211         * lib/freadable.c: New file.
71212         * m4/freadable.m4: New file.
71213
71214 2007-04-13  Bruno Haible  <bruno@clisp.org>
71215
71216         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71217         MOSTLYCLEANFILES.
71218
71219 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71220
71221         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71222         gzip bootstrap.conf to avoid dragging in i18n machinery.
71223         (gnulib_tool_option): Use it.
71224
71225 2007-04-13  Bruno Haible  <bruno@clisp.org>
71226
71227         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71228         %F directives.
71229         * tests/test-vasprintf-posix.c (test_function): Likewise.
71230         * tests/test-snprintf-posix.h (test_function): Likewise.
71231         * tests/test-sprintf-posix.h (test_function): Likewise.
71232         * tests/test-fprintf-posix.h (test_function): Likewise.
71233         * tests/test-printf-posix.h (test_function): Likewise.
71234         * tests/test-fprintf-posix.out: Likewise.
71235
71236 2007-04-13  Bruno Haible  <bruno@clisp.org>
71237
71238         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71239         * modules/tls-tests (configure.ac): Likewise.
71240         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71241
71242 2007-04-13  Bruno Haible  <bruno@clisp.org>
71243
71244         * lib/tls.c (glthread_tls_get): Fix return type.
71245         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71246
71247 2007-04-12  Eric Blake  <ebb9@byu.net>
71248
71249         * modules/gettime (Depends-on): Remove gettime.
71250         Reported by Dmitry V. Levin.
71251
71252 2007-04-12  Bruno Haible  <bruno@clisp.org>
71253
71254         * modules/fflush (Include): Mention <stdio.h>.
71255         * modules/strtoimax (Include): Mention <inttypes.h>.
71256         * modules/strtoumax (Include): Likewise.
71257
71258 2007-04-12  Eric Blake  <ebb9@byu.net>
71259
71260         * .cvsignore: New file.
71261         * .gitignore: Likewise.
71262
71263 2007-04-12  Bruno Haible  <bruno@clisp.org>
71264
71265         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71266         not before, since $(LDADD) often contains libgnu.a.
71267         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71268         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71269         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71270         Needed on Cygwin.
71271
71272 2007-04-12  Eric Blake  <ebb9@byu.net>
71273
71274         Work around glibc's failure to flush stdin on fclose.
71275         * lib/closein.c (close_stdin): Flush stdin before closing.
71276
71277         Work around glibc's failure to reset seekable stdin on exit.
71278         * modules/closein: New module.
71279         * lib/closein.c: New file.
71280         * lib/closein.h: Likewise.
71281         * m4/closein.m4: Likewise.
71282         * MODULES.html.sh (File stream based Input/Output): Document it.
71283
71284 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71285
71286         * gnulib-tool: Rename generated 'autobuild' script to
71287         'do-autobuild' in --create-megatestdir output.
71288
71289         * doc/gnulib.texi (Build robot for gnulib): Fix.
71290
71291 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71292
71293         * modules/sysexits (Depends-on): Add absolute-header.
71294
71295 2007-04-12  Eric Blake  <ebb9@byu.net>
71296
71297         No need to preserve errno on success.
71298         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71299         Reported by Bruno Haible.
71300
71301 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71302
71303         * MODULES.html.sh (Support for maintaining and releasing
71304         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71305
71306 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71307
71308         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71309
71310 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71311
71312         * modules/autobuild: New module.
71313
71314         * m4/autobuild.m4: New file.
71315
71316 2007-04-11  Bruno Haible  <bruno@clisp.org>
71317
71318         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71319         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71320         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71323         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71324         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71326         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71327         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71329         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71330         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71332         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71333         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71335         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71336         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71337         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71338         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71339         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71341         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71342         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71344         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71345         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71346         Reported by Eric Blake.
71347
71348 2007-04-11  Bruno Haible  <bruno@clisp.org>
71349
71350         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71351
71352 2007-04-10  Bruno Haible  <bruno@clisp.org>
71353
71354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71355         for NaN and Infinity. Needed on FreeBSD 6.1.
71356         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71357         regarding results for "%010a" of Infinity and NaN.
71358         * tests/test-vasprintf-posix.c (test_function): Likewise.
71359         * tests/test-snprintf-posix.h (test_function): Likewise.
71360         * tests/test-sprintf-posix.h (test_function): Likewise.
71361         * tests/test-fprintf-posix.h (test_function): Likewise.
71362         * tests/test-printf-posix.h (test_function): Likewise.
71363         * tests/test-fprintf-posix.out: Likewise.
71364
71365 2007-04-10  Bruno Haible  <bruno@clisp.org>
71366
71367         * modules/locale-tests: New file.
71368         * tests/test-locale.c: New file.
71369
71370         * modules/locale: New file.
71371         * lib/locale_.h: New file.
71372         * m4/locale_h.m4: New file.
71373
71374 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71375             Bruno Haible  <bruno@clisp.org>
71376
71377         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71378         be determined, test for availability of the copysignf, copysign,
71379         copysignl functions.
71380         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71381         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71382         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71383
71384 2007-04-09  Eric Blake  <ebb9@byu.net>
71385
71386         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71387         * modules/stdio (Makefile.am): Support fflush.
71388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71389         * modules/fflush: New file.
71390         * lib/fflush.c: Likewise.
71391         * m4/fflush.m4: Likewise.
71392         * modules/fflush-tests: New test.
71393         * tests/test-fflush.c: Likewise.
71394         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71395
71396 2007-04-06  Bruno Haible  <bruno@clisp.org>
71397
71398         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71399         (VASNPRINTF): Use signbit for faster determination whether to print a
71400         minus sign.
71401         * modules/vasnprintf (Files): Remove lib/float+.h.
71402         * modules/fprintf-posix (Depends-on): Add signbit.
71403         * modules/snprintf-posix (Depends-on): Likewise.
71404         * modules/sprintf-posix (Depends-on): Likewise.
71405         * modules/vasnprintf-posix (Depends-on): Likewise.
71406         * modules/vasprintf-posix (Depends-on): Likewise.
71407         * modules/vfprintf-posix (Depends-on): Likewise.
71408         * modules/vsnprintf-posix (Depends-on): Likewise.
71409         * modules/vsprintf-posix (Depends-on): Likewise.
71410
71411 2007-04-06  Bruno Haible  <bruno@clisp.org>
71412
71413         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71414         * tests/test-frexpl.c (main): Likewise.
71415         * tests/test-ldexpl.c (main): Likewise.
71416         * modules/frexp-tests (Depends-on): Add signbit.
71417         * modules/frexpl-tests (Depdends-on): Likewise.
71418         * modules/ldexpl-tests (Depdends-on): Likewise.
71419
71420 2007-04-06  Bruno Haible  <bruno@clisp.org>
71421
71422         * modules/signbit-tests: New file.
71423         * tests/test-signbit.c: New file.
71424
71425         * modules/signbit: New file.
71426         * lib/signbitf.c: New file.
71427         * lib/signbitd.c: New file.
71428         * lib/signbitl.c: New file.
71429         * m4/signbit.m4: New file.
71430         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71431         (signbit): New macro.
71432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71433         REPLACE_SIGNBIT.
71434         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71435         REPLACE_FREXPL into math.h.
71436
71437 2007-04-06  Bruno Haible  <bruno@clisp.org>
71438
71439         * modules/isnanf-nolibm-tests: New file.
71440         * tests/test-isnanf.c: New file.
71441
71442         * modules/isnanf-nolibm: New file.
71443         * lib/isnanf.h: New file.
71444         * lib/isnanf.c: New file.
71445         * lib/isnan.c: Consider the USE_FLOAT macro.
71446         * m4/isnanf.m4: New file.
71447
71448 2007-04-06  Bruno Haible  <bruno@clisp.org>
71449
71450         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71451         (Link): New section.
71452
71453         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71454
71455 2007-04-06  Bruno Haible  <bruno@clisp.org>
71456
71457         Assume the 'long double' type.
71458         * m4/longdouble.m4: Remove file.
71459         * config/srclist.txt: Don't mention longdouble.m4.
71460         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71461         * lib/float+.h: Likewise.
71462         * lib/frexp.c: Likewise.
71463         * lib/printf-args.h: Likewise.
71464         * lib/printf-args.c: Likewise.
71465         * lib/printf-frexp.c: Likewise.
71466         * lib/printf-parse.c: Likewise.
71467         * lib/vasnprintf.c: Likewise.
71468         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71469         * m4/intl.m4: Likewise.
71470         * m4/isnanl.m4: Likewise.
71471         * m4/printf.m4: Likewise.
71472         * m4/printf-frexpl.m4: Likewise.
71473         * m4/vasnprintf.m4: Likewise.
71474         * modules/allocsa (Files): Remove m4/longdouble.m4.
71475         * modules/gettext (Files): Likewise.
71476         * modules/relocatable-prog-wrapper (Files): Likewise.
71477         * modules/vasnprintf (Files): Likewise.
71478         * modules/isnanl (Files): Likewise.
71479         (Include): Simplify.
71480         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71481         (Include): Simplify.
71482         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71483         (Include): Simplify.
71484         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71485         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71486         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71487         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71488         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71489         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71490         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71491         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71492         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71493         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71494         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71495         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71496         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71497         * tests/test-isnanl.c: Likewise.
71498         * tests/test-snprintf-posix.h: Likewise.
71499         * tests/test-sprintf-posix.h: Likewise.
71500         * tests/test-vasnprintf-posix.c: Likewise.
71501         * tests/test-vasnprintf-posix2.c: Likewise.
71502         * tests/test-vasprintf-posix.c: Likewise.
71503
71504 2007-04-06  Bruno Haible  <bruno@clisp.org>
71505
71506         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71507         * lib/math_.h [__DECC]: Include the overridden include file through
71508         #include_next, outside the double-inclusion guard.
71509         * lib/stdio_.h [__DECC]: Likewise.
71510         * lib/stdlib_.h [__DECC]: Likewise.
71511         * lib/string_.h [__DECC]: Likewise.
71512         * lib/time_.h [__DECC]: Likewise.
71513         * lib/wchar_.h [__DECC]: Likewise.
71514         * lib/wctype_.h [__DECC]: Likewise.
71515         * lib/inttypes_.h [__DECC]: Likewise.
71516         Reported by Albert Chin <china@thewrittenword.com> in
71517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71518
71519 2007-04-04  Eric Blake  <ebb9@byu.net>
71520
71521         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71522         1.5.x.
71523
71524 2007-04-04  Bruno Haible  <bruno@clisp.org>
71525
71526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71527         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71528
71529 2007-04-04  Bruno Haible  <bruno@clisp.org>
71530
71531         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71532         results for "%010a" of Infinity and NaN.
71533         * tests/test-vasprintf-posix.c (test_function): Likewise.
71534         * tests/test-snprintf-posix.h (test_function): Likewise.
71535         * tests/test-sprintf-posix.h (test_function): Likewise.
71536         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71537         * tests/test-printf-posix.h (test_function): Likewise.
71538         * tests/test-fprintf-posix.out: Update.
71539         Needed for FreeBSD 6.1.
71540
71541 2007-04-04  Bruno Haible  <bruno@clisp.org>
71542
71543         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71544         directly used by the gnulib modules nor by gnulib-tool.
71545
71546 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * DEPENDENCIES: Give overall description of version dependency
71549         desirability.  Use more-typical names for apps.
71550         Add shell, coreutils, diffutils, grep, tar, gzip.
71551
71552 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71553
71554         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71555
71556 2007-04-04  Karl Berry  <karl@gnu.org>
71557
71558         * MODULES.html.sh (func_module): missing '.
71559
71560 2007-04-03  Bruno Haible  <bruno@clisp.org>
71561
71562         * modules/argmatch-tests (Makefile.am): New variable
71563         test_argmatch_LDADD.
71564         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71565         * modules/array-list-tests (Makefile.am): New variable
71566         test_array_list_LDADD.
71567         * modules/array-oset-tests (Makefile.am): New variable
71568         test_array_oset_LDADD.
71569         * modules/avltree-list-tests (Makefile.am): New variable
71570         test_avltree_list_LDADD.
71571         * modules/avltree-oset-tests (Makefile.am): New variable
71572         test_avltree_oset_LDADD.
71573         * modules/avltreehash-list-tests (Makefile.am): New variable
71574         test_avltreehash_list_LDADD.
71575         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71576         test_canonicalize_lgpl_LDADD.
71577         * modules/carray-list-tests (Makefile.am): New variable
71578         test_carray_list_LDADD.
71579         * modules/dirname-tests (Makefile.am): New variable
71580         test_dirname_LDADD.
71581         * modules/linked-list-tests (Makefile.am): New variable
71582         test_linked_list_LDADD.
71583         * modules/linkedhash-list-tests (Makefile.am): New variable
71584         test_linkedhash_list_LDADD.
71585         * modules/rbtree-list-tests (Makefile.am): New variable
71586         test_rbtree_list_LDADD.
71587         * modules/rbtree-oset-tests (Makefile.am): New variable
71588         test_rbtree_oset_LDADD.
71589         * modules/rbtreehash-list-tests (Makefile.am): New variable
71590         test_rbtreehash_list_LDADD.
71591         * modules/xvasprintf-tests (Makefile.am): New variable
71592         test_xvasprintf_LDADD.
71593         Reported by Eric Blake.
71594
71595 2007-04-03  Eric Blake  <ebb9@byu.net>
71596
71597         * DEPENDENCIES: Weaken m4 requirements.
71598
71599 2007-04-03  Bruno Haible  <bruno@clisp.org>
71600
71601         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71602         * modules/isnanl-tests (configure.ac): Likewise.
71603
71604 2007-04-03  Ben Pfaff  <blp@gnu.org>
71605
71606         * modules/iconv_open: Add $(srcdir)/ to source directory
71607         references in Makefile fragments that call gperf, to fix VPATH
71608         builds.
71609
71610 2007-04-03  Bruno Haible  <bruno@clisp.org>
71611
71612         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71613         * lib/ldexpl.c: Undo last change.
71614
71615 2007-04-03  Bruno Haible  <bruno@clisp.org>
71616
71617         * modules/printf-frexpl (Depends-on): Undo last change.
71618         (Files): Add m4/ldexpl.m4.
71619
71620 2007-04-03  Bruno Haible  <bruno@clisp.org>
71621
71622         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71623         * modules/isnanl (Link): New section.
71624
71625         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71626         * modules/frexp (Link): New section.
71627
71628         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71629         * modules/frexpl (Link): New section.
71630
71631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71632         * modules/ldexpl (Link): New section.
71633
71634 2007-04-03  Bruno Haible  <bruno@clisp.org>
71635
71636         * modules/TEMPLATE-EXTENDED: New file.
71637         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71638
71639 2007-04-03  Bruno Haible  <bruno@clisp.org>
71640
71641         * DEPENDENCIES: New file.
71642         Suggested by Simon Josefsson.
71643
71644 2007-04-03  Bruno Haible  <bruno@clisp.org>
71645
71646         * doc/gnulib.texi: Escape @.
71647
71648 2007-04-03  James Youngman  <jay@gnu.org>
71649         and Paul Eggert  <eggert@cs.ucla.edu>
71650
71651         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71652         birthtime on all systems that have birthtime, not just those which
71653         use st_birthtimensec rather than st_birthtim.  Putting zero in
71654         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71655         that the birth time is not available for files on an NFS mount.
71656
71657 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71658
71659         * modules/memxor: Move back from crypto/, suggested by Bruno.
71660         * modules/crypto/hmac-sha1: Fix memxor dependency.
71661
71662         * modules/crypto/gc: Moved from ../.
71663
71664 2007-04-02  Eric Blake  <ebb9@byu.net>
71665
71666         * lib/ldexpl.c (includes): Avoid libm.
71667
71668         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71669
71670 2007-04-02  Bruno Haible  <bruno@clisp.org>
71671
71672         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71673         on IRIX.
71674
71675 2007-04-02  Bruno Haible  <bruno@clisp.org>
71676
71677         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71678         x86 or x86_64 platforms running MacOS X.
71679         Reported by Ryan Schmidt <@ryandesign.com>.
71680
71681 2007-04-02  Bruno Haible  <bruno@clisp.org>
71682
71683         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71684         i386.
71685
71686 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71687
71688         * modules/crypto/arcfour: Moved from ../.
71689         * modules/crypto/arcfour-tests: Moved from ../.
71690         * modules/crypto/arctwo: Moved from ../.
71691         * modules/crypto/arctwo-tests: Moved from ../.
71692         * modules/crypto/des: Moved from ../.
71693         * modules/crypto/des-tests: Moved from ../.
71694         * modules/crypto/gc-arcfour: Moved from ../.
71695         * modules/crypto/gc-arcfour-tests: Moved from ../.
71696         * modules/crypto/gc-arctwo: Moved from ../.
71697         * modules/crypto/gc-arctwo-tests: Moved from ../.
71698         * modules/crypto/gc-des: Moved from ../.
71699         * modules/crypto/gc-des-tests: Moved from ../.
71700         * modules/crypto/gc-hmac-md5: Moved from ../.
71701         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71702         * modules/crypto/gc-hmac-sha1: Moved from ../.
71703         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71704         * modules/crypto/gc-md2: Moved from ../.
71705         * modules/crypto/gc-md2-tests: Moved from ../.
71706         * modules/crypto/gc-md4: Moved from ../.
71707         * modules/crypto/gc-md4-tests: Moved from ../.
71708         * modules/crypto/gc-md5: Moved from ../.
71709         * modules/crypto/gc-md5-tests: Moved from ../.
71710         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71711         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71712         * modules/crypto/gc-random: Moved from ../.
71713         * modules/crypto/gc-rijndael: Moved from ../.
71714         * modules/crypto/gc-rijndael-tests: Moved from ../.
71715         * modules/crypto/gc-sha1: Moved from ../.
71716         * modules/crypto/gc-sha1-tests: Moved from ../.
71717         * modules/crypto/gc-tests: Moved from ../.
71718         * modules/crypto/hmac-md5: Moved from ../.
71719         * modules/crypto/hmac-md5-tests: Moved from ../.
71720         * modules/crypto/hmac-sha1: Moved from ../.
71721         * modules/crypto/hmac-sha1-tests: Moved from ../.
71722         * modules/crypto/md2: Moved from ../.
71723         * modules/crypto/md2-tests: Moved from ../.
71724         * modules/crypto/md4: Moved from ../.
71725         * modules/crypto/md4-tests: Moved from ../.
71726         * modules/crypto/md5: Moved from ../.
71727         * modules/crypto/md5-tests: Moved from ../.
71728         * modules/crypto/memxor: Moved from ../.
71729         * modules/crypto/rijndael: Moved from ../.
71730         * modules/crypto/rijndael-tests: Moved from ../.
71731         * modules/crypto/sha1: Moved from ../.
71732
71733 2007-03-30  James Youngman  <jay@gnu.org>
71734
71735         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71736         rename() to change the ctime of a file (because ctime is unaffected
71737         by rename on jfs2 on AIX 5.1).
71738         (main): Start by doing cleanup, in case a previous run failed leaving
71739         test files behind.
71740
71741 2007-03-31  Bruno Haible  <bruno@clisp.org>
71742
71743         Support old proprietary implementations of iconv.
71744         * modules/iconv_open: New file.
71745         * lib/iconv_.h: New file.
71746         * m4/iconv_h.m4: New file.
71747         * lib/iconv_open.c: New file.
71748         * lib/iconv_open-aix.gperf: New file.
71749         * lib/iconv_open-hpux.gperf: New file.
71750         * lib/iconv_open-irix.gperf: New file.
71751         * lib/iconv_open-osf.gperf: New file.
71752         * m4/iconv_open.m4: New file.
71753         * modules/linebreak (Depends-on): Add iconv_open.
71754         * modules/striconv (Depends-on): Likewise.
71755         * modules/striconveh (Depends-on): Likewise.
71756         * modules/unicodeio (Depends-on): Likewise.
71757         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71758         (iconv_t)(-1).
71759         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71760         conversion if cd is (iconv_t)(-1).
71761         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71762         is not possible.
71763
71764 2007-03-31  Bruno Haible  <bruno@clisp.org>
71765
71766         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71767         work on Solaris either. Protect also second use of "autodetect_jp".
71768
71769 2007-03-31  Bruno Haible  <bruno@clisp.org>
71770
71771         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71772         the function is not present.
71773
71774 2007-03-31  Bruno Haible  <bruno@clisp.org>
71775
71776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71777         the function is not present.
71778
71779 2007-03-31  Bruno Haible  <bruno@clisp.org>
71780
71781         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71782         a bug in HP-UX iconv_open().
71783
71784 2007-03-31  Bruno Haible  <bruno@clisp.org>
71785
71786         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71787         (Mathematics <math.h>): New section, add fpieee.
71788         (Input/output <stdio.h>): Add fseterr.
71789         (Mathematics <math.h>): New section, add printf-frexp.
71790         (Container data structures): Add sublist.
71791         (Core language properties): Add fpucw, inline.
71792         (Functions for greatest-width integer types <inttypes.h>): Add
71793         imaxabs, imaxdiv, inttypes.
71794         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71795         isnanl-nolibm, ldexp.
71796         (Mathematics <math.h>): New section, add printf-frexpl.
71797         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71798         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71799         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71800         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71801         (Unicode string functions): Add unistr/u*-mbtoucr.
71802         (Java): Add javacomp-script, javaexec-script.
71803         (C#): Add csharpcomp-script, csharpexec-script.
71804         (Support for building libraries and executables): Add havelib,
71805         relocatable-*.
71806         (Support for maintaining and releasing projects): Renamed from
71807         'Support for maintaining and release projects'. Add announce-gen.
71808
71809 2007-03-31  Bruno Haible  <bruno@clisp.org>
71810
71811         * README: Talk primarily about git.
71812         (git and CVS): Renamed from CVS.
71813         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71814         gnulib is available through git.
71815         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71816
71817 2007-03-30  Bruno Haible  <bruno@clisp.org>
71818
71819         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71820         * lib/poll_.h: Likewise.
71821         * lib/stat_.h: Likewise.
71822         * lib/sys_time_.h: Likewise.
71823         * lib/sysexit_.h: Likewise.
71824         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71825         * lib/stdbool_.h: Likewise.
71826         * lib/byteswap_.h: Add double-inclusion guard.
71827
71828 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71829
71830         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71831
71832 2007-03-30  Karl Berry  <karl@gnu.org>
71833
71834         * config/srclist-update: double space after USA in the license
71835         substitution, since that's how it's usually (?) written.
71836
71837 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71840         reported by Bruno Haible.
71841
71842 2007-03-29  Bruno Haible  <bruno@clisp.org>
71843
71844         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71845         a bug in AIX iconv().
71846
71847 2007-03-29  Bruno Haible  <bruno@clisp.org>
71848
71849         * modules/ldexpl-tests: New file.
71850         * tests/test-ldexpl.c: New file.
71851
71852 2007-03-29  Bruno Haible  <bruno@clisp.org>
71853
71854         * lib/ldexpl.c: Include fpucw.h.
71855         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71856         multiplication.
71857         * modules/ldexpl (Depends-on): Add fpucw.
71858
71859 2007-03-29  Bruno Haible  <bruno@clisp.org>
71860
71861         * modules/ldexpl: New file.
71862         * m4/ldexpl.m4: New file.
71863         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71864         set.
71865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71866         REPLACE_LDEXPL.
71867         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71868         REPLACE_LDEXPL.
71869         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71870         gl_FUNC_LDEXPL_WORKS.
71871         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71872         * modules/mathl (Files): Remove lib/ldexpl.c.
71873         (Depends-on): Add ldexpl.
71874
71875 2007-03-29  Bruno Haible  <bruno@clisp.org>
71876
71877         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71878
71879 2007-03-29  Bruno Haible  <bruno@clisp.org>
71880
71881         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71882         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71883         and possibly also HP-UX.
71884         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71885         work on AIX, IRIX, HP-UX, OSF/1.
71886         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71887         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71888         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71889         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71890         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71891         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71892
71893 2007-03-29  Bruno Haible  <bruno@clisp.org>
71894
71895         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71896
71897 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71898
71899         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71900         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71901
71902 2007-03-29  Eric Blake  <ebb9@byu.net>
71903
71904         * lib/acl-internal.h: Remove redundant include.
71905         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71906         Cygwin when a file is locked.
71907
71908 2007-03-29  Bruno Haible  <bruno@clisp.org>
71909
71910         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71911         file.
71912         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71913
71914 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71917         try to remove a parent directory if the child couldn't be removed
71918         (except for the first rmdir, which could fail because the child
71919         doesn't exist).  Problem reported by Jeff Blaine in
71920         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71921
71922 2007-03-28  Bruno Haible  <bruno@clisp.org>
71923
71924         * lib/striconveh.c (utf8conv_carefully): New function.
71925         (mem_cd_iconveh_internal): Invoke it.
71926
71927 2007-03-28  Bruno Haible  <bruno@clisp.org>
71928
71929         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71930         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71931         input.
71932         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71933         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71934         unistr/u8-uctomb.
71935
71936 2007-03-28  Bruno Haible  <bruno@clisp.org>
71937
71938         * modules/unistr/u8-mbtoucr: New file.
71939         * lib/unistr/u8-mbtoucr.c: New file.
71940         * modules/unistr/u16-mbtoucr: New file.
71941         * lib/unistr/u16-mbtoucr.c: New file.
71942         * modules/unistr/u16-mbtoucr: New file.
71943         * lib/unistr/u16-mbtoucr.c: New file.
71944         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71945
71946 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71947             Bruno Haible  <bruno@clisp.org>
71948
71949         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71950         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71951         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71952
71953         * m4/stdio_h.m4: Add stubs for vasprintf too.
71954
71955         * modules/stdio: Support vasprintf in sed command.
71956
71957         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71958         vasprintf.h.  Add stdio module indicator.
71959
71960         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71961         vasprintf.h.
71962
71963         * lib/vasprintf.h: File removed.
71964
71965         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71966         * lib/vasprintf.c: Ditto.
71967         * lib/xvasprintf.c: Ditto.
71968         * tests/test-vasprintf-posix.c: Ditto.
71969         * tests/test-vasprintf.c: Ditto.
71970
71971 2007-03-27  Bruno Haible  <bruno@clisp.org>
71972
71973         Make vasnprintf multithread-safe.
71974         * lib/vasnprintf.c (decimal_point_char): New function.
71975         (VASNPRINTF): Use it.
71976         Suggested by Simon Josefsson.
71977
71978 2007-03-27  Eric Blake  <ebb9@byu.net>
71979
71980         Support sub-second birthtime on cygwin.
71981         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71982         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71983         (get_stat_birthtime): Also work with st_birthtim.
71984
71985 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71988         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71989         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71990         (get_stat_birthtime_ns): Simplify compile-time tests.
71991         (get_stat_birthtime): Change the API to look like
71992         get_stat_mtime etc., except return a negative tv_nsec on error.
71993         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71994         Don't check for "spare" fields.
71995         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71996         or for struct stat.st_birthtime, as these tests aren't used.
71997         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71998
71999 2007-03-27  Bruno Haible  <bruno@clisp.org>
72000
72001         * lib/stat-time.h: Include <sys/stat.h>.
72002
72003 2007-03-27  James Youngman  <jay@gnu.org>
72004
72005         * lib/stat-time.h (get_stat_birthtime): New function for
72006           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72007         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72008           and its variants.
72009         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72010         * modules/stat-time-test: New file.
72011         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72012
72013 2007-03-26  Bruno Haible  <bruno@clisp.org>
72014
72015         Better support of signalling NaNs.
72016         * lib/atanl.c: Include isnanl.h.
72017         (atanl): Perform test for NaN at the beginning of the function and
72018         through a call to isnanl.
72019         * lib/cosl.c: Include isnanl.h.
72020         (cosl): Perform test for NaN at the beginning of the function and
72021         through a call to isnanl.
72022         * lib/ldexpl.c: Include isnanl.h.
72023         (ldexpl): Perform test for NaN through a call to isnanl.
72024         * lib/logl.c: Include isnanl.h.
72025         (logl): Perform test for NaN at the beginning of the function and
72026         through a call to isnanl.
72027         * lib/sinl.c: Include isnanl.h.
72028         (sinl): Perform test for NaN at the beginning of the function and
72029         through a call to isnanl.
72030         * lib/sqrtl.c: Include isnanl.h.
72031         (sqrtl): Perform test for NaN at the beginning of the function and
72032         through a call to isnanl.
72033         * lib/tanl.c: Include isnanl.h.
72034         (tanl): Perform test for NaN at the beginning of the function and
72035         through a call to isnanl.
72036         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72037         * modules/mathl (Depends-on): Add isnanl.
72038
72039 2007-03-26  Eric Blake  <ebb9@byu.net>
72040
72041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72042         regression in logic sense of previous patch.
72043
72044 2007-03-26  Bruno Haible  <bruno@clisp.org>
72045
72046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72047         unportable shell command "if ! ...".
72048         Reported by Ralf Wildenhues.
72049
72050 2007-03-25  Bruno Haible  <bruno@clisp.org>
72051
72052         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72053         <sysexits.h> file, and only add EX_CONFIG.
72054         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72055         absolute file name and whether it is sufficient. Substitute also
72056         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72057         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72058         ABSOLUTE_SYSEXITS_H into sysexits.h.
72059
72060 2007-03-25  Bruno Haible  <bruno@clisp.org>
72061
72062         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72063         hints is NULL.
72064
72065 2007-03-25  Bruno Haible  <bruno@clisp.org>
72066
72067         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72068         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72069
72070 2007-03-25  Bruno Haible  <bruno@clisp.org>
72071
72072         * lib/vasnprintf.c: Include langinfo.h.
72073         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72074         multithread-safe.
72075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72077         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72078         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72081         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72083         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72084         Reported by Simon Josefsson.
72085
72086 2007-03-25  Bruno Haible  <bruno@clisp.org>
72087
72088         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72089         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72090         * modules/vasnprintf (Depends-on): Add stdint.
72091
72092 2007-03-25  Bruno Haible  <bruno@clisp.org>
72093
72094         * modules/fpieee: New file.
72095         * m4/fpieee.m4: New file.
72096         * modules/isnan-nolibm (Depends-on): Add fpieee.
72097         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72098         * modules/isnanl (Depends-on): Add fpieee.
72099
72100 2007-03-25  Bruno Haible  <bruno@clisp.org>
72101
72102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72103
72104 2007-03-25  Bruno Haible  <bruno@clisp.org>
72105
72106         Avoid test failures on IRIX 6.5.
72107         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72108         (main): Use it.
72109         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72110         macros.
72111         (main): Use them.
72112
72113 2007-03-25  Bruno Haible  <bruno@clisp.org>
72114
72115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72116         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72117         exists but doesn't work.
72118         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72119         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72121         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72122         math.h.
72123
72124 2007-03-25  Bruno Haible  <bruno@clisp.org>
72125
72126         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72127         returns inf. Needed on IRIX 6.5.
72128
72129 2007-03-25  Bruno Haible  <bruno@clisp.org>
72130
72131         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72132         (main): Use isnanl instead of x != x idiom.
72133         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72134
72135         * tests/test-frexp.c: Include isnan.h.
72136         (main): Use isnan instead of x != x idiom.
72137         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72138
72139 2007-03-25  Bruno Haible  <bruno@clisp.org>
72140
72141         * tests/test-frexp.c (NaN): New function/macro.
72142         (main): Use it instead of 0.0 / 0.0.
72143         * tests/test-isnan.c (NaN): New function/macro.
72144         (main): Use it instead of 0.0 / 0.0.
72145         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72146         (test_function): Use it instead of 0.0 / 0.0.
72147         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72148         (test_function): Use it instead of 0.0 / 0.0.
72149         * tests/test-snprintf-posix.h (NaN): New function/macro.
72150         (test_function): Use it instead of 0.0 / 0.0.
72151         * tests/test-sprintf-posix.h (NaN): New function/macro.
72152         (test_function): Use it instead of 0.0 / 0.0.
72153         * tests/test-fprintf-posix.h (NaN): New function/macro.
72154         (test_function): Use it instead of 0.0 / 0.0.
72155         * tests/test-printf-posix.h (NaN): New function/macro.
72156         (test_function): Use it instead of 0.0 / 0.0.
72157
72158         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72159
72160 2007-03-25  Bruno Haible  <bruno@clisp.org>
72161
72162         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72163
72164 2007-03-25  Bruno Haible  <bruno@clisp.org>
72165
72166         * lib/regexec.c (merge_state_with_log): Make static.
72167
72168 2007-03-25  Bruno Haible  <bruno@clisp.org>
72169
72170         * lib/trigl.c (kernel_rem_pio2): Make static.
72171
72172 2007-03-25  Bruno Haible  <bruno@clisp.org>
72173
72174         * lib/sincosl.c (sincosl_table): Make static.
72175
72176 2007-03-25  Bruno Haible  <bruno@clisp.org>
72177
72178         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72179         if the compiler does not support C99.
72180
72181 2007-03-25  Bruno Haible  <bruno@clisp.org>
72182
72183         * modules/time (Makefile.am): Ensure all rule action lines start with a
72184         tab.
72185
72186 2007-03-24  Bruno Haible  <bruno@clisp.org>
72187
72188         * modules/tsearch-tests: New file.
72189         * tests/test-tsearch.sh: New file.
72190         * tests/test-tsearch.c: New file, mostly copied from glibc.
72191
72192         * modules/search-tests: New file.
72193         * tests/test-search.c: New file.
72194
72195         * modules/search: New file.
72196         * lib/search_.h: New file, incorporating lib/tsearch.h.
72197         * m4/search_h.m4: New file.
72198         * lib/tsearch.h: Remove file.
72199         * lib/tsearch.c: Include search.h instead of tsearch.h.
72200         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72201         HAVE_TSEARCH.
72202         * modules/tsearch (Files): Remove lib/tsearch.h.
72203         (Depends-on): Add search.
72204         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72205         (Include): Change tsearch.h into search.h.
72206
72207 2007-03-24  Bruno Haible  <bruno@clisp.org>
72208
72209         * modules/fpucw: New file.
72210         * lib/fpucw.h: New file.
72211         * lib/frexp.c: Include fpucw.h.
72212         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72213         (FUNC): Use them.
72214         * lib/printf-frexp.c: Include fpucw.h.
72215         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72216         (FUNC): Use them.
72217         * lib/vasnprintf.c: Include fpucw.h.
72218         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72219         'long double' calculations.
72220         * tests/test-frexpl.c: Include fpucw.h.
72221         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72222         * tests/test-printf-frexpl.c: Include fpucw.h.
72223         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72224         * modules/frexpl (Depends-on): Add fpucw.
72225         * modules/printf-frexpl (Depends-on): Likewise.
72226         * modules/fprintf-posix (Depends-on): Likewise.
72227         * modules/snprintf-posix (Depends-on): Likewise.
72228         * modules/sprintf-posix (Depends-on): Likewise.
72229         * modules/vasnprintf-posix (Depends-on): Likewise.
72230         * modules/vasprintf-posix (Depends-on): Likewise.
72231         * modules/vfprintf-posix (Depends-on): Likewise.
72232         * modules/vsnprintf-posix (Depends-on): Likewise.
72233         * modules/vsprintf-posix (Depends-on): Likewise.
72234         * modules/frexpl-tests (Depends-on): Likewise.
72235         * modules/printf-frexpl-tests (Depends-on): Likewise.
72236
72237 2007-03-24  Bruno Haible  <bruno@clisp.org>
72238
72239         * lib/float+.h: New file.
72240         * lib/isnan.c: Include float+.h.
72241         (SIZE): New macro.
72242         (FUNC): Compare only SIZE bytes of the value.
72243         * lib/vasnprintf.c: Include float+.h.
72244         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72245         SIZEOF_LDBL or SIZEOF_DBL bytes.
72246         * modules/isnan-nolibm (Files): Add lib/float+.h.
72247         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72248         * modules/isnanl (Files): Add lib/float+.h.
72249         * modules/vasnprintf (Files): Add lib/float+.h.
72250
72251 2007-03-24  Bruno Haible  <bruno@clisp.org>
72252
72253         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72254         include isnanl-nolibm.h.
72255
72256 2007-03-24  Bruno Haible  <bruno@clisp.org>
72257
72258         * tests/test-read-file.c (main): Don't produce spurious output for
72259         expected situations. Make the test fail if it encountered unexpected
72260         results.
72261
72262 2007-03-24  Bruno Haible  <bruno@clisp.org>
72263
72264         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72265         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72266
72267 2007-03-24  Bruno Haible  <bruno@clisp.org>
72268
72269         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72270
72271 2007-03-24  Bruno Haible  <bruno@clisp.org>
72272
72273         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72274         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72275
72276         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72277         * modules/utf8-ucs4: Turn into a symbolic link to module
72278         unistr/u8-mbtouc.
72279
72280         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72281         utf8-ucs4-unsafe.
72282         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72283         unistr/u8-mbtouc-unsafe.
72284
72285         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72286         * modules/utf16-ucs4: Turn into a symbolic link to module
72287         unistr/u16-mbtouc.
72288
72289         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72290         utf16-ucs4-unsafe.
72291         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72292         unistr/u16-mbtouc-unsafe.
72293
72294         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72295         * modules/ucs4-utf8: Turn into a symbolic link to module
72296         unistr/u8-ubtomb.
72297
72298         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72299         * modules/ucs4-utf16: Turn into a symbolic link to module
72300         unistr/u16-ubtomb.
72301
72302 2007-03-24  Bruno Haible  <bruno@clisp.org>
72303
72304         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72305         Enable the function only if HAVE_INLINE.
72306         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72307         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72308         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72309         Enable the function only if HAVE_INLINE.
72310         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72311         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72312         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72313         Enable the function only if HAVE_INLINE.
72314         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72315         Enable the function only if HAVE_INLINE.
72316         * modules/utf8-ucs4: Update.
72317         * modules/utf8-ucs4-unsafe: Update.
72318         * modules/utf16-ucs4: Update.
72319         * modules/utf16-ucs4-unsafe: Update.
72320         * modules/ucs4-utf8: Update.
72321         * modules/ucs4-utf16: Update.
72322
72323 2007-03-24  Bruno Haible  <bruno@clisp.org>
72324
72325         * lib/utf8-ucs4.h: Remove file.
72326         * lib/utf8-ucs4-unsafe.h: Remove file.
72327         * lib/utf16-ucs4.h: Remove file.
72328         * lib/utf16-ucs4-unsafe.h: Remove file.
72329         * lib/ucs4-utf8.h: Remove file.
72330         * lib/ucs4-utf16.h: Remove file.
72331         * lib/unistr.h: Include their previous contents.
72332         * m4/utf-ucs4.m4: Remove file.
72333         * m4/ucs4-utf.m4: Remove file.
72334         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72335         (Depends-on): Add unistr/base.
72336         (configure.ac): Remove gl_UTF_UCS4.
72337         (Makefile.am): Update.
72338         (Include): Change to unistr.h.
72339         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72340         (Depends-on): Add unistr/base.
72341         (configure.ac): Remove gl_UTF_UCS4.
72342         (Makefile.am): Update.
72343         (Include): Change to unistr.h.
72344         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72345         (Depends-on): Add unistr/base.
72346         (configure.ac): Remove gl_UTF_UCS4.
72347         (Makefile.am): Update.
72348         (Include): Change to unistr.h.
72349         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72350         (Depends-on): Add unistr/base.
72351         (configure.ac): Remove gl_UTF_UCS4.
72352         (Makefile.am): Update.
72353         (Include): Change to unistr.h.
72354         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72355         (Depends-on): Add unistr/base.
72356         (configure.ac): Remove gl_UCS4_UTF.
72357         (Makefile.am): Update.
72358         (Include): Change to unistr.h.
72359         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72360         (Depends-on): Add unistr/base.
72361         (configure.ac): Remove gl_UCS4_UTF.
72362         (Makefile.am): Update.
72363         (Include): Change to unistr.h.
72364         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72365         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72366         utf8-ucs4-unsafe.h.
72367         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72368         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72369         utf16-ucs4-unsafe.h.
72370         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72371         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72372         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72373         * lib/unistr/u8-strchr.c: Likewise.
72374         * lib/unistr/u8-strrchr.c: Likewise.
72375         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72376         * lib/unistr/u16-strchr.c: Likewise.
72377         * lib/unistr/u16-strrchr.c: Likewise.
72378         * lib/striconveh.c: Update.
72379         * lib/linebreak.c: Update.
72380
72381 2007-03-24  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72384         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72385
72386 2007-03-22  Bruno Haible  <bruno@clisp.org>
72387
72388         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72389
72390 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * MODULES.html.sh (File system functions): New module write-any-file.
72393         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72394         * m4/write-any-file.m4: New files.
72395
72396 2007-03-23  Eric Blake  <ebb9@byu.net>
72397
72398         * gnulib-tool: Rearrange space-tab sequences, since some editors
72399         like to eat them.
72400
72401 2007-03-23  Eric Blake  <ebb9@byu.net>
72402
72403         * lib/version-etc.c (version_etc_va): Update license wording to
72404         be more concise.  Recommended by Richard Stallman.
72405
72406 2007-03-22  Bruno Haible  <bruno@clisp.org>
72407
72408         * lib/poll.c (MSG_PEEK): New fallback definition.
72409
72410 2007-03-22  Bruno Haible  <bruno@clisp.org>
72411
72412         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72413         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72414         (main): Update.
72415         Fixes a compilation error on BeOS.
72416
72417 2007-03-22  Bruno Haible  <bruno@clisp.org>
72418
72419         * modules/frexpl-tests: New file.
72420         * tests/test-frexpl.c: New file.
72421
72422         * modules/frexpl: New file.
72423         * m4/frexpl.m4: New file.
72424         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72425         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72427         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72428         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72429         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72430
72431 2007-03-22  Bruno Haible  <bruno@clisp.org>
72432
72433         * lib/frexpl.c: Share code with lib/frexp.c.
72434         * modules/mathl (Files): Add lib/frexp.c.
72435         (Depends-on): Add isnanl-nolibm.
72436
72437 2007-03-22  Bruno Haible  <bruno@clisp.org>
72438
72439         * modules/printf-frexp (Files): Add m4/frexp.m4.
72440         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72441         only if the found frexp function actually works.
72442
72443 2007-03-22  Bruno Haible  <bruno@clisp.org>
72444
72445         * lib/frexp.c: Remove older implementation that uses divisions.
72446
72447 2007-03-21  Bruno Haible  <bruno@clisp.org>
72448
72449         * modules/frexp-tests: New file.
72450         * tests/test-frexp.c: New file.
72451
72452         * modules/frexp: New file.
72453         * lib/frexp.c: New file.
72454         * m4/frexp.m4: New file.
72455         * lib/math_.h (frexp): New declaration.
72456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72457         REPLACE_FREXP.
72458         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72459
72460 2007-03-21  Bruno Haible  <bruno@clisp.org>
72461
72462         * modules/isnanl-tests: New file.
72463         * tests/test-isnanl.c: New file.
72464
72465         * modules/isnanl: New file.
72466         * lib/isnanl.h: New file.
72467         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72468         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72469         gl_FUNC_ISNANL_WORKS.
72470         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72471         New macros.
72472
72473 2007-03-21  Bruno Haible  <bruno@clisp.org>
72474
72475         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72476         lib/isnanl.h.
72477         (Include): Update.
72478         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72479         * lib/vasnprintf.c: Update.
72480         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72481         tests/test-isnanl.h, remove tests/test-isnanl.c.
72482         (Makefile.am): Update.
72483         * tests/test-isnanl-nolibm.c: New file.
72484         * tests/test-isnanl.h: New file.
72485         * tests/test-isnanl.c: Remove file.
72486
72487 2007-03-21  Jim Meyering  <jim@meyering.net>
72488
72489         When trying to open ".", treat ESTALE like EACCES.
72490         * lib/savewd.c (savewd_save): Resort to forking not just upon
72491         failure with EACCES, but also when errno is ESTALE.
72492
72493 2007-03-20  Bruno Haible  <bruno@clisp.org>
72494
72495         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72496         Needed on AIX 5.1. Reported by Matthew Woehlke.
72497
72498 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         Suggestions by Bruno Haible:
72501         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72502         our own.
72503         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72504         * modules/acl (Depends-on): Add gettext.
72505
72506 2007-03-19  Bruno Haible  <bruno@clisp.org>
72507
72508         * modules/iconvme: Remove file.
72509         * lib/iconvme.h: Remove file.
72510         * lib/iconvme.c: Remove file.
72511         * m4/iconvme.m4: Remove file.
72512
72513 2007-03-19  Bruno Haible  <bruno@clisp.org>
72514
72515         * doc/relocatable-maint.texi: Break long shell script line.
72516         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72517
72518 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72521         handle file_has_acl.
72522         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72523         * lib/acl.c: Move header inclusions and related macro defns into
72524         lib/acl-internal.h.
72525         (S_ISLNK): Remove defn, since that's now done for us.
72526         (file_has_acl): Move to lib/file-has-acl.c.
72527         Call acl_trivial if available.  This is the crucial part of the fix.
72528         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72529         shared within the library.  Rewrite a bit, partly to make it compatible
72530         with the GNU coding style.
72531         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72532         Remove unnecessary double-quotes.
72533         Don't test for acl_to_text; the build will catch that.
72534         Replace acl_entries if it doesn't exist and it is needed.
72535         Check for -lsec and acl_trivial (as used on Solaris 10).
72536         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72537         lib/file-has-acl.c.
72538         (Depends-on): Add sys_stat, for S_ISLNK.
72539
72540 2007-03-19  Ben Pfaff  <blp@gnu.org>
72541
72542         * doc/gnulib.texi: Fix typos.
72543         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72544
72545 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72546
72547         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72548         If size is zero here, buf must be zero.
72549
72550 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72551
72552         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72553         <bruno@clisp.org>.
72554
72555 2007-03-18  Bruno Haible  <bruno@clisp.org>
72556
72557         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72558         Suggested by Eric Blake.
72559
72560 2007-03-18  Ben Pfaff  <blp@gnu.org>
72561
72562         * doc/relocatable.texi: Recommend using as prefix a directory
72563         that does not exist and will never be created.  Based on
72564         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72565         and others.
72566
72567 2007-03-17  Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/fchownat.c: Include lchown.h.
72570
72571 2007-03-17  Bruno Haible  <bruno@clisp.org>
72572
72573         Fix endless loop when the given allocated size was > INT_MAX.
72574         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72575         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72576         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72577         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72578         * lib/sprintf.c (sprintf): Likewise.
72579
72580 2007-03-17  Bruno Haible  <bruno@clisp.org>
72581
72582         * tests/test-argp-2.sh (func_compare): Output a context diff.
72583
72584 2007-03-17  Bruno Haible  <bruno@clisp.org>
72585
72586         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72587         locale's decimal-point character.
72588
72589 2007-03-17  Bruno Haible  <bruno@clisp.org>
72590
72591         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72592         before comparing it. Needed because on some platforms (e.g. x86) a
72593         'long double' occupies less bytes than sizeof (long double).
72594
72595 2007-03-17  Bruno Haible  <bruno@clisp.org>
72596
72597         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72598         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72599         * tests/test-getaddrinfo.c (simple): Likewise.
72600         * tests/test-read-file.c (main): Likewise.
72601
72602 2007-03-17  Bruno Haible  <bruno@clisp.org>
72603
72604         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72605
72606 2007-03-17  Bruno Haible  <bruno@clisp.org>
72607
72608         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72609         unused variable.
72610
72611 2007-03-17  Bruno Haible  <bruno@clisp.org>
72612
72613         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72614         * tests/test-c-strncasecmp.c: Likewise.
72615
72616 2007-03-17  Bruno Haible  <bruno@clisp.org>
72617
72618         * modules/stdlib (Depends-on): Add unistd.
72619         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72620         Needed for MacOS X 10.3.
72621
72622 2007-03-17  Bruno Haible  <bruno@clisp.org>
72623
72624         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72625
72626 2007-03-17  Bruno Haible  <bruno@clisp.org>
72627
72628         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72629
72630 2007-03-17  Bruno Haible  <bruno@clisp.org>
72631
72632         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72633         to reflect files copied from gnulib (with or without modifications).
72634         Suggested by Jim Meyering.
72635
72636 2007-03-17  Eric Blake  <ebb9@byu.net>
72637
72638         * NEWS: Document stdlib change from 2007-02-18.
72639
72640 2007-03-17  Jim Meyering  <jim@meyering.net>
72641
72642         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72643         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72644         someone uses a name containing shell meta-characters.
72645         Reported by Alfred M. Szmidt.
72646
72647         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72648
72649 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72650
72651         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72652         and copy gettext configuration files only if configure.ac contains
72653         a use of AM_GNU_GETTEXT_VERSION.
72654
72655 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72656
72657         * build-aux/bootstrap (gnulib_name): New variable.
72658         (gnulib_tool_options): Use it.
72659
72660 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72661
72662         * tests/test-des.c: Use new namespace.
72663
72664 2007-03-15  Bruno Haible  <bruno@clisp.org>
72665
72666         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72667         Reported by James Youngman <jay@gnu.org>.
72668
72669 2007-03-15  Bruno Haible  <bruno@clisp.org>
72670
72671         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72672         declared prototype. Needed with cc on OSF/1 5.1.
72673
72674 2007-03-15  Bruno Haible  <bruno@clisp.org>
72675
72676         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72677         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72678         (struct gl_list_implementation): Add dispose_fn argument to the
72679         'create_empty', 'create' methods.
72680         (struct gl_list_impl_base): Add field 'dispose_fn'.
72681         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72682         argument.
72683         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72684         dispose_fn argument.
72685         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72686         dispose_fn on the dropped values.
72687         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72688         dispose_fn argument.
72689         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72690         dropped values.
72691         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72692         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72693         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72694         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72695         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72696         argument.
72697         (gl_tree_list_free): Call dispose_fn on the dropped values.
72698         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72699         the dropped values.
72700         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72701         Add dispose_fn argument.
72702         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72703         Call dispose_fn on the dropped values.
72704         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72705         Add dispose_fn argument.
72706         (gl_sublist_create): Initialize the 'dispose_fn' field.
72707         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72708         * tests/test-array_list.c (main): Update.
72709         * tests/test-carray_list.c (main): Update.
72710         * tests/test-avltree_list.c (main): Update.
72711         * tests/test-rbtree_list.c (main): Update.
72712         * tests/test-avltreehash_list.c (main): Update.
72713         * tests/test-rbtreehash_list.c (main): Update.
72714         * tests/test-linked_list.c (main): Update.
72715         * tests/test-linkedhash_list.c (main): Update.
72716         * tests/test-array_oset.c (main): Update.
72717
72718 2007-03-15  Bruno Haible  <bruno@clisp.org>
72719
72720         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72721         (gl_oset_create_empty): Add dispose_fn argument.
72722         (struct gl_oset_implementation): Add dispose_fn argument to
72723         'create_empty' method.
72724         (struct gl_oset_impl_base): Add dispose_fn field.
72725         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72726         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72727         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72728         values.
72729         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72730         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72731         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72732         dropped value.
72733         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72734         dropped value.
72735         * tests/test-array_oset.c (main): Update.
72736         * tests/test-avltree_oset.c (main): Update.
72737         * tests/test-rbtree_oset.c (main): Update.
72738         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72739
72740 2007-03-13  Bruno Haible  <bruno@clisp.org>
72741
72742         * tests/test-stdbool.c (i): Update after last patch.
72743
72744 2007-03-12  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72747         the iswprint macro. Needed on Solaris 2.5.1.
72748
72749 2007-03-12  Bruno Haible  <bruno@clisp.org>
72750
72751         * tests/test-printf-frexp.c (main): Declare x as volatile.
72752
72753 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72754
72755         * doc/gnulib.texi (Build robot for gnulib): New section.
72756
72757 2007-03-12  Jim Meyering  <jim@meyering.net>
72758
72759         * build-aux/bootstrap: New file.
72760         * build-aux/bootstrap.conf: New file, from coreutils.
72761
72762 2007-03-11  Bruno Haible  <bruno@clisp.org>
72763
72764         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72765
72766 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72767
72768         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72769         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72770         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72771
72772 2007-03-11  Bruno Haible  <bruno@clisp.org>
72773
72774         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72775         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72776
72777 2007-03-11  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72780         formula. Needed for SunPRO C 5.0.
72781
72782 2007-03-11  Bruno Haible  <bruno@clisp.org>
72783
72784         * modules/long-options (Depends-on): Add getopt.
72785
72786 2007-03-11  Bruno Haible  <bruno@clisp.org>
72787
72788         * modules/modechange (Depends-on): Add stdbool.
72789
72790 2007-03-11  Bruno Haible  <bruno@clisp.org>
72791
72792         * modules/i-ring (Depends-on): Add stdbool.
72793
72794 2007-03-11  Bruno Haible  <bruno@clisp.org>
72795
72796         * modules/gc-des (Depends-on): Add stdbool.
72797
72798 2007-03-11  Bruno Haible  <bruno@clisp.org>
72799
72800         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72801
72802 2007-03-11  Bruno Haible  <bruno@clisp.org>
72803
72804         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72805
72806 2007-03-11  Bruno Haible  <bruno@clisp.org>
72807
72808         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72809
72810 2007-03-11  Bruno Haible  <bruno@clisp.org>
72811
72812         * lib/vasnprintf.c (sprintf): Undefine.
72813
72814 2007-03-11  Bruno Haible  <bruno@clisp.org>
72815
72816         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72817         initializers in SunPRO C and Compaq C compilers.
72818
72819 2007-03-11  Bruno Haible  <bruno@clisp.org>
72820
72821         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72822         decrementing code ANSI C compliant.
72823
72824 2007-03-11  Bruno Haible  <bruno@clisp.org>
72825
72826         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72827         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72828
72829 2007-03-11  Bruno Haible  <bruno@clisp.org>
72830
72831         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72832         <stdbool.h> substitute doesn't pass.
72833
72834 2007-03-11  Bruno Haible  <bruno@clisp.org>
72835
72836         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72837
72838 2007-03-11  Bruno Haible  <bruno@clisp.org>
72839
72840         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72841         script, for submission to autobuild.josefsson.org.
72842
72843 2007-03-10  Bruno Haible  <bruno@clisp.org>
72844
72845         * modules/canonicalize-lgpl-tests: New file.
72846         * tests/test-canonicalize-lgpl.sh: New file.
72847         * tests/test-canonicalize-lgpl.c: New file.
72848
72849         * modules/c-strcase-tests: New file.
72850         * tests/test-c-strcase.sh: New file.
72851         * tests/test-c-strcasecmp.c: New file.
72852         * tests/test-c-strncasecmp.c: New file.
72853
72854         * modules/atexit-tests: New file.
72855         * tests/test-atexit.sh: New file.
72856         * tests/test-atexit.c: New file.
72857
72858 2007-03-10  Bruno Haible  <bruno@clisp.org>
72859
72860         * tests/test-binary-io.sh: Use temporary filenames that are not so
72861         likely to clash with those of other tests (in a parallel make).
72862         * tests/test-binary-io.c: Likewise.
72863
72864 2007-03-10  Bruno Haible  <bruno@clisp.org>
72865
72866         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72867         fallback; use #error instead.
72868         Suggested by Simon Josefsson.
72869
72870 2007-03-10  Bruno Haible  <bruno@clisp.org>
72871
72872         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72873         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72874         first and the last.
72875
72876 2007-03-10  Bruno Haible  <bruno@clisp.org>
72877
72878         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72879
72880 2007-03-10  Bruno Haible  <bruno@clisp.org>
72881
72882         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72883         "make distcheck".
72884         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72885         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72886         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72887
72888 2007-03-10  Bruno Haible  <bruno@clisp.org>
72889
72890         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72891         variable.
72892         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72893         variable.
72894
72895 2007-03-09  Eric Blake  <ebb9@byu.net>
72896         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72897
72898         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72899         types are not being provided by gnulib.
72900         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72901         types are supported.
72902
72903 2007-03-10  Bruno Haible  <bruno@clisp.org>
72904
72905         * lib/stdio_.h (__attribute__): New macro.
72906         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72907         vsprintf): Specify __attribute__ __format__ for GCC.
72908         Suggested by Eric Blake.
72909
72910 2007-03-09  Bruno Haible  <bruno@clisp.org>
72911
72912         * modules/printf-posix-tests: New file.
72913         * tests/test-printf-posix.sh: New file.
72914         * tests/test-printf-posix.c: New file.
72915
72916         * modules/printf-posix: New file.
72917         * lib/printf.c: New file.
72918         * m4/printf-posix-rpl.m4: New file.
72919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72920         REPLACE_PRINTF.
72921         * lib/stdio_.h (printf): New declaration.
72922         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72923         ____strfmon____): New macros.
72924         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72925         REPLACE_PRINTF.
72926
72927 2007-03-09  Bruno Haible  <bruno@clisp.org>
72928
72929         * tests/test-vasnprintf-posix2.sh: New file.
72930         * tests/test-vasnprintf-posix2.c: New file.
72931         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72932         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72933         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72934
72935         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72936         a locale dependent decimal point, rather than always '.'.
72937
72938 2007-03-09  Eric Blake  <ebb9@byu.net>
72939
72940         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72941         spite of platforms like Tandem/NSK that define it to -1.
72942
72943 2007-03-08  Bruno Haible  <bruno@clisp.org>
72944
72945         * modules/vprintf-posix-tests: New file.
72946         * tests/test-vprintf-posix.sh: New file.
72947         * tests/test-vprintf-posix.c: New file.
72948         * tests/test-printf-posix.h: New file.
72949
72950         * modules/vprintf-posix: New file.
72951         * lib/vprintf.c: New file.
72952         * m4/vprintf-posix.m4: New file.
72953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72954         REPLACE_VPRINTF.
72955         * lib/stdio_.h (vprintf): New declaration.
72956         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72957         REPLACE_VPRINTF.
72958
72959 2007-03-08  Bruno Haible  <bruno@clisp.org>
72960
72961         * modules/fprintf-posix-tests: New file.
72962         * tests/test-fprintf-posix.sh: New file.
72963         * tests/test-fprintf-posix.c: New file.
72964
72965         * modules/fprintf-posix: New file.
72966         * lib/fprintf.c: New file.
72967         * m4/fprintf-posix.m4: New file.
72968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72969         REPLACE_FPRINTF.
72970         * lib/stdio_.h (fprintf): New declaration.
72971         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72972         REPLACE_FPRINTF.
72973
72974 2007-03-08  Bruno Haible  <bruno@clisp.org>
72975
72976         * modules/vfprintf-posix-tests: New file.
72977         * tests/test-vfprintf-posix.sh: New file.
72978         * tests/test-vfprintf-posix.c: New file.
72979         * tests/test-fprintf-posix.h: New file.
72980         * tests/test-fprintf-posix.out: New file.
72981
72982         * modules/vfprintf-posix: New file.
72983         * lib/vfprintf.c: New file.
72984         * m4/vfprintf-posix.m4: New file.
72985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72986         REPLACE_VFPRINTF.
72987         * lib/stdio_.h (vfprintf): New declaration.
72988         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72989         REPLACE_VFPRINTF.
72990
72991 2007-03-08  Bruno Haible  <bruno@clisp.org>
72992
72993         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72994
72995 2007-03-08  Bruno Haible  <bruno@clisp.org>
72996
72997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72998         instead of 'expr' invocations.
72999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73004         Suggested by Paul Eggert.
73005
73006 2007-03-08  Bruno Haible  <bruno@clisp.org>
73007
73008         * modules/fseterr-tests: New file.
73009         * tests/test-fseterr.c: New file.
73010
73011         * modules/fseterr: New file.
73012         * lib/fseterr.h: New file.
73013         * lib/fseterr.c: New file.
73014
73015 2007-03-08  Bruno Haible  <bruno@clisp.org>
73016
73017         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73018         * lib/getopt_.h: Likewise.
73019         * lib/mbswidth.h: Likewise.
73020         * lib/setenv.h: Likewise.
73021         * lib/vasnprintf.h: Likewise.
73022         * lib/vasprintf.h: Likewise.
73023         * lib/verror.h: Likewise.
73024         * lib/xsetenv.h: Likewise.
73025         * lib/xvasprintf.h: Likewise.
73026
73027 2007-03-08  Jim Meyering  <jim@meyering.net>
73028
73029         * users.txt: Add parted.
73030
73031         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73032
73033 2007-03-07  Bruno Haible  <bruno@clisp.org>
73034
73035         * m4/printf.m4: Make the shell script snippets copy&pastable.
73036
73037 2007-03-02  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/netinet_in_.h: New file.
73040         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73041         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73042         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73043         (Depends-on): Add absolute-header.
73044         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73045         into netinet/in.h.
73046
73047 2007-03-03  Bruno Haible  <bruno@clisp.org>
73048
73049         * lib/sys_select_.h: New file.
73050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73051         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73052         * modules/sys_select (Files): Add lib/sys_select_.h.
73053         (Depends-on): Add absolute-header.
73054         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73055         into sys/select.h.
73056
73057 2007-03-02  Bruno Haible  <bruno@clisp.org>
73058
73059         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73060         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73061         values.
73062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73063         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73064         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73065         * modules/sys_socket (Depends-on): Add absolute-header.
73066         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73067         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73068         (Include): Remove requirement of inclusion of <sys/types.h>.
73069
73070 2007-03-02  Bruno Haible  <bruno@clisp.org>
73071
73072         * lib/byteswap_.h (bswap_32): Fix formula.
73073
73074 2007-03-06  Bruno Haible  <bruno@clisp.org>
73075
73076         * modules/sprintf-posix-tests: New file.
73077         * tests/test-sprintf-posix.c: New file.
73078
73079         * modules/sprintf-posix: New file.
73080         * lib/sprintf.c: New file.
73081         * m4/sprintf-posix.m4: New file.
73082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73083         REPLACE_SPRINTF.
73084         * lib/stdio_.h (sprintf): New declaration.
73085         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73086         REPLACE_SPRINTF.
73087
73088 2007-03-06  Bruno Haible  <bruno@clisp.org>
73089
73090         * modules/vsprintf-posix-tests: New file.
73091         * tests/test-vsprintf-posix.c: New file.
73092         * tests/test-sprintf-posix.h: New file.
73093
73094         * modules/vsprintf-posix: New file.
73095         * lib/vsprintf.c: New file.
73096         * m4/vsprintf-posix.m4: New file.
73097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73098         REPLACE_VSPRINTF.
73099         * lib/stdio_.h (vsprintf): New declaration.
73100         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73101         REPLACE_VSPRINTF.
73102
73103 2007-03-06  Bruno Haible  <bruno@clisp.org>
73104
73105         * modules/vsnprintf (Depend-on): Remove minmax.
73106
73107 2007-03-06  Bruno Haible  <bruno@clisp.org>
73108
73109         * modules/snprintf-posix-tests: New file.
73110         * tests/test-snprintf-posix.c: New file.
73111
73112         * modules/snprintf-posix: New file.
73113         * m4/snprintf-posix.m4: New file.
73114         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73115         gl_FUNC_SNPRINTF.
73116         (gl_FUNC_SNPRINTF): Invoke it.
73117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73118         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73119         is set.
73120         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73121
73122 2007-03-06  Bruno Haible  <bruno@clisp.org>
73123
73124         * modules/vsnprintf-posix-tests: New file.
73125         * tests/test-vsnprintf-posix.c: New file.
73126         * tests/test-snprintf-posix.h: New file.
73127
73128         * modules/vsnprintf-posix: New file.
73129         * m4/vsnprintf-posix.m4: New file.
73130         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73131         gl_FUNC_VSNPRINTF.
73132         (gl_FUNC_VSNPRINTF): Invoke it.
73133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73134         * lib/stdio_.h (vsnprintf): Define as a replacement if
73135         REPLACE_VSNPRINTF is set.
73136         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73137
73138 2007-03-06  Bruno Haible  <bruno@clisp.org>
73139
73140         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73142
73143 2007-03-06  Bruno Haible  <bruno@clisp.org>
73144
73145         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73146         (asinl): Declare also if HAVE_DECL_ASINL is set.
73147         (atanl): Declare also if HAVE_DECL_ATANL is set.
73148         (ceill): Declare also if HAVE_DECL_CEILL is set.
73149         (cosl): Declare also if HAVE_DECL_COSL is set.
73150         (expl): Declare also if HAVE_DECL_EXPL is set.
73151         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73152         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73153         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73154         (logl): Declare also if HAVE_DECL_LOGL is set.
73155         (sinl): Declare also if HAVE_DECL_SINL is set.
73156         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73157         (tanl): Declare also if HAVE_DECL_TANL is set.
73158         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73161         declaration of frexpl, ldexpl.
73162         * modules/printf-frexpl (Depends-on): Add math.
73163         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73164
73165 2007-03-05  Bruno Haible  <bruno@clisp.org>
73166
73167         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73168         frexpl and ldexpl are declared.
73169         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73170
73171 2007-03-05  Bruno Haible  <bruno@clisp.org>
73172
73173         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73174         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73175
73176 2007-03-05  Bruno Haible  <bruno@clisp.org>
73177
73178         * lib/stdio_.h: Include <stddef.h>.
73179
73180 2007-03-05  Bruno Haible  <bruno@clisp.org>
73181
73182         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73183
73184 2007-03-05  Bruno Haible  <bruno@clisp.org>
73185
73186         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73187         NetBSD 4, from Ralf Wildenhues.
73188
73189 2007-03-04  Bruno Haible  <bruno@clisp.org>
73190
73191         * lib/vasprintf.h: Update #if logic for the case when the functions
73192         exist but are overridden.
73193
73194 2007-03-04  Bruno Haible  <bruno@clisp.org>
73195
73196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73197         implementations: glibc-2.4 and MacOS X 10.3.
73198         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73199         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73200         * tests/test-vasprintf-posix.c (test_function): Likewise.
73201
73202 2007-03-04  Bruno Haible  <bruno@clisp.org>
73203
73204         * modules/vasprintf-posix-tests: New file.
73205         * tests/test-vasprintf-posix.c: New file.
73206
73207         * modules/vasprintf-posix: New file.
73208         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73209         defined.
73210         * m4/vasprintf-posix.m4: New file.
73211         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73212         gl_FUNC_VASPRINTF.
73213         (gl_FUNC_VASPRINTF): Invoke it.
73214         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73215         here.
73216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73217
73218 2007-03-04  Bruno Haible  <bruno@clisp.org>
73219
73220         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73221         REPLACE_GETTIMEOFDAY.
73222         * modules/sys_time (Makefile.am): Likewise.
73223         * m4/sys_time_h.m4: Likewise.
73224         * m4/gettimeofday.m4: Likewise.
73225
73226 2007-03-04  Bruno Haible  <bruno@clisp.org>
73227
73228         * modules/vasnprintf-posix-tests: New file.
73229         * tests/test-vasnprintf-posix.c: New file.
73230
73231         * modules/vasnprintf-posix: New file.
73232         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73233         printf-frexpl.h.
73234         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73235         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73236         REPLACE_VASNPRINTF is defined.
73237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73238         gl_FUNC_VASNPRINTF.
73239         (gl_FUNC_VASNPRINTF): Invoke it.
73240         * m4/vasnprintf-posix.m4: New file.
73241         * m4/printf.m4: New file.
73242
73243 2007-03-04  Bruno Haible  <bruno@clisp.org>
73244
73245         Compile progreloc.c only if --enable-relocatable is specified.
73246         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73247         if --enable-relocatable was specified.
73248         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73249         lib_SOURCES.
73250
73251 2007-03-04  Jim Meyering  <jim@meyering.net>
73252
73253         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73254         Use it consistently, rather than enumerating errno constants.
73255
73256 2007-03-04  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/xvasprintf-tests: New file.
73259         * tests/test-xvasprintf.c: New file.
73260
73261         * modules/vasprintf-tests: New file.
73262         * tests/test-vasprintf.c: New file.
73263
73264         * modules/vasnprintf-tests: New file.
73265         * tests/test-vasnprintf.c: New file.
73266
73267         * modules/vsnprintf-tests: New file.
73268         * tests/test-vsnprintf.c: New file.
73269
73270         * modules/snprintf-tests: New file.
73271         * tests/test-snprintf.c: New file.
73272
73273 2007-03-04  Bruno Haible  <bruno@clisp.org>
73274
73275         Compile relocatable.c only if --enable-relocatable is specified.
73276         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73277         gl_RELOCATABLE_LIBRARY.
73278         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73279         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73280         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73281         gl_RELOCATABLE_LIBRARY.
73282         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73283         (Makefile.am): Remove lib_SOURCES.
73284         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73285         gl_RELOCATABLE_LIBRARY.
73286         (Makefile.am): Remove lib_SOURCES.
73287         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73288         always.
73289         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73290         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73291
73292 2007-03-04  Bruno Haible  <bruno@clisp.org>
73293
73294         * modules/argmatch-tests: New file.
73295         * tests/test-argmatch.c: New file.
73296
73297         * tests/test-allocsa.c (main): Halve the number of loop runs.
73298
73299         * modules/alloca-opt-tests: New file.
73300         * tests/test-alloca-opt.c: New file.
73301
73302 2007-03-04  Jim Meyering  <jim@meyering.net>
73303
73304         Work around difference between Linux ACLs and Solaris 10 ZFS.
73305         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73306         for EINVAL.
73307
73308 2007-03-03  Bruno Haible  <bruno@clisp.org>
73309
73310         * modules/relocatable-prog (Depends-on): Add back progreloc's
73311         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73312
73313 2007-03-03  Bruno Haible  <bruno@clisp.org>
73314
73315         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73316         * modules/relocatable-lib: New file.
73317
73318 2007-03-03  Bruno Haible  <bruno@clisp.org>
73319
73320         * modules/relocatable-prog: Renamed from modules/relocatable.
73321         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73322
73323 2007-03-03  Bruno Haible  <bruno@clisp.org>
73324
73325         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73326         m4/relocatable-lib.m4.
73327         (Depends-on): Remove 'relocatable'.
73328         (configure.ac): Add gl_RELOCATABLE_NOP.
73329
73330 2007-03-03  Bruno Haible  <bruno@clisp.org>
73331
73332         * modules/relocatable-prog-wrapper: New file.
73333         * modules/relocatable (Depends-on): Add it. Remove all other
73334         dependencies except progname.
73335         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73336
73337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73338         (gl_FUNC_STRERROR): Nop.
73339         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73340
73341         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73342         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73343
73344         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73345         (gl_FUNC_READLINK): Update.
73346
73347         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73348
73349 2007-03-03  Bruno Haible  <bruno@clisp.org>
73350
73351         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73352         * modules/xreadlink (Depends-on): Add unistd.
73353         * modules/xreadlink-with-size (Depends-on): Likewise.
73354
73355 2007-03-03  Bruno Haible  <bruno@clisp.org>
73356
73357         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73358         extracted from gt_FUNC_SETENV.
73359         (gt_FUNC_SETENV): Remove macro.
73360         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73361         remove gt_FUNC_SETENV.
73362
73363 2007-03-03  Bruno Haible  <bruno@clisp.org>
73364
73365         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73366         ENABLE_RELOCATABLE here.
73367         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73368
73369 2007-03-03  Bruno Haible  <bruno@clisp.org>
73370
73371         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73372         * tests/test-rbtreehash_list.c: Include progname.h.
73373         (main): Call set_program_name.
73374
73375         * modules/rbtree-oset-tests (Depends-on): Add progname.
73376         * tests/test-rbtree_oset.c: Include progname.h.
73377         (main): Call set_program_name.
73378
73379         * modules/rbtree-list-tests (Depends-on): Add progname.
73380         * tests/test-rbtree_list.c: Include progname.h.
73381         (main): Call set_program_name.
73382
73383         * modules/linked-list-tests (Depends-on): Add progname.
73384         * tests/test-linked_list.c: Include progname.h.
73385         (main): Call set_program_name.
73386
73387 2007-03-03  Bruno Haible  <bruno@clisp.org>
73388
73389         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73390         All uses of __restrict changed to _Restrict_.
73391         * lib/glob_.h (__restrict): Remove macro.
73392
73393 2007-03-02  Bruno Haible  <bruno@clisp.org>
73394
73395         * modules/gettext (configure.ac): Require gettext infrastructure
73396         from version 0.16.1.
73397
73398 2007-03-02  Bruno Haible  <bruno@clisp.org>
73399
73400         * modules/linkedhash-list-tests (Depends-on): Add progname.
73401         * tests/test-linkedhash_list.c: Include progname.h.
73402         (main): Call set_program_name.
73403
73404         * modules/carray-list-tests (Depends-on): Add progname.
73405         * tests/test-carray_list.c: Include progname.h.
73406         (main): Call set_program_name.
73407
73408         * modules/avltreehash-list-tests (Depends-on): Add progname.
73409         * tests/test-avltreehash_list.c: Include progname.h.
73410         (main): Call set_program_name.
73411
73412         * modules/avltree-oset-tests (Depends-on): Add progname.
73413         * tests/test-avltree_oset.c: Include progname.h.
73414         (main): Call set_program_name.
73415
73416         * modules/avltree-list-tests (Depends-on): Add progname.
73417         * tests/test-avltree_list.c: Include progname.h.
73418         (main): Call set_program_name.
73419
73420         * modules/array-oset-tests (Depends-on): Add progname.
73421         * tests/test-array_oset.c: Include progname.h.
73422         (main): Call set_program_name.
73423
73424         * modules/array-list-tests (Depends-on): Add progname.
73425         * tests/test-array_list.c: Include progname.h.
73426         (main): Call set_program_name.
73427
73428         * modules/argp-tests (Depends-on): Add progname.
73429         * tests/test-argp.c: Include argp.h first. Include progname.h.
73430         (main): Call set_program_name.
73431
73432 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73433
73434         * doc/gnulib-tool.texi (Initial import): Reword description of
73435         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73436         limited effect even if defined after the first system include.
73437
73438 2007-03-01  Bruno Haible  <bruno@clisp.org>
73439
73440         * build-aux/config.libpath: Update to libtool-1.5.22.
73441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73442
73443 2007-03-01  Bruno Haible  <bruno@clisp.org>
73444
73445         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73446         foo_CFLAGS.
73447         Reported by Ralf Wildenhues.
73448
73449 2007-03-01  Bruno Haible  <bruno@clisp.org>
73450
73451         * build-aux/install-reloc: Remove object files left over by some
73452         compilers.
73453         Reported by Ralf Wildenhues.
73454
73455 2007-03-01  Bruno Haible  <bruno@clisp.org>
73456
73457         * build-aux/install-reloc: Break long lines.
73458
73459 2007-03-01  Bruno Haible  <bruno@clisp.org>
73460
73461         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73462         Reported by Ralf Wildenhues.
73463
73464 2007-03-01  Bruno Haible  <bruno@clisp.org>
73465
73466         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73467         include ordering constraints.
73468
73469 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73473         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73474         as another example.
73475         * lib/time_.h: Fix misspelling.
73476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73477         Require gl_HEADER_TIME_H_DEFAULTS.
73478         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73479         * m4/time_r.m4 (gl_TIME_R): Likewise.
73480         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73481
73482 2007-03-01  Bruno Haible  <bruno@clisp.org>
73483
73484         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73485         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73486
73487 2007-03-01  Jim Meyering  <jim@meyering.net>
73488
73489         * modules/xreadlink (Maintainer): Add my name.
73490         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73491
73492 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73493             Bruno Haible  <bruno@clisp.org>
73494
73495         * build-aux/install-reloc: Compile also c-ctype.c.
73496         * build-aux/relocatable.sh.in: New file.
73497         * doc/relocatable.texi: New file.
73498         * doc/relocatable-maint.texi: New file.
73499         * doc/gnulib.texi: Include relocatable-maint.texi.
73500         * lib/progreloc.c: Include unistd.h unconditionally.
73501         * lib/relocwrapper.c: Include unistd.h unconditionally.
73502         Include c-ctype.h.
73503         (add_dotbin): Use c_tolower.
73504         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73505         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73506         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73507         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73508         to m4/relocatable-lib.m4.
73509         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73510         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73511         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73512         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73513         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73514         * modules/relocatable: New file.
73515         * modules/relocatable-lib: New file.
73516         * modules/relocatable-script: New file.
73517
73518 2007-02-28  Bruno Haible  <bruno@clisp.org>
73519
73520         Import --enable-relocatable infrastructure.
73521         * build-aux/config.libpath: New file, from GNU gettext.
73522         * build-aux/install-reloc: New file, from GNU gettext.
73523         * build-aux/reloc-ldflags: New file, from GNU gettext.
73524         * lib/relocatable.h: New file, from GNU gettext.
73525         * lib/relocatable.c: New file, from GNU gettext.
73526         * lib/relocwrapper.c: New file, from GNU gettext.
73527         * m4/relocatable.m4: New file, from GNU gettext.
73528
73529 2007-02-28  Bruno Haible  <bruno@clisp.org>
73530
73531         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73532
73533         * modules/xreadlink: New file, from GNU gettext with modifications.
73534         * lib/xreadlink.c: New file, from GNU gettext.
73535         * lib/xreadlink.h: Add comments.
73536         (xreadlink): New declaration.
73537
73538         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73539         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73540         lib/xreadlink-with-size.c.
73541         (configure.ac): Remove gl_XREADLINK invocation.
73542         (Makefile.am): Augment lib_SOURCES.
73543         * m4/xreadlink.m4: Remove file.
73544         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73545         (xreadlink_with_size): Renamed from xreadink.
73546         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73547         * modules/canonicalize (Depends-on): Replace xreadlink with
73548         xreadlink-with-size.
73549         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73550
73551 2007-02-25  Jim Meyering  <jim@meyering.net>
73552
73553         * build-aux/announce-gen: When complaining about excess arguments,
73554         list them.
73555
73556 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73557
73558         * README: Document signed integer overflow situation more
73559         accurately.
73560
73561 2007-02-25  Bruno Haible  <bruno@clisp.org>
73562
73563         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73564         'a' or 'A' conversion.
73565
73566 2007-02-25  Bruno Haible  <bruno@clisp.org>
73567
73568         * modules/filename: Renamed from modules/pathname.
73569         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73570         lib/concatpath.c with lib/concat-filename.c.
73571         (Makefile.am): Update.
73572         (Include): Replace pathname.h with filename.h.
73573         * lib/filename.h: Renamed from lib/pathname.h.
73574         (concatenated_filename): Renamed from concatenated_pathname.
73575         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73576         (concatenated_filename): Renamed from concatenated_pathname.
73577         * lib/findprog.c: Include filename.h instead of pathname.h.
73578         (find_in_path): Update.
73579         * lib/javacomp.c: Include filename.h instead of pathname.h.
73580         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73581         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73582         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73583         is_oldgcj_14_13_usable, is_javac_usable): Update.
73584         * lib/javaexec.c: Include filename.h instead of pathname.h.
73585         (execute_java_class): Update.
73586         * modules/findprog: Update.
73587         * modules/javacomp: Update.
73588         * modules/javaexec: Update.
73589         * MODULES.html.sh (File system functions): Add 'filename', remove
73590         'pathname'.
73591
73592 2007-02-25  Bruno Haible  <bruno@clisp.org>
73593
73594         * modules/printf-frexpl-tests: New file.
73595         * tests/test-printf-frexpl.c: New file.
73596
73597         * modules/printf-frexpl: New file.
73598         * lib/printf-frexpl.h: New file.
73599         * lib/printf-frexpl.c: New file.
73600         * m4/printf-frexpl.m4: New file.
73601
73602 2007-02-25  Bruno Haible  <bruno@clisp.org>
73603
73604         * modules/printf-frexp-tests: New file.
73605         * tests/test-printf-frexp.c: New file.
73606
73607         * modules/printf-frexp: New file.
73608         * lib/printf-frexp.h: New file.
73609         * lib/printf-frexp.c: New file.
73610         * m4/printf-frexp.m4: New file.
73611
73612 2007-02-25  Bruno Haible  <bruno@clisp.org>
73613
73614         Assume automake >= 1.10 for the tests.
73615         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73616         * modules/arctwo-tests: Likewise.
73617         * modules/argp-tests: Likewise.
73618         * modules/avltree-list-tests: Likewise.
73619         * modules/avltree-oset-tests: Likewise.
73620         * modules/avltreehash-list-tests: Likewise.
73621         * modules/carray-list-tests: Likewise.
73622         * modules/crc-tests: Likewise.
73623         * modules/des-tests: Likewise.
73624         * modules/gc-arcfour-tests: Likewise.
73625         * modules/gc-arctwo-tests: Likewise.
73626         * modules/gc-des-tests: Likewise.
73627         * modules/gc-hmac-md5-tests: Likewise.
73628         * modules/gc-hmac-sha1-tests: Likewise.
73629         * modules/gc-md2-tests: Likewise.
73630         * modules/gc-md4-tests: Likewise.
73631         * modules/gc-md5-tests: Likewise.
73632         * modules/gc-pbkdf2-sha1-tests: Likewise.
73633         * modules/gc-rijndael-tests: Likewise.
73634         * modules/gc-sha1-tests: Likewise.
73635         * modules/gc-tests: Likewise.
73636         * modules/getaddrinfo-tests: Likewise.
73637         * modules/hmac-md5-tests: Likewise.
73638         * modules/hmac-sha1-tests: Likewise.
73639         * modules/linked-list-tests: Likewise.
73640         * modules/linkedhash-list-tests: Likewise.
73641         * modules/lock-tests: Likewise.
73642         * modules/md2-tests: Likewise.
73643         * modules/md4-tests: Likewise.
73644         * modules/md5-tests: Likewise.
73645         * modules/rbtree-list-tests: Likewise.
73646         * modules/rbtree-oset-tests: Likewise.
73647         * modules/rbtreehash-list-tests: Likewise.
73648         * modules/read-file-tests: Likewise.
73649         * modules/rijndael-tests: Likewise.
73650         * modules/stdint-tests: Likewise.
73651         * modules/tls-tests: Likewise.
73652
73653 2007-02-24  Bruno Haible  <bruno@clisp.org>
73654
73655         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73656         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73657         function; instead check whether isnan with a double argument links.
73658         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73659         function; instead check whether isnan with a 'long double' argument
73660         links.
73661         Reported by Eric Blake <ebb9@byu.net>.
73662
73663 2007-02-24  Bruno Haible  <bruno@clisp.org>
73664
73665         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73666         defined.
73667         * lib/isnanl.c: Remove all code. Just include isnan.c.
73668         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73669
73670 2007-02-25  Jim Meyering  <jim@meyering.net>
73671
73672         Avoid conflicting types for 'unsetenv' on FreeBSD.
73673         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73674         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73675         in stdlib.h.
73676
73677 2007-02-24  Bruno Haible  <bruno@clisp.org>
73678
73679         * modules/isnanl-nolibm-tests: New file.
73680         * tests/test-isnanl.c: New file.
73681
73682         * modules/isnanl-nolibm: New file.
73683         * lib/isnanl.h: New file.
73684         * lib/isnanl.c: New file.
73685         * m4/isnanl.m4: New file.
73686
73687 2007-02-24  Bruno Haible  <bruno@clisp.org>
73688
73689         * modules/isnan-nolibm-tests: New file.
73690         * tests/test-isnan.c: New file.
73691
73692         * modules/isnan-nolibm: New file.
73693         * lib/isnan.h: New file.
73694         * lib/isnan.c: New file.
73695         * m4/isnan.m4: New file.
73696
73697 2007-02-24  Bruno Haible  <bruno@clisp.org>
73698
73699         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73700         assume that an exponent fits in 20 bits.
73701
73702 2007-02-24  Jim Meyering  <jim@meyering.net>
73703
73704         * m4/regex.m4: Update the description of the configure-time option,
73705         --without-included-regex, to state accurately what the defaults are,
73706         and perhaps to give people an idea why using this option is risky.
73707
73708 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73709
73710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73711         loops on small arguments.  This attempts to avoid the problem
73712         Bruno Haible reported for AIX 4.3.2 in
73713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73714
73715 2007-02-23  Bruno Haible  <bruno@clisp.org>
73716
73717         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73718         Needed for help2man.
73719
73720 2007-02-23  Karl Berry  <karl@gnu.org>
73721
73722         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73723         exists, foo.h should be cvs-ignored, not committed.
73724
73725 2007-02-23  Eric Blake  <ebb9@byu.net>
73726
73727         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73728         * lib/stat-time.h (includes): Likewise.
73729         * lib/utimecmp.c (includes): Likewise.
73730         * lib/utimens.h (includes): Likewise.
73731         * lib/getdate.y (includes): Also include "timespec.h" for use
73732         internal to the module.
73733         * modules/utimens (Depends-on): Revert yesterday's patch.
73734         * modules/nanosleep (Depends-on): Add missing dependency.
73735
73736 2007-02-22  Bruno Haible  <bruno@clisp.org>
73737
73738         * lib/glob.c: Don't include getlogin_r.h.
73739
73740 2007-02-22  Jim Meyering  <jim@meyering.net>
73741
73742         * modules/utimens (Depends-on): Add timespec, required for
73743         utimens.h's inclusion of timespec.h.
73744
73745 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73748         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73749         Schwab in
73750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73751         I'll try to think of a better way to fix the Solaris problem.
73752
73753         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73754         like glibc; on Solaris 10, it fails with errno == EINVAL.
73755         POSIX says the behavior is unspecified if the first argument is NULL,
73756         so play it safe and never pass NULL to the system getcwd.
73757
73758 2007-02-21  Jim Meyering  <jim@meyering.net>
73759
73760         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73761         of gettimeofday.  It would conflict with the one now always
73762         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73763         an IRIX 6.5 build failure.
73764
73765 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         Minor fixups to port to Solaris 10 with Sun C 5.8.
73768         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73769         * modules/getcwd (Depends-on): Add dirfd.
73770         * lib/putenv.c (putenv): #undef it.
73771         (rpl_putenv): New decl.
73772         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73773
73774 2007-02-20  Bruno Haible  <bruno@clisp.org>
73775
73776         * modules/stdio-tests: New file.
73777         * tests/test-stdio.c: New file.
73778
73779         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73780         (Depends-on): Add stdio.
73781         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73782         (Include): Use <stdio.h> instead of vsnprintf.h.
73783         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73784         HAVE_DECL_VSNPRINTF.
73785         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73786
73787         * modules/snprintf (Files): Remove lib/snprintf.h.
73788         (Depends-on): Add stdio.
73789         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73790         (Include): Use <stdio.h> instead of snprintf.h.
73791         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73792         HAVE_DECL_SNPRINTF.
73793         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73794         * lib/getaddrinfo.c: Likewise.
73795
73796         * modules/stdio: New file.
73797         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73798         * lib/snprintf.h: Remove file.
73799         * lib/vsnprintf.h: Remove file.
73800         * lib/.cppi-disable: Remove snprintf.h.
73801         * m4/stdio_h.m4: New file.
73802         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73803
73804 2007-02-20  Jim Meyering  <jim@meyering.net>
73805
73806         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73807         used by e.g., mingw.  From Bruno Haible.
73808
73809 2007-02-19  Bruno Haible  <bruno@clisp.org>
73810
73811         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73812         warnings.
73813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73814
73815 2007-02-19  Bruno Haible  <bruno@clisp.org>
73816
73817         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73818         from mingw users.
73819
73820 2007-02-19  Bruno Haible  <bruno@clisp.org>
73821
73822         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73823         warnings.
73824         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73825
73826 2007-02-19  Jim Meyering  <jim@meyering.net>
73827
73828         Don't use FD after a successful "fdopendir (fd)".
73829         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73830         Reset it by calling dirfd on the just-obtained DIR*.
73831
73832         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73833         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73834
73835 2007-02-18  Bruno Haible  <bruno@clisp.org>
73836
73837         * lib/readlink.c: Include <unistd.h>.
73838         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73839         HAVE_READLINK.
73840         * modules/readlink (Depends-on): Add unistd.
73841         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73842         (Include): Add <unistd.h>.
73843
73844         * lib/getlogin_r.h: Remove file.
73845         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73846         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73847         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73848         HAVE_DECL_GETLOGIN_R.
73849         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73851         (Include): Use <unistd.h> instead of getlogin_r.h.
73852
73853         * lib/getcwd.h: Remove file.
73854         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73855         * lib/xgetcwd.c: Likewise.
73856         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73857         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73858         * modules/getcwd (Files): Remove lib/getcwd.h.
73859         (Depends-on): Add unistd.
73860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73861         (Include): Use <unistd.h> instad of getcwd.h.
73862
73863         * lib/ftruncate.c: Include <unistd.h> first.
73864         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73865         Set HAVE_FTRUNCATE.
73866         * modules/ftruncate (Depends-on): Add unistd.
73867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73868
73869         * lib/fchdir.c: Include <unistd.h> first.
73870         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73872         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73873         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73874         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73875
73876         * lib/dup2.c: Include <unistd.h> first.
73877         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73878         HAVE_DUP2.
73879         * modules/dup2 (Depends-on): Add unistd.
73880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73881
73882         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73883         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73884         REPLACE_CHOWN. Don't define chown as a macro here.
73885         * modules/chown (Depends-on): Add unistd.
73886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73887
73888         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73889         Add definition for GL_LINK_WARNING.
73890         (chown, dup2): New declarations.
73891         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73892         link warning.
73893         (ftruncate): New declaration.
73894         (getcwd): New declaration, taken from old getcwd.h.
73895         (getlogin_r): New declaration, taken from old getlogin_r.h.
73896         (readlink): New declaration.
73897         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73898         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73899         (gl_PREREQ_UNISTD): Remove macro.
73900         (gl_UNISTD_MODULE_INDICATOR): New macro.
73901         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73902         many new variables. Don't set UNISTD_H.
73903         * modules/unistd (Description): Change.
73904         (Depends-on): Add link-warning.
73905         (configure.ac): Update.
73906         (Makefile.am): Create unistd.h always. Substitute many new variables
73907         into it.
73908
73909 2007-02-18  Bruno Haible  <bruno@clisp.org>
73910
73911         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73912         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73913         HAVE_GETSUBOPT.
73914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73915         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73916         * lib/getsubopt.h: Remove file.
73917         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73918         (Depends-on): Add stdlib.
73919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73920         (Includes): Use <stdlib.h> instead of getsubopt.h.
73921         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73922         Set HAVE_GETSUBOPT.
73923         * lib/getsubopt.c: Don't include getsubopt.h.
73924
73925 2007-02-18  Bruno Haible  <bruno@clisp.org>
73926
73927         * modules/fchdir (Depends-on): Add dup2.
73928
73929 2007-02-18  Bruno Haible  <bruno@clisp.org>
73930
73931         * lib/stdlib_.h: Handle glibc's special invocation convention
73932         specially.
73933
73934 2007-02-18  Bruno Haible  <bruno@clisp.org>
73935
73936         * modules/stdlib-tests: New file.
73937         * tests/test-stdlib.c: New file.
73938
73939         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73940         (Depends-on): Add stdlib.
73941         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73942         (Includes): Use <stdlib.h> instead of mkstemp.h.
73943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73944         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73945         * lib/mkstemp.c: Don't include mkstemp.h.
73946         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73947         * lib/stdlib--.h: Don't include mkstemp.h.
73948
73949         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73950         (Depends-on): Add stdlib.
73951         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73952         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73953         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73954         HAVE_MKDTEMP.
73955         * lib/mkdtemp.c: Don't include mkdtemp.h.
73956         * lib/clean-temp.c: Don't include mkdtemp.h.
73957
73958         * modules/exit (Files): Remove lib/exit.h.
73959         (Depends-on): Add stdlib.
73960         (Makefile.am): Remove lib_SOURCES.
73961         (Include): Use <stdlib.h> instead of exit.h.
73962         * lib/argmatch.c: Don't include exit.h.
73963         * lib/execute.c: Likewise.
73964         * lib/pagealign_alloc.c: Likewise.
73965         * lib/pipe.c: Likewise.
73966         * lib/wait-process.c: Likewise.
73967         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73968         * lib/exitfail.c: Likewise.
73969         * lib/savewd.c: Likewise.
73970         * lib/xsetenv.c: Likewise.
73971
73972         * modules/stdlib: New file.
73973         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73974         and extra comments about mkstemp().
73975         * lib/exit.h: Remove file.
73976         * lib/mkdtemp.h: Remove file.
73977         * lib/mkstemp.h: Remove file.
73978         * m4/stdlib_h.m4: New file.
73979         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73980
73981 2007-02-18  Bruno Haible  <bruno@clisp.org>
73982
73983         * modules/math-tests: New file.
73984         * tests/test-math.c: New file.
73985
73986         * modules/math: New file.
73987         * modules/mathl (Files): Remove lib/mathl.h.
73988         (Depends-on): Add math.
73989         (Makefile.am): Don't mention mathl.h.
73990         (Include): Use <math.h> instead of mathl.h.
73991         * lib/math_.h: New file.
73992         * lib/mathl.h: Remove file.
73993         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73994         mathl.h.
73995         * lib/asinl.c: Likewise.
73996         * lib/atanl.c: Likewise.
73997         * lib/ceill.c: Likewise.
73998         * lib/cosl.c: Likewise.
73999         * lib/expl.c: Likewise.
74000         * lib/floorl.c: Likewise.
74001         * lib/frexpl.c: Likewise.
74002         * lib/ldexpl.c: Likewise.
74003         * lib/logl.c: Likewise.
74004         * lib/sincosl.c: Likewise.
74005         * lib/sinl.c: Likewise.
74006         * lib/sqrtl.c: Likewise.
74007         * lib/tanl.c: Likewise.
74008         * lib/trigl.c: Likewise.
74009         * m4/math_h.m4: New file.
74010         * MODULES.html.sh (Mathematics): Add math.
74011
74012 2007-02-17  Bruno Haible  <bruno@clisp.org>
74013
74014         * modules/wctype-tests: New file.
74015         * tests/test-wctype.c: New file.
74016
74017         * modules/wchar-tests: New file.
74018         * tests/test-wchar.c: New file.
74019
74020         * modules/unistd-tests: New file.
74021         * tests/test-unistd.c: New file.
74022
74023         * modules/time-tests: New file.
74024         * tests/test-time.c: New file.
74025
74026         * modules/sysexits-tests: New file.
74027         * tests/test-sysexits.c: New file.
74028
74029         * modules/sys_time-tests: New file.
74030         * tests/test-sys_time.c: New file.
74031
74032         * modules/sys_stat-tests: New file.
74033         * tests/test-sys_stat.c: New file.
74034
74035         * modules/sys_socket-tests: New file.
74036         * tests/test-sys_socket.c: New file.
74037
74038         * modules/sys_select-tests: New file.
74039         * tests/test-sys_select.c: New file.
74040
74041         * modules/string-tests: New file.
74042         * tests/test-string.c: New file.
74043
74044         * modules/stdbool-tests: New file.
74045         * tests/test-stdbool.c: New file.
74046
74047         * modules/netinet_in-tests: New file.
74048         * tests/test-netinet_in.c: New file.
74049
74050         * modules/inttypes-tests: New file.
74051         * tests/test-inttypes.c: New file.
74052
74053         * modules/fcntl-tests: New file.
74054         * tests/test-fcntl.c: New file.
74055
74056         * modules/byteswap-tests: New file.
74057         * tests/test-byteswap.c: New file.
74058
74059         * modules/arpa_inet-tests: New file.
74060         * tests/test-arpa_inet.c: New file.
74061
74062 2007-02-17  Bruno Haible  <bruno@clisp.org>
74063
74064         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74065         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74066         if the corresponding module is not enabled. Emit link warnings if
74067         the function is used nevertheless.
74068         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74069         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74070         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74071         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74072         * modules/inttypes (Depends-on): Add link-warning.
74073         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74074         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74075         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74076         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74077         * modules/imaxdiv (configure.ac): Likewise.
74078         * modules/strtoimax (configure.ac): Likewise.
74079         * modules/strtoumax (configure.ac): Likewise.
74080
74081 2007-02-17  Bruno Haible  <bruno@clisp.org>
74082
74083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74084         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74085         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74086         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74087
74088 2007-02-17  Bruno Haible  <bruno@clisp.org>
74089
74090         * modules/link-warning: New file.
74091         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74092         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74093         * modules/string (Depends-on): Add link-warning.
74094         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74095         string.h.
74096         * MODULES.html.sh (Support for building libraries and executables): Add
74097         link-warning.
74098
74099 2007-02-17  Bruno Haible  <bruno@clisp.org>
74100
74101         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74102         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74103         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74104         long lines.
74105
74106 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74107             Bruno Haible  <bruno@clisp.org>
74108
74109         * modules/tmpfile: New file.
74110         * lib/tmpfile.c: New file.
74111         * m4/tmpfile.m4: New file.
74112         * MODULES.html.sh (func_all_modules): New section "Input/output".
74113
74114 2007-02-15  Bruno Haible  <bruno@clisp.org>
74115
74116         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74117         (supports_delete_on_close): New function.
74118         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74119
74120 2007-02-14  Bruno Haible  <bruno@clisp.org>
74121
74122         * modules/mbspcasecmp-tests: New file.
74123         * tests/test-mbspcasecmp.sh: New file.
74124         * tests/test-mbspcasecmp.c: New file.
74125
74126         New module mbspcasecmp.
74127         * modules/mbspcasecmp: New file.
74128         * lib/mbspcasecmp.c: New file.
74129         * lib/string_.h (strncasecmp): Change warning message.
74130         (mbspcasecmp): New declaration.
74131         * m4/mbspcasecmp.m4: New file.
74132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74133         GNULIB_MBSPCASECMP.
74134         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74135         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74136
74137 2007-02-14  Bruno Haible  <bruno@clisp.org>
74138
74139         * modules/mbsncasecmp-tests: New file.
74140         * tests/test-mbsncasecmp.sh: New file.
74141         * tests/test-mbsncasecmp.c: New file.
74142
74143         New module mbsncasecmp.
74144         * modules/mbsncasecmp: New file.
74145         * lib/mbsncasecmp.c: New file.
74146         * lib/string_.h (mbsncasecmp): New declaration.
74147         * m4/mbsncasecmp.m4: New file.
74148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74149         GNULIB_MBSNCASECMP.
74150         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74151         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74152
74153 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74156         Verify that it doesn't overlap with our flags.
74157         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74158         do not have the desired effect in multibyte locales; instead, use
74159         mbscasecmp.
74160         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74161         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74162         we don't require GNU fnmatch ourselves (if our users require it, they
74163         should do so explicitly).
74164
74165         Fix regex code so it doesn't rely on strcasecmp.
74166         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74167         Otherwise, include gnulib's langinfo.h.
74168         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74169         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74170         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74171         * modules/regex (FILES): Remove m4/codeset.m4.
74172         (Depends-on): Add localcharset.  Remove strcase.
74173
74174 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74175
74176         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74178
74179 2007-02-13  Bruno Haible  <bruno@clisp.org>
74180
74181         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74183
74184 2007-02-12  Bruno Haible  <bruno@clisp.org>
74185
74186         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74187         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74188         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74189         time warning rather than a link error.
74190
74191 2007-02-12  Bruno Haible  <bruno@clisp.org>
74192
74193         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74194         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74196
74197 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74200         args, not 2.
74201
74202 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         New module 'time', so that apps can include <time.h> as per
74205         POSIX and GNU instead of separate include files like time_r.h
74206         and timegm.h.  This implementation tries out a simpler approach
74207         for replacing decls in standard include files (as compared to
74208         the string module), somewhat as an experiment.
74209
74210         * config/srclist.txt: Comment out mktime.c for now.
74211         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74212         since it doesn't apply any more.  Use generic wording instead.
74213         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74214         'time'.
74215         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74216         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74217         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74218         Don't include <sys/types.h>; no longer needed since we assume C89.
74219         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74220         * lib/strftime.c: Likewise.
74221         * lib/time_r.c: Likewise.
74222         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74223         * lib/nanosleep.c: Include <time.h> first, to check interface.
74224         * lib/strptime.c: Likewise.
74225         * lib/time_r.c: Likewise.
74226         * lib/timegm.c: Likewise.
74227         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74228         needed.
74229         * lib/timegm.c: Don't include timegm.h; no longer needed.
74230         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74231         time.h now handles any problems in that area.
74232         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74233         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74234         that time.h defines struct timespec.
74235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74236         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74237         handles that.
74238         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74239         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74240         needed.  Set REPLACE_LOCALTIME.
74241         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74242         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74243         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74244         nanosleep; time_h.m4 now does that.  Don't require
74245         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74246         module handles this now.
74247         * modules/getdate (Depends-on): Remove timespec.  Add time.
74248         * modules/nanosleep (Depends-on): Likewise.
74249         * modules/stat-time (Depends-on): Likewise.
74250         * modules/nanosleep (Include): Include time.h, not timespec.h.
74251         * modules/strptime (Files): Remove lib/strptime.h.
74252         (Depends-on): Add extensions, time.
74253         (Include): Include time.h, not strptime.h.
74254         * modules/time_r (Files): Remove lib/time_r.h.
74255         (Depends-on): Add time.
74256         (Include): Include time.h, not time_r.h.
74257         * modules/timegm: Likewise.
74258         * modules/timespec (Description): Now does timespec-related decls
74259         of our own, instead of struct timespec itself.
74260         (Depends-on): Add time; remove extensions.
74261         (Maintainer): Add self.
74262         * modules/utimecmp (Depends-on): Add time; remove timespec.
74263         * modules/utimens (Depends-on): Likewise.
74264         * modules/xnanosleep (Depends-on): Likewise.
74265
74266 2007-02-11  Bruno Haible  <bruno@clisp.org>
74267
74268         * lib/c-strstr.c: Include allocsa.h.
74269         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74270         * lib/c-strcasestr.c: Include allocsa.h.
74271         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74272         * lib/strcasestr.c: Include allocsa.h.
74273         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74274         * lib/mbsstr.c: Include allocsa.h.
74275         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74276         allocsa/freesa instead of malloc/free.
74277         * lib/mbscasestr.c: Include allocsa.h.
74278         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74279         allocsa/freesa instead of malloc/free.
74280         * modules/c-strstr (Depends-on): Add allocsa.
74281         * modules/c-strcasestr (Depends-on): Likewise.
74282         * modules/strcasestr (Depends-on): Likewise.
74283         * modules/mbsstr (Depends-on): Likewise.
74284         * modules/mbscasestr (Depends-on): Likewise.
74285
74286 2007-02-11  Bruno Haible  <bruno@clisp.org>
74287
74288         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74289
74290         * modules/mbsspn-tests: New file.
74291         * tests/test-mbsspn.sh: New file.
74292         * tests/test-mbsspn.c: New file.
74293
74294 2007-02-11  Bruno Haible  <bruno@clisp.org>
74295
74296         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74297
74298         * modules/mbspbrk-tests: New file.
74299         * tests/test-mbspbrk.sh: New file.
74300         * tests/test-mbspbrk.c: New file.
74301
74302 2007-02-11  Bruno Haible  <bruno@clisp.org>
74303
74304         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74305         unneeded cast.
74306
74307         * modules/mbscspn-tests: New file.
74308         * tests/test-mbscspn.sh: New file.
74309         * tests/test-mbscspn.c: New file.
74310
74311 2007-02-11  Bruno Haible  <bruno@clisp.org>
74312
74313         * modules/mbscasecmp-tests: New file.
74314         * tests/test-mbscasecmp.sh: New file.
74315         * tests/test-mbscasecmp.c: New file.
74316
74317 2007-02-11  Bruno Haible  <bruno@clisp.org>
74318
74319         Ensure O(n) worst-case complexity of mbscasestr.
74320         * lib/mbscasestr.c: Include stdbool.h.
74321         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74322         functions.
74323         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74324         the bookkeeping indicates that it's worth it.
74325         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74326
74327         * modules/mbscasestr-tests: New file.
74328         * tests/test-mbscasestr1.c: New file.
74329         * tests/test-mbscasestr2.sh: New file.
74330         * tests/test-mbscasestr2.c: New file.
74331         * tests/test-mbscasestr3.sh: New file.
74332         * tests/test-mbscasestr3.c: New file.
74333         * tests/test-mbscasestr4.sh: New file.
74334         * tests/test-mbscasestr4.c: New file.
74335         * m4/locale-tr.m4: New file.
74336
74337 2007-02-11  Bruno Haible  <bruno@clisp.org>
74338
74339         Ensure O(n) worst-case complexity of mbsstr.
74340         * lib/mbsstr.c: Include stdbool.h.
74341         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74342         functions.
74343         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74344         bookkeeping indicates that it's worth it.
74345         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74346
74347         * modules/mbsstr-tests: New file.
74348         * tests/test-mbsstr1.c: New file.
74349         * tests/test-mbsstr2.sh: New file.
74350         * tests/test-mbsstr2.c: New file.
74351         * tests/test-mbsstr3.sh: New file.
74352         * tests/test-mbsstr3.c: New file.
74353         * m4/locale-fr.m4: New file.
74354
74355 2007-02-11  Bruno Haible  <bruno@clisp.org>
74356
74357         * lib/mbsrchr.c (mbsrchr): Fix bug.
74358
74359         * modules/mbsrchr-tests: New file.
74360         * tests/test-mbsrchr.sh: New file.
74361         * tests/test-mbsrchr.c: New file.
74362
74363 2007-02-11  Bruno Haible  <bruno@clisp.org>
74364
74365         * lib/mbschr.c (mbschr): Fix bug.
74366
74367         * modules/mbschr-tests: New file.
74368         * tests/test-mbschr.sh: New file.
74369         * tests/test-mbschr.c: New file.
74370         * m4/locale-zh.m4: New file.
74371
74372 2007-02-11  Bruno Haible  <bruno@clisp.org>
74373
74374         Support for copying multibyte string iterators.
74375         * lib/mbiter.h: Include <string.h>.
74376         (mbiter_multi_copy): New function.
74377         (mbi_copy): New macro.
74378         * lib/mbuiter.h: Include <string.h>.
74379         (mbuiter_multi_copy): New function.
74380         (mbui_copy): New macro.
74381
74382 2007-02-11  Bruno Haible  <bruno@clisp.org>
74383
74384         New module mbslen.
74385         * modules/mbslen: New file.
74386         * lib/mbslen.c: New file.
74387         * lib/string_.h (mbslen): New declaration.
74388         * m4/mbslen.m4: New file.
74389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74390         GNULIB_MBSLEN.
74391         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74392         * MODULES.html.sh (Internationalization functions): Add mbslen.
74393
74394 2007-02-11  Bruno Haible  <bruno@clisp.org>
74395
74396         Ensure O(n) worst-case complexity of strcasestr substitute.
74397         * lib/strcasestr.c: Include stdbool.h.
74398         (knuth_morris_pratt): New function.
74399         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74400         bookkeeping indicates that it's worth it.
74401         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74402
74403         * modules/strcasestr-tests: New file.
74404         * tests/test-strcasestr.c: New file.
74405
74406 2007-02-11  Bruno Haible  <bruno@clisp.org>
74407
74408         Ensure O(n) worst-case complexity of c_strcasestr.
74409         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74410         (knuth_morris_pratt): New function.
74411         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74412         the bookkeeping indicates that it's worth it.
74413         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74414
74415         * modules/c-strcasestr-tests: New file.
74416         * tests/test-c-strcasestr.c: New file.
74417
74418 2007-02-11  Bruno Haible  <bruno@clisp.org>
74419
74420         Ensure O(n) worst-case complexity of c_strstr.
74421         * lib/c-strstr.c: Include stdbool.h, string.h.
74422         (knuth_morris_pratt): New function.
74423         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74424         bookkeeping indicates that it's worth it.
74425         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74426
74427         * lib/c-strstr.c: Complete rewrite for maintainability.
74428
74429         * modules/c-strstr-tests: New file.
74430         * tests/test-c-strstr.c: New file.
74431
74432 2007-02-11  Bruno Haible  <bruno@clisp.org>
74433
74434         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74435         5.2.1 and earlier, whereby \055 was treated just like the range
74436         delimiter '-'.
74437         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74438
74439 2007-02-08  Bruno Haible  <bruno@clisp.org>
74440
74441         * modules/regex (Depends-on): Add stdbool.
74442         Reported by Dalibor Topic <robilad@kaffe.org>.
74443
74444 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74447         Prefer returning from main to exiting from it.
74448         Remove unnecessary parens after sizeof.
74449
74450 2007-02-05  Bruno Haible  <bruno@clisp.org>
74451
74452         New module mbssep.
74453         * modules/mbssep: New file.
74454         * lib/mbssep.c: New file.
74455         * lib/string_.h (strsep): Add a conditional link warning.
74456         (mbssep): New declaration.
74457         * m4/mbssep.m4: New file.
74458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74459         GNULIB_MBSSEP.
74460         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74461         * MODULES.html.sh (Internationalization functions): Add mbssep.
74462
74463 2007-02-05  Bruno Haible  <bruno@clisp.org>
74464
74465         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74466         Optimize search in case of 1 delimiter.
74467
74468 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74469
74470         * lib/acl.h: Include sys/types.h before sys/acl.h.
74471
74472 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74473
74474         Merge upstream fix for glibc bugzilla #3957:
74475
74476         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74477
74478         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74479         bit for RE_HAT_LISTS_NOT_NEWLINE.
74480         (build_charclass_op): Remove bogus comment.
74481
74482 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74483
74484         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74485
74486 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74487
74488         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74489         * lib/memmem.c [!defined _LIBC]: Include config.h.
74490
74491 2007-02-04  Bruno Haible  <bruno@clisp.org>
74492
74493         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74494         warning message.
74495
74496 2007-02-04  Bruno Haible  <bruno@clisp.org>
74497
74498         New module mbstok_r.
74499         * modules/mbstok_r: New file.
74500         * lib/mbstok_r.c: New file.
74501         * lib/string_.h (strtok_r): Change argument names to match the
74502         comments. Add a conditional link warning.
74503         (mbstok_r): New declaration.
74504         * m4/mbstok_r.m4: New file.
74505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74506         GNULIB_MBSTOK_R.
74507         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74508         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74509
74510 2007-02-04  Bruno Haible  <bruno@clisp.org>
74511
74512         New module mbsspn.
74513         * modules/mbsspn: New file.
74514         * lib/mbsspn.c: New file.
74515         * lib/string_.h (strspn): Add a conditional link warning.
74516         (mbsspn): New declaration.
74517         * m4/mbsspn.m4: New file.
74518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74519         GNULIB_MBSSPN.
74520         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74521         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74522
74523 2007-02-04  Bruno Haible  <bruno@clisp.org>
74524
74525         New module mbspbrk.
74526         * modules/mbspbrk: New file.
74527         * lib/mbspbrk.c: New file.
74528         * lib/string_.h (strpbrk): Add a conditional link warning.
74529         (mbspbrk): New declaration.
74530         * m4/mbspbrk.m4: New file.
74531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74532         GNULIB_MBSPBRK.
74533         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74534         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74535
74536 2007-02-04  Bruno Haible  <bruno@clisp.org>
74537
74538         New module mbscspn.
74539         * modules/mbscspn: New file.
74540         * lib/mbscspn.c: New file.
74541         * lib/string_.h (strcspn): Add a conditional link warning.
74542         (mbscspn): New declaration.
74543         * m4/mbscspn.m4: New file.
74544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74545         GNULIB_MBSCSPN.
74546         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74547         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74548
74549 2007-02-04  Bruno Haible  <bruno@clisp.org>
74550
74551         New module mbscasestr, reduced goal of strcasestr.
74552         * modules/mbscasestr: New file.
74553         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74554         (mbscasestr): Renamed from strcasestr.
74555         * lib/strcasestr.c: Don't include mbuiter.h.
74556         (strcasestr): Remove support for multibyte locales.
74557         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74558         Change the conditional link warning.
74559         (mbscasestr): New declaration.
74560         * m4/mbscasestr.m4: New file.
74561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74562         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74563         REPLACE_STRCASESTR.
74564         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74566         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74567         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74568         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74569         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74570         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74571         (Depends-on): Remove mbuiter.
74572         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74573
74574 2007-02-04  Bruno Haible  <bruno@clisp.org>
74575
74576         Simplify handling of strncasecmp.
74577         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74578         the conditional link warning.
74579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74580         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74581         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74582         * modules/strcase (configure.ac): Don't invoke
74583         gl_STRING_MODULE_INDICATOR.
74584         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74585
74586 2007-02-04  Bruno Haible  <bruno@clisp.org>
74587
74588         New module mbscasecmp, reduced goal of strcasecmp.
74589         * modules/mbscasecmp: New file.
74590         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74591         (mbscasecmp): Renamed from strcasecmp.
74592         * lib/strcasecmp.c: Don't include mbuiter.h.
74593         (strcasecmp): Remove support for multibyte locales.
74594         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74595         Change the conditional link warning.
74596         (mbscasecmp): New declaration.
74597         * m4/mbscasecmp.m4: New file.
74598         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74599         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74600         REPLACE_STRCASECMP.
74601         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74602         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74603         GNULIB_MBSCASECMP.
74604         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74605         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74606         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74607         (Depends-on): Remove mbuiter.
74608         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74609
74610 2007-02-04  Bruno Haible  <bruno@clisp.org>
74611
74612         New module mbsstr. Remove module strstr.
74613         * modules/mbsstr: New file.
74614         * modules/strstr: Remove file.
74615         * lib/mbsstr.c: Renamed from lib/strstr.c.
74616         (mbsstr): Renamed from strstr.
74617         * lib/string_.h (strstr): Remove declaration. Change the conditional
74618         link warning.
74619         (mbsstr): New declaration.
74620         * m4/mbsstr.m4: New file.
74621         * m4/strstr.m4: Remove file.
74622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74623         REPLACE_STRSTR.
74624         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74625         Don't initialize GNULIB_STRSTR.
74626         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74627         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74628         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74629         (Support for systems lacking ANSI C 89): Remove strstr.
74630
74631 2007-02-04  Bruno Haible  <bruno@clisp.org>
74632
74633         New module mbsrchr.
74634         * modules/mbsrchr: New file.
74635         * lib/mbsrchr.c: New file.
74636         * lib/string_.h (strrchr): Add a conditional link warning.
74637         (mbsrchr): New declaration.
74638         * m4/mbsrchr.m4: New file.
74639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74640         GNULIB_MBSRCHR.
74641         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74642         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74643
74644 2007-02-04  Bruno Haible  <bruno@clisp.org>
74645
74646         New module mbschr.
74647         * modules/mbschr: New file.
74648         * lib/mbschr.c: New file.
74649         * lib/string_.h (strchr): Add a conditional link warning.
74650         (mbschr): New declaration.
74651         * m4/mbschr.m4: New file.
74652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74653         GNULIB_MBSCHR.
74654         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74655         * MODULES.html.sh (Internationalization functions): Add mbschr.
74656
74657 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74658
74659         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74660
74661         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74662
74663 2007-02-04  Bruno Haible  <bruno@clisp.org>
74664
74665         New module description section 'configure.ac-early'.
74666         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74667         (func_get_autoconf_early_snippet): New function.
74668         (func_import, func_create_testdir): Use it. Remove special cases for
74669         modules 'extensions' and 'lock'.
74670         * modules/extensions (configure.ac-early): Require
74671         gl_USE_SYSTEM_EXTENSIONS.
74672         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74673
74674 2007-02-04  Bruno Haible  <bruno@clisp.org>
74675
74676         Make use of gcj-4.3's -fsource and -ftarget option.
74677         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74678         and if so try the options -fsource and -ftarget.
74679         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74680         source_version, ftarget_option, target_version arguments.
74681         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74682         (is_envjavac_oldgcj_14_14_usable): Renamed from
74683         is_envjavac_gcj_14_14_usable.
74684         (is_envjavac_oldgcj_14_13_usable): Renamed from
74685         is_envjavac_gcj_14_13_usable.
74686         (is_gcj_present): Update.
74687         (is_gcj_43, is_gcj43_usable): New functions.
74688         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74689         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74690         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74691         try the options -fsource and -ftarget.
74692
74693 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74696         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74697         larger value.
74698
74699 2007-02-03  Jim Meyering  <jim@meyering.net>
74700
74701         Give tools a better chance to allocate space for very large buffers.
74702         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74703
74704         Make pwd and readlink work also when run with an unreadable parent dir
74705         on systems with openat support.
74706         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74707         provided getcwd function, even when we have openat support.
74708         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74709
74710 2007-02-02  Bruno Haible  <bruno@clisp.org>
74711
74712         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74713         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74714         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74715         portability problems if one of these functions is only used on specific
74716         platforms.
74717         Reported by Paul Eggert.
74718
74719 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74722         is causing more trouble than it's curing.
74723         * lib/regex_internal.h (__mempcpy): Remove.
74724         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74725         (and make the code a tad smaller to boot).
74726         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74727
74728 2007-02-02  Jim Meyering  <jim@meyering.net>
74729
74730         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74731         section, not in the Makefile.am: one.
74732
74733 2007-02-02  Eric Blake  <ebb9@byu.net>
74734
74735         * lib/strchrnul.c: Always include config.h first.
74736
74737         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74738         gnulib strstr is not necessary here.
74739
74740 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74741
74742         * m4/socklen.m4: Fix typo.
74743
74744 2007-02-02  Eric Blake  <ebb9@byu.net>
74745
74746         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74747         * modules/netinet_in (Makefile.am): Likewise.
74748
74749 2007-02-01  Bruno Haible  <bruno@clisp.org>
74750
74751         * lib/string_.h (GL_LINK_WARNING): New macro.
74752         (strcasecmp, strstr, strcasestr): If provided by the system,
74753         conditionally define as a macro that leads to a warning instead of to
74754         an error.
74755         (strncasecmp): Conditionally define as a macro that leads to a warning.
74756
74757 2007-02-01  Karl Berry  <karl@gnu.org>
74758
74759         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74760
74761 2007-02-01  Bruno Haible  <bruno@clisp.org>
74762
74763         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74764         renamings.
74765
74766 2007-02-01  Eric Blake  <ebb9@byu.net>
74767
74768         * modules/regex (Depends-on): Revert dependence on mempcpy.
74769         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74770         module's definition of mempcpy.
74771         Reported by Paul Eggert.
74772
74773 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74774
74775         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74776         the symbol XYZ before redefining it.  This fixes a problem with
74777         programs that don't use XYZ, when compiled on systems that define
74778         XYZ to something else.
74779
74780 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74783         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74784         writeable to group or other and (2) is intended to have a special
74785         mode bit that is set or cleared.  In such a case, the directory
74786         should be neither group- nor other-writeable until the special
74787         mode bits are right.
74788
74789 2007-01-31  Eric Blake  <ebb9@byu.net>
74790
74791         * modules/mountlist (Depends-on): Add strstr.
74792
74793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74794         bug.
74795         * modules/string (Makefile.am): Remove redundant replacement.
74796         * modules/regex (Depends-on): Add mempcpy.
74797
74798 2007-01-31  Bruno Haible  <bruno@clisp.org>
74799
74800         New module description field 'Link'.
74801         * gnulib-tool (func_usage): Document --extract-link-directive.
74802         (sed_extract_prog): Recognize 'Link' directive.
74803         (func_get_link_directive): New function.
74804         (func_import): Show summary of link directives.
74805         Handle --extract-link-directive option.
74806         * modules/acl (Link): New section.
74807         * modules/clock-time (Link): New section.
74808         * modules/euidaccess (Link): New section.
74809         * modules/gettext (Link): New section.
74810         * modules/iconv (Link): New section.
74811         * modules/lock (Link): New section.
74812         * modules/nanosleep (Link): New section.
74813         * modules/readline (Link): New section.
74814
74815 2007-01-27  Bruno Haible  <bruno@clisp.org>
74816
74817         Enforce the use of gnulib modules for unportable <string.h> functions.
74818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74819         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74820         (gl_HEADER_STRING_H_BODY): Require it.
74821         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74822         the symbol XYZ to one that gives a link error.
74823         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74824         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74825         * modules/mempcpy (configure.ac): Likewise.
74826         * modules/memrchr (configure.ac): Likewise.
74827         * modules/stpcpy (configure.ac): Likewise.
74828         * modules/stpncpy (configure.ac): Likewise.
74829         * modules/strcase (configure.ac): Likewise.
74830         * modules/strcasestr (configure.ac): Likewise.
74831         * modules/strchrnul (configure.ac): Likewise.
74832         * modules/strdup (configure.ac): Likewise.
74833         * modules/strndup (configure.ac): Likewise.
74834         * modules/strnlen (configure.ac): Likewise.
74835         * modules/strpbrk (configure.ac): Likewise.
74836         * modules/strsep (configure.ac): Likewise.
74837         * modules/strstr (configure.ac): Likewise.
74838         * modules/strtok_r (configure.ac): Likewise.
74839
74840 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74841
74842         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74843
74844 2007-01-30  Jim Meyering  <jim@meyering.net>
74845
74846         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74847
74848 2007-01-29  Bruno Haible  <bruno@clisp.org>
74849
74850         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74851         * lib/execute.c: Likewise.
74852         * lib/pipe.c: Likewise.
74853         * lib/printf-args.h: Likewise.
74854         * lib/printf-args.c: Likewise.
74855         * lib/printf-parse.c: Likewise.
74856         * lib/vasnprintf.c: Likewise.
74857
74858 2007-01-29  Eric Blake  <ebb9@byu.net>
74859
74860         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74861         declaration.
74862
74863 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74864
74865         * lib/strptime.h (strptime): Use 'restrict' for args where
74866         POSIX requires this.
74867         * lib/strptime.c (strptime): Likewise.
74868         Change license notice from LGPL to GPL, since gnulib-tool will
74869         change this as needed.
74870         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74871         defined.
74872         Include "strptime.h" first, to check interface.
74873         Do not #undef _LIBC and _NL_CURRENT.
74874         Do not include <stdlib.h>; no longer needed.
74875         Include "time_r.h" and declare ptime_locale_status
74876         only if _LIBC is not defined.
74877         (__P): Remove unused macro.
74878         (match_string): Bring back glibc version, but use it only if _LIBC
74879         is defined.
74880         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74881         Remove unnecessary assertion and abort() call.
74882         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74883         * m4/strptime.m4: Fix serial number comment.
74884         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74885         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74886         (Depends-on): Add time_r.
74887
74888 2007-01-29  Bruno Haible  <bruno@clisp.org>
74889
74890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74891         strptime.
74892         * modules/strptime (Depends-on): Add stdbool.
74893         * lib/strptime.h: Include <time.h> always. Add comments.
74894
74895 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74896
74897         * modules/strptime: New file.
74898         * lib/strptime.h: New file.
74899         * lib/strptime.c: New file.
74900         * m4/strptime.m4: New file.
74901
74902 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74903
74904         * MODULES.html.sh: New module mpsort.
74905         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74906
74907         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74908         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74910         All uses changed.
74911         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74912         All uses changed.
74913         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74914         to _Restrict_.
74915         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74916         the parameter matches the prototype.
74917
74918 2007-01-28  Jim Meyering  <jim@meyering.net>
74919
74920         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74921         sys/time.h here, reverting that part of the previous patch:
74922         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74923
74924 2007-01-28  Bruno Haible  <bruno@clisp.org>
74925
74926         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74927         value of $(SYS_TIME_H).
74928         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74929         remove it conditionally, too. [added by Jim Meyering]
74930         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74932         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74933         GETTIMEOFDAY_REPLACEMENT to 1.
74934
74935 2007-01-28  Bruno Haible  <bruno@clisp.org>
74936
74937         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74938         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74940         Set UNISTD_H instead of UNISTD_H2.
74941         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74942
74943 2007-01-28  Bruno Haible  <bruno@clisp.org>
74944
74945         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74946         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74947
74948 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74949
74950         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74951         (func_create_testdir): Ensure C locale for `grep' and `tr'
74952         character ranges.
74953         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74954         ACLOCAL_AMFLAGS parsing state machine.
74955
74956 2007-01-27  Bruno Haible  <bruno@clisp.org>
74957
74958         * modules/unistr/base: Update.
74959
74960 2007-01-27  Bruno Haible  <bruno@clisp.org>
74961
74962         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74963         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74964         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74965         modules/unistr/u32-mbtouc.
74966         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74967         * lib/unistr.h: Update.
74968         * lib/linebreak.c: Update.
74969         * modules/unistr/u32-mbtouc: Renamed from
74970         modules/unistr/u32-mbtouc-safe.
74971         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74972         * lib/unistr.h: Update.
74973         * lib/unistr/u32-to-u8.c: Update.
74974         * lib/unistr/u32-to-u16.c: Update.
74975
74976 2007-01-27  Bruno Haible  <bruno@clisp.org>
74977
74978         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74979         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74980         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74981         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74982         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74983         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74984         modules/unistr/u16-mbtouc.
74985         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74986         * lib/unistr.h: Update.
74987         * lib/linebreak.c: Update.
74988         * modules/linebreak: Update.
74989         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74990         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74991         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74992         * modules/unistr/u16-mbtouc: Renamed from
74993         modules/unistr/u16-mbtouc-safe.
74994         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74995         * lib/unistr.h: Update.
74996         * lib/unistr/u16-to-u8.c: Update.
74997         * modules/unistr/u16-to-u8: Update.
74998         * lib/unistr/u16-to-u32.c: Update.
74999         * modules/unistr/u16-to-u32: Update.
75000
75001 2007-01-27  Bruno Haible  <bruno@clisp.org>
75002
75003         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75004         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75005         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75006         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75007         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75008         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75009         modules/unistr/u8-mbtouc.
75010         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75011         * lib/unistr.h: Update.
75012         * lib/striconveh.c: Update.
75013         * modules/striconveh: Update.
75014         * lib/linebreak.c: Update.
75015         * modules/linebreak: Update.
75016         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75017         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75018         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75019         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75020         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75021         * lib/unistr.h: Update.
75022         * lib/striconveh.c: Update.
75023         * modules/striconveh: Update.
75024         * lib/unistr/u8-to-u16.c: Update.
75025         * modules/unistr/u8-to-u16: Update.
75026         * lib/unistr/u8-to-u32.c: Update.
75027         * modules/unistr/u8-to-u32: Update.
75028
75029 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75030
75031         Sync from Libtool.
75032         * lib/argz.c: Do not include strings.h nor memory.h, include
75033         string.h unconditionally.  Patch by Simon Josefsson.
75034
75035 2007-01-27  Bruno Haible  <bruno@clisp.org>
75036
75037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75038         from gl_HEADER_STRING_H_BODY.
75039         (gl_HEADER_STRING_H_BODY): Require it.
75040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75041         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75042         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75043         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75045         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75047         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75048         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75051         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75052         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75053         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75054         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75055
75056 2007-01-27  Bruno Haible  <bruno@clisp.org>
75057
75058         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75059         check_PROGRAMS into noinst_PROGRAMS.
75060         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75061         check_PROGRAMS in this case.
75062         (func_import): Set for_test to false.
75063         (func_create_testdir): Set for_test to true.
75064
75065 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75066             Bruno Haible  <bruno@clisp.org>
75067
75068         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75069         (Depends-on): Add string.
75070         (Includes): Use <string.h> instead of strcasestr.h.
75071         * modules/string (Makefile.am): Also substitute the value of
75072         REPLACE_STRCASESTR.
75073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75074         assume strcasestr is declared in <string.h> not <strings.h>. Also
75075         set REPLACE_STRCASESTR.
75076         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75077         REPLACE_STRCASESTR.
75078         * lib/strcasestr.h: Remove file.
75079         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75080         * lib/string_.h (strcasestr): New declaration.
75081
75082 2007-01-27  Bruno Haible  <bruno@clisp.org>
75083
75084         * lib/string_.h: Use 'extern'.
75085
75086 2007-01-27  Jim Meyering  <jim@meyering.net>
75087
75088         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75089         of set-but-not-used local, "q".
75090
75091         * lib/mempcpy.c: Include <config.h> before <string.h>.
75092         This fixes a compilation error on HP-UX, due to the system's
75093         "restrict"-using mempcpy prototype.
75094
75095 2007-01-26  Bruno Haible  <bruno@clisp.org>
75096
75097         Small optimization.
75098         * lib/javacomp.c: Include c-strstr.h.
75099          (is_envjavac_gcj): Use c_strstr instead of strstr.
75100         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75101
75102 2007-01-26  Bruno Haible  <bruno@clisp.org>
75103
75104         * MODULES.html.sh (Unicode string functions): Add the new modules.
75105
75106         * modules/uniconv/u32-strconv-to-locale: New file.
75107         * lib/uniconv/u32-strconv-to-locale.c: New file.
75108
75109         * modules/uniconv/u16-strconv-to-locale: New file.
75110         * lib/uniconv/u16-strconv-to-locale.c: New file.
75111
75112         * modules/uniconv/u8-strconv-to-locale: New file.
75113         * lib/uniconv/u8-strconv-to-locale.c: New file.
75114
75115         * modules/uniconv/u32-strconv-from-locale: New file.
75116         * lib/uniconv/u32-strconv-from-locale.c: New file.
75117
75118         * modules/uniconv/u16-strconv-from-locale: New file.
75119         * lib/uniconv/u16-strconv-from-locale.c: New file.
75120
75121         * modules/uniconv/u8-strconv-from-locale: New file.
75122         * lib/uniconv/u8-strconv-from-locale.c: New file.
75123
75124         * modules/uniconv/u32-strconv-to-enc: New file.
75125         * lib/uniconv/u32-strconv-to-enc.c: New file.
75126         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75127         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75128
75129         * modules/uniconv/u16-strconv-to-enc: New file.
75130         * lib/uniconv/u16-strconv-to-enc.c: New file.
75131         * lib/uniconv/u-strconv-to-enc.h: New file.
75132         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75133         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75134
75135         * modules/uniconv/u8-strconv-to-enc: New file.
75136         * lib/uniconv/u8-strconv-to-enc.c: New file.
75137         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75138         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75139
75140         * modules/uniconv/u32-strconv-from-enc: New file.
75141         * lib/uniconv/u32-strconv-from-enc.c: New file.
75142         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75143         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75144
75145         * modules/uniconv/u16-strconv-from-enc: New file.
75146         * lib/uniconv/u16-strconv-from-enc.c: New file.
75147         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75148         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75149
75150         * modules/uniconv/u8-strconv-from-enc: New file.
75151         * lib/uniconv/u8-strconv-from-enc.c: New file.
75152         * lib/uniconv/u-strconv-from-enc.h: New file.
75153         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75154         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75155
75156         * modules/uniconv/u32-conv-from-enc: New file.
75157         * lib/uniconv/u32-conv-from-enc.c: New file.
75158         * modules/uniconv/u32-conv-from-enc-tests: New file.
75159         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75160
75161         * modules/uniconv/u16-conv-from-enc: New file.
75162         * lib/uniconv/u16-conv-from-enc.c: New file.
75163         * lib/uniconv/u-conv-from-enc.h: New file.
75164         * modules/uniconv/u16-conv-from-enc-tests: New file.
75165         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75166
75167         * modules/uniconv/u8-conv-from-enc: New file.
75168         * lib/uniconv/u8-conv-from-enc.c: New file.
75169         * modules/uniconv/u8-conv-from-enc-tests: New file.
75170         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75171
75172         * modules/uniconv/base: New file.
75173         * lib/uniconv.h: New file.
75174
75175 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * doc/gnulib-tool.texi (Initial import): Update to match current
75178         behavior with strdup module.
75179         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75180         * lib/memmem.h: Remove; all uses removed.  This is now done
75181         by <string.h>.
75182         * lib/mempcpy.h: Likewise.
75183         * lib/memrchr.h: Likewise.
75184         * lib/stpcpy.h: Likewise.
75185         * lib/stpncpy.h: Likewise.
75186         * lib/strcase.h: Likewise.
75187         * lib/strchrnul.h: Likewise.
75188         * lib/strdup.h: Likewise.
75189         * lib/strndup.h: Likewise.
75190         * lib/strnlen.h: Likewise.
75191         * lib/strpbrk.h: Likewise.
75192         * lib/strsep.h: Likewise.
75193         * lib/strstr.h: Likewise.
75194         * lib/strtok_r.h: Likewise.
75195         * lib/string_.h: New file.
75196         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75197         Rely on <string.h> instead.
75198         * lib/canon-host.c: Likewise.
75199         * lib/chdir-long.c: Likewise.
75200         * lib/concatpath.c: Likewise.
75201         * lib/exclude.c: Likewise.
75202         * lib/fchdir.c: Likewise.
75203         * lib/getaddrinfo.c: Likewise.
75204         * lib/getcwd.c: Likewise.
75205         * lib/getsubopt.c: Likewise.
75206         * lib/glob.c: Likewise.
75207         * lib/hard-locale.c: Likewise.
75208         * lib/iconvme.c: Likewise.
75209         * lib/javacomp.c: Likewise.
75210         * lib/mempcpy.c: Likewise.
75211         * lib/memrchr.c: Likewise.
75212         * lib/regex_internal.h: Likewise.
75213         * lib/stpncpy.c: Likewise.
75214         * lib/strcasecmp.c: Likewise.
75215         * lib/strchrnul.c: Likewise.
75216         * lib/strdup.c: Likewise.
75217         * lib/striconv.c: Likewise.
75218         * lib/striconveh.c: Likewise.
75219         * lib/striconveha.c: Likewise.
75220         * lib/strncasecmp.c: Likewise.
75221         * lib/strndup.c: Likewise.
75222         * lib/strnlen.c: Likewise.
75223         * lib/strsep.c: Likewise.
75224         * lib/strstr.c: Likewise.
75225         * lib/strtok_r.c: Likewise.
75226         * lib/userspec.c: Likewise.
75227         * lib/w32spawn.h: Likewise.
75228         * lib/xstrndup.c: Likewise.
75229         * lib/mountlist.c (strstr): Remove decl.
75230         * m4/string_h.m4: New file.
75231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75232         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75234         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75235         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75236         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75237         Set REPLACE_STRCASECMP if necessary.
75238         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75239         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75240         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75241         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75242         HAVE_DECL_STRDUP if necessary.
75243         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75244         since gl_FUNC_STRNDUP does that now.
75245         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75246         Check for decl here...
75247         (gl_PREREQ_STRNLEN): ... not here.
75248         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75249         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75250         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75251         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75252         necessary.
75253         * modules/string: New file.
75254         * modules/memmem (Files): Remove special-purpose include file.
75255         (Depends-on): Add string.
75256         (Include): Include <string.h>, not the removed file.
75257         * modules/mempcpy: Likewise.
75258         * modules/memrchr: Likewise.
75259         * modules/stpcpy: Likewise.
75260         * modules/stpncpy: Likewise.
75261         * modules/strcase: Likewise.
75262         * modules/strchrnul: Likewise.
75263         * modules/strdup: Likewise.
75264         * modules/strndup: Likewise.
75265         * modules/strnlen: Likewise.
75266         * modules/strpbrk: Likewise.
75267         * modules/strsep: Likewise.
75268         * modules/strstr: Likewise.
75269         * modules/strtok_r: Likewise.
75270         * tests/test-dirname.c: Don't include "strdup.h", since
75271         <string.h> now suffices.
75272         * tests/test-memmem.c: Don't include "memmem.h", since
75273         <string.h> now suffices.
75274
75275 2007-01-25  Bruno Haible  <bruno@clisp.org>
75276
75277         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75278         *resultp is 0.
75279
75280         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75281         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75282         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75283         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75284
75285         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75286         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75287         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75288         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75289         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75290         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75291
75292 2007-01-24  Bruno Haible  <bruno@clisp.org>
75293
75294         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75295         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75296         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75297         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75298         gl_FUNC_FTS_CORE.
75299         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75300         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75301         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75302         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75303         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75304         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75305         gl_FUNC_FCHOWNAT.
75306         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75307         gl_FUNC_STRFTIME.
75308         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75309         Reported by Ralf Wildenhues.
75310
75311 2007-01-24  Bruno Haible  <bruno@clisp.org>
75312
75313         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75314         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75315         gl_GETADDRINFO.
75316         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75317         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75318         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75319
75320 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75321
75322         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75323         Don't use 'exit'; just return from 'main'.
75324         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75325
75326         * lib/fnmatch_.h: Readjust white space and comments to match
75327         glibc, to avoid spurious diffs.
75328
75329 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75332         2004-12-01 change by Jakub Jelinek, since this code won't compile
75333         if !LIBC.  Problem reported by Bob Proulx.
75334
75335 2007-01-23  Bruno Haible  <bruno@clisp.org>
75336
75337         * lib/striconveh.c: Include c-strcaseeq.h.
75338         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75339         * modules/striconveh (Depends-on): Add c-strcaseeq.
75340
75341 2007-01-23  Bruno Haible  <bruno@clisp.org>
75342
75343         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75344
75345         * modules/c-strcaseeq: New file.
75346         * lib/c-strcaseeq.h: New file.
75347
75348         * modules/streq: New file.
75349         * lib/streq.h: New file.
75350
75351 2007-01-23  Bruno Haible  <bruno@clisp.org>
75352
75353         * modules/striconveha-tests: New file.
75354         * tests/test-striconveha.c: New file.
75355
75356         * lib/striconveha.h: Include <stdbool.h>.
75357         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75358         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75359         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75360         (mem_iconveha): New function.
75361         (str_iconveha_notranslit): Renamed from str_iconveha.
75362         (str_iconveha): New function.
75363         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75364         c-strcase.
75365
75366 2007-01-23  Bruno Haible  <bruno@clisp.org>
75367
75368         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75369         encodings without forgiving before trying any encoding with handler.
75370         (str_iconveha): Try all encodings without forgiving before trying any
75371         encoding with handler.
75372
75373 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         Import the following changes from libc.
75376
75377         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75378
75379         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75380
75381         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75382
75383         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75384         normal_bracket label.
75385
75386         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75387
75388         [BZ #361]
75389         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75390         to normal_bracket after fetching the next character.
75391
75392 2007-01-22  Bruno Haible  <bruno@clisp.org>
75393
75394         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75395         argument.
75396         * lib/striconveh.c (iconv_carefully_1): New function.
75397         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75398         argument.
75399         (str_cd_iconveh): Update.
75400         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75401         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75402         * tests/test-striconveh.c (MAGIC): New macro.
75403         (new_offsets): New function.
75404         (main): Test call with and without offsets.
75405
75406 2007-01-22  Bruno Haible  <bruno@clisp.org>
75407
75408         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75409         * modules/sys_select (Makefile.am): Likewise.
75410         * modules/sys_socket (Makefile.am): Likewise.
75411         * modules/sys_time (Makefile.am): Likewise.
75412
75413 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75414
75415         * modules/gettimeofday (License): Change from GPL to LGPL, since
75416         gettimeofday is a library function.
75417
75418 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75419
75420         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75421
75422 2007-01-21  Bruno Haible  <bruno@clisp.org>
75423
75424         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75425
75426 2007-01-21  Bruno Haible  <bruno@clisp.org>
75427
75428         * modules/striconveha: New file.
75429         * lib/striconveha.h: New file.
75430         * lib/striconveha.c: New file.
75431         * MODULES.html.sh (Internationalization functions): Add striconveha.
75432         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75433         string.
75434         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75435
75436 2007-01-21  Bruno Haible  <bruno@clisp.org>
75437
75438         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75439         * lib/striconveh.c (str_iconveh): Likewise.
75440
75441 2007-01-21  Bruno Haible  <bruno@clisp.org>
75442
75443         * lib/striconveh.h (mem_iconveh): New declaration.
75444         * lib/striconveh.c (mem_iconveh): New function.
75445         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75446
75447 2007-01-21  Bruno Haible  <bruno@clisp.org>
75448
75449         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75450
75451         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75452         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75453         original result buffer.
75454         (str_cd_iconveh): Update.
75455         * tests/test-striconveh.c (main): Update.
75456
75457         * lib/striconv.h (mem_cd_iconv): Change specification.
75458         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75459         result buffer.
75460         (str_cd_iconv): Update.
75461         * tests/test-striconv.c (main): Update.
75462
75463 2007-01-21  Bruno Haible  <bruno@clisp.org>
75464
75465         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75466
75467 2007-01-20  Jim Meyering  <jim@meyering.net>
75468
75469         * lib/userspec.c (parse_with_separator): If a user or group string
75470         starts with "+", skip the corresponding name-to-ID look-up, since
75471         such a look-up must fail: user and group names may not include "+".
75472
75473 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75474
75475         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75476         since we now assume the sys_time module.
75477         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75478         check for sys/time.h; no longer needed.
75479         * modules/poll (Depends-on): Depend on sys_time.
75480
75481 2007-01-18  Bruno Haible  <bruno@clisp.org>
75482
75483         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75485
75486         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75487         gettimeofday.
75488
75489         * tests/test-gettimeofday.c: Include <time.h>.
75490         (dummy): Remove variable.
75491
75492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75493         gl_HEADER_SYS_TIME_H.
75494         (gl_HEADER_SYS_TIME_H): New macro.
75495
75496         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75497         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75499         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75500         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75501         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75502         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75503         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75504         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75505         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75506         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75507
75508         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75509         last change; it caused a compilation error when cross-compiling to
75510         Cygwin.
75511
75512 2007-01-18  Jim Meyering  <jim@meyering.net>
75513
75514         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75515         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75516         than the race-prone "test -d sys || mkdir sys".
75517         (configure.ac): Use AC_PROG_MKDIR_P.
75518         * modules/sys_select: Likewise.
75519         * modules/sys_socket: Likewise.
75520         * modules/sys_time: Likewise.
75521
75522 2007-01-18  Eric Blake  <ebb9@byu.net>
75523
75524         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75525         replace gettimeofday.
75526         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75527         name, to avoid infinite recursion.
75528
75529 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75532         module sys_time.
75533         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75534         assume timespec.h defines struct timeval.
75535         * lib/settime.c: Likewise.
75536         * lib/utimens.c: Likewise.
75537         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75538         since we now assume the gettimeofday module.
75539         * lib/tempname.c (__gen_tempname): Likewise.
75540         * lib/gettimeofday.h: Remove.
75541         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75542         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75543         Include <time.h>, for 'time()'.
75544         (localtime_buffer_addr): Also use this workaround if
75545         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75546         to simplify the uses.  All uses changed.
75547         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75548         that #undef is inside {}, and 'const' follows type name consistently.
75549         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75550         (gettimeofday): Do not use the maximum possible value for
75551         tv->tv_usec, since that might break usages other than ls.c.
75552         Instead, we'll leave ls.c alone.  This undoes today's patch
75553         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75554         we've never observed the problem but might as well keep the
75555         canary.
75556         * lib/nanosleep.c: Include timespec.h first, for interface check.
75557         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75558         now assume the sys_time module.
75559         * lib/tempname.c: Likewise.
75560         * lib/timespec.h: Likewise.
75561         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75562         needed.
75563         * lib/strftime.c: Likewise.
75564         * lib/timespec.h: Likewise.
75565         * lib/posixtm.c: Include posixtm.h first, for interface check.
75566         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75567         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75568         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75569         * lib/sys_time_.h: New file.
75570         * lib/timespec.h (struct timespec): Use long int, not long.
75571         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75572         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75573         Remove obsolescent call to AC_HEADER_TIME.
75574         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75576         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75577         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75578         Likewise.
75579         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75580         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75582         into the sys_time module.  Check for gettimeofday just once.
75583         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75584         for gettimeofday signature to just check the signature.  Merely
75585         compile it, since linking doesn't test signature.  Improve test for
75586         whether gettimeofday.o is actually needed.
75587         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75588         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75589         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75590         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75591         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75592         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75593         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75594         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75595         than worrying about sys/time.h.
75596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75597         Don't bother worrying about TIME_WITH_SYS_TIME.
75598         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75599         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75600         * m4/sys_time_h.m4: New file.
75601         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75602         Don't include sys/time.h.  Return from main rather than exiting.
75603         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75604         all uses changed.
75605         * modules/gethrxtime (Depends-on): Add sys_time.
75606         * modules/gettime (Depends-on): Likewise.
75607         * modules/gettimeofday (Depends-on): Likewise.
75608         * modules/nanosleep (Depends-on): Likewise.
75609         * modules/settime (Depends-on): Likewise.
75610         * modules/tempname (Depends-on): Likewise.
75611         * modules/utimens (Depends-on): Likewise.
75612         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75613         (Include): Change back to <sys/time.h>.
75614         (Maintainer): Add self.
75615         * modules/sys_time: New file.
75616         * modules/tempname (Depends-on): Add gettimeofday.
75617         * tests/test-gettimeofday.c: Include <sys/time.h>
75618         rather than gettimeofday.h.
75619
75620 2007-01-17  Bruno Haible  <bruno@clisp.org>
75621
75622         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75623         the license default to GPL.
75624         (func_create_testdir): Don't complain if a module is LGPL and its
75625         tests module depends on GPLed modules.
75626
75627 2007-01-17  Bruno Haible  <bruno@clisp.org>
75628
75629         * lib/gettimeofday.c (gettimeofday): Add code for the case
75630         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75631         maximum possible value for tv->tv_usec, rather than the minimum one.
75632
75633 2005-10-08  Martin Lambers  <marlam@marlam.de>
75634 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75635 2007-01-16  Bruno Haible  <bruno@clisp.org>
75636
75637         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75638         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75639         gl_FUNC_GETTIMEOFDAY.
75640         (Include): Add gettimeofday.h.
75641         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75642         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75643         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75644         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75645         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75646         * lib/gettimeofday.h: New file.
75647         * lib/gettimeofday.c: Include <sys/timeb.h>.
75648         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75649         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75650         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75651         fall back on time().
75652
75653         * tests/test-gettimeofday.c: New file.
75654         * modules/gettimeofday-tests: New file.
75655
75656 2007-01-16  Eric Blake  <ebb9@byu.net>
75657
75658         * modules/fnmatch (Depends-on): Depend on wchar.
75659         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75660         * m4/fnmatch.m4: Likewise.
75661         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75662         * m4/mbchar.m4: Likewise.
75663         * modules/mbswidth (Depends-on): Depend on wchar.
75664         * lib/mbswidth.c: Assume <wchar.h>.
75665         * m4/mbswidth.m4: Likewise.
75666         * modules/quotearg (Depends-on): Depend on wchar.
75667         * lib/quotearg.c: Assume <wchar.h>.
75668         * m4/quotearg.m4: Likewise.
75669         * modules/regex (Depends-on): Depend on wchar.
75670         * lib/regex_internal.h: Assume <wchar.h>.
75671         * m4/regex.m4: Likewise.
75672         * modules/stdint (Depends-on): Depend on wchar.
75673         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75674         * m4/stdint.m4: Likewise.
75675         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75676         * modules/strftime (Depends-on): Depend on wchar.
75677         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75678         * modules/strtol (Depends-on): Depend on wchar.
75679         * lib/strtol.c: Assume <wchar.h>.
75680         * modules/wcwidth (Depends-on): Depend on wchar.
75681         * lib/wcwidth.h: Assume <wchar.h>.
75682         * m4/wcwidth.m4: Likewise.
75683
75684 2007-01-16  Bruno Haible  <bruno@clisp.org>
75685
75686         * modules/csharpexec-script: New, created from...
75687         * modules/csharpexec: ... this.
75688
75689 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75690
75691         * modules/javaexec-script: New, created from...
75692         * modules/javaexec: ... this.
75693
75694 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75695
75696         * modules/poll (Dependencies): Add sys_select.
75697
75698 2007-01-15  Jim Meyering  <jim@meyering.net>
75699
75700         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75701         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75702         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75703         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75704
75705 2007-01-15  Bruno Haible  <bruno@clisp.org>
75706
75707         * modules/striconveh: New file.
75708         * lib/striconveh.h: New file.
75709         * lib/striconveh.c: New file.
75710         * MODULES.html.sh (Internationalization functions): Add striconveh.
75711
75712         * modules/striconveh-tests: New file.
75713         * tests/test-striconveh.c: New file.
75714
75715 2007-01-15  Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75718         not from GNU libiconv or GNU libc.
75719
75720 2007-01-15  Bruno Haible  <bruno@clisp.org>
75721
75722         * doc/gnulib-intro.texi (Copyright): Explain the different license
75723         terms for module descriptions, autoconf macros, tests, documentation.
75724
75725 2007-01-14  Bruno Haible  <bruno@clisp.org>
75726
75727         * modules/striconv-tests: New file.
75728         * tests/test-striconv.c: New file.
75729
75730 2007-01-14  Bruno Haible  <bruno@clisp.org>
75731
75732         * modules/iconv-tests: New file.
75733         * tests/test-iconv.c: New file.
75734
75735 2007-01-14  Bruno Haible  <bruno@clisp.org>
75736
75737         * gnulib-tool (func_get_license): For test modules, use the license of
75738         the main module.
75739
75740 2007-01-14  Bruno Haible  <bruno@clisp.org>
75741
75742         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75743         if iconv is found to exist.
75744
75745 2007-01-14  Bruno Haible  <bruno@clisp.org>
75746
75747         * modules/c-ctype-tests: New file.
75748         * tests/test-c-ctype.c: New file.
75749
75750 2007-01-14  Bruno Haible  <bruno@clisp.org>
75751
75752         * modules/binary-io-tests: New file.
75753         * tests/test-binary-io.sh: New file.
75754         * tests/test-binary-io.c: New file.
75755
75756 2007-01-14  Bruno Haible  <bruno@clisp.org>
75757
75758         * modules/array-oset-tests: New file.
75759         * tests/test-array_oset.c: New file.
75760
75761 2007-01-14  Bruno Haible  <bruno@clisp.org>
75762
75763         * modules/array-list-tests: New file.
75764         * tests/test-array_list.c: New file.
75765
75766 2007-01-14  Bruno Haible  <bruno@clisp.org>
75767
75768         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75769         and make.
75770         Reported by Simon Josefsson in
75771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75772
75773 2007-01-14  Bruno Haible  <bruno@clisp.org>
75774
75775         * modules/allocsa-tests: New file.
75776         * tests/test-allocsa.c: New file.
75777
75778 2007-01-14  Bruno Haible  <bruno@clisp.org>
75779
75780         * modules/fchdir (Depends-on): Add absolute-header.
75781         * modules/unistd (Depends-on): Likewise.
75782
75783 2006-12-30  Bruno Haible  <bruno@clisp.org>
75784
75785         * modules/fchdir: New file.
75786         * modules/unistd (Files): Add lib/unistd_.h.
75787         (Makefile.am): Generate unistd.h from unistd_.h.
75788         * lib/fchdir.c: New file.
75789         * lib/dirent_.h: New file.
75790         * lib/unistd_.h: New file.
75791         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75792         * m4/fchdir.m4: New file.
75793         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75794         (gl_HEADER_UNISTD): Invoke it.
75795         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75796         function.
75797         * lib/backupfile.c (opendir, closedir): Undefine.
75798         * lib/chown.c (open, close): Undefine.
75799         * lib/clean-temp.c (open, close): Undefine.
75800         * lib/copy-file.c (open, close): Undefine.
75801         * lib/execute.c (open, close): Undefine.
75802         * lib/fsusage.c (open, close): Undefine.
75803         * lib/gc-gnulib.c (open, close): Undefine.
75804         * lib/getcwd.c (opendir, closedir): Undefine.
75805         * lib/glob.c (opendir, closedir): Undefine.
75806         * lib/javacomp.c (open, close): Undefine.
75807         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75808         * lib/openat-proc.c (open, close): Undefine.
75809         * lib/pagealign_alloc.c (open, close): Undefine.
75810         * lib/pipe.c (open, close): Undefine.
75811         * lib/progreloc.c (open, close): Undefine.
75812         * lib/savedir.c (opendir, closedir): Undefine.
75813         * lib/utime.c (open, close): Undefine.
75814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75815
75816 2007-01-10  Bruno Haible  <bruno@clisp.org>
75817
75818         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75819
75820 2007-01-12  Eric Blake  <ebb9@byu.net>
75821
75822         Provide a robust <wchar.h>.  Further simplifications are now
75823         possible in other modules, but not included here.
75824         * modules/wchar: New module.
75825         * m4/wchar.m4: New file.
75826         * lib/wchar_.h: Likewise.
75827         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75828         of the new module.
75829         * MODULES.html.sh (Extended multibyte and wide character utilities):
75830         New section.
75831
75832 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75835         to a reasonable default for memory allocation.
75836         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75837         file system that reports garbage st_size values for symlinks.
75838         Problem reported by Liyang Hu.
75839
75840 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75841
75842         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75843         Emacs .#* auto-save files).
75844
75845 2007-01-11  Bruno Haible  <bruno@clisp.org>
75846
75847         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75848         directory.
75849
75850 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         Use @...@ consistently in lib/wctype_.h.
75853         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75854         on it being set to 1 or 0.
75855         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75856         go back to AC_SUBSTing it.
75857         * modules/wctype (Makefile.am): Undo previous change.
75858
75859 2007-01-10  Eric Blake  <ebb9@byu.net>
75860
75861         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75862         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75863         * modules/wctype (Makefile.am): Likewise.
75864         Reported by Chris McGuire.
75865
75866 2007-01-10  Jim Meyering  <jim@meyering.net>
75867
75868         fts.c: a small readability/maintainability improvement
75869         * lib/fts.c (fts_read): Make this code slightly more readable and
75870         maintainable by hoisting the "sp->fts_cur = p" assignments to
75871         immediately follow the statements that set P.  Derived from
75872         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75873
75874 2007-01-10  Eric Blake  <ebb9@byu.net>
75875
75876         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75877         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75879         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75880         Reported by Chris McGuire.
75881
75882 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75883
75884         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75885         in sed script.
75886
75887 2007-01-09  Bruno Haible  <bruno@clisp.org>
75888
75889         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75890         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75891         variables.
75892         (func_module): Use them.
75893
75894 2007-01-09  Bruno Haible  <bruno@clisp.org>
75895
75896         * modules/unistr/base: New file.
75897         * lib/unistr.h: New file.
75898
75899         * modules/unistr/u8-to-u16: New file.
75900         * lib/unistr/u8-to-u16.c: New file.
75901
75902         * modules/unistr/u8-to-u32: New file.
75903         * lib/unistr/u8-to-u32.c: New file.
75904
75905         * modules/unistr/u16-to-u8: New file.
75906         * lib/unistr/u16-to-u8.c: New file.
75907
75908         * modules/unistr/u16-to-u32: New file.
75909         * lib/unistr/u16-to-u32.c: New file.
75910
75911         * modules/unistr/u32-to-u8: New file.
75912         * lib/unistr/u32-to-u8.c: New file.
75913
75914         * modules/unistr/u32-to-u16: New file.
75915         * lib/unistr/u32-to-u16.c: New file.
75916
75917         * modules/unistr/u8-check: New file.
75918         * modules/unistr/u16-check: New file.
75919         * modules/unistr/u32-check: New file.
75920         * lib/unistr/u8-check.c: New file.
75921         * lib/unistr/u16-check.c: New file.
75922         * lib/unistr/u32-check.c: New file.
75923
75924         * modules/unistr/u8-chr: New file.
75925         * modules/unistr/u16-chr: New file.
75926         * modules/unistr/u32-chr: New file.
75927         * lib/unistr/u8-chr.c: New file.
75928         * lib/unistr/u16-chr.c: New file.
75929         * lib/unistr/u32-chr.c: New file.
75930
75931         * modules/unistr/u8-cmp: New file.
75932         * modules/unistr/u16-cmp: New file.
75933         * modules/unistr/u32-cmp: New file.
75934         * lib/unistr/u8-cmp.c: New file.
75935         * lib/unistr/u16-cmp.c: New file.
75936         * lib/unistr/u32-cmp.c: New file.
75937
75938         * modules/unistr/u8-cpy: New file.
75939         * modules/unistr/u16-cpy: New file.
75940         * modules/unistr/u32-cpy: New file.
75941         * lib/unistr/u8-cpy.c: New file.
75942         * lib/unistr/u16-cpy.c: New file.
75943         * lib/unistr/u32-cpy.c: New file.
75944         * lib/unistr/u-cpy.h: New file.
75945
75946         * modules/unistr/u8-cpy-alloc: New file.
75947         * modules/unistr/u16-cpy-alloc: New file.
75948         * modules/unistr/u32-cpy-alloc: New file.
75949         * lib/unistr/u8-cpy-alloc.c: New file.
75950         * lib/unistr/u16-cpy-alloc.c: New file.
75951         * lib/unistr/u32-cpy-alloc.c: New file.
75952         * lib/unistr/u-cpy-alloc.h: New file.
75953
75954         * modules/unistr/u8-endswith: New file.
75955         * modules/unistr/u16-endswith: New file.
75956         * modules/unistr/u32-endswith: New file.
75957         * lib/unistr/u8-endswith.c: New file.
75958         * lib/unistr/u16-endswith.c: New file.
75959         * lib/unistr/u32-endswith.c: New file.
75960         * lib/unistr/u-endswith.h: New file.
75961
75962         * modules/unistr/u8-mblen: New file.
75963         * modules/unistr/u16-mblen: New file.
75964         * modules/unistr/u32-mblen: New file.
75965         * lib/unistr/u8-mblen.c: New file.
75966         * lib/unistr/u16-mblen.c: New file.
75967         * lib/unistr/u32-mblen.c: New file.
75968
75969         * modules/unistr/u8-mbtouc: New file.
75970         * modules/unistr/u16-mbtouc: New file.
75971         * modules/unistr/u32-mbtouc: New file.
75972         * lib/unistr/u8-mbtouc.c: New file.
75973         * lib/unistr/u16-mbtouc.c: New file.
75974         * lib/unistr/u32-mbtouc.c: New file.
75975
75976         * modules/unistr/u8-mbtouc-safe: New file.
75977         * modules/unistr/u16-mbtouc-safe: New file.
75978         * modules/unistr/u32-mbtouc-safe: New file.
75979         * lib/unistr/u8-mbtouc-safe.c: New file.
75980         * lib/unistr/u16-mbtouc-safe.c: New file.
75981         * lib/unistr/u32-mbtouc-safe.c: New file.
75982
75983         * modules/unistr/u8-move: New file.
75984         * modules/unistr/u16-move: New file.
75985         * modules/unistr/u32-move: New file.
75986         * lib/unistr/u8-move.c: New file.
75987         * lib/unistr/u16-move.c: New file.
75988         * lib/unistr/u32-move.c: New file.
75989         * lib/unistr/u-move.h: New file.
75990
75991         * modules/unistr/u8-next: New file.
75992         * modules/unistr/u16-next: New file.
75993         * modules/unistr/u32-next: New file.
75994         * lib/unistr/u8-next.c: New file.
75995         * lib/unistr/u16-next.c: New file.
75996         * lib/unistr/u32-next.c: New file.
75997
75998         * modules/unistr/u8-prev: New file.
75999         * modules/unistr/u16-prev: New file.
76000         * modules/unistr/u32-prev: New file.
76001         * lib/unistr/u8-prev.c: New file.
76002         * lib/unistr/u16-prev.c: New file.
76003         * lib/unistr/u32-prev.c: New file.
76004
76005         * modules/unistr/u8-set: New file.
76006         * modules/unistr/u16-set: New file.
76007         * modules/unistr/u32-set: New file.
76008         * lib/unistr/u8-set.c: New file.
76009         * lib/unistr/u16-set.c: New file.
76010         * lib/unistr/u32-set.c: New file.
76011         * lib/unistr/u-set.h: New file.
76012
76013         * modules/unistr/u8-startswith: New file.
76014         * modules/unistr/u16-startswith: New file.
76015         * modules/unistr/u32-startswith: New file.
76016         * lib/unistr/u8-startswith.c: New file.
76017         * lib/unistr/u16-startswith.c: New file.
76018         * lib/unistr/u32-startswith.c: New file.
76019         * lib/unistr/u-startswith.h: New file.
76020
76021         * modules/unistr/u8-stpcpy: New file.
76022         * modules/unistr/u16-stpcpy: New file.
76023         * modules/unistr/u32-stpcpy: New file.
76024         * lib/unistr/u8-stpcpy.c: New file.
76025         * lib/unistr/u16-stpcpy.c: New file.
76026         * lib/unistr/u32-stpcpy.c: New file.
76027         * lib/unistr/u-stpcpy.h: New file.
76028
76029         * modules/unistr/u8-stpncpy: New file.
76030         * modules/unistr/u16-stpncpy: New file.
76031         * modules/unistr/u32-stpncpy: New file.
76032         * lib/unistr/u8-stpncpy.c: New file.
76033         * lib/unistr/u16-stpncpy.c: New file.
76034         * lib/unistr/u32-stpncpy.c: New file.
76035         * lib/unistr/u-stpncpy.h: New file.
76036
76037         * modules/unistr/u8-strcat: New file.
76038         * modules/unistr/u16-strcat: New file.
76039         * modules/unistr/u32-strcat: New file.
76040         * lib/unistr/u8-strcat.c: New file.
76041         * lib/unistr/u16-strcat.c: New file.
76042         * lib/unistr/u32-strcat.c: New file.
76043         * lib/unistr/u-strcat.h: New file.
76044
76045         * modules/unistr/u8-strchr: New file.
76046         * modules/unistr/u16-strchr: New file.
76047         * modules/unistr/u32-strchr: New file.
76048         * lib/unistr/u8-strchr.c: New file.
76049         * lib/unistr/u16-strchr.c: New file.
76050         * lib/unistr/u32-strchr.c: New file.
76051
76052         * modules/unistr/u8-strcmp: New file.
76053         * modules/unistr/u16-strcmp: New file.
76054         * modules/unistr/u32-strcmp: New file.
76055         * lib/unistr/u8-strcmp.c: New file.
76056         * lib/unistr/u16-strcmp.c: New file.
76057         * lib/unistr/u32-strcmp.c: New file.
76058
76059         * modules/unistr/u8-strcpy: New file.
76060         * modules/unistr/u16-strcpy: New file.
76061         * modules/unistr/u32-strcpy: New file.
76062         * lib/unistr/u8-strcpy.c: New file.
76063         * lib/unistr/u16-strcpy.c: New file.
76064         * lib/unistr/u32-strcpy.c: New file.
76065         * lib/unistr/u-strcpy.h: New file.
76066
76067         * modules/unistr/u8-strcspn: New file.
76068         * modules/unistr/u16-strcspn: New file.
76069         * modules/unistr/u32-strcspn: New file.
76070         * lib/unistr/u8-strcspn.c: New file.
76071         * lib/unistr/u16-strcspn.c: New file.
76072         * lib/unistr/u32-strcspn.c: New file.
76073         * lib/unistr/u-strcspn.h: New file.
76074
76075         * modules/unistr/u8-strdup: New file.
76076         * modules/unistr/u16-strdup: New file.
76077         * modules/unistr/u32-strdup: New file.
76078         * lib/unistr/u8-strdup.c: New file.
76079         * lib/unistr/u16-strdup.c: New file.
76080         * lib/unistr/u32-strdup.c: New file.
76081         * lib/unistr/u-strdup.h: New file.
76082
76083         * modules/unistr/u8-strlen: New file.
76084         * modules/unistr/u16-strlen: New file.
76085         * modules/unistr/u32-strlen: New file.
76086         * lib/unistr/u8-strlen.c: New file.
76087         * lib/unistr/u16-strlen.c: New file.
76088         * lib/unistr/u32-strlen.c: New file.
76089         * lib/unistr/u-strlen.h: New file.
76090
76091         * modules/unistr/u8-strmblen: New file.
76092         * modules/unistr/u16-strmblen: New file.
76093         * modules/unistr/u32-strmblen: New file.
76094         * lib/unistr/u8-strmblen.c: New file.
76095         * lib/unistr/u16-strmblen.c: New file.
76096         * lib/unistr/u32-strmblen.c: New file.
76097
76098         * modules/unistr/u8-strmbtouc: New file.
76099         * modules/unistr/u16-strmbtouc: New file.
76100         * modules/unistr/u32-strmbtouc: New file.
76101         * lib/unistr/u8-strmbtouc.c: New file.
76102         * lib/unistr/u16-strmbtouc.c: New file.
76103         * lib/unistr/u32-strmbtouc.c: New file.
76104
76105         * modules/unistr/u8-strncat: New file.
76106         * modules/unistr/u16-strncat: New file.
76107         * modules/unistr/u32-strncat: New file.
76108         * lib/unistr/u8-strncat.c: New file.
76109         * lib/unistr/u16-strncat.c: New file.
76110         * lib/unistr/u32-strncat.c: New file.
76111         * lib/unistr/u-strncat.h: New file.
76112
76113         * modules/unistr/u8-strncmp: New file.
76114         * modules/unistr/u16-strncmp: New file.
76115         * modules/unistr/u32-strncmp: New file.
76116         * lib/unistr/u8-strncmp.c: New file.
76117         * lib/unistr/u16-strncmp.c: New file.
76118         * lib/unistr/u32-strncmp.c: New file.
76119
76120         * modules/unistr/u8-strncpy: New file.
76121         * modules/unistr/u16-strncpy: New file.
76122         * modules/unistr/u32-strncpy: New file.
76123         * lib/unistr/u8-strncpy.c: New file.
76124         * lib/unistr/u16-strncpy.c: New file.
76125         * lib/unistr/u32-strncpy.c: New file.
76126         * lib/unistr/u-strncpy.h: New file.
76127
76128         * modules/unistr/u8-strnlen: New file.
76129         * modules/unistr/u16-strnlen: New file.
76130         * modules/unistr/u32-strnlen: New file.
76131         * lib/unistr/u8-strnlen.c: New file.
76132         * lib/unistr/u16-strnlen.c: New file.
76133         * lib/unistr/u32-strnlen.c: New file.
76134         * lib/unistr/u-strnlen.h: New file.
76135
76136         * modules/unistr/u8-strpbrk: New file.
76137         * modules/unistr/u16-strpbrk: New file.
76138         * modules/unistr/u32-strpbrk: New file.
76139         * lib/unistr/u8-strpbrk.c: New file.
76140         * lib/unistr/u16-strpbrk.c: New file.
76141         * lib/unistr/u32-strpbrk.c: New file.
76142         * lib/unistr/u-strpbrk.h: New file.
76143
76144         * modules/unistr/u8-strrchr: New file.
76145         * modules/unistr/u16-strrchr: New file.
76146         * modules/unistr/u32-strrchr: New file.
76147         * lib/unistr/u8-strrchr.c: New file.
76148         * lib/unistr/u16-strrchr.c: New file.
76149         * lib/unistr/u32-strrchr.c: New file.
76150
76151         * modules/unistr/u8-strspn: New file.
76152         * modules/unistr/u16-strspn: New file.
76153         * modules/unistr/u32-strspn: New file.
76154         * lib/unistr/u8-strspn.c: New file.
76155         * lib/unistr/u16-strspn.c: New file.
76156         * lib/unistr/u32-strspn.c: New file.
76157         * lib/unistr/u-strspn.h: New file.
76158
76159         * modules/unistr/u8-strstr: New file.
76160         * modules/unistr/u16-strstr: New file.
76161         * modules/unistr/u32-strstr: New file.
76162         * lib/unistr/u8-strstr.c: New file.
76163         * lib/unistr/u16-strstr.c: New file.
76164         * lib/unistr/u32-strstr.c: New file.
76165         * lib/unistr/u-strstr.h: New file.
76166
76167         * modules/unistr/u8-strtok: New file.
76168         * modules/unistr/u16-strtok: New file.
76169         * modules/unistr/u32-strtok: New file.
76170         * lib/unistr/u8-strtok.c: New file.
76171         * lib/unistr/u16-strtok.c: New file.
76172         * lib/unistr/u32-strtok.c: New file.
76173         * lib/unistr/u-strtok.h: New file.
76174
76175         * modules/unistr/u8-uctomb: New file.
76176         * modules/unistr/u16-uctomb: New file.
76177         * modules/unistr/u32-uctomb: New file.
76178         * lib/unistr/u8-uctomb.c: New file.
76179         * lib/unistr/u16-uctomb.c: New file.
76180         * lib/unistr/u32-uctomb.c: New file.
76181
76182         * MODULES.html.sh (Unicode string functions): Add the new modules.
76183
76184 2007-01-08  Bruno Haible  <bruno@clisp.org>
76185
76186         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76187         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76188         subdirectories.
76189
76190 2007-01-08  Karl Berry  <karl@gnu.org>
76191
76192         * doc/error.texi: mention that main() fns must set program_name
76193         when progname is used.
76194
76195 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76198         WCTYPE_H is empty, for the benefit of builds from non-distclean
76199         directories.  Problem reported by Eric Blake in
76200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76201
76202 2007-01-08  Bruno Haible  <bruno@clisp.org>
76203
76204         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76205         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76206         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76207         PROVIDE_CANONICALIZE_FILENAME_MODE.
76208         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76209
76210 2007-01-08  Bruno Haible  <bruno@clisp.org>
76211
76212         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76213         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76214         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76215         * lib/fts.c: Likewise.
76216         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76217
76218 2006-12-25  Bruno Haible  <bruno@clisp.org>
76219
76220         * modules/utf8-ucs4-safe: New file.
76221         * lib/utf8-ucs4-safe.h: New file.
76222         * lib/unistr/utf8-ucs4-safe.c: New file.
76223
76224         * modules/utf16-ucs4-safe: New file.
76225         * lib/utf16-ucs4-safe.h: New file.
76226         * lib/unistr/utf16-ucs4-safe.c: New file.
76227
76228         * MODULES.html.sh (Unicode string functions): Add the new modules.
76229
76230 2007-01-08  Bruno Haible  <bruno@clisp.org>
76231
76232         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76233         (Depends-on): Add unitypes.
76234         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76235         (u8_mbtouc_aux): Move out to separate file.
76236         (u8_mbtouc): Use ucs4_t, uint8_t types.
76237         * lib/unistr/utf8-ucs4.c: New file.
76238
76239         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76240         (Depends-on): Add unitypes.
76241         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76242         (u16_mbtouc_aux): Move out to separate file.
76243         (u16_mbtouc): Use ucs4_t, uint16_t types.
76244         * lib/unistr/utf16-ucs4.c: New file.
76245
76246         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76247         (Depends-on): Add unitypes.
76248         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76249         (u8_uctomb_aux): Move out to separate file.
76250         (u8_uctomb): Use ucs4_t, uint8_t types.
76251         * lib/unistr/ucs4-utf8.c: New file.
76252
76253         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76254         (Depends-on): Add unitypes.
76255         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76256         (u16_uctomb_aux): Move out to separate file.
76257         (u16_uctomb): Use ucs4_t, uint16_t types.
76258         * lib/unistr/ucs4-utf16.c: New file.
76259
76260 2006-12-25  Bruno Haible  <bruno@clisp.org>
76261
76262         * modules/unitypes: New file.
76263         * lib/unitypes.h: New file.
76264         * MODULES.html.sh (func_all_modules): New section "Unicode string
76265         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76266         this section. Add unitypes.
76267
76268 2007-01-08  Bruno Haible  <bruno@clisp.org>
76269
76270         Avoid variable names that conflict with those from libtool.
76271         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76272         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76273         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76274         library_names_spec to acl_library_names_spec, hardcode_* to
76275         acl_hardcode_*.
76276         Reported by Ralf Wildenhues.
76277
76278 2007-01-08  Bruno Haible  <bruno@clisp.org>
76279
76280         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76281         definition.
76282         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76283         definition.
76284         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76285         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76286         definition.
76287         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76288         definition.
76289         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76290         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76291         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76292         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76293         definition.
76294         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76295         definition.
76296         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76297         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76298         GC_USE_<algorithm>.
76299         * lib/gc-libgcrypt.c: Likewise.
76300         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76301         * modules/gc-arctwo (configure.ac): Likewise.
76302         * modules/gc-des (configure.ac): Likewise.
76303         * modules/gc-hmac-md5 (configure.ac): Likewise.
76304         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76305         * modules/gc-md2 (configure.ac): Likewise.
76306         * modules/gc-md4 (configure.ac): Likewise.
76307         * modules/gc-md5 (configure.ac): Likewise.
76308         * modules/gc-random (configure.ac): Likewise.
76309         * modules/gc-rijndael (configure.ac): Likewise.
76310         * modules/gc-sha1 (configure.ac): Likewise.
76311
76312 2007-01-08  Bruno Haible  <bruno@clisp.org>
76313
76314         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76315         macro definition.
76316         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76317         definition.
76318         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76319         definition.
76320         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76321         * modules/fcntl-safer (configure.ac): Likewise.
76322         * modules/fopen-safer (configure.ac): Likewise.
76323         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76324         GNULIB_FWRITEERROR macro definition.
76325
76326 2007-01-08  Bruno Haible  <bruno@clisp.org>
76327
76328         * m4/gnulib-common.m4: New file.
76329         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76330         (func_get_filelist): Add m4/gnulib-common.m4.
76331
76332 2007-01-08  Bruno Haible  <bruno@clisp.org>
76333
76334         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76335         command.
76336
76337 2007-01-08  Jim Meyering  <jim@meyering.net>
76338
76339         Use a more robust test for a "can't happen" condition.
76340         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76341         narrowed the st_size value.  Presuming the "can't happen" condition
76342         is true, that narrowing could conceivably convert an invalid st_size
76343         value into a valid one.  Instead, use a change based on Matthew
76344         Woehlke's original patch.
76345
76346         Slight readability improvement: use an assert-like macro
76347         in place of literal "abort ()" uses.
76348         * lib/fts.c (fts_assert): Define.
76349         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76350         Use this macro instead of a bare 'abort'.
76351
76352 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76353
76354         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76355         simply work around them.
76356         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76357         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76358         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76359         declaring.
76360         Don't bother to define as macros, since the standard doesn't require it.
76361         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76362         longer worry about IRIX 5.3.
76363         (HAVE_WCTYPE_CTMP_BUG): Remove.
76364
76365 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76366
76367         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76368         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76369         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76370         Problems reported by Georg Schwarz for IRIX 5.3.
76371
76372         * gnulib-tool (autoconf_minversion): Take the maximum version number
76373         found, not the minimum.  Problem reported by James Youngman.
76374
76375 2007-01-03  Karl Berry  <karl@gnu.org>
76376
76377         * doc/error.texi: new file, explaining interaction with progname.
76378         * doc/gnulib.texi: include it.  Update copyright.
76379
76380 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76381
76382         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76383         AC_CANONICAL_HOST, to improve autobuild outputs.
76384
76385 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76386             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76387
76388         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76389         sockets, server sockets, and other file descriptors.  Count errors
76390         to compute the return value.  Reorder the code a bit to be easier
76391         to follow.  Don't set event bits that were not requested (except
76392         POLLERR and POLLHUP).
76393
76394 2007-01-01  Bruno Haible  <bruno@clisp.org>
76395
76396         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76397
76398 2007-01-03  Jim Meyering  <jim@meyering.net>
76399
76400         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76401
76402 2007-01-02  Bruno Haible  <bruno@clisp.org>
76403
76404         * modules/settime (Include): Require timespec.h.
76405         * modules/nanosleep (Include): Likewise.
76406
76407 2007-01-01  Bruno Haible  <bruno@clisp.org>
76408
76409         * gnulib-tool (func_emit_copyright_notice): Bump year.
76410         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76411
76412 2007-01-01  Bruno Haible  <bruno@clisp.org>
76413
76414         Improve support for OpenBSD.
76415         * build-aux/config.rpath (libname_spec): Export.
76416         (library_names_spec): New variable. Export.
76417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76418         library_names_spec from the config.rpath output. Locate shared library
76419         through the name pattern in library_names_spec.
76420
76421 2007-01-01  Eric Blake  <ebb9@byu.net>
76422
76423         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76424
76425 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76428         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76429         assume the C locale, and avoid an "eval" that could cause trouble.
76430         Problem with SORT reported by Bob Proulx.
76431
76432         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76433         Define.  Trivial patch from Henning Nielsen Lund, originally
76434         sent to bug-grep@gnu.org today.
76435
76436 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76437
76438         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76439         struct stat.  Problem reported by Henning Nielsen Lund.
76440         * lib/acl.c: Include acl.h first, to check interface.  Don't
76441         bother to include sys/types.h and sys/stat.h again.
76442
76443 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         Import the following change from libc; problem reported by
76446         Sven Verdoolaege.
76447
76448         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76449
76450         [BZ #1373]
76451         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76452
76453 2006-12-28  Jim Meyering  <jim@meyering.net>
76454
76455         * build-aux/announce-gen: Do not assume that the package
76456         builds any of tar.gz, tar.bz2, and .xdelta files.
76457         Suggestion from Simon Josefsson.
76458
76459 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76460
76461         * modules/announce-gen: New file.
76462
76463 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76466         handles its gotchas now.
76467         * lib/mbswidth.c: Likewise.
76468         * lib/wcwidth.h: Likewise.
76469         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76470         and iswcntrl; the wctype module does this stuff now.
76471         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76473         * modules/mbchar (Depends-on): Add wctype.
76474         * modules/mbswidth (Depends-on): Likewise.
76475         * modules/wcwidth (Depends-on): Likewise.
76476
76477 2006-12-27  Eric Blake  <ebb9@byu.net>
76478
76479         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76480         module uses more than what <wctype.h> is required to provide.
76481
76482 2006-12-26  Eric Blake  <ebb9@byu.net>
76483
76484         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76485
76486 2006-12-26  Eric Blake  <ebb9@byu.net>
76487
76488         * modules/absolute-header: New module.
76489         * modules/fcntl (Depends-on): Depend on it.
76490         * modules/inttypes (Depends-on): Likewise.
76491         * modules/stdint (Depends-on): Likewise.
76492         * modules/sys_stat (Depends-on): Likewise.
76493         * modules/wctype (Depends-on): Likewise.
76494         * MODULES.html.sh (Support for building libraries and
76495         executables): Document it.
76496
76497 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76498
76499         * gnulib-tool (SED): Remove, undoing previous change.
76500         The problem was that it broke coreutils on Solaris, because
76501         "sed --posix" leaked into a makefile.
76502         (sed): New alias, if 'alias' and GNU sed.
76503
76504 2006-12-24  Jim Meyering  <jim@meyering.net>
76505
76506         Work around an fchownat bug in glibc-2.4:
76507         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76508         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76509         in spite of the -P option.
76510         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76511         New macros.
76512         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76513         * modules/openat (Files): Add lib/fchownat.c.
76514         * lib/openat.c (fchownat): Don't define here.  Move to...
76515         * lib/fchownat.c: ...this new file.
76516
76517 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76518
76519         Fix bug reported by Bruno Haible in
76520         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76521         where quotearg.c didn't compile on Mac OS X 10.2 because it
76522         lacks <wchar.h> and wint_t.
76523         * lib/wctype_.h (__wctype_wint_t): New type.
76524         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76525         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76526         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76527         Arg is now of type __wctype_wint_t, not wint_t.
76528         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76529         substitute HAVE_WINT_T.
76530         * modules/wctype (Files): Add m4/wint_t.m4.
76531         (wctype.h): Substitute HAVE_WINT_T.
76532
76533 2006-12-23  Bruno Haible  <bruno@clisp.org>
76534
76535         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76536
76537 2006-12-23  Bruno Haible  <bruno@clisp.org>
76538
76539         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76540         S_ISLNK.
76541         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76542         mingw.
76543
76544 2006-12-22  Bruno Haible  <bruno@clisp.org>
76545
76546         * lib/copy-file.c: Include acl.h.
76547         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76548         Close the file descriptors only after being done with copy_acl.
76549         * modules/copy-file (Depends-on): Add acl.
76550
76551 2006-12-22  Bruno Haible  <bruno@clisp.org>
76552
76553         * gnulib-tool (SED): New variable.
76554         Use $SED instead of sed everywhere.
76555
76556 2006-12-22  Bruno Haible  <bruno@clisp.org>
76557
76558         * modules/no-c++: New file.
76559         * m4/no-c++.m4: New file.
76560         * MODULES.html.sh (Support for building libraries and executables):
76561         Add no-c++.
76562
76563 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76566         Include <limits.h>, and use its INT_MAX to rewrite the
76567         j loop so that it does not overflow 'int'.  Problem reported by
76568         Ralf Wildenhues in
76569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76570         Play it safe by shifting left by 1 rather than multiplying by 2,
76571         as GCC is less likely to optimize this away when the value
76572         is signed (when it assumes overflow leads to undefined behavior).
76573         Also, don't assume time_t uses two's complement.
76574
76575 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76576
76577         * MODULES.html.sh: New module wctype.
76578         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76579         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76580         <wctype.h>, since the new wctype module should fix this.
76581         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76582         the wctype module should arrange for it.
76583         * lib/regex_internal.h: Likewise.
76584         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76585         since the wctype module should handle this now.
76586         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76587         * modules/fnmatch (Depends-on): Add wctype.
76588         * modules/quotearg (Depends-on): Likewise.
76589         * modules/regex (Depends-on): Likewise.
76590
76591 2006-12-19  Bruno Haible  <bruno@clisp.org>
76592
76593         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76594         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76595
76596 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76597
76598         * modules/savewd (Depends-on): Fix dependency on fcntl.
76599
76600 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76603         conforms to C99, rather than relying on the user's environment
76604         setting of STDINT_H.
76605
76606 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76607         and Eric Blake  <ebb9@byu.net>
76608
76609         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76610         This is more consistent with the other defines here.
76611         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76612         Port to z/OS.  Problem reported by Paul Gilmartin.
76613         Change local vars to use gl_ prefix rather than ac_.
76614         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76615         with other defines.
76616         * modules/double-slash-root: New module.
76617         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76618         (Depends-on): Add double-slash-root.
76619         * MODULES.html.sh (File system functions): Mention new module.
76620
76621 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76622
76623         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76624         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76625         This is for the benefit of gzip, which doesn't do i18n.
76626
76627 2006-12-12  Jim Meyering  <jim@meyering.net>
76628
76629         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76630         Reported by Andreas Schwab <schwab@suse.de>.
76631
76632 2006-12-12  Bruno Haible  <bruno@clisp.org>
76633
76634         Merge these changes.
76635         2006-09-05  Bruno Haible  <bruno@clisp.org>
76636         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76637         iconv_alloc succeeded.
76638         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76639         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76640         test for " && dest " at the end - dest is always != NULL there. Call
76641         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76642         with 2xNULL arguments, also to flush the state storage. Handle the
76643         IRIX iconv behaviour. Realloc the final result, to throw away unused
76644         memory.
76645
76646 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76649         and fchmodat unconditionally, since glibc 2.4 has them.
76650         Problem reported by Arkadiusz Miskiewicz.
76651
76652 2006-12-10  Bruno Haible  <bruno@clisp.org>
76653
76654         * gnulib-tool (func_import): Show the include files only for those
76655         modules that are copied and specified.
76656         Reported by Karl Berry.
76657
76658 2006-12-08  Jim Meyering  <jim@meyering.net>
76659
76660         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76661         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76662
76663         * build-aux/announce-gen: Add two new options, both optional:
76664         --bootstrap-tools=TOOL_LIST
76665               a comma-separated list of tools, e.g.,
76666               autoconf,automake,bison,gnulib
76667         --gnulib-snapshot-date=DATE
76668               if gnulib is in the bootstrap tool list,
76669               then report this as the snapshot date.
76670               If not specified, use the current date/time.
76671               If you specify a date here, be sure it's UTC.
76672
76673 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76674
76675         * tests/test-argp-2.sh: Fix test to match actual output.
76676         (func_compare): Fix sed script to be portable.
76677
76678 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76681         workaround for this case.  It is not autoconfigured now; offhand
76682         it's hard to see how to autoconfigure it.
76683
76684 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76687         a directory that is about to be chowned.  Such a directory's
76688         initial file permissions should permit the owner only and this
76689         should not be changed until after the chown, since the group and
76690         other bits would be incorrect if they granted permission before
76691         the chown.
76692
76693         Fix porting problem for iswctype reported by Georg Schwarz in:
76694         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76695         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76696         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76698         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76699
76700 2006-12-03  Jim Meyering  <jim@meyering.net>
76701
76702         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76703         p->fts_statp may not yet be defined.
76704         (fts_read): Instead, set it in the caller, once p->fts_statp is
76705         sure to be defined, and corresponds to a top-level directory.
76706         This bug made du -x fail.  Here's the coreutils test case:
76707         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76708         Reported by Mike Frysinger.
76709
76710 2006-12-01  Jim Meyering  <jim@meyering.net>
76711
76712         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76713         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76714         Reported by Simon Josefsson.
76715
76716 2006-11-30  Jim Meyering  <jim@meyering.net>
76717
76718         * m4/warning.m4: Use the all-permissive copyright notice
76719         recommended by RMS (rather than LGPL).
76720         * m4/vararrays.m4: Likewise.
76721         * m4/flexmember.m4: Likewise.
76722
76723 2006-11-29  Bruno Haible  <bruno@clisp.org>
76724
76725         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76726         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76727         using +=.
76728         Reported by Simon Josefsson <simon@josefsson.org>.
76729
76730 2006-11-28  James Youngman <jay@gnu.org>
76731
76732         * README: Advise users that they might find the bug-gnulib@gnu.org
76733         and autotools-announce@gnu.org mailing lists useful.
76734
76735 2006-11-28  Bruno Haible  <bruno@clisp.org>
76736
76737         * m4/ptrdiff_max.m4: Remove file.
76738
76739 2006-11-21  Bruno Haible  <bruno@clisp.org>
76740
76741         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76742         _AC_COMPUTE_INT.
76743         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76744         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76745         _AC_COMPUTE_INT.
76746         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76747         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76748         _AC_COMPUTE_INT.
76749         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76750
76751 2006-11-28  Jim Meyering  <jim@meyering.net>
76752
76753         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76754         warning from "gcc -Wshadow" about shadowing the builtin.
76755
76756 2006-11-27  Bruno Haible  <bruno@clisp.org>
76757
76758         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76759         _AC_COMPUTE_INT.
76760         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76761
76762 2006-11-27  Bruno Haible  <bruno@clisp.org>
76763             Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76766
76767 2006-11-26  Bruno Haible  <bruno@clisp.org>
76768
76769         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76770         noinst_LTLIBRARIES.
76771
76772 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76773             Bruno Haible  <bruno@clisp.org>
76774
76775         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76776         if compiling with "gcc -ansi".
76777
76778 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         Fix some incompatibilities with gcc -ansi -pedantic.
76781         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76782         if compiling pedantically with GCC, unless it's C99 or later.
76783         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76784         it mishandles gcc -ansi -pedantic as well.
76785         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76786         if gcc -pedantic.
76787         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76788         initializers for struct if -pedantic, unless it's C99 or later.
76789
76790 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76791
76792         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76793         Don't close an fd more than once. Identical atimes indicate
76794         success, not failure.
76795
76796 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76797
76798         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76799
76800 2006-11-23  Jim Meyering  <jim@meyering.net>
76801
76802         * build-aux/announce-gen: New file.  From coreutils.
76803
76804 2006-11-22  Jim Meyering  <jim@meyering.net>
76805
76806         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76807         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76808         (fts_read): Use a temporary to narrow the overused st_size member
76809         before using it in a switch statement.  Reported by Matthew Woehlke.
76810
76811         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76812         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76813
76814 2006-11-20  Bruno Haible  <bruno@clisp.org>
76815
76816         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76817         changequote instead of pairs of brackets.
76818         Reported by Andreas Schwab <schwab@suse.de>.
76819
76820 2006-11-21  Jim Meyering  <jim@meyering.net>
76821
76822         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76823         so as to remain compatible with older compilers.
76824         Patch from Michael Deutschmann.
76825
76826 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         * MODULES.html.sh (File system functions): Add openat.
76829
76830         * lib/openat.h (rpl_fstatat): New macro, if
76831         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76832         (fstatat): Define to rpl_fstatat under the same conditions,
76833         unless COMPILING_FSTATAT.
76834         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76835         seems to have the bug.
76836         * lib/fstatat.c: New file.
76837         * modules/openat (Files): Add it.
76838
76839 2006-11-20  Bruno Haible  <bruno@clisp.org>
76840
76841         * Makefile: New file.
76842
76843 2006-11-20  Jim Meyering  <jim@meyering.net>
76844
76845         The beginnings of syntax-related checks for gnulib.
76846         * lib/Makefile: New file.
76847         * lib/t-idcache: New script.  Ensure that the two halves of
76848         idcache.c stay in sync.
76849
76850         * lib/idcache.c: Adjust comments in user- and group- portions to
76851         be more accurate, and to be consistent with one another.
76852
76853 2006-11-20  Jim Meyering  <jim@meyering.net>
76854
76855         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76856         continue using the flexible array member (thus, this module performs
76857         half as many malloc calls), with the addition that...
76858         (getgroup, getuser): Consistently record a non-match via an empty
76859         "name" string, and map an empty string match to a NULL return value.
76860         * modules/idcache (Depends-on): Re-add flexmember.
76861
76862         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76863         (getuidbyname, getgroup, getgidbyname): Likewise.
76864
76865         Use cleaner syntax: NULL rather than 0.
76866         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76867
76868 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76871         It mishandled the case where the group was missing.
76872         Problem reported by Greg Schafer.
76873         * modules/idcache: Likewise.
76874
76875 2006-11-18  Jim Meyering  <jim@meyering.net>
76876
76877         * check-module (%exempt_header): Add exception for some
76878         conditionally-included headers.
76879
76880         * modules/i-ring (Depends-on): Add verify.
76881         (License): Change to LGPL.
76882
76883 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76884
76885         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76886         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76887         and inttostr.h.  Use snprintf rather than uinttostr, so that
76888         LGPLed code doesn't depend on GPLed.
76889
76890 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76891
76892         * modules/inline (License): Change from GPL to LGPL.
76893
76894 2006-11-17  Jim Meyering  <jim@meyering.net>
76895
76896         * modules/d-type (License): Switch to LGPL.
76897
76898 2006-11-15  Bruno Haible  <bruno@clisp.org>
76899
76900         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76901
76902 2006-11-15  Eric Blake  <ebb9@byu.net>
76903
76904         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76905         the module dependency.
76906
76907 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76908             Bruno Haible  <bruno@clisp.org>
76909
76910         * gnulib-tool (func_create_testdir): Add license consistency check.
76911
76912 2006-11-15  Eric Blake  <ebb9@byu.net>
76913
76914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76915         random "(cached)" in configure output.
76916
76917 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76918
76919         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76920         test for conforming inttypes.h is both announced and cached.
76921
76922         * MODULES.html.sh (seen_modules, seen_files): New variables.
76923         (func_module): Rewrite to use a few less gnulib-tool and sed
76924         invocations.  Avoid a couple of quadratic algorithms for ...
76925         (missed_modules, missed_files): ... these, with ...
76926         (func_append, func_tmpdir): ... these new functions, from
76927         gnulib-tool.  Analogously, install traps for cleanup.
76928
76929         * tests/test-gc.c (main): Remove unused variables.
76930         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76931
76932 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         * modules/inttostr (License): Change to LGPL.
76935
76936 2006-11-14  Eric Blake  <ebb9@byu.net>
76937
76938         * modules/tempname (License): Change to LGPL.
76939
76940 2006-11-14  Eric Blake  <ebb9@byu.net>
76941
76942         * doc/functions.texi (Function Portability): *printf functions on
76943         Cygwin now understand all POSIX size specifiers.
76944
76945 2006-11-14  Bruno Haible  <bruno@clisp.org>
76946
76947         * modules/c-ctype (License): Change to LGPL.
76948
76949 2006-11-12  Bruno Haible  <bruno@clisp.org>
76950
76951         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76952         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76953         for GNOME libraries, for which the include files are installed in
76954         subdirectories of $prefix/include.
76955
76956 2006-11-12  Bruno Haible  <bruno@clisp.org>
76957
76958         * m4/lib-link.m4: Require at least autoconf-2.54.
76959         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76960         name to underscores for the --with option.
76961
76962 2006-11-13  Bruno Haible  <bruno@clisp.org>
76963
76964         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76965         the tests directory.
76966         Reported by Ralf Wildenhues.
76967
76968 2006-11-13  Bruno Haible  <bruno@clisp.org>
76969
76970         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76971         (func_emit_initmacro_end): Undo the override here.
76972         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76973         Works around the famous automake error in coreutils.
76974
76975 2006-11-13  Eric Blake  <ebb9@byu.net>
76976
76977         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76978         element, not its node.
76979
76980 2006-11-12  Bruno Haible  <bruno@clisp.org>
76981
76982         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76983         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76984
76985 2006-11-12  Bruno Haible  <bruno@clisp.org>
76986
76987         * gnulib-tool: New option --local-symlink.
76988         (func_usage): Document it.
76989         (lsymbolic): New variable.
76990         (func_import, func_create_testdir): If --symlink was not specified,
76991         test whether --local-symlink was specified and the file comes from
76992         the local_gnulib_dir.
76993
76994 2006-11-12  Bruno Haible  <bruno@clisp.org>
76995
76996         * gnulib-tool (func_ln): New function.
76997         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76998
76999 2006-11-12  Bruno Haible  <bruno@clisp.org>
77000
77001         Finish support for source files in subdirectories.
77002         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77003         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77004         AUTOMAKE_OPTIONS.
77005         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77006
77007 2006-11-12  Bruno Haible  <bruno@clisp.org>
77008
77009         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77010         EXTRA_lib_SOURCES augmentation.
77011         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77012
77013 2006-11-12  Jim Meyering  <jim@meyering.net>
77014
77015         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77016         file descriptors.  This also averts a failure on systems with
77017         native openat support when a traversed directory lacks "x" access.
77018         * lib/fts_.h: Include "i-ring.h"
77019         (struct FTS) [fts_fd_ring]: New member.
77020         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77021         (FCHDIR): Add parentheses.
77022         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77023         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77024         When descending, rather than simply closing the previous
77025         fts_cwd_fd value, push that file descriptor onto the ring.
77026         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77027         (fts_open): Initialize the new fd_ring member.
77028         (fts_close): Clear the ring.
77029         (fts_safe_changedir): When possible, use our new fd_ring to skip
77030         the diropen and fstat and dev/ino comparison that would normally
77031         accompany a virtual `chdir ("..")'.
77032
77033         * modules/fts (Depends-on): Add i-ring.
77034         * modules/i-ring: New module.
77035         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77036         * m4/i-ring.m4: New file.
77037
77038 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77039
77040         * gnulib-tool (func_create_testdir): Fix replacement of
77041         `build-aux' in configure.ac.  Run autotools in gltests
77042         subdirectory.
77043         (func_create_testdir, func_create_megatestdir, test): There is
77044         no need for '--force' in most autotool invocations in a new
77045         tree.  Actually fail the whole test if any of the tools, or the
77046         configure or make stages fail.
77047
77048         Sync from Automake.
77049         * build-aux/gnupload: Revert last change.  Add pointer to upload
77050         instructions of the GNU Maintenance Instructions.
77051         Suggestion by Karl Berry.
77052
77053 2006-11-10  Jim Meyering  <jim@meyering.net>
77054
77055         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77056
77057 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77058
77059         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77060         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77061         (bind_textdomain_codeset) [! ENABLE_NLS]:
77062         Evaluate all the arguments.  That way, callers get compatible behavior
77063         if the arguments have side effects.  Also, it avoids some GCC
77064         diagnostics in some cases; Joel E. Denny reported problems when Bison
77065         was configured with --enable-gcc-warnigs.
77066
77067 2006-11-10  Jim Meyering  <jim@meyering.net>
77068
77069         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77070         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77071         account.
77072
77073 2006-11-10  Jim Meyering  <jim@meyering.net>
77074
77075         * modules/inline: New file/module.
77076         * modules/xalloc (Files): Remove m4/inline.m4.
77077         (Depends-on): Add inline, instead.
77078         * modules/oset: Likewise.
77079         * modules/list: Likewise.
77080
77081 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77084         Problem reported by Matthew Woehlke.
77085
77086 2006-11-09  Bruno Haible  <bruno@clisp.org>
77087
77088         * lib/tempname.c (gen_tempname): Remove variant that invokes
77089         __gen_tempname.
77090         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77091         __gen_tempname.
77092
77093 2006-11-08  Bruno Haible  <bruno@clisp.org>
77094
77095         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77096         to 'yes' instead of 'cross-compiling'.
77097
77098 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         * lib/quotearg.h (quotearg_free): New decl.
77101         * lib/quotearg.c (quotearg_free): New function.
77102         (slot0, nslots, slotvec0, slotvec):
77103         Now file-scope so that quotearg_free can get at them.
77104
77105 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77106
77107         Sync from Automake.
77108         * build-aux/gnupload: Add missing 'gnu' to example URL.
77109         Report by Karl Berry.
77110
77111 2006-11-08  Bruno Haible  <bruno@clisp.org>
77112
77113         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77114         Suggested by Paul Eggert.
77115
77116 2006-11-08  Jim Meyering  <jim@meyering.net>
77117
77118         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77119         It's already included if !_LIBC.
77120         (fts_safe_changedir): Add a comment.
77121
77122 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77123
77124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77125         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77126         Matthew Woehlke.
77127
77128         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77129         definitions up, to avoid colliding with change below.
77130         (static_inline) [HAVE_INLINE]: New macro.
77131         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77132         Provide extern decls when !HAVE_INLINE.  Do not define unless
77133         static_inline is defined, either by us or by xmalloc.c.  Use
77134         static_inline rather than static inline.
77135         (XCALLOC): Optimize sizeof(T) = 1 case.
77136         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77137
77138 2006-11-07  Bruno Haible  <bruno@clisp.org>
77139
77140         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77141         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77142         AC_C_INLINE.
77143         * modules/xalloc (Files): Add m4/inline.m4.
77144
77145 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77146
77147         * README: Fix typo.
77148         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77149         (Miscellanous Notes): ...from this.
77150
77151 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77152
77153         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77154         Mention that offsetof should be used instead of sizeof.
77155         From Bruno Haible.
77156
77157 2006-11-07  Bruno Haible  <bruno@clisp.org>
77158
77159         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77160
77161 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77164         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77165         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77166         (gl_tree_add_before, gl_tree_add_after):
77167         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77168         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77169         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77170         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77171         (gl_linked_add_after, gl_linked_add_at): Likewise.
77172         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77173         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77174         (gl_tree_add_before, gl_tree_add_after): Likewise.
77175         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77176         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77177         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77178
77179 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77180
77181         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77182
77183 2006-11-06  Bruno Haible  <bruno@clisp.org>
77184
77185         * m4/inline.m4: New file.
77186         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77187         * modules/list (Files): Add m4/inline.m4.
77188         * modules/oset (Files): Likewise.
77189
77190 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77191
77192         * lib/idcache.c: Include <stddef.h>, for offsetof.
77193         (struct userid.name): Change from char * to a flexible array member.
77194         All uses changed.
77195         * modules/idcache (Depends-on): Add flexmember.
77196
77197         * MODULES.html.sh (Core language properties): New module flexmember.
77198         * modules/flexmember, m4/flexmember.m4: New files.
77199
77200         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77201         inline functions that are identical with the old xnmalloc_inline,
77202         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77203         that we can avoid some unnecessary integer multiplications and
77204         divisions in the common case where the element size is known at
77205         compile time.
77206         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77207         needed.
77208         (xnboundedmalloc): Remove.
77209         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77210         arguments, for consistency with rest of this header.
77211         (xcharalloc): Rewrite using XNMALLOC.
77212         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77213         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77214         versions have been moved to lib/xalloc.h and renamed to be the
77215         non-*_inline versions.
77216         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77217         and xnrealloc functions, since those functions are now inline and
77218         now call us.
77219         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77220         renaming described above.
77221         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77222         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77223         captures the dependency in AC_C_INLINE.
77224
77225         New module canonicalize-lgpl, proposed by Charles Wilson in
77226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77227         with a few small changes afterwards.
77228         * MODULES.html.sh (File system functions): New module
77229         canonicalize-lgpl.
77230         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77231         and canonicalize_file_name.
77232         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77233         * modules/canonicalize-lgpl: New files.
77234
77235 2006-11-05  Bruno Haible  <bruno@clisp.org>
77236
77237         * gnulib-tool (func_import, func_create_testdir): Create directories
77238         also for files in subdirectories of lib/.
77239
77240 2006-11-05  Bruno Haible  <bruno@clisp.org>
77241
77242         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77243         ANSI C compliant.
77244
77245 2006-11-03  Bruno Haible  <bruno@clisp.org>
77246
77247         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77248         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77249         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77250         (xnboundedmalloc): New inline function.
77251         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77252         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77253         xmalloc.
77254         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77255         xmalloc.
77256         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77257         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77258         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77259         xmalloc.
77260         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77261         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77262         xmalloc.
77263         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77264         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77265         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77266         xmalloc.
77267         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77268         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77269         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77270         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77271         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77272         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77273         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77274
77275 2006-11-03  Bruno Haible  <bruno@clisp.org>
77276
77277         * lib/c-ctype.h [C++]: Define functions without name mangling.
77278         * lib/fwriteerror.h [C++]: Likewise.
77279         * lib/gcd.h [C++]: Likewise.
77280         * lib/linebreak.h [C++]: Likewise.
77281
77282 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77283
77284         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77285         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77286         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77287         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77288         Check for functions and headers just once.
77289         Check for declaration of canonicalize_file_name.
77290         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77291
77292 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77293
77294         * gnulib-tool (func_import): Fix typo in actioncmd.
77295
77296 2006-11-02  Bruno Haible  <bruno@clisp.org>
77297
77298         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77299         newline sequence in the Makefile.am snippet as a space, like "make"
77300         does.
77301         Reported by Roger Persson <perrog@gmail.com>.
77302
77303 2006-11-01  Bruno Haible  <bruno@clisp.org>
77304
77305         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77306         already declared in <string.h>.
77307         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77308
77309 2006-11-01  Bruno Haible  <bruno@clisp.org>
77310
77311         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77312         * lib/strcase.h: Include <string.h>.
77313         (strcasecmp): Define to rpl_strcasecmp here.
77314
77315 2006-11-01  Bruno Haible  <bruno@clisp.org>
77316
77317         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77318
77319 2006-11-01  Eric Blake  <ebb9@byu.net>
77320
77321         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77322
77323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77324
77325 2006-10-29  Bruno Haible  <bruno@clisp.org>
77326
77327         Make it compile in C++ mode.
77328         * lib/full-write.c (full_rw): Add a cast.
77329
77330 2006-11-01  Bruno Haible  <bruno@clisp.org>
77331
77332         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77333         be POSIX compliant.
77334         Reported by Roger Persson <perrog@gmail.com>.
77335
77336 2006-11-01  Eric Blake  <ebb9@byu.net>
77337
77338         * lib/getopt_.h: Fix comments.
77339
77340 2006-10-31  Eric Blake  <ebb9@byu.net>
77341
77342         * modules/tmpdir (Depends-on): Add sys_stat.
77343         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77344         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77345         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77346         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77347         tempname.
77348
77349 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         Avoid some C++ diagnostics reported by Bruno Haible.
77352         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77353         xmalloc.
77354         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77355         (struct slotvec): Move to top level.
77356         (quotearg_n_options): Rewrite to avoid xmalloc.
77357         * lib/xalloc.h (xcharalloc): New function.
77358         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77359         [defined __cplusplus]: Add function template that provides result
77360         type propagation.  This part of the change is from Bruno Haible.
77361
77362 2006-10-29  Bruno Haible  <bruno@clisp.org>
77363
77364         Make it compile in C++ mode.
77365         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77366         * lib/strnlen1.c (strnlen1): Cast memchr result.
77367         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77368         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77369         (create_temp_dir): Rename local variable 'template'.
77370         (compile_csharp_using_sscli): Add cast.
77371         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77372         * lib/findprog.c (find_in_path): Likewise.
77373         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77374         * lib/wait-process.c (register_slave_subprocess): Likewise.
77375
77376 2006-10-22  Bruno Haible  <bruno@clisp.org>
77377
77378         * modules/tsearch: New file.
77379         * lib/tsearch.h: New file.
77380         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77381         * m4/tsearch.m4: New file.
77382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77383
77384 2006-10-29  Eric Blake  <ebb9@byu.net>
77385
77386         * lib/arcfour.c: Assume config.h.
77387         * lib/arctwo.c: Likewise.
77388         * lib/base64.c: Likewise.
77389         * lib/check-version.c: Likewise.
77390         * lib/crc.c: Likewise.
77391         * lib/des.c: Likewise.
77392         * lib/gc-gnulib.c: Likewise.
77393         * lib/gc-libgcrypt.c: Likewise.
77394         * lib/gc-pbkdf2-sha1.c: Likewise.
77395         * lib/getaddrinfo.c: Likewise.
77396         * lib/getdelim.c: Likewise.
77397         * lib/getline.c: Likewise.
77398         * lib/hmac-md5.c: Likewise.
77399         * lib/hmac-sha1.c: Likewise.
77400         * lib/iconvme.c: Likewise.
77401         * lib/md2.c: Likewise.
77402         * lib/md4.c: Likewise.
77403         * lib/memxor.c: Likewise.
77404         * lib/read-file.c: Likewise.
77405         * lib/readline.c: Likewise.
77406         * lib/rijndael-alg-fst.c: Likewise.
77407         * lib/rijndael-api-fst.c: Likewise.
77408         * lib/xgetdomainname.c: Likewise.
77409
77410 2006-10-28  Eric Blake  <ebb9@byu.net>
77411
77412         * lib/xstrndup.c: Assume config.h.
77413
77414 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77417         stat-macros.h is now for our own macros, whereas stat_h is for
77418         macros in the <sys/stat.h> name space.
77419         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77420         (STAT_MACROS_H): Remove.
77421         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77422         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77423         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77424         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77425         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77426         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77427         Move these macros to ...
77428         * lib/stat_.h: here.  Don't include stat-macros.h.
77429         * lib/canonicalize.c: Don't include stat-macros.h.
77430         * lib/chown.c: Likewise.
77431         * lib/euidaccess.c: Likewise.
77432         * lib/file-type.c: Likewise.
77433         * lib/filemode.c: Likewise.
77434         * lib/glob.c: Likewise.
77435         * lib/isapipe.c: Likewise.
77436         * lib/lchown.c: Likewise.
77437         * lib/lstat.c: Likewise.
77438         * lib/mkdir-p.c: Likewise.
77439         * lib/rmdir.c: Likewise.
77440         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77442         unless mkdir isn't declared, to speed up 'configure'.
77443         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77444         would define all the S_* symbols.
77445         * modules/canonicalize (Depends-on):
77446         Depend on sys_stat, not stat-macros.
77447         * modules/chown: Likewise.
77448         * modules/euidaccess: Likewise.
77449         * modules/filemode: Likewise.
77450         * modules/file-type: Likewise.
77451         * modules/glob: Likewise.
77452         * modules/isapipe: Likewise.
77453         * modules/lchown: Likewise.
77454         * modules/lstat: Likewise.
77455         * modules/mkancesdirs: Likewise.
77456         * modules/rmdir: Likewise.
77457         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77458         * modules/modechange: Likewise.
77459         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77460         (configure.ac): Remove gl_STAT_MACROS.
77461         * modules/sys_stat (Depends-on): Remove stat-macros.
77462
77463 2006-10-27  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/signed.m4: Remove file.
77466         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77467         invocation.
77468         * modules/vasnprintf (Files): Remove m4/signed.m4.
77469
77470 2006-10-27  Bruno Haible  <bruno@clisp.org>
77471
77472         Update to GNU gettext 0.16.
77473         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77474         m4/inttypes-h.m4, m4/signed.m4.
77475         * m4/gettext.m4: Update to GNU gettext 0.16.
77476         * m4/intl.m4: New file, from GNU gettext.
77477         * m4/intldir.m4: New file, from GNU gettext.
77478         * config/srclist.txt: Update
77479
77480 2006-10-27  Eric Blake  <ebb9@byu.net>
77481
77482         * MODULES.html.sh: Document tempname.
77483         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77484         dependencies.
77485         (Files): Move lib/tempname.c...
77486         * modules/tempname: ...to this new module.
77487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77488         (gl_PREREQ_TEMPNAME): Move...
77489         * m4/tempname.m4: ...to this new file.
77490         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77491         * modules/sys_stat (Depends-on): Add stat-macros.
77492         * lib/stat_.h (includes): Pick up stat macros.
77493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77494         if stat macros are broken.
77495         * lib/tempname.c (includes): No need to include "stat-macros.h".
77496         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77497         (direxists, __path_search) [!_LIBC]: Don't compile these in
77498         gnulib; the tmpdir module covers that.
77499         * lib/tempname.h: New file.
77500
77501 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * COPYING: Explain how gnulib-tool converts licence headers.
77504         Almost all wording by Eric Blake.
77505
77506 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77507
77508         * lib/mbchar.h (is_basic_table): Make read-only.
77509         * lib/mbchar.c (is_basic_table): Likewise.
77510         Reported by John Darrington.
77511
77512 2006-10-25  Bruno Haible  <bruno@clisp.org>
77513
77514         * lib/progname.h (set_program_name): Undefine before defining.
77515
77516 2006-10-25  Bruno Haible  <bruno@clisp.org>
77517
77518         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77519         false for non-gcc C++ compilers.
77520         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77521
77522 2006-10-24  Bruno Haible  <bruno@clisp.org>
77523
77524         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77525         iconv implementations like Irix iconv.
77526
77527 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * modules/vararrays: New file.
77530         * m4/vararrays.m4: New file, taken from diffutils.
77531         * MODULES.html.sh: New module vararrays.
77532
77533 2006-10-24  Karl Berry  <karl@gnu.org>
77534
77535         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77536         Don't call GNU Unix.
77537
77538 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77539
77540         * users.txt: Add Libtool.
77541
77542         Sync from Libtool:
77543
77544         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77547         to gnulib's policy of including config.h unconditionally.
77548
77549 2006-10-24  Bruno Haible  <bruno@clisp.org>
77550
77551         * modules/wcwidth (Files): Add m4/wint_t.m4.
77552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77553         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77554
77555 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77556
77557         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77558         to pacify GCC with some -W flags enabled.  Problem reported by
77559         Bruno Haible.
77560
77561 2006-10-24  Jim Meyering  <jim@meyering.net>
77562
77563         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77564         Reported by Karl Berry.
77565
77566 2006-10-23  Bruno Haible  <bruno@clisp.org>
77567
77568         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77569
77570 2006-10-24  Bruno Haible  <bruno@clisp.org>
77571
77572         * lib/gl_list.h: Use C comment style, not C++ comment style.
77573
77574 2006-10-23  Eric Blake  <ebb9@byu.net>
77575
77576         * lib/getaddrinfo.c (includes): Add missing include.
77577
77578 2006-10-23  Bruno Haible  <bruno@clisp.org>
77579             Paul Eggert  <eggert@cs.ucla.edu>
77580
77581         Ability to rename obstack_free.
77582         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77583         obstack_free.
77584         (obstack_free): Invoke the __obstack_free macro.
77585         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77586
77587 2006-10-23  Bruno Haible  <bruno@clisp.org>
77588             Paul Eggert  <eggert@cs.ucla.edu>
77589
77590         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77591         __argc, __argv from the declaration. (They are defined as macros on
77592         mingw.)
77593
77594 2006-10-22  Bruno Haible  <bruno@clisp.org>
77595
77596         * doc/gnulib-intro.texi: New file.
77597         * doc/gnulib.texi: Include it.
77598
77599 2006-10-21  Bruno Haible  <bruno@clisp.org>
77600
77601         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77602         "Introduction", "Miscellanous Notes", "Particular Modules".
77603
77604 2006-10-21  Bruno Haible  <bruno@clisp.org>
77605
77606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77607         Change mostlyclean-local rule to avoid sh syntax error from bash
77608         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77609
77610 2006-10-23  Jim Meyering  <jim@meyering.net>
77611
77612         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77613         in place of snprintf.
77614
77615         * modules/inttostr (Files): Add lib/uinttostr.c.
77616         * lib/uinttostr.c (inttostr): New file/function.
77617         * lib/inttostr.h (uinttostr): Declare.
77618         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77619         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77620         Add uinttostr.
77621         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77622
77623 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77624
77625         * lib/canonicalize.c (ELOOP): Define if not already defined.
77626         Problem reported by Bruno Haible in
77627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77628
77629 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77632         Problem reported by Perry Smith and Ville Laurikari.
77633
77634         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77635         uses.
77636
77637 2006-10-19  Bruno Haible  <bruno@clisp.org>
77638
77639         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77640         for mingw.
77641
77642 2006-10-19  Bruno Haible  <bruno@clisp.org>
77643
77644         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77645         Needed for mingw.
77646
77647 2006-10-19  Bruno Haible  <bruno@clisp.org>
77648
77649         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77650
77651 2006-10-19  Bruno Haible  <bruno@clisp.org>
77652
77653         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77654         it.
77655
77656 2006-10-19  Bruno Haible  <bruno@clisp.org>
77657
77658         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77659         invocation.
77660
77661 2006-10-19  Bruno Haible  <bruno@clisp.org>
77662
77663         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77664         mountlist by default.
77665
77666 2006-10-16  Bruno Haible  <bruno@clisp.org>
77667
77668         * lib/c-strstr.c: Include c-strstr.h.
77669
77670 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77671
77672         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77673         in a slash.
77674
77675 2006-10-18  Bruno Haible  <bruno@clisp.org>
77676
77677         * lib/lock.h [C++]: Wrap definitions in extern "C".
77678
77679 2006-10-18  Bruno Haible  <bruno@clisp.org>
77680
77681         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77682         gl_LIBOBJS list.
77683
77684 2006-10-18  Bruno Haible  <bruno@clisp.org>
77685
77686         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77687
77688 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77689
77690         * lib/xstrtol.h: Include gettext.h.
77691         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77692         Problem reported by Eric Blake.
77693         * modules/xstrtol (Depends-on): Add gettext-h.
77694
77695 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77696
77697         * lib/strftime.c (advance): New macro.
77698         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77699         incomplete type, so you can't add 0 to it.  Problem and patch
77700         reported by Eelco Dolstra for dietlibc.
77701
77702 2006-10-18  Jim Meyering  <jim@meyering.net>
77703
77704         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77705         type for a local, and rename it: s/up/user_proc/.
77706
77707 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77708
77709         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77710         READ_UTMP_USER_PROCESS.
77711         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77712
77713 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77716         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77717
77718 2006-10-17  Eric Blake  <ebb9@byu.net>
77719
77720         * lib/sigprocmask.c (sigprocmask): Fix typo.
77721
77722         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77723
77724         * modules/clean-temp (Makefile.am): Don't add to make output...
77725         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77726         config.h.
77727
77728 2006-10-17  Bruno Haible  <bruno@clisp.org>
77729
77730         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77731         differently if DEFAULT_TEXT_DOMAIN is set.
77732
77733 2006-10-16  Bruno Haible  <bruno@clisp.org>
77734
77735         * lib/clean-temp.c: Include fwriteerror.h.
77736
77737 2006-10-16  Bruno Haible  <bruno@clisp.org>
77738
77739         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77740
77741 2006-10-16  Bruno Haible  <bruno@clisp.org>
77742
77743         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77744         * lib/sigprocmask.h: Include <sys/types.h>.
77745         (sigset_t): Use the system's definition if present.
77746
77747 2006-10-17  Eric Blake  <ebb9@byu.net>
77748
77749         * lib/xvasprintf.c (includes): Assume config.h.
77750         * lib/xasprintf.c (includes): Likewise.
77751
77752 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77753
77754         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77755         at least as wide as intmax_t.
77756
77757 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77758
77759         (Imported from Automake.)
77760         * build-aux/gnupload: Update to version 1.1 of directive file.
77761
77762 2006-10-16  Eric Blake  <ebb9@byu.net>
77763
77764         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77765         match Automake 1.10a.
77766
77767 2006-10-14  Bruno Haible  <bruno@clisp.org>
77768
77769         * modules/sigprocmask: New file.
77770         * lib/sigprocmask.h: New file.
77771         * lib/sigprocmask.c: New file.
77772         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77773         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77774         request sigprocmask.o.
77775         (gl_PREREQ_SIGPROCMASK): New macro.
77776         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77777         (Depends-on): Add sigprocmask.
77778         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77779         gt_SIGNALBLOCKING. Test for 'raise' only once.
77780         * lib/fatal-signal.c: Include sigprocmask.h.
77781         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77782         unblock_fatal_signals): Define always.
77783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77784         sigprocmask.
77785
77786 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         Sync from Automake.
77789         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77790         which incorrectly sets the mode of an existing destination
77791         directory.  In some cases the unpatched install-sh could do the
77792         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77793         system.  We hope this is rare in practice, but it's clearly worth
77794         fixing.  Problem reported by Alex Unleashed in
77795         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77796         Also, don't bother to check for -m bugs unless we're using -m;
77797         suggested by Stepan Kasal.
77798
77799 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77800
77801         Sync from Automake.
77802         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77803         `-c' flag, so they appear at the same position as in %FASTDEP%
77804         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77805         which ignores unknown options only after the first non-option.
77806         Bug report against M4 by Nelson H. F. Beebe.
77807
77808 2006-10-13  Jim Meyering  <jim@meyering.net>
77809
77810         Fix a bug in yesterday's change.
77811         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77812         p->fts_statp->st_dev would be used uninitialized.
77813         Ensures that we always call fts_stat on the very first entry.
77814         Miklos Szeredi reported that find -xdev stopped working.
77815
77816 2006-10-12  Bruno Haible  <bruno@clisp.org>
77817
77818         * gnulib-tool (func_get_automake_snippet): Append an automatically
77819         computed EXTRA_DIST augmentation.
77820         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77821         * modules/alloca-opt (Makefile.am): Likewise.
77822         * modules/allocsa (Makefile.am): Likewise.
77823         * modules/arcfour (Makefile.am): Likewise.
77824         * modules/arctwo (Makefile.am): Likewise.
77825         * modules/argmatch (Makefile.am): Likewise.
77826         * modules/argz (Makefile.am): Likewise.
77827         * modules/atexit (Makefile.am): Likewise.
77828         * modules/backupfile (Makefile.am): Likewise.
77829         * modules/byteswap (Makefile.am): Likewise.
77830         * modules/c-strtod (Makefile.am): Likewise.
77831         * modules/c-strtold (Makefile.am): Likewise.
77832         * modules/calloc (Makefile.am): Likewise.
77833         * modules/canon-host (Makefile.am): Likewise.
77834         * modules/canonicalize (Makefile.am): Likewise.
77835         * modules/chdir-long (Makefile.am): Likewise.
77836         * modules/chdir-safer (Makefile.am): Likewise.
77837         * modules/check-version (Makefile.am): Likewise.
77838         * modules/chown (Makefile.am): Likewise.
77839         * modules/cloexec (Makefile.am): Likewise.
77840         * modules/close-stream (Makefile.am): Likewise.
77841         * modules/closeout (Makefile.am): Likewise.
77842         * modules/crc (Makefile.am): Likewise.
77843         * modules/csharpexec (Makefile.am): Likewise.
77844         * modules/cycle-check (Makefile.am): Likewise.
77845         * modules/des (Makefile.am): Likewise.
77846         * modules/dev-ino (Makefile.am): Likewise.
77847         * modules/dirfd (Makefile.am): Likewise.
77848         * modules/dirname (Makefile.am): Likewise.
77849         * modules/dup2 (Makefile.am): Likewise.
77850         * modules/eealloc (Makefile.am): Likewise.
77851         * modules/error (Makefile.am): Likewise.
77852         * modules/euidaccess (Makefile.am): Likewise.
77853         * modules/exclude (Makefile.am): Likewise.
77854         * modules/exitfail (Makefile.am): Likewise.
77855         * modules/fcntl-safer (Makefile.am): Likewise.
77856         * modules/fcntl (Makefile.am): Likewise.
77857         * modules/file-type (Makefile.am): Likewise.
77858         * modules/fileblocks (Makefile.am): Likewise.
77859         * modules/filemode (Makefile.am): Likewise.
77860         * modules/filenamecat (Makefile.am): Likewise.
77861         * modules/fnmatch (Makefile.am): Likewise.
77862         * modules/fopen-safer (Makefile.am): Likewise.
77863         * modules/fpending (Makefile.am): Likewise.
77864         * modules/fprintftime (Makefile.am): Likewise.
77865         * modules/free (Makefile.am): Likewise.
77866         * modules/fsusage (Makefile.am): Likewise.
77867         * modules/ftruncate (Makefile.am): Likewise.
77868         * modules/fts (Makefile.am): Likewise.
77869         * modules/gc-arcfour (Makefile.am): Likewise.
77870         * modules/gc-des (Makefile.am): Likewise.
77871         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77872         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77873         * modules/gc-md4 (Makefile.am): Likewise.
77874         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77875         * modules/gc-sha1 (Makefile.am): Likewise.
77876         * modules/gc (Makefile.am): Likewise.
77877         * modules/getaddrinfo (Makefile.am): Likewise.
77878         * modules/getcwd (Makefile.am): Likewise.
77879         * modules/getdelim (Makefile.am): Likewise.
77880         * modules/getdomainname (Makefile.am): Likewise.
77881         * modules/getgroups (Makefile.am): Likewise.
77882         * modules/gethostname (Makefile.am): Likewise.
77883         * modules/gethrxtime (Makefile.am): Likewise.
77884         * modules/getline (Makefile.am): Likewise.
77885         * modules/getloadavg (Makefile.am): Likewise.
77886         * modules/getlogin_r (Makefile.am): Likewise.
77887         * modules/getndelim2 (Makefile.am): Likewise.
77888         * modules/getopt (Makefile.am): Likewise.
77889         * modules/getpagesize (Makefile.am): Likewise.
77890         * modules/getpass-gnu (Makefile.am): Likewise.
77891         * modules/getpass (Makefile.am): Likewise.
77892         * modules/getsubopt (Makefile.am): Likewise.
77893         * modules/gettime (Makefile.am): Likewise.
77894         * modules/gettimeofday (Makefile.am): Likewise.
77895         * modules/getugroups (Makefile.am): Likewise.
77896         * modules/getusershell (Makefile.am): Likewise.
77897         * modules/glob (Makefile.am): Likewise.
77898         * modules/group-member (Makefile.am): Likewise.
77899         * modules/hard-locale (Makefile.am): Likewise.
77900         * modules/hash (Makefile.am): Likewise.
77901         * modules/hmac-md5 (Makefile.am): Likewise.
77902         * modules/hmac-sha1 (Makefile.am): Likewise.
77903         * modules/human (Makefile.am): Likewise.
77904         * modules/idcache (Makefile.am): Likewise.
77905         * modules/imaxabs (Makefile.am): Likewise.
77906         * modules/imaxdiv (Makefile.am): Likewise.
77907         * modules/inet_ntop (Makefile.am): Likewise.
77908         * modules/inet_pton (Makefile.am): Likewise.
77909         * modules/intprops (Makefile.am): Likewise.
77910         * modules/inttostr (Makefile.am): Likewise.
77911         * modules/inttypes (Makefile.am): Likewise.
77912         * modules/isapipe (Makefile.am): Likewise.
77913         * modules/javaversion (Makefile.am): Likewise.
77914         * modules/lchmod (Makefile.am): Likewise.
77915         * modules/lchown (Makefile.am): Likewise.
77916         * modules/localcharset (Makefile.am): Likewise.
77917         * modules/long-options (Makefile.am): Likewise.
77918         * modules/lstat (Makefile.am): Likewise.
77919         * modules/malloc (Makefile.am): Likewise.
77920         * modules/mathl (Makefile.am): Likewise.
77921         * modules/mbchar (Makefile.am): Likewise.
77922         * modules/md2 (Makefile.am): Likewise.
77923         * modules/md4 (Makefile.am): Likewise.
77924         * modules/md5 (Makefile.am): Likewise.
77925         * modules/memcasecmp (Makefile.am): Likewise.
77926         * modules/memchr (Makefile.am): Likewise.
77927         * modules/memcmp (Makefile.am): Likewise.
77928         * modules/memcoll (Makefile.am): Likewise.
77929         * modules/memcpy (Makefile.am): Likewise.
77930         * modules/memmem (Makefile.am): Likewise.
77931         * modules/memmove (Makefile.am): Likewise.
77932         * modules/mempcpy (Makefile.am): Likewise.
77933         * modules/memrchr (Makefile.am): Likewise.
77934         * modules/memset (Makefile.am): Likewise.
77935         * modules/memxor (Makefile.am): Likewise.
77936         * modules/mkancesdirs (Makefile.am): Likewise.
77937         * modules/mkdir-p (Makefile.am): Likewise.
77938         * modules/mkdir (Makefile.am): Likewise.
77939         * modules/mkdtemp (Makefile.am): Likewise.
77940         * modules/mkstemp (Makefile.am): Likewise.
77941         * modules/mktime (Makefile.am): Likewise.
77942         * modules/modechange (Makefile.am): Likewise.
77943         * modules/mountlist (Makefile.am): Likewise.
77944         * modules/nanosleep (Makefile.am): Likewise.
77945         * modules/obstack (Makefile.am): Likewise.
77946         * modules/openat (Makefile.am): Likewise.
77947         * modules/pagealign_alloc (Makefile.am): Likewise.
77948         * modules/pathmax (Makefile.am): Likewise.
77949         * modules/physmem (Makefile.am): Likewise.
77950         * modules/poll (Makefile.am): Likewise.
77951         * modules/posixtm (Makefile.am): Likewise.
77952         * modules/posixver (Makefile.am): Likewise.
77953         * modules/putenv (Makefile.am): Likewise.
77954         * modules/quote (Makefile.am): Likewise.
77955         * modules/quotearg (Makefile.am): Likewise.
77956         * modules/raise (Makefile.am): Likewise.
77957         * modules/read-file (Makefile.am): Likewise.
77958         * modules/readline (Makefile.am): Likewise.
77959         * modules/readlink (Makefile.am): Likewise.
77960         * modules/readtokens (Makefile.am): Likewise.
77961         * modules/readutmp (Makefile.am): Likewise.
77962         * modules/realloc (Makefile.am): Likewise.
77963         * modules/regex (Makefile.am): Likewise.
77964         * modules/rename-dest-slash (Makefile.am): Likewise.
77965         * modules/rename (Makefile.am): Likewise.
77966         * modules/rijndael (Makefile.am): Likewise.
77967         * modules/rmdir (Makefile.am): Likewise.
77968         * modules/rpmatch (Makefile.am): Likewise.
77969         * modules/safe-read (Makefile.am): Likewise.
77970         * modules/safe-write (Makefile.am): Likewise.
77971         * modules/same-inode (Makefile.am): Likewise.
77972         * modules/same (Makefile.am): Likewise.
77973         * modules/save-cwd (Makefile.am): Likewise.
77974         * modules/savedir (Makefile.am): Likewise.
77975         * modules/setenv (Makefile.am): Likewise.
77976         * modules/settime (Makefile.am): Likewise.
77977         * modules/sha1 (Makefile.am): Likewise.
77978         * modules/sig2str (Makefile.am): Likewise.
77979         * modules/snprintf (Makefile.am): Likewise.
77980         * modules/stat-macros (Makefile.am): Likewise.
77981         * modules/stat-time (Makefile.am): Likewise.
77982         * modules/stdbool (Makefile.am): Likewise.
77983         * modules/stdint (Makefile.am): Likewise.
77984         * modules/stdlib-safer (Makefile.am): Likewise.
77985         * modules/stpcpy (Makefile.am): Likewise.
77986         * modules/stpncpy (Makefile.am): Likewise.
77987         * modules/strcase (Makefile.am): Likewise.
77988         * modules/strcasestr (Makefile.am): Likewise.
77989         * modules/strchrnul (Makefile.am): Likewise.
77990         * modules/strcspn (Makefile.am): Likewise.
77991         * modules/strdup (Makefile.am): Likewise.
77992         * modules/strerror (Makefile.am): Likewise.
77993         * modules/strftime (Makefile.am): Likewise.
77994         * modules/strndup (Makefile.am): Likewise.
77995         * modules/strnlen (Makefile.am): Likewise.
77996         * modules/strpbrk (Makefile.am): Likewise.
77997         * modules/strsep (Makefile.am): Likewise.
77998         * modules/strstr (Makefile.am): Likewise.
77999         * modules/strtod (Makefile.am): Likewise.
78000         * modules/strtoimax (Makefile.am): Likewise.
78001         * modules/strtok_r (Makefile.am): Likewise.
78002         * modules/strtol (Makefile.am): Likewise.
78003         * modules/strtoll (Makefile.am): Likewise.
78004         * modules/strtoul (Makefile.am): Likewise.
78005         * modules/strtoull (Makefile.am): Likewise.
78006         * modules/strtoumax (Makefile.am): Likewise.
78007         * modules/strverscmp (Makefile.am): Likewise.
78008         * modules/sys_socket (Makefile.am): Likewise.
78009         * modules/sys_stat (Makefile.am): Likewise.
78010         * modules/sysexits (Makefile.am): Likewise.
78011         * modules/time_r (Makefile.am): Likewise.
78012         * modules/timegm (Makefile.am): Likewise.
78013         * modules/timespec (Makefile.am): Likewise.
78014         * modules/tmpfile-safer (Makefile.am): Likewise.
78015         * modules/trim (Makefile.am): Likewise.
78016         * modules/unistd-safer (Makefile.am): Likewise.
78017         * modules/unlinkdir (Makefile.am): Likewise.
78018         * modules/unlocked-io (Makefile.am): Likewise.
78019         * modules/userspec (Makefile.am): Likewise.
78020         * modules/utime (Makefile.am): Likewise.
78021         * modules/utimecmp (Makefile.am): Likewise.
78022         * modules/utimens (Makefile.am): Likewise.
78023         * modules/vasnprintf (Makefile.am): Likewise.
78024         * modules/vasprintf (Makefile.am): Likewise.
78025         * modules/vsnprintf (Makefile.am): Likewise.
78026         * modules/xalloc (Makefile.am): Likewise.
78027         * modules/xgetcwd (Makefile.am): Likewise.
78028         * modules/xnanosleep (Makefile.am): Likewise.
78029         * modules/xreadlink (Makefile.am): Likewise.
78030         * modules/xstrtod (Makefile.am): Likewise.
78031         * modules/xstrtol (Makefile.am): Likewise.
78032         * modules/xstrtold (Makefile.am): Likewise.
78033         * modules/yesno (Makefile.am): Likewise.
78034         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78035
78036 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78037
78038         * modules/error (Makefile.am): Distribute files through
78039         EXTRA_DIST, not lib_SOURCES.
78040
78041 2006-10-12  Eric Blake  <ebb9@byu.net>
78042
78043         * modules/error (Makefile.am): Distribute files in /lib.
78044         * modules/obstack (Makefile.am): Likewise.
78045
78046 2006-10-12  Bruno Haible  <bruno@clisp.org>
78047
78048         * modules/acl (Makefile.am): Distribute all files in lib/ through
78049         EXTRA_DIST.
78050         * modules/arcfour (Makefile.am): Likewise.
78051         * modules/arctwo (Makefile.am): Likewise.
78052         * modules/argmatch (Makefile.am): Likewise.
78053         * modules/argz (Makefile.am): Likewise.
78054         * modules/atexit (Makefile.am): Likewise.
78055         * modules/backupfile (Makefile.am): Likewise.
78056         * modules/c-strtod (Makefile.am): Likewise.
78057         * modules/c-strtold (Makefile.am): Likewise.
78058         * modules/calloc (Makefile.am): Likewise.
78059         * modules/canon-host (Makefile.am): Likewise.
78060         * modules/canonicalize (Makefile.am): Likewise.
78061         * modules/chdir-long (Makefile.am): Likewise.
78062         * modules/chdir-safer (Makefile.am): Likewise.
78063         * modules/check-version (Makefile.am): Likewise.
78064         * modules/chown (Makefile.am): Likewise.
78065         * modules/cloexec (Makefile.am): Likewise.
78066         * modules/close-stream (Makefile.am): Likewise.
78067         * modules/closeout (Makefile.am): Likewise.
78068         * modules/crc (Makefile.am): Likewise.
78069         * modules/cycle-check (Makefile.am): Likewise.
78070         * modules/des (Makefile.am): Likewise.
78071         * modules/dirfd (Makefile.am): Likewise.
78072         * modules/dirname (Makefile.am): Likewise.
78073         * modules/dup2 (Makefile.am): Likewise.
78074         * modules/euidaccess (Makefile.am): Likewise.
78075         * modules/exclude (Makefile.am): Likewise.
78076         * modules/exitfail (Makefile.am): Likewise.
78077         * modules/fcntl-safer (Makefile.am): Likewise.
78078         * modules/file-type (Makefile.am): Likewise.
78079         * modules/fileblocks (Makefile.am): Likewise.
78080         * modules/filemode (Makefile.am): Likewise.
78081         * modules/filenamecat (Makefile.am): Likewise.
78082         * modules/fnmatch (Makefile.am): Likewise.
78083         * modules/fopen-safer (Makefile.am): Likewise.
78084         * modules/fpending (Makefile.am): Likewise.
78085         * modules/fprintftime (Makefile.am): Likewise.
78086         * modules/free (Makefile.am): Likewise.
78087         * modules/fsusage (Makefile.am): Likewise.
78088         * modules/ftruncate (Makefile.am): Likewise.
78089         * modules/fts (Makefile.am): Likewise.
78090         * modules/gc (Makefile.am): Likewise.
78091         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78092         * modules/getaddrinfo (Makefile.am): Likewise.
78093         * modules/getcwd (Makefile.am): Likewise.
78094         * modules/getdelim (Makefile.am): Likewise.
78095         * modules/getdomainname (Makefile.am): Likewise.
78096         * modules/getgroups (Makefile.am): Likewise.
78097         * modules/gethostname (Makefile.am): Likewise.
78098         * modules/gethrxtime (Makefile.am): Likewise.
78099         * modules/getline (Makefile.am): Likewise.
78100         * modules/getloadavg (Makefile.am): Likewise.
78101         * modules/getlogin_r (Makefile.am): Likewise.
78102         * modules/getopt (Makefile.am): Likewise.
78103         * modules/getpass (Makefile.am): Likewise.
78104         * modules/getpass-gnu (Makefile.am): Likewise.
78105         * modules/getsubopt (Makefile.am): Likewise.
78106         * modules/gettime (Makefile.am): Likewise.
78107         * modules/gettimeofday (Makefile.am): Likewise.
78108         * modules/getugroups (Makefile.am): Likewise.
78109         * modules/getusershell (Makefile.am): Likewise.
78110         * modules/glob (Makefile.am): Likewise.
78111         * modules/group-member (Makefile.am): Likewise.
78112         * modules/hard-locale (Makefile.am): Likewise.
78113         * modules/hash (Makefile.am): Likewise.
78114         * modules/hmac-md5 (Makefile.am): Likewise.
78115         * modules/hmac-sha1 (Makefile.am): Likewise.
78116         * modules/human (Makefile.am): Likewise.
78117         * modules/idcache (Makefile.am): Likewise.
78118         * modules/imaxabs (Makefile.am): Likewise.
78119         * modules/imaxdiv (Makefile.am): Likewise.
78120         * modules/inet_ntop (Makefile.am): Likewise.
78121         * modules/inet_pton (Makefile.am): Likewise.
78122         * modules/inttostr (Makefile.am): Likewise.
78123         * modules/isapipe (Makefile.am): Likewise.
78124         * modules/lchown (Makefile.am): Likewise.
78125         * modules/long-options (Makefile.am): Likewise.
78126         * modules/lstat (Makefile.am): Likewise.
78127         * modules/malloc (Makefile.am): Likewise.
78128         * modules/mathl (Makefile.am): Likewise.
78129         * modules/mbchar (Makefile.am): Likewise.
78130         * modules/md2 (Makefile.am): Likewise.
78131         * modules/md4 (Makefile.am): Likewise.
78132         * modules/md5 (Makefile.am): Likewise.
78133         * modules/memcasecmp (Makefile.am): Likewise.
78134         * modules/memchr (Makefile.am): Likewise.
78135         * modules/memcmp (Makefile.am): Likewise.
78136         * modules/memcoll (Makefile.am): Likewise.
78137         * modules/memcpy (Makefile.am): Likewise.
78138         * modules/memmem (Makefile.am): Likewise.
78139         * modules/memmove (Makefile.am): Likewise.
78140         * modules/mempcpy (Makefile.am): Likewise.
78141         * modules/memrchr (Makefile.am): Likewise.
78142         * modules/memset (Makefile.am): Likewise.
78143         * modules/memxor (Makefile.am): Likewise.
78144         * modules/mkancesdirs (Makefile.am): Likewise.
78145         * modules/mkdir (Makefile.am): Likewise.
78146         * modules/mkdir-p (Makefile.am): Likewise.
78147         * modules/mkdtemp (Makefile.am): Likewise.
78148         * modules/mkstemp (Makefile.am): Likewise.
78149         * modules/mktime (Makefile.am): Likewise.
78150         * modules/modechange (Makefile.am): Likewise.
78151         * modules/mountlist (Makefile.am): Likewise.
78152         * modules/nanosleep (Makefile.am): Likewise.
78153         * modules/openat (Makefile.am): Likewise.
78154         * modules/pagealign_alloc (Makefile.am): Likewise.
78155         * modules/physmem (Makefile.am): Likewise.
78156         * modules/poll (Makefile.am): Likewise.
78157         * modules/posixtm (Makefile.am): Likewise.
78158         * modules/posixver (Makefile.am): Likewise.
78159         * modules/putenv (Makefile.am): Likewise.
78160         * modules/quote (Makefile.am): Likewise.
78161         * modules/quotearg (Makefile.am): Likewise.
78162         * modules/raise (Makefile.am): Likewise.
78163         * modules/read-file (Makefile.am): Likewise.
78164         * modules/readline (Makefile.am): Likewise.
78165         * modules/readlink (Makefile.am): Likewise.
78166         * modules/readtokens (Makefile.am): Likewise.
78167         * modules/readutmp (Makefile.am): Likewise.
78168         * modules/realloc (Makefile.am): Likewise.
78169         * modules/regex (Makefile.am): Likewise.
78170         * modules/rename (Makefile.am): Likewise.
78171         * modules/rename-dest-slash (Makefile.am): Likewise.
78172         * modules/rijndael (Makefile.am): Likewise.
78173         * modules/rmdir (Makefile.am): Likewise.
78174         * modules/rpmatch (Makefile.am): Likewise.
78175         * modules/safe-read (Makefile.am): Likewise.
78176         * modules/safe-write (Makefile.am): Likewise.
78177         * modules/same (Makefile.am): Likewise.
78178         * modules/save-cwd (Makefile.am): Likewise.
78179         * modules/savedir (Makefile.am): Likewise.
78180         * modules/setenv (Makefile.am): Likewise.
78181         * modules/settime (Makefile.am): Likewise.
78182         * modules/sha1 (Makefile.am): Likewise.
78183         * modules/sig2str (Makefile.am): Likewise.
78184         * modules/snprintf (Makefile.am): Likewise.
78185         * modules/stdlib-safer (Makefile.am): Likewise.
78186         * modules/stpcpy (Makefile.am): Likewise.
78187         * modules/stpncpy (Makefile.am): Likewise.
78188         * modules/strcase (Makefile.am): Likewise.
78189         * modules/strcasestr (Makefile.am): Likewise.
78190         * modules/strchrnul (Makefile.am): Likewise.
78191         * modules/strcspn (Makefile.am): Likewise.
78192         * modules/strdup (Makefile.am): Likewise.
78193         * modules/strerror (Makefile.am): Likewise.
78194         * modules/strftime (Makefile.am): Likewise.
78195         * modules/strndup (Makefile.am): Likewise.
78196         * modules/strnlen (Makefile.am): Likewise.
78197         * modules/strpbrk (Makefile.am): Likewise.
78198         * modules/strsep (Makefile.am): Likewise.
78199         * modules/strstr (Makefile.am): Likewise.
78200         * modules/strtod (Makefile.am): Likewise.
78201         * modules/strtoimax (Makefile.am): Likewise.
78202         * modules/strtok_r (Makefile.am): Likewise.
78203         * modules/strtol (Makefile.am): Likewise.
78204         * modules/strtoll (Makefile.am): Likewise.
78205         * modules/strtoul (Makefile.am): Likewise.
78206         * modules/strtoull (Makefile.am): Likewise.
78207         * modules/strtoumax (Makefile.am): Likewise.
78208         * modules/strverscmp (Makefile.am): Likewise.
78209         * modules/time_r (Makefile.am): Likewise.
78210         * modules/timegm (Makefile.am): Likewise.
78211         * modules/tmpfile-safer (Makefile.am): Likewise.
78212         * modules/unistd-safer (Makefile.am): Likewise.
78213         * modules/unlinkdir (Makefile.am): Likewise.
78214         * modules/userspec (Makefile.am): Likewise.
78215         * modules/utime (Makefile.am): Likewise.
78216         * modules/utimecmp (Makefile.am): Likewise.
78217         * modules/utimens (Makefile.am): Likewise.
78218         * modules/vasnprintf (Makefile.am): Likewise.
78219         * modules/vasprintf (Makefile.am): Likewise.
78220         * modules/vsnprintf (Makefile.am): Likewise.
78221         * modules/xalloc (Makefile.am): Likewise.
78222         * modules/xgetcwd (Makefile.am): Likewise.
78223         * modules/xnanosleep (Makefile.am): Likewise.
78224         * modules/xreadlink (Makefile.am): Likewise.
78225         * modules/xstrtod (Makefile.am): Likewise.
78226         * modules/xstrtol (Makefile.am): Likewise.
78227         * modules/xstrtold (Makefile.am): Likewise.
78228         * modules/yesno (Makefile.am): Likewise.
78229
78230 2006-10-12  Jim Meyering  <jim@meyering.net>
78231
78232         * m4/getloadavg.m4: Revert the change below.
78233
78234         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78235         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78236         fail with a symlink, which is what coreutils' ./bootstrap now
78237         creates by default.
78238
78239 2006-10-12  Bruno Haible  <bruno@clisp.org>
78240
78241         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78242         mingw.
78243         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78244         MSVC and mingw explicitly.
78245
78246 2006-10-11  Simon Josefsson  <jas@extundo.com>
78247             Bruno Haible  <bruno@clisp.org>
78248
78249         Add support for multiple gnulib-tool invocations in the scope of a
78250         single configure.ac file.
78251         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78252         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78253         with the same contents as the _LIBADD variable.
78254         (func_emit_initmacro_start, func_emit_initmacro_end,
78255         func_emit_initmacro_done): New functions.
78256         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78257         gl_LIBOBJS and gl_LTLIBOBJS.
78258
78259 2006-10-11  Bruno Haible  <bruno@clisp.org>
78260
78261         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78262         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78263         autoreconf. Instead, invoke autopoint explicitly but move back the
78264         *.m4 files from gnulib.
78265
78266 2006-10-11  Bruno Haible  <bruno@clisp.org>
78267
78268         * gnulib-tool (func_usage): Make module names after --create-testdir
78269         optional.
78270         (func_create_testdir): If no module was specified, use nearly all
78271         modules.
78272
78273 2006-10-12  Jim Meyering  <jim@meyering.net>
78274
78275         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78276         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78277         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78278         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78279         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78280         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78281         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78282         (fts_set_stat_required): New function.
78283         (fts_open): Defer the calls to fts_stat, if possible or requested.
78284         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78285         into fts_stat itself.
78286         (fts_read): Perform any required (deferred) fts_stat call.
78287         (fts_build): Likewise, for the directory we're about to open and read.
78288         In the readdir loop, carefully decide whether each entry will require
78289         an eventual call to fts_stat, using dirent.d_type info if available.
78290         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78291         a command line argument into this function.  Update all callers.
78292         Map a return value of FTS_DOT to FTS_D for a command line argument.
78293         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78294         Thanks to Miklos Szeredi for his tenacity and for the initial
78295         bug report about "find" failing on a FUSE-based file system.
78296
78297         * lib/fts.c (fts_open): Use consistent indentation.
78298
78299 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78302         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78303         reported by Jim Meyering.  All uses of cache variables renamed
78304         to match Autoconf's.
78305         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78306         the other one.
78307
78308         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78309         Fix misspelling in diagnostic.
78310
78311 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78314         defined.  Problem reported by Matthew Woehlke.
78315
78316         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78317         Add support for Tandem NonStop R series.
78318         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78319         Use new macro.
78320
78321         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78322         (has_trailing_slash): Omit size arg; all callers changed.
78323         Omit 'inline', since it doesn't help performance and we'd
78324         need to configure it.
78325         Don't count //, ///, etc. as having a trailing slash.
78326         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78327         (rpl_rename_dest_slash): On failure, use rename's errno rather
78328         than (in some cases) an incorrect or junk errno.
78329         Simplify code by removing need to compute length; this does
78330         cause it to make two passes instead of one over the file name,
78331         but it's worth it.
78332
78333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78334         change, since Autoconf's version may no longer be appropriate now
78335         that we are using CVS Autoconf's version.  Add support for Tandem.
78336
78337 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78338             Bruno Haible  <bruno@clisp.org>
78339
78340         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78341         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78342         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78343         gl_AC_TYPE_LONG_LONG.
78344
78345         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78346         instead of HAVE_LONG_LONG.
78347         * lib/printf-args.c (printf_fetchargs): Likewise.
78348         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78349         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78350         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78351         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78352         gl_AC_TYPE_LONG_LONG.
78353
78354 2006-10-11  Bruno Haible  <bruno@clisp.org>
78355
78356         * m4/longlong.m4: Add comments.
78357         * m4/ulonglong.m4: Likewise.
78358
78359 2006-10-10  Bruno Haible  <bruno@clisp.org>
78360
78361         Make it possible to #define stpcpy, strdup to aliases.
78362         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78363         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78364
78365 2006-10-10  Bruno Haible  <bruno@clisp.org>
78366
78367         Make it possible to #define gcd to an alias.
78368         * lib/gcd.c: Include config.h.
78369
78370 2006-10-10  Bruno Haible  <bruno@clisp.org>
78371
78372         Make it possible to #define c_isascii to an alias.
78373         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78374         defined. Undefine the macros before defining them, to avoid gcc
78375         warnings.
78376         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78377         define NO_C_CTYPE_MACROS early.
78378
78379 2006-10-10  Bruno Haible  <bruno@clisp.org>
78380
78381         Make it possible to #define set_program_name to an alias.
78382         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78383         ENABLE_RELOCATABLE early.
78384
78385 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78388         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78389         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78390         More generally, don't assume that 64-bit signed int is available
78391         if unsigned int is, and vice versa.
78392         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78393         unsigned symbols, not on their signed counterparts.
78394         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78395         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78396         (UINT64_C, UINTMAX_C):
78397         Likewise.
78398         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78399         unsigned counterparts.
78400         (Have_long_long, Unsigned): New macros.
78401         (Int): Renamed from INT.
78402         (strtoimax): Use the new macros.
78403         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78404         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78405         * modules/inttypes (inttypes.h): Substitute
78406         HAVE_UNSIGNED_LONG_LONG_INT.
78407         * modules/stdint (stdint.h): Likewise.
78408         (Files): Add m4/ulonglong.m4.
78409
78410 2006-10-10  Bruno Haible  <bruno@clisp.org>
78411
78412         Fix a gcc -Wshadow warning.
78413         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78414         to 'bucket'.
78415         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78416         gl_linked_indexof_from_to): Likewise.
78417         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78418         Likewise.
78419         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78420         Likewise.
78421         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78422         Reported by Eric Blake.
78423
78424 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78427         for NetBSD.  Problem reported by Bruno Haible.
78428
78429 2006-10-09  Jim Meyering  <jim@meyering.net>
78430
78431         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78432         Patch from Bruno Haible.
78433
78434 2006-10-09  Jim Meyering  <jim@meyering.net>
78435
78436         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78437         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78438         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78439
78440 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         Don't include <config.h> twice; this doesn't work in some cases,
78443         e.g., when config.h has "#define intmax_t long long int" and
78444         we include <config.h>, <inttypes.h>, <config.h> in that order.
78445         Problem reported by Matthew Woehlke in:
78446         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78447         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78448         * lib/fts-cycle.c: Don't include config.h.
78449         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78450         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78451         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78452         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78453         inttypes.h.
78454         * lib/xstrtoumax.c: Likewise.
78455         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78456         __strtol and the like, so that this module is more like its siblings.
78457         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78458         Remove; no longer needed now that we assume gnulib inttypes.h.
78459
78460 2006-10-08  Bruno Haible  <bruno@clisp.org>
78461
78462         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78463         option.
78464
78465 2006-10-07  Jim Meyering  <jim@meyering.net>
78466
78467         * modules/inttypes (inttypes.h): Revert what seems to have been
78468         an inadvertent part of today's change: use "|", not "/" in the
78469         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78470
78471 2006-10-07  Bruno Haible  <bruno@clisp.org>
78472
78473         * modules/sublist: New file.
78474
78475 2006-10-07  Bruno Haible  <bruno@clisp.org>
78476
78477         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78478         * modules/argz (argz.h): Likewise.
78479         * modules/arpa_inet (arpa/inet.h): Likewise.
78480         * modules/byteswap (byteswap.h): Likewise.
78481         * modules/configmake (configmake.h): Likewise.
78482         * modules/fcntl (fcntl.h): Likewise.
78483         * modules/fnmatch (fnmatch.h): Likewise.
78484         * modules/getopt (getopt.h): Likewise.
78485         * modules/glob (glob.h): Likewise.
78486         * modules/inttypes (inttypes.h): Likewise.
78487         * modules/netinet_in (netinet/in.h): Likewise.
78488         * modules/poll (poll.h): Likewise.
78489         * modules/stdbool (stdbool.h): Likewise.
78490         * modules/stdint (stdint.h): Likewise.
78491         * modules/sys_select (sys/select.h): Likewise.
78492         * modules/sys_socket (sys/socket.h): Likewise.
78493         * modules/sys_stat (sys/stat.h): Likewise.
78494         * modules/sysexits (sysexits.h): Likewise.
78495         * modules/unistd (unistd.h): Likewise.
78496         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78497         Add a "DO NOT EDIT" comment to the generated file.
78498         (func_import): Likewise for gnulib-comp.m4.
78499
78500 2006-10-07  Bruno Haible  <bruno@clisp.org>
78501
78502         * lib/gl_sublist.h: New file.
78503         * lib/gl_sublist.c: New file.
78504
78505 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78508         name (relative to the original working directory) and the file
78509         name component (relative to the temporary working directory).  All
78510         callers changed.
78511         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78512         * lib/mkdir-p.c (make_dir_parents): Likewise.
78513         * lib/mkdir-p.h (make_dir_parents): Likewise.
78514
78515 2006-10-06  Eric Blake  <ebb9@byu.net>
78516
78517         Define several macros for use by the clean-temp module.
78518         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78519         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78520         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78521
78522         * lib/clean-temp.h (close_stream_temp): New declaration.
78523         * lib/clean-temp.c (includes): Pull in headers according to what
78524         other modules are in use.
78525         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78526
78527 2006-10-06  Bruno Haible  <bruno@clisp.org>
78528
78529         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78530         instead of fopen, fwriteerror.
78531
78532 2006-10-06  Bruno Haible  <bruno@clisp.org>
78533
78534         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78535         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78536         int.
78537         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78538         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78539         Return an error indicator.
78540         Suggested by Eric Blake.
78541
78542 2006-10-06  Bruno Haible  <bruno@clisp.org>
78543
78544         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78545         Reported by Eric Blake.
78546
78547 2006-10-06  Bruno Haible  <bruno@clisp.org>
78548
78549         * modules/closeout (Description): Mention stderr too.
78550
78551 2006-10-06  Bruno Haible  <bruno@clisp.org>
78552         and Paul Eggert  <eggert@cs.ucla.edu>
78553
78554         * lib/closeout.c (close_stdout): Also close stderr.
78555         * lib/closeout.h: Update comment.
78556
78557 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78558
78559         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78560         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78561         * lib/dirchownmod.c: Include lchown.h.
78562         * lib/lchown.c: Don't include files that lchown.h now includes.
78563         Don't declare chown, since lchown.h now does that.
78564         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78565         (lchown): Define to rpl_chown if lchown is declared but
78566         does not exist.  Declare using a prototype if lchown is not
78567         declared.  Add a copyright notice.
78568         * lib/mkstemp.h: Include <unistd.h>.
78569         * lib/openat.c: Include lchown.h.
78570
78571         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78572         we now test for that separately.
78573         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78574         rather than O_NOFOLLOW, when testing whether it's possible to
78575         avoid a race condition reliably.
78576         * lib/savewd.c (savewd_chdir): Likewise.
78577
78578         Remove macros that are no longer needed now that stdint.h is
78579         reliable.
78580         * lib/fsusage.c (UINTMAX_MAX): Remove.
78581         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78582         * lib/utimecmp.c (SIZE_MAX): Remove.
78583
78584         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78585
78586         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78587         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78588         O_NOATIME works.
78589
78590 2006-10-05  Bruno Haible  <bruno@clisp.org>
78591
78592         * lib/gl_list.h (gl_sortedlist_search_from_to,
78593         gl_sortedlist_indexof_from_to): New declarations.
78594         (gl_list_implementation): New fields sortedlist_search_from_to,
78595         sortedlist_indexof_from_to.
78596         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78597         inline functions.
78598         * lib/gl_list.c (gl_sortedlist_search_from_to,
78599         gl_sortedlist_indexof_from_to): New functions.
78600         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78601         function.
78602         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78603         (gl_array_sortedlist_search_from_to): New function.
78604         (gl_array_list_implementation): Update.
78605         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78606         function.
78607         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78608         (gl_carray_sortedlist_search_from_to): New function.
78609         (gl_carray_list_implementation): Update.
78610         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78611         gl_linked_sortedlist_indexof_from_to): New functions.
78612         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78613         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78614         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78615         gl_tree_sortedlist_indexof_from_to): New functions.
78616         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78617         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78618         Update.
78619         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78620         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78621         Update.
78622
78623 2006-10-05  Bruno Haible  <bruno@clisp.org>
78624
78625         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78626         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78627         (struct gl_list_implementation): Add fields search_from_to,
78628         indexof_from_to. Remove fields search, indexof.
78629         (gl_list_search): Use the search_from_to method.
78630         (gl_list_search_from, gl_list_search_from_to): New functions.
78631         (gl_list_indexof): Use the indexof_from_to method.
78632         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78633         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78634         (gl_list_search_from, gl_list_search_from_to): New functions.
78635         (gl_list_indexof): Use the indexof_from_to method.
78636         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78637         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78638         gl_array_indexof. Add start_index, end_index arguments.
78639         (gl_array_search_from_to): Renamed from gl_array_search. Add
78640         start_index, end_index arguments.
78641         (gl_array_remove, gl_array_list_implementation): Update.
78642         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78643         gl_carray_indexof. Add start_index, end_index arguments.
78644         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78645         start_index, end_index arguments.
78646         (gl_carray_remove, gl_carray_list_implementation): Update.
78647         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78648         gl_linked_search. Add start_index, end_index arguments.
78649         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78650         start_index, end_index arguments.
78651         (gl_linked_remove): Update.
78652         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78653         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78654         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78655         field to 'size_t'.
78656         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78657         gl_tree_search. Add start_index, end_index arguments.
78658         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78659         start_index, end_index arguments.
78660         (gl_tree_remove): Update.
78661         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78662         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78663         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78664         function.
78665         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78666         gl_tree_search. Add start_index, end_index arguments.
78667         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78668         start_index, end_index arguments.
78669         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78670         Update.
78671         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78672
78673 2006-10-05  Bruno Haible  <bruno@clisp.org>
78674
78675         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78676
78677         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78678         fwriteerror_temp): New declarations.
78679         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78680         (descriptors): New variable.
78681         (cleanup): First, close the descriptors.
78682         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78683         fclose_temp, fwriteerror_temp): New functions.
78684
78685 2006-10-04  Jim Meyering  <jim@meyering.net>
78686
78687         * lib/fts.c (fts_open): Tiny comment change.
78688
78689 2006-10-04  Bruno Haible  <bruno@clisp.org>
78690
78691         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78692         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78693         gl_LOCK_BODY.
78694         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78695         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78696         gl_LOCK_EARLY_BODY.
78697         (gl_LOCK): Require gl_LOCK_BODY.
78698
78699 2006-10-04  Bruno Haible  <bruno@clisp.org>
78700
78701         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78702         (gl_oset_search_atleast): New declaration.
78703         (struct gl_oset_implementation): Add field 'search_atleast'.
78704         (gl_oset_search_atleast): New inline function.
78705         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78706         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78707         (gl_array_oset_implementation): Update.
78708         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78709         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78710         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78711
78712 2006-10-04  Bruno Haible  <bruno@clisp.org>
78713
78714         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78715
78716 2006-10-03  Bruno Haible  <bruno@clisp.org>
78717
78718         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78719         from gl_avltreehash_list_implementation.
78720
78721 2006-10-03  Bruno Haible  <bruno@clisp.org>
78722
78723         * lib/gl_oset.c (gl_oset_add): Fix return type.
78724
78725 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78726
78727         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78728
78729 2006-10-02  Eric Blake  <ebb9@byu.net>
78730
78731         * modules/strnlen (Depends-on): Add extensions.
78732
78733 2006-10-02  Eric Blake  <ebb9@byu.net>
78734
78735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78736         definition in 2.60+.
78737
78738 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78739
78740         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78741         checks.
78742
78743 2006-10-02  Bruno Haible  <bruno@clisp.org>
78744
78745         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78746         to the AUTOMAKE_OPTIONS.
78747         Reported by Jim Meyering.
78748
78749 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78750
78751         Work around bug in Solaris 10 /proc file system:
78752         /proc/self/fd/NNN/.. isn't the parent directory of
78753         the directory whose file descriptor is NNN.  This needs to
78754         be worked around at run time, not compile time, since a
78755         program might be built on Solaris 8, where things work, and
78756         run on Solaris 10.
78757         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78758         to use the following interface instead:
78759         (OPENAT_BUFFER_SIZE): New macro.
78760         (openat_proc_name): New function.
78761         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78762         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78763         Likewise.
78764         * lib/openat-proc.c: New file.
78765         * modules/openat (Files): Add lib/openat-proc.c.
78766         (Depends-on): Add same-inode, stdbool.
78767         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78768
78769 2006-09-29  Bruno Haible  <bruno@clisp.org>
78770
78771         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78772         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78773         argument. Set stdout_closed before testing for ferror, not after.
78774         (fwriteerror, fwriteerror_no_ebadf): New functions.
78775
78776 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78777
78778         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78779
78780 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78781
78782         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78783         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78784
78785 2006-09-28  Jim Meyering  <jim@meyering.net>
78786
78787         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78788         Include <unistd.h>.
78789
78790 2006-09-28  Bruno Haible  <bruno@clisp.org>
78791
78792         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78793         * modules/linkedhash-list (Depends-on): Likewise.
78794         * modules/rbtreehash-list (Depends-on): Likewise.
78795
78796 2006-09-28  Bruno Haible  <bruno@clisp.org>
78797
78798         * lib/strndup.h: Simplify the redefinition of strndup.
78799         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78800         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78801
78802 2006-09-28  Bruno Haible  <bruno@clisp.org>
78803
78804         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78805         * lib/gl_linkedhash_list.c: Likewise.
78806         * lib/gl_rbtreehash_list.c: Likewise.
78807
78808 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78809
78810         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78811         getaddrinfo.
78812
78813         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78814         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78815         it causes <stdio_ext.h> to cause a compile-time error.
78816         Problem reported by Nelson H. F. Beebe.
78817         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78818         of HAVE_DECL___PENDING.
78819
78820         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78821         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78822         declaration.
78823
78824 2006-09-27  Jim Meyering  <jim@meyering.net>
78825
78826         This file could end up with a definition for a function
78827         named __strndup, rather than rpl_strndup on a system with
78828         incomplete weak_alias support.
78829         * lib/strndup.c (strndup): Rename from __strndup.
78830         Remove #defines that used to map __strndup to strndup.
78831         Don't use K&R prototypes.
78832         Remove LIBC-related code, since this file is not sync'd with glibc.
78833         * lib/strndup.h: Revamp, accordingly.
78834         * m4/strndup.m4: Modernize.
78835
78836 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * modules/savewd (Depends-on): Add 'raise'.
78839         * lib/savewd.c: Include <signal.h>, for 'raise'.
78840
78841 2006-09-26  Jim Meyering  <jim@meyering.net>
78842
78843         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78844         when we detect Darwin 8.7.0's acl_get_file bug.
78845         Rearrange to perform the new (below) run-test while $LIBS
78846         contains any acl-related library.  Set USE_ACL at the end.
78847         (gl_ACL_GET_FILE): New function.
78848
78849 2006-09-26  Eric Blake  <ebb9@byu.net>
78850
78851         * lib/verror.c: Include <config.h> unconditionally.
78852
78853 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * modules/clock-time (Maintainer): Add self.
78856         * modules/getlogin_r (Depends-on): Add extensions.
78857
78858 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78859
78860         * modules/clock-time: New module.
78861         * modules/nanosleep (Depends-on): Add clock-time.
78862         * modules/gethrxtime (Depends-on): Likewise.
78863         * modules/gettime (Depends-on): Likewise.
78864         * modules/settime (Depends-on): Likewise.
78865
78866         * modules/fts-lgpl: Depend on openat.
78867         * modules/mkancesdirs: Depend on savewd.
78868         * modules/mkdir-p: Likewise.
78869
78870 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78871
78872         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78873
78874         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78875         `gl_have_arbitrary_file_name_length_limit' to
78876         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78877         actually works between configure runs.
78878
78879 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78880             Bruno Haible  <bruno@clisp.org>
78881
78882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78883
78884 2006-09-25  Jim Meyering  <jim@meyering.net>
78885
78886         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78887         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78888
78889 2006-09-25  Eric Blake  <ebb9@byu.net>
78890
78891         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78892         exec's in 2006-09-18 patch when shuffling fds.
78893
78894 2006-09-25  Bruno Haible  <bruno@clisp.org>
78895
78896         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78897         Reported by Jim Meyering.
78898
78899 2006-09-24  Jim Meyering  <jim@meyering.net>
78900
78901         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78902         compare a pointer against a literal "0".  That caused failures with
78903         at least HP-UX's hpcc.
78904
78905 2006-09-22  Simon Josefsson  <jas@extundo.com>
78906
78907         * modules/gc-sha1:
78908         * modules/gc-md4:
78909         * modules/gc-hmac-sha1:
78910         * modules/gc-hmac-md5:
78911         * modules/gc-des:
78912         * modules/gc-arcfour: Distribute more files.
78913
78914 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78915
78916         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78917         (gl_linked_iterator_from_to): Initialize struct completely.
78918         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78919         (gl_tree_iterator_from_to): Likewise
78920         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78921         * lib/gl_array_list.c [lint] (gl_array_iterator)
78922         (gl_array_iterator_from_to): Likewise.
78923         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78924         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78925         (gl_carray_iterator_from_to): Likewise.
78926
78927         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78928         * lib/md4.c (md4_process_block): Remove unused variable.
78929         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78930         parentheses for clarity.
78931
78932 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78933
78934         * modules/bison-i18n (Depends-on): Add gettext.
78935
78936 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78937
78938         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78939         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78940         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78941         also add missing comma that caused broken test.
78942         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78943         stdlib.h, for `abort'.
78944         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78945         variables.
78946         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78947         include unistd.h if present, for `rmdir'.
78948         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78949         variables.
78950         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78951         in the process include standard headers for prototypes.
78952         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78953         gets declared on GNU/Linux.
78954         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78955         unistd.h, for `rmdir'.
78956         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78957
78958         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78959         always true.
78960         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78961
78962         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78963
78964 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78965
78966         * gnulib-tool (func_version): Create output all at once.  This
78967         may help avoid triggering unnecessary SIGPIPEs, and at any
78968         rate it doesn't hurt.
78969
78970 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78971             Bruno Haible  <bruno@clisp.org>
78972
78973         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78974         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78975         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78976
78977         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78978         (gl_FUNC_VASPRINTF): Invoke it.
78979
78980 2006-09-22  Bruno Haible  <bruno@clisp.org>
78981
78982         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78983         getloadavg.c as first argument.
78984
78985 2006-09-22  Bruno Haible  <bruno@clisp.org>
78986
78987         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78988         at the beginning of the gl_INIT macro.
78989         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78990         gl_GETLOADAVG.
78991
78992 2006-09-22  Bruno Haible  <bruno@clisp.org>
78993
78994         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78995         module.
78996         Suggested by Ralf Wildenhues.
78997
78998 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78999
79000         Import this patch from libc:
79001
79002         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79003
79004         * lib/regex_internal.c (re_string_reconstruct): Handle
79005         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79006         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79007         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79008         re_string_context_at.
79009
79010         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79011         now requires it.
79012         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79013         gl_REGEX now does it for us.
79014         (gl_REGEX): Add test taken from
79015         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79016
79017         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79018         Check that large offsets work.  Modernize Autoconf usages.
79019         Prefer "yes" to mean a good thing rather than a bad.
79020         Don't put "#define mkstemp" in config.h, as this might interfere
79021         with standard system headers that "#define mkstemp mkstemp64".
79022
79023         * modules/mkstemp (Depends-on): Add extensions, so that
79024         mkstemp is visible on some platforms.
79025         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79026         (Include): Change to "mkstemp.h" from <stdlib.h>.
79027         (Files): Add mkstemp.h.
79028
79029         * lib/mkstemp.h: New file, since some standard headers
79030         #define mkstemp.
79031         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79032         Include "mkstemp.h".
79033         Make the _LIBC code resemble glibc original more,
79034         e.g., use K&R style.
79035         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79036         (mkstemp): Remove, since mkstemp.h does this for us.
79037         * lib/stdlib--.h: Include mkstemp.h.
79038
79039         Import this patch from libc:
79040
79041         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79042
79043         * lib/tempname.c (__gen_tempname): Change attempts_min
79044         into a macro.  Use preprocessor to decide how to initialize
79045         attempts [Coverity CID 67].
79046
79047 2006-09-20  Bruno Haible  <bruno@clisp.org>
79048
79049         * lib/mkdtemp.c: Import from libc.
79050         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79051                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79052                 attempts_min into a macro.  Use preprocessor to decide how to
79053                 initialize attempts [Coverity CID 67].
79054         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79055                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79056                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79057
79058 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79059
79060         * gnulib-tool (func_exit): New function, to allow to pass the
79061         exit status portably through the trap.  Use everywhere.
79062         (--help, --version): Signal a write error.
79063         (trap): catch SIGPIPE, for write errors.
79064         Exit at the end of the trap, with the correct exit status.
79065
79066 2006-09-19  Karl Berry  <karl@gnu.org>
79067
79068         * doc/gnulib.texi: note about the license texinfo files.
79069
79070 2006-09-19  Eric Blake  <ebb9@byu.net>
79071
79072         * gnulib-tool: Avoid space-tab.
79073
79074 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79075
79076         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79077         that prevented coreutils 6.1 from building.  Problem reported
79078         by Petter Reinholdtsen.
79079
79080 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * gnulib-tool (avoidlist): Fix typo that broke options like
79083         --avoid=lock that are used by coreutils bootstrap.
79084
79085 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79086
79087         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79088         more systematically.
79089
79090 2006-09-18  Jim Meyering  <jim@meyering.net>
79091
79092         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79093
79094 2006-09-18  Bruno Haible  <bruno@clisp.org>
79095
79096         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79097
79098 2006-09-18  Bruno Haible  <bruno@clisp.org>
79099
79100         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79101         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79102         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79103         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79104         * m4/gettext.m4: Require autoconf >= 2.52.
79105         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79106         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79107         of gl_cv_header_inttypes_h.
79108
79109 2006-09-18  Bruno Haible  <bruno@clisp.org>
79110
79111         * lib/javaversion.c: Include configmake.h.
79112
79113 2006-09-18  Bruno Haible  <bruno@clisp.org>
79114
79115         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79116         avoid that the while loops be executed in a subshell.
79117
79118 2006-09-18  Bruno Haible  <bruno@clisp.org>
79119
79120         * MODULES.html.sh (func_module): Break long lines.
79121         Suggested by Bruce Korb <bkorb@gnu.org>.
79122
79123 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79124
79125         Speed up by a factor of 1.12.
79126         * gnulib-tool (nl): New variable.
79127         (func_import): Rewrite include directive extraction to only read each
79128         directive once.
79129
79130 2006-09-17  Bruno Haible  <bruno@clisp.org>
79131
79132         * modules/javaversion (Makefile.am): Remove DEFS setting.
79133         (Depends-on): Add configmake, for PKGDATADIR definition.
79134
79135 2006-09-17  Bruno Haible  <bruno@clisp.org>
79136
79137         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79138
79139 2006-09-17  Bruno Haible  <bruno@clisp.org>
79140
79141         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79142         (func_modules_transitive_closure, func_modules_add_dummy,
79143         func_modules_to_filelist, func_import, func_create_testdir,
79144         func_create_megatestdir, ...): Use it wherever possible.
79145         Suggested by Ralf Wildenhues.
79146
79147 2006-09-16  Karl Berry  <karl@gnu.org>
79148
79149         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79150         to avoid sectioning errors.
79151         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79152         [ifinfo]: blank line after @center-ed titles.
79153         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79154         Spell FSF address consistently with others.
79155         (These changes approved by rms.)
79156
79157 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79158
79159         Speed up by a factor of 1.61.
79160         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79161         already checked module names again.
79162
79163 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79164
79165         Speed up by a factor of 1.13.
79166         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79167         for new_files, and the input to func_add_or_update.
79168
79169 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79170
79171         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79172         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79173
79174 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         * modules/mkancesdirs (Depends-on): Add fcntl.
79177         * modules/savewd: New file.
79178         * MODULES.html.sh (File system functions): Add savewd.
79179
79180         * modules/configmake (Makefile.am): Add support for the
79181         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79182
79183 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79184
79185         * m4/savewd.m4: New file.
79186
79187 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79190         (dirchownmod): New arg FD.  All callers changed.
79191         Use FD rather than opening the directory ourself, as opening is
79192         now the caller's responsibility.
79193         * lib/dirchownmod.h: Likewise.
79194         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79195         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79196         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79197         (test_dir): Remove.
79198         (mkancesdirs): Return length of prefix of FILE that has already
79199         been made, or -2 if there is a child doing the work.  Redo
79200         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79201         ".", and treat ".." specially since it might stray back into
79202         already-created areas.  Use a subprocess if necessary.  New arg
79203         WD; all users changed.  MAKE_DIR function should now return 1
79204         if it creates a directory that is not readable.  Return -2 if
79205         a child process is spun off.
79206         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79207         Adjust signature to match code.
79208         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79209         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79210         all users changed.
79211         * lib/savewd.c, lib/savewd.h: New files.
79212
79213 2006-09-15  Jim Meyering  <jim@meyering.net>
79214
79215         * modules/rename-dest-slash: New module.
79216         * MODULES.html.sh (posix_compat): Add it here.
79217
79218         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79219
79220 2006-09-15  Jim Meyering  <jim@meyering.net>
79221
79222         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79223         file.
79224
79225         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79226
79227 2006-09-15  Jim Meyering  <jim@meyering.net>
79228
79229         * lib/rename-dest-slash.c (has_trailing_slash): Use
79230         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79231         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79232         test before testing whether SRC is a directory.
79233         Suggestions from Bruno Haible.
79234
79235         Avoid a warning about an unused variable.
79236         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79237         into the #ifdef block where it's used.
79238
79239         * lib/rename-dest-slash.c: New file.
79240
79241 2006-09-14  Bruno Haible  <bruno@clisp.org>
79242
79243         * lib/allocsa.c: Include <config.h> unconditionally.
79244         * lib/asnprintf.c: Likewise.
79245         * lib/asprintf.c: Likewise.
79246         * lib/c-strcasecmp.c: Likewise.
79247         * lib/c-strcasestr.c: Likewise.
79248         * lib/c-strncasecmp.c: Likewise.
79249         * lib/c-strstr.c: Likewise.
79250         * lib/classpath.c: Likewise.
79251         * lib/clean-temp.c: Likewise.
79252         * lib/concatpath.c: Likewise.
79253         * lib/copy-file.c: Likewise.
79254         * lib/csharpcomp.c: Likewise.
79255         * lib/csharpexec.c: Likewise.
79256         * lib/execute.c: Likewise.
79257         * lib/fatal-signal.c: Likewise.
79258         * lib/findprog.c: Likewise.
79259         * lib/fwriteerror.c: Likewise.
79260         * lib/gl_array_list.c: Likewise.
79261         * lib/gl_array_oset.c: Likewise.
79262         * lib/gl_avltree_list.c: Likewise.
79263         * lib/gl_avltree_oset.c: Likewise.
79264         * lib/gl_avltreehash_list.c: Likewise.
79265         * lib/gl_carray_list.c: Likewise.
79266         * lib/gl_linked_list.c: Likewise.
79267         * lib/gl_linkedhash_list.c: Likewise.
79268         * lib/gl_list.c: Likewise.
79269         * lib/gl_oset.c: Likewise.
79270         * lib/gl_rbtree_list.c: Likewise.
79271         * lib/gl_rbtree_oset.c: Likewise.
79272         * lib/gl_rbtreehash_list.c: Likewise.
79273         * lib/imaxabs.c: Likewise.
79274         * lib/imaxdiv.c: Likewise.
79275         * lib/javacomp.c: Likewise.
79276         * lib/javaexec.c: Likewise.
79277         * lib/javaversion.c: Likewise.
79278         * lib/linebreak.c: Likewise.
79279         * lib/localcharset.c: Likewise.
79280         * lib/lock.c: Likewise.
79281         * lib/mbchar.c: Likewise.
79282         * lib/mbswidth.c: Likewise.
79283         * lib/mkdtemp.c: Likewise.
79284         * lib/pipe.c: Likewise.
79285         * lib/printf-args.c: Likewise.
79286         * lib/printf-parse.c: Likewise.
79287         * lib/progname.c: Likewise.
79288         * lib/progreloc.c: Likewise.
79289         * lib/readlink.c: Likewise.
79290         * lib/sh-quote.c: Likewise.
79291         * lib/stpcpy.c: Likewise.
79292         * lib/stpncpy.c: Likewise.
79293         * lib/strcasecmp.c: Likewise.
79294         * lib/strcasestr.c: Likewise.
79295         * lib/strcspn.c: Likewise.
79296         * lib/striconv.c: Likewise.
79297         * lib/strncasecmp.c: Likewise.
79298         * lib/strnlen1.c: Likewise.
79299         * lib/strstr.c: Likewise.
79300         * lib/strtok_r.c: Likewise.
79301         * lib/tls.c: Likewise.
79302         * lib/tmpdir.c: Likewise.
79303         * lib/unicodeio.c: Likewise.
79304         * lib/unsetenv.c: Likewise.
79305         * lib/vasnprintf.c: Likewise.
79306         * lib/vasprintf.c: Likewise.
79307         * lib/wait-process.c: Likewise.
79308         * lib/xallocsa.c: Likewise.
79309         * lib/xsetenv.c: Likewise.
79310         * lib/xstriconv.c: Likewise.
79311
79312 2006-09-13  Simon Josefsson  <jas@extundo.com>
79313
79314         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79315         that internally, suggested by Ralf Wildenhues
79316         <Ralf.Wildenhues@gmx.de>.
79317
79318 2006-09-13  Simon Josefsson  <jas@extundo.com>
79319
79320         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79321         @LIBOBJS@.
79322         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79323
79324 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79327         longer worry about uses that don't define HAVE_CONFIG_H.
79328         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79329         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79330         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79331         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79332         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79333         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79334         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79335         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79336         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79337         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79338         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79339         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79340         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79341         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79342         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79343         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79344         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79345         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79346         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79347         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79348         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79349         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79350         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79351         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79352         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79353         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79354         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79355         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79356         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79357         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79358         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79359         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79360         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79361         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79362         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79363         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79364         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79365         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79366         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79367         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79368         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79369         Likewise.
79370
79371 2006-09-13  Eric Blake  <ebb9@byu.net>
79372
79373         * lib/getopt.c: Fix typo in last commit.
79374
79375 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79376
79377         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79378         dgettext.
79379
79380 2006-09-12  Jim Meyering  <jim@meyering.net>
79381
79382         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79383         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79384         Reported by Nelson H. F. Beebe.
79385
79386 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79387
79388         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79389         program_invocation_name and program_invocation_short_name are
79390         initialized.
79391         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79392         and program_invocation_short_name to argp.h, so they are visible
79393         to user programs.
79394         * lib/argp.h: Likewise
79395
79396 2006-09-10  Bruno Haible  <bruno@clisp.org>
79397
79398         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79399         m4/inttypes_h.m4, m4/uintmax_t.m4.
79400
79401 2006-09-10  Bruno Haible  <bruno@clisp.org>
79402
79403         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79404         gl_AC_TYPE_UINTMAX_T.
79405
79406 2006-09-10  Bruno Haible  <bruno@clisp.org>
79407
79408         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79409
79410 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79411
79412         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79413         convention.  Text proposed by Bruno Haible.
79414         (struct argp_option): Document the use of N_() wrappers.
79415
79416         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79417         '\v', and translate the two parts separately, instead of feeding
79418         the whole string to gettext.  This allows to exclude
79419         '\v' from the strings visible to the translator by writing doc
79420         strings as N_("..") "\v" N_("..").
79421
79422 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * config/srclist.txt: Undo latest change; the bug was fixed.
79425
79426 2006-09-09  Bruno Haible  <bruno@clisp.org>
79427
79428         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79429         assignments if building a library without libtool.
79430         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79431         in func_emit_lib_Makefile_am.
79432         (func_import): When building a static library libfoo.a, arrange to
79433         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79434         (func_create_testdir): Likewise.
79435         * modules/gc (configure.ac, Makefile.am): If building statically,
79436         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79437         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79438         * modules/striconv (configure.ac, Makefile.am): Likewise.
79439         Based on a suggestion by Ralf Wildenhues.
79440
79441 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79442
79443         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79444         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79445         Also:
79446
79447         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79448         Add year_2050_test to catch glibc bug 2821
79449         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79450
79451         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79452         Prefer #ifdef to #if.
79453
79454         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79455         Return from 'main' instead of calling 'exit'.
79456
79457 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79458
79459         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79460         returned the maximum time_t value rather than (time_t) -1.
79461         Problem originally reported by William Bardwell
79462         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79463
79464         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79465         Moved to here ...
79466         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79467         ... from here.
79468
79469 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79472         2821 is fixed.
79473
79474 2006-09-08  Jim Meyering  <jim@meyering.net>
79475
79476         Don't make generated files read-only.  That would bother too many
79477         people.  However, do retain the ability to work when targets are
79478         read-only: remove the destination and temporary files before writing
79479         them (when generated via sed or echo), or by using the -f option for
79480         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79481         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79482         * modules/byteswap, modules/configmake, modules/fcntl:
79483         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79484         * modules/localcharset, modules/netinet_in, modules/poll:
79485         * modules/stdbool, modules/stdint, modules/sys_select:
79486         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79487
79488 2006-09-08  Jim Meyering  <jim@meyering.net>
79489
79490         Avoid new build failure on FreeBSD 6.0.
79491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79492         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79493         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79494
79495 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79496
79497         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79498
79499 2006-09-07  Jim Meyering  <jim@meyering.net>
79500
79501         Fix global typo in last change: use chmod u-w, not chmod u-x.
79502         Spotted by Paul Eggert and Bruce Korb.
79503         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79504         * modules/byteswap, modules/configmake, modules/fcntl:
79505         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79506         * modules/localcharset, modules/netinet_in, modules/poll:
79507         * modules/stdbool, modules/stdint, modules/sys_select:
79508         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79509
79510 2006-09-06  Jim Meyering  <jim@meyering.net>
79511
79512         Make generated files be read-only.
79513         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79514         Ensure that each generated file is now read-only.
79515         * modules/argz: Likewise.
79516         * modules/arpa_inet: Likewise.
79517         * modules/byteswap: Likewise.
79518         * modules/configmake: Likewise.
79519         * modules/fcntl: Likewise.
79520         * modules/fnmatch: Likewise.
79521         * modules/getopt: Likewise.
79522         * modules/glob: Likewise.
79523         * modules/inttypes: Likewise.
79524         * modules/netinet_in: Likewise.
79525         * modules/poll: Likewise.
79526         * modules/stdbool: Likewise.
79527         * modules/stdint: Likewise.
79528         * modules/sys_select: Likewise.
79529         * modules/sys_socket: Likewise.
79530         * modules/sys_stat: Likewise.
79531         * modules/sysexits: Likewise.
79532         * modules/localcharset: Same as above, but continue using temporary
79533         file named "t-$@" (why different?) rather than the "$@-t" used
79534         everywhere else.
79535
79536         * modules/sysexits (Makefile.am): Replace literal occurrences
79537         of "sysexit.h" more readable, and more consistent, "$@".
79538
79539 2006-09-06  Bruno Haible  <bruno@clisp.org>
79540
79541         * modules/striconv: New file.
79542         * modules/xstriconv: New file.
79543         * MODULES.html.sh (Internationalization functions): Add striconv,
79544         xstriconv.
79545
79546 2006-09-06  Bruno Haible  <bruno@clisp.org>
79547
79548         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79549         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79550         not using libtool correctly.
79551
79552 2006-09-06  Bruno Haible  <bruno@clisp.org>
79553
79554         * lib/striconv.h: New file.
79555         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79556         iconvstring.c.
79557         * lib/xstriconv.h: New file.
79558         * lib/xstriconv.c: New file.
79559
79560 2006-09-06  Bruno Haible  <bruno@clisp.org>
79561
79562         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79563         lib_..._LDFLAGS.
79564
79565 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79566
79567         * lib/argz_.h: Sync from Libtool.
79568
79569         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79570                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79571
79572         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79573
79574 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79575
79576         * modules/trim: New file.
79577
79578 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79579
79580         * lib/trim.h: New file.
79581         * lib/trim.c: New file.
79582
79583 2006-09-05  Bruno Haible  <bruno@clisp.org>
79584
79585         * MODULES.html.sh (String handling): Add trim.
79586
79587 2006-09-04  Karl Berry  <karl@gnu.org>
79588
79589         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79590         until next release.
79591
79592 2006-09-03  Bruno Haible  <bruno@clisp.org>
79593
79594         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79595         correctly.
79596
79597 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79600         not gl_GETLOADAVG.  Omit unneeded semicolons.
79601         Problems reported by Ralf Wildenhues in
79602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79603         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79604         at the end, which is the usual gnulib style.
79605
79606         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79607         of doing all the work ourselves.
79608         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79609         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79610
79611 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79612
79613         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79614         Problem reported by Ralf Wildenhues in
79615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79616
79617         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79618         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79619
79620 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79623         yesterday's patch by changing test -n to test -z.
79624
79625 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79626
79627         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79628         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79629         the former is now obsolescent.
79630
79631         * modules/chdir-long (Depends-on): Add fcntl.
79632
79633 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79636         obsolescent, and programs should use gnulib instead.
79637         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79638         but with prefixes changed.
79639
79640 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79643         or stdbool.h, because they might not exist while configuring.
79644
79645         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79646         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79647         does that for us.
79648         (O_DIRECTORY): Remove.
79649
79650 2006-08-31  Eric Blake  <ebb9@byu.net>
79651
79652         * gnulib-tool: Don't let emacs change spaces to TAB.
79653
79654 2006-08-31  Bruno Haible  <bruno@clisp.org>
79655
79656         * gnulib-tool: When calling func_import more than once, do it in a
79657         subshell.
79658         Reported by Eric Blake <ebb9@byu.net>.
79659
79660 2006-08-31  Bruno Haible  <bruno@clisp.org>
79661
79662         * gnulib-tool (nl): Remove variable.
79663         (sed_transform_lib_file): Use more robust test for config-h module.
79664         (func_import): Fix typo in 2006-08-25 patch.
79665
79666 2006-08-31  Bruno Haible  <bruno@clisp.org>
79667
79668         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79669         specified, augment Makefile.am variables instead of assigning them.
79670
79671 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79672
79673         Work around a bug in both the Linux and SunOS 64-bit kernels:
79674         nanosleep mishandles sleeps for longer than 2**31 seconds.
79675         Problem reported by Frank v Waveren in
79676         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79678         Check for nanosleep bug.
79679         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79680
79681 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         Work around a bug in both the Linux and SunOS 64-bit kernels:
79684         nanosleep mishandles sleeps for longer than 2**31 seconds.
79685         Problem reported by Frank v Waveren in
79686         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79687         * lib/nanosleep.c (BILLION): New constant.
79688         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79689         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79690         implementation.
79691
79692 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * modules/nanosleep (Depends-on): Add gettime.
79695
79696 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79697         and Simon Josefsson  <jas@extundo.com>
79698         and Oskar Liljeblad  <oskar@osk.mine.nu>
79699
79700         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79701         * gnulib-tool (func_import): New license type 'unmodifiable license
79702         text'.
79703         * modules/fdl: Use it.  Longer description.
79704         * module/gpl, module/lgpl: New files.
79705
79706 2006-08-30  Jim Meyering  <jim@meyering.net>
79707
79708         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79709         shadowing the parameter.
79710
79711 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79712
79713         Sync from Libtool:
79714
79715         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79716
79717         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79718         sharing with gnulib.  Report by Eric Blake.
79719
79720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         * modules/isapipe: New file.
79723         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79724
79725 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79726
79727         * modules/configmake (Makefile.am): Add a comment, and omit
79728         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79729         by Bruno Haible.
79730
79731 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * m4/isapipe.m4: New file.
79734
79735 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79736
79737         * lib/isapipe.c, lib/isapipe.h: New files.
79738
79739 2006-08-29  Jim Meyering  <jim@meyering.net>
79740
79741         * modules/configmake (Makefile.am): Make configmake.h depend on
79742         Makefile.  Otherwise, a stale configmake.h could hang around.
79743
79744 2006-08-29  Eric Blake  <ebb9@byu.net>
79745
79746         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79747         resolution of upstream bug 3044.
79748
79749 2006-08-29  Bruno Haible  <bruno@clisp.org>
79750
79751         * modules/localcharset (Depends-on): Add configmake.
79752         (Makefile.am): Remove setting of LIBDIR through DEFS.
79753
79754 2006-08-29  Bruno Haible  <bruno@clisp.org>
79755
79756         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79757         defined.
79758
79759 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * modules/fcntl: New file.
79762         * modules/chdir-safer (Depends-on): Add fcntl.
79763         * modules/fts: Likewise.
79764         * modules/mkdir-p: Likewise.
79765
79766         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79767         This undoes the most recent change, since we're now addressing the
79768         problem in a different way.
79769
79770         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79771         into output, since the output might be called Makefile.am even
79772         if $makefile_name is something different.
79773         (func_import): Use $makefile_am rather than
79774         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79775         empty.
79776
79777         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79778
79779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79782         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79783         recent change to stdint.m4, since we're now addressing the problem in a
79784         different way.
79785
79786 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79787
79788         * m4/fcntl_h.m4: New file.
79789
79790 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         * lib/fcntl_.h: New file.
79793         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79794         the fcntl module.
79795         * lib/dirchownmod.c: Likewise.
79796         * lib/fts.c: Likewise.
79797
79798         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79799         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79800         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79801         just before including <inttypes.h>, to avoid circular inclusion.
79802
79803 2006-08-28  Jim Meyering  <jim@meyering.net>
79804
79805         * doc/visibility.texi: Actually read and correct the grammar of the
79806         sentence affected by yesterday's change.
79807
79808 2006-08-28  Eric Blake  <ebb9@byu.net>
79809
79810         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79811         needs wrapper.
79812
79813 2006-08-28  Eric Blake  <ebb9@byu.net>
79814
79815         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79816
79817 2006-08-28  Eric Blake  <ebb9@byu.net>
79818
79819         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79820
79821 2006-08-28  Bruno Haible  <bruno@clisp.org>
79822
79823         * modules/c-strstr: New file, from GNU gettext.
79824         * MODULES.html.sh (String handling): Add c-strstr.
79825
79826 2006-08-28  Bruno Haible  <bruno@clisp.org>
79827
79828         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79829         macros.
79830         Reported by Eric Blake.
79831
79832 2006-08-28  Bruno Haible  <bruno@clisp.org>
79833
79834         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79835         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79836         * lib/vasprintf.c: Include errno.h, limits.h.
79837         (EOVERFLOW): New fallback definition.
79838         (vasprintf): Test here whether the string length is > INT_MAX.
79839         * lib/vsnprintf.c: Include errno.h, limits.h.
79840         (EOVERFLOW): New fallback definition.
79841         (vsnprintf): Fix bug when generated string was too long for the buffer.
79842         Test here whether the string length is > INT_MAX.
79843
79844 2006-08-28  Bruno Haible  <bruno@clisp.org>
79845
79846         * lib/inttypes_.h (SCNX*): Remove definitions.
79847         Reported by Eric Blake.
79848
79849 2006-08-28  Bruno Haible  <bruno@clisp.org>
79850
79851         * lib/c-strstr.h: New file, from GNU gettext.
79852         * lib/c-strstr.c: New file, from GNU gettext.
79853
79854 2006-08-28  Bruno Haible  <bruno@clisp.org>
79855
79856         * gnulib-tool: Reorder some statements.
79857
79858 2006-08-28  Bruno Haible  <bruno@clisp.org>
79859
79860         * gnulib-tool: New option --makefile-name.
79861         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79862         $makefile_name.
79863         (func_import): Write $makefile_name to the cache file, and read it from
79864         there unless explicitly specified. Use $makefile_name as file name
79865         instead of Makefile.am. Adjust the recommendations accordingly.
79866
79867 2006-08-28  Bruno Haible  <bruno@clisp.org>
79868
79869         * gnulib-tool (func_verify_module): Check against misapplying patch.
79870
79871 2006-08-28  Bruno Haible  <bruno@clisp.org>
79872
79873         * gnulib-tool (func_relativize, func_relconcat): New functions.
79874         Give an error if --local-dir is given with --update.
79875         Remove trailing slashes from $local_gnulib_dir.
79876         (func_import): Store the relativized $local_gnulib_dir in
79877         gnulib-cache.m4, and read it from there if not specified explicitly.
79878
79879 2006-08-28  Bruno Haible  <bruno@clisp.org>
79880
79881         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79882         is the current directory. Respect also $local_gnulib_dir.
79883
79884 2006-08-28  Bruno Haible  <bruno@clisp.org>
79885             Simon Josefsson  <jas@extundo.com>
79886
79887         BeOS portability.
79888         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79889
79890 2006-08-27  Jim Meyering  <jim@meyering.net>
79891
79892         * doc/visibility.texi: Remove duplicate word: "pointer".
79893
79894 2006-08-26  Bruno Haible  <bruno@clisp.org>
79895
79896         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79897         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79898         (Makefile.am): Create inttypes.h from inttypes_.h.
79899         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79900
79901         * modules/imaxabs: New file.
79902
79903         * modules/imaxdiv: New file.
79904
79905 2006-08-26  Bruno Haible  <bruno@clisp.org>
79906
79907         * m4/inttypes.m4: New file.
79908         * m4/_inttypes_h.m4: Remove file.
79909         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79910         PRI_MACROS_BROKEN.
79911         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79912
79913         * m4/imaxabs.m4: New file.
79914
79915         * m4/imaxdiv.m4: New file.
79916
79917 2006-08-26  Bruno Haible  <bruno@clisp.org>
79918
79919         * lib/inttypes_.h: New file.
79920         * lib/inttypes.h: Remove file.
79921         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79922
79923         * lib/imaxabs.c: New file.
79924
79925         * lib/imaxdiv.c: New file.
79926
79927 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79928
79929         New config-h module, so that "make" output needn't be cluttered
79930         by -DHAVE_CONFIG_H.
79931         * MODULES.html.sh (Support for building libraries and executables):
79932         Add config-h.
79933         * modules/config-h: New file.
79934         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79935         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79936         the config-h module is used.
79937
79938         New configmake module, so that "make" output needn't be cluttered
79939         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79940         * MODULES.html.sh (Support for building libraries and executables):
79941         Add configmake.
79942         * modules/configmake: New file.
79943
79944 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79945
79946         * m4/config-h.m4: New file.
79947
79948 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         * config/srclist.txt: Add elisp-comp.
79951
79952 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * MODULES.html.sh (Support for building libraries and executables):
79955         Add elisp-comp.
79956         * build-aux/elisp-comp: New file.
79957         * modules/elisp-comp: New file.
79958
79959 2006-08-24  Bruno Haible  <bruno@clisp.org>
79960
79961         * gnulib-tool (func_create_testdir): Use non-default values of
79962         sourcebase and m4base.
79963
79964 2006-08-24  Bruno Haible  <bruno@clisp.org>
79965
79966         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79967         HTML structure.
79968
79969 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * modules/openat (Depends-on): Add lchown.
79972
79973 2006-08-23  Bruno Haible  <bruno@clisp.org>
79974
79975         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79976         of gl_LOCK_EARLY instead of gl_LOCK.
79977
79978 2006-08-23  Bruno Haible  <bruno@clisp.org>
79979
79980         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79981         on OSF/1 to no.
79982         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79983
79984 2006-08-23  Bruno Haible  <bruno@clisp.org>
79985
79986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79987         as unusable.
79988
79989         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79990         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79991         (gl_LOCK): New macro.
79992
79993 2006-08-22  Simon Josefsson  <jas@extundo.com>
79994
79995         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79996         to md5 module.
79997
79998 2006-08-22  Simon Josefsson  <jas@extundo.com>
79999
80000         * MODULES.html.sh: Add "Support for maintaining and release
80001         projects".
80002
80003         * build-aux/gnupload: New file, from coreutils.
80004
80005 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         Avoid the need for AC_LIBSOURCES in m4 macros.
80008         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80009         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80010         * modules/check-version (EXTRA_DIST): Add check-version.h.
80011         * modules/crc (EXTRA_DIST): Add crc.h.
80012         * modules/des (EXTRA_DIST): Add des.h.
80013         * modules/gc (EXTRA_DIST): Add gc.h.
80014         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80015         * modules/getline (EXTRA_DIST): Add getline.h.
80016         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80017         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80018         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80019         * modules/md2 (EXTRA_DIST): Add md2.h.
80020         * modules/md4 (EXTRA_DIST): Add md4.h.
80021         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80022         * modules/read-file (EXTRA_DIST): Add read-file.h.
80023         * modules/readline (EXTRA_DIST): Add readline.h.
80024         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80025         rijndael-api-fst.h.
80026
80027 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * m4/rijndael.m4 (gl_ARCFOUR):
80030         * m4/arctwo.m4 (gl_ARCTWO):
80031         * m4/check-version.m4 (gl_CHECK_VERSION):
80032         * m4/crc.m4 (gl_CRC):
80033         * m4/des.m4 (gl_DES):
80034         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80035         * m4/gc.m4 (gl_GC):
80036         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80037         * m4/getline.m4 (gl_FUNC_GETLINE):
80038         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80039         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80040         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80041         * m4/md2.m4 (gl_MD2):
80042         * m4/md4.m4 (gl_MD4):
80043         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80044         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80045         * m4/readline.m4 (gl_FUNC_READLINE):
80046         * m4/rijndael.m4 (gl_RIJNDAEL):
80047         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80048         to get the necessary .h files and whatnot.
80049
80050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80053         gnulib rather than the other way around.
80054         * config/srclistvars.sh (COREUTILS): Remove.
80055
80056 2006-08-22  Jim Meyering  <jim@meyering.net>
80057
80058         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80059
80060         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80061
80062 2006-08-22  Eric Blake  <ebb9@byu.net>
80063
80064         * modules/regexprops-generic: New file.
80065         * MODULES.html.sh (Support for building documentation): List it.
80066
80067 2006-08-22  Eric Blake  <ebb9@byu.net>
80068
80069         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80070         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80071         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80072         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80073
80074 2006-08-22  Bruno Haible  <bruno@clisp.org>
80075
80076         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80077         and lib_LTLIBRARIES like the other lib_* variables.
80078
80079 2006-08-22  Bruno Haible  <bruno@clisp.org>
80080
80081         * build-aux/x-to-1.in: New file, from GNU gettext.
80082
80083 2006-08-22  Bruno Haible  <bruno@clisp.org>
80084
80085         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80086         <utmpx.h> exists.
80087
80088 2006-08-22  Bruno Haible  <bruno@clisp.org>
80089
80090         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80091         <utmpx.h> exists.
80092
80093 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         BeOS portability.
80096         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80097         exist.
80098         Problem reported by Bruno Haible.
80099
80100 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         Avoid the need for AC_LIBSOURCES in m4 macros.
80103         * modules/acl (EXTRA_DIST): Add acl.h.
80104         * modules/argmatch (Files): Add m4/argmatch.m4.
80105         (configure.ac): Add gl_ARGMATCH.
80106         (EXTRA_DIST): Renamed from lib_SOURCES, for
80107         consistency with the other modules.  Remove argmatch.c.
80108         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80109         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80110         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80111         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80112         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80113         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80114         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80115         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80116         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80117         * modules/closeout (EXTRA_DIST): Add closeout.h.
80118         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80119         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80120         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80121         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80122         dirname.h; remove basename.c and stripslash.c.
80123         * modules/exclude (EXTRA_DIST): Add exclude.h.
80124         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80125         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80126         * modules/file-type (EXTRA_DIST): Add file-type.h.
80127         * modules/filemode (EXTRA_DIST): Add filemode.h.
80128         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80129         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80130         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80131         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80132         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80133         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80134         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80135         * modules/getdate (EXTRA_DIST): Add getdate.c.
80136         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80137         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80138         * modules/getpass (EXTRA_DIST): Add getpass.h.
80139         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80140         * modules/group-member (EXTRA_DIST): Add group-member.h.
80141         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80142         * modules/hash (EXTRA_DIST): Add hash.h.
80143         * modules/human (EXTRA_DIST): Add human.h.
80144         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80145         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80146         * modules/lchown (EXTRA_DIST): Add lchown.h.
80147         * modules/long-options (EXTRA_DIST): Add long-options.h.
80148         * modules/lstat (EXTRA_DIST): Add lstat.h.
80149         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80150         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80151         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80152         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80153         * modules/memxor (EXTRA_DIST): Add memxor.h.
80154         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80155         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80156         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80157         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80158         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80159         * modules/physmem (EXTRA_DIST): Add physmem.h.
80160         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80161         * modules/posixver (EXTRA_DIST): Add posixver.h.
80162         * modules/quote (EXTRA_DIST): Add quote.h.
80163         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80164         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80165         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80166         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80167         regex_internal.h regexec.c.
80168         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80169         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80170         * modules/same (EXTRA_DIST): Add same.h.
80171         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80172         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80173         * modules/savedir (EXTRA_DIST): Add savedir.h.
80174         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80175         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80176         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80177         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80178         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80179         * modules/strdup (EXTRA_DIST): Add strdup.h.
80180         * modules/strftime (EXTRA_DIST): Add strftime.h.
80181         * modules/strndup (EXTRA_DIST): Add strndup.h.
80182         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80183         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80184         * modules/time_r (EXTRA_DIST): Add time_r.h.
80185         * modules/timespec (EXTRA_DIST): Add timespec.h.
80186         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80187         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80188         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80189         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80190         * modules/userspec (EXTRA_DIST): Add userspec.h.
80191         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80192         * modules/utimens (EXTRA_DIST): Add utimens.h.
80193         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80194         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80195         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80196         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80197         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80198         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80199         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80200         * modules/yesno (EXTRA_DIST): Add yesno.h.
80201
80202 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80205
80206         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80207         * m4/dev-ino.m4, same-inode.m4: Remove.
80208
80209         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80210         * m4/acl.m4 (AC_FUNC_ACL):
80211         * m4/backupfile.m4 (gl_BACKUPFILE):
80212         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80213         * m4/canon-host.m4 (gl_CANON_HOST):
80214         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80216         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80217         * m4/cloexec.m4 (gl_CLOEXEC):
80218         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80219         * m4/closeout.m4 (gl_CLOSEOUT):
80220         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80221         * m4/dirname.m4 (gl_DIRNAME):
80222         * m4/exclude.m4 (gl_EXCLUDE):
80223         * m4/exitfail.m4 (gl_EXITFAIL):
80224         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80225         * m4/file-type.m4 (gl_FILE_TYPE):
80226         * m4/filemode.m4 (gl_FILEMODE):
80227         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80228         * m4/fpending.m4 (gl_FUNC_FPENDING):
80229         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80230         * m4/fts.m4 (gl_FUNC_FTS):
80231         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80232         * m4/getdate.m4 (gl_GETDATE):
80233         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80234         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80235         * m4/getpass.m4 (gl_FUNC_GETPASS):
80236         * m4/gettime.m4 (gl_GETTIME):
80237         * m4/getugroups.m4 (gl_GETUGROUPS):
80238         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80239         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80240         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80241         * m4/hash.m4 (gl_HASH):
80242         * m4/idcache.m4 (gl_IDCACHE):
80243         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80244         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80245         * m4/long-options.m4 (gl_LONG_OPTIONS):
80246         * m4/lstat.m4 (gl_FUNC_LSTAT):
80247         * m4/md5.m4 (gl_MD5):
80248         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80249         * m4/memcoll.m4 (gl_MEMCOLL):
80250         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80251         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80252         * m4/memxor.m4 (gl_MEMXOR):
80253         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80254         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80255         * m4/modechange.m4 (gl_MODECHANGE):
80256         * m4/mountlist.m4 (gl_MOUNTLIST):
80257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80258         * m4/openat.m4 (gl_FUNC_OPENAT):
80259         * m4/pathmax.m4 (gl_PATHMAX):
80260         * m4/physmem.m4 (gl_PHYSMEM):
80261         * m4/posixtm.m4 (gl_POSIXTM):
80262         * m4/posixver.m4 (gl_POSIXVER):
80263         * m4/quote.m4 (gl_QUOTE):
80264         * m4/quotearg.m4 (gl_QUOTEARG):
80265         * m4/readtokens.m4 (gl_READTOKENS):
80266         * m4/readutmp.m4 (gl_READUTMP):
80267         * m4/regex.m4 (gl_REGEX):
80268         * m4/safe-read.m4 (gl_SAFE_READ):
80269         * m4/safe-write.m4 (gl_SAFE_WRITE):
80270         * m4/same.m4 (gl_SAME):
80271         * m4/save-cwd.m4 (gl_SAVE_CWD):
80272         * m4/savedir.m4 (gl_SAVEDIR):
80273         * m4/settime.m4 (gl_SETTIME):
80274         * m4/sha1.m4 (gl_SHA1):
80275         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80276         * m4/stat-macros.m4 (gl_STAT_MACROS):
80277         * m4/stat-time.m4 (gl_STAT_TIME):
80278         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80279         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80280         * m4/strdup.m4 (gl_FUNC_STRDUP):
80281         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80282         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80283         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80284         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80285         * m4/time_r.m4 (gl_TIME_R):
80286         * m4/timespec.m4 (gl_TIMESPEC):
80287         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80288         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80289         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80290         * m4/userspec.m4 (gl_USERSPEC):
80291         * m4/utimecmp.m4 (gl_UTIMECMP):
80292         * m4/utimens.m4 (gl_UTIMENS):
80293         * m4/xalloc.m4 (gl_XALLOC):
80294         * m4/xgetcwd.m4 (gl_XGETCWD):
80295         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80296         * m4/xreadlink.m4 (gl_XREADLINK):
80297         * m4/xstrtod.m4 (gl_XSTRTOD):
80298         * m4/yesno.m4 (gl_YESNO):
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-21  Mark D. Baushke  <mdb@gnu.org>
80303             Bruno Haible  <bruno@clisp.org>
80304
80305         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80306         /bin/sh understanding of '!' conditional negation.
80307
80308 2006-08-21  Jim Meyering  <jim@meyering.net>
80309
80310         * modules/openat (Depends-on): Really alphabetize.
80311
80312         * modules/acl (Depends-on): Add error and quote.
80313
80314         * check-module (find_included_lib_files): Add at-func.c to the
80315         ok-to-include-more-than-once white list.
80316
80317         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80318
80319 2006-08-21  Bruno Haible  <bruno@clisp.org>
80320
80321         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80322         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80323         Reported by Martin Lambers <marlam@marlam.de>.
80324
80325 2006-08-21  Bruno Haible  <bruno@clisp.org>
80326
80327         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80328         specify an installation location, don't emit a noinst_LIBRARIES or
80329         noinst_LTLIBRARIES assignment.
80330
80331 2006-08-21  Bruno Haible  <bruno@clisp.org>
80332
80333         BeOS portability.
80334         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80335         BeOS has mbrtowc() but no <wctype.h>.
80336
80337 2006-08-21  Bruno Haible  <bruno@clisp.org>
80338
80339         BeOS portability.
80340         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80341         exist.
80342
80343 2006-08-21  Bruno Haible  <bruno@clisp.org>
80344
80345         BeOS portability.
80346         * lib/mbchar.h: Include <wctype.h> only if it exists.
80347
80348 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80349
80350         Remove files that are no longer needed by their respective modules.
80351         * m4/obstack.m4: Remove.
80352         * m4/strerror_r.m4: Remove.
80353         * m4/uint32_t.m4: Remove.
80354         * m4/uintptr_t.m4: Remove.
80355         * m4/ullong_max.m4: Remove.
80356         * m4/xstrtoimax.m4: Remove.
80357         * m4/xstrtoumax.m4: Remove.
80358
80359         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80360         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80361         dependencies now capture this.
80362
80363         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80364         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80365         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80366         * m4/human.m4 (gl_HUMAN): Likewise.
80367         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80368         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80369
80370         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80371
80372         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80373         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80374         stdint.
80375         * m4/human.m4 (gl_HUMAN): Likewise.
80376         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80377         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80378         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80379         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80380         * m4/xstrtol (gl_XSTRTOL): Likewise.
80381
80382         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80383         AC_TYPE_LONG_LONG_INT.
80384         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80385         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80386         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80387         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80388
80389         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80390         on stdbool.
80391
80392         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80393         (gl_PREREQ_XSTRTOUL): Remove.
80394
80395         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80396
80397         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80398         mode.
80399
80400 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80401
80402         Add and change modules to make it easier for coreutils to use
80403         gnulib-tool.
80404         * modules/backupfile (Files): Remove m4/d-ino.m4.
80405         (Depends-on): Add d-ino.
80406         * modules/cycle-check (Depends-on): Add stdint.
80407         (lib_SOURCES): Add cycle-check.h.
80408         * modules/d-ino: New module.
80409         * modules/d-type: New module.
80410         * modules/error (Files): Remove m4/strerror_r.m4.
80411         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80412         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80413         m4/inttypes_h.m4, m4/uintmax_t.m4.
80414         (Depends-on): Add stdint.
80415         (lib_SOURCES): Add fsusage.h.
80416         * modules/getcwd (Files): Remove d-ino.m4.
80417         (Depends-on): Add d-ino.
80418         * modules/getndelim2 (Depends-on): Add stdint.
80419         * modules/glob (Files): Remove m4/d-type.m4.
80420         (Depends-on): Add d-type.
80421         * modules/host-os: New module.
80422         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80423         m4/inttypes_h.m4, m4/uintmax_t.m4.
80424         * Depends-on: Add stdint.
80425         (lib_SOURCES): Add human.h.
80426         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80427         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80428         m4/uintmax_t.m4, m4/ulonglong.m4.
80429         (Depends-on): Add stdint.
80430         (EXTRA_DIST): Add inttostr.h.
80431         * modules/lchmod: New module.
80432         * modules/link-follow: New module.
80433         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80434         (Depends-on): Add lchmod.
80435         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80436         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80437         (Depends-on): Add stdint.
80438         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80439         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80440         (Depends-on): Add stdint.
80441         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80442         * modules/perl: New module.
80443         * modules/regex (Depends-on): Add stdint.
80444         * modules/rmdir-errno: New module.
80445         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80446         m4/intmax_t.m4.
80447         (Depends-on): Add stdint.
80448         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80449         m4/uintmax_t.m4.
80450         (Depends-on): Add stdint.
80451         * modules/unlink-busy: New module.
80452         * modules/utimecmp (Depends-on): Add stdint.
80453         * modules/uptime: New module.
80454         * modules/winsz-ioctl: New module.
80455         * modules/winsz-termios: New module.
80456         * modules/xnanosleep (Depends-on): Add nanosleep.
80457         * modules/ullong_max: Remove.
80458         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80459         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80460         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80461         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80462         (Depends-on): Add inttypes.
80463         (lib_SOURCES): Add xstrtol.h.
80464         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80465         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80466         * MODULES.html.sh: Move 'assert' into the assert section.
80467         Move 'dummy' into the linking section.
80468         Remove ullong_max.
80469         Add section for compatibility checks for POSIX:2001 functions,
80470         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80471         winsz-ioctl, and winsz-termios into it.
80472         Add lchmod.
80473         Add top-level Misc section and put host-os, perl, and uptime
80474         into it.
80475
80476 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80477
80478         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80479         now assume the stdint module.  Do not include inttypes.h.
80480         * lib/fsusage.h: Likewise.
80481         * lib/getndelim2.c: Likewise.
80482         * lib/human.h: Likewise.
80483         * lib/inttostr.h: Likewise.
80484         * lib/obstack.c: Likewise.
80485         * lib/regex_internal.h: Likewise.
80486         * lib/tempname.c: Likewise.
80487         * lib/utimecmp.c: Likewise.
80488         * lib/xstrtol.h: Likewise.
80489
80490         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80491
80492         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80493         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80494         * lib/xtime.h: Likewise.
80495
80496 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80497
80498         * modules/openat (Files): Add lib/fchmodat.c.
80499         Fixes problem reported by Jay Youngman.
80500
80501 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80502
80503         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80504         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80505
80506 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80507             Bruno Haible  <bruno@clisp.org>
80508
80509         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80510         and is a script that invokes bison. Tighten the code. Add comments.
80511
80512 2006-08-18  Jim Meyering  <jim@meyering.net>
80513
80514         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80515         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80516         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80517         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80518
80519 2006-08-18  Bruno Haible  <bruno@clisp.org>
80520
80521         * modules/bison-i18n: New file.
80522         * MODULES.html.sh (Internationalization functions): Add it.
80523
80524 2006-08-18  Bruno Haible  <bruno@clisp.org>
80525
80526         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80527         sys/statvfs.h. When getmntinfo was found, check its declaration and
80528         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80529
80530 2006-08-18  Bruno Haible  <bruno@clisp.org>
80531
80532         * m4/bison-i18n.m4: New file, from bison.
80533
80534 2006-08-18  Bruno Haible  <bruno@clisp.org>
80535
80536         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80537         (ME_DUMMY): Treat "kernfs" as a dummy.
80538         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80539
80540 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         Update from coreutils.
80543
80544         2006-08-15  Jim Meyering  <jim@meyering.net>
80545
80546         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80547
80548         2006-01-17  Jim Meyering  <jim@meyering.net>
80549
80550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80551
80552         2006-01-11  Jim Meyering  <jim@meyering.net>
80553
80554         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80555         Check for the lchmod function.
80556
80557 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80558
80559         Update from coreutils.
80560
80561         * lib/__fpending.h: Add copyright notice.
80562         * lib/fprintftime.h: Likewise.
80563         * lib/savedir.c: Use (C) in copyright notice.
80564         * lib/savedir.h: Likewise.
80565
80566         2006-08-15  Jim Meyering  <jim@meyering.net>
80567
80568         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80569         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80570         in support of the EXPECTED_ERRNO macro.
80571         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80572         definitions.  Instead, define the appropriate symbols and include
80573         "at-func.c".
80574         * lib/mkdirat.c (mkdirat): Likewise.
80575         * lib/fchmodat.c (fchmodat): Likewise.
80576         (ENOSYS): Remove definition.
80577         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80578         it.  Don't include "unistd--.h" -- it wasn't ever used.
80579
80580         2006-01-17  Jim Meyering  <jim@meyering.net>
80581
80582         Rewrite fts.c not to change the current working directory,
80583         by using openat, fstatat, fdopendir, etc..
80584
80585         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80586         (HAVE_OPENAT_SUPPORT): Define.
80587         [_LIBC] (fchdir): Don't undef or define; no longer used.
80588         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80589         Now, this `function' always succeeds, and consumes its file descriptor
80590         parameter -- so callers must not close such FDs.  Update callers.
80591         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80592         (diropen): Add parameter, SP.  Adjust all callers.
80593         Implement using diropen_fd, rather than open.
80594         (fts_open): Initialize new member, fts_cwd_fd.
80595         Remove fts_rft-setting code.
80596         (fts_close): Close fts_cwd_fd, if necessary.
80597         (__opendir2): Define in terms of opendir or opendirat,
80598         depending on whether the FST_NOCHDIR flag is set.
80599         (fts_build): Since fts_safe_changedir consumes its FD, and since
80600         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80601         and close the dup'd file descriptor upon failure.
80602         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80603         (fts_safe_changedir): Tweak semantics to reflect that this function
80604         now calls cwd_advance_fd and hence consumes its FD argument.
80605         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80606         [struct FTS] (fts_rft): Remove now-unused member.
80607         [struct FTS] (fts_cycle.state): Improve comment.
80608
80609         * lib/openat.c (openat_needs_fchdir): New function.
80610         * lib/openat.h (openat_needs_fchdir): Declare it.
80611
80612 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80613
80614         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80615         Problem and fix reported by Pádraig Brady in
80616         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80617
80618 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80619
80620         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80621
80622 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80623
80624         * lib/memcoll.c (memcoll): Optimize for the common case where the
80625         arguments are bytewise equal.
80626
80627 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80628
80629         * doc/regexprops-generic.texi: Add a copyright notice.
80630
80631 2006-08-15  Bruno Haible  <bruno@clisp.org>
80632
80633         * modules/tmpdir (License): Change to LGPL.
80634
80635 2006-08-15  Bruno Haible  <bruno@clisp.org>
80636
80637         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80638         module.
80639
80640 2006-08-14  Simon Josefsson  <jas@extundo.com>
80641
80642         * config/srclist.txt: Add gnupload.
80643
80644 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         Change copyright notice from LGPL 2 to GPL 2, since that's the
80647         standard form used in the gnulib repository.
80648         * tests/test-lock.c: Likewise.
80649         * tests/test-stdint.c: Likewise.
80650         * tests/test-tls.c: Likewise.
80651
80652         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80653         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80654         Add copyright notice.
80655
80656         * check-module: Add copyright notice.  Output a copyright
80657         notice if "--version" is specified.
80658         * modules/COPYING: New file.
80659         * tests/test-getaddrinfo.c: Add copyright notice.
80660         * tests/test-verify.c: Likewise.
80661
80662 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80663
80664         Change copyright notice from LGPL 2 to GPL 2, since that's the
80665         standard form used in the gnulib repository.
80666         * lib/lock.c: LGPL -> GPL.
80667         * lib/lock.h: Likewise.
80668         * lib/strnlen1.c: Likewise.
80669         * lib/strnlen1.h: Likewise.
80670         * lib/tls.c: Likewise.
80671         * lib/tls.h: Likewise.
80672         * lib/tmpdir.c: Likewise.
80673
80674         * lib/TODO: Remove; this belongs only in coreutils.
80675
80676 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         Add copyright notices to long-enough files that lack them, since
80679         otherwise the files aren't clearly free.  Use the same notice that
80680         getdate.texi already uses.
80681         * doc/alloca-opt.texi: Add copyright notice.
80682         * doc/alloca.texi: Likewise.
80683         * doc/ctime.texi: Likewise.
80684         * doc/functions.texi: Likewise.
80685         * doc/gcd.texi: Likewise.
80686         * doc/gnulib-tool.texi: Likewise.
80687         * doc/inet_ntoa.texi: Likewise.
80688         * doc/visibility.texi: Likewise.
80689
80690         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80691         * doc/quote.texi: Add copyright notice.
80692
80693         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80694         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80695         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80696         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80697         is now obsolete, and give a pointer to the Sun list.
80698         Add copyright notice.
80699
80700 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80701
80702         * config/srclistvars.sh: Add copyright notice.
80703
80704 2006-08-14  Eric Blake  <ebb9@byu.net>
80705
80706         Import the following change from libc:
80707
80708         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80709
80710         Upstream bug 2997.
80711         * lib/misc/error.c: Add space between program name and message if file
80712         name is missing.
80713
80714 2006-08-12  Karl Berry  <karl@gnu.org>
80715
80716         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80717         remove, these originate in gnulib now.
80718
80719 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80720
80721         * doc/Makefile (standards.info standards.html standards.dvi):
80722         Also depend on make-stds.texi.
80723
80724 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80725
80726         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80727         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80728
80729         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80730         in wchar_t.  Problem reported by Eric Blake.
80731
80732         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80733         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80734         Also, help the compiler to keep LEN in a register.
80735
80736 2006-08-11  Eric Blake  <ebb9@byu.net>
80737
80738         * users.txt: Sort.  Add tar.
80739
80740 2006-08-11  Bruno Haible  <bruno@clisp.org>
80741
80742         * users.txt: New file.
80743
80744 2006-08-11  Bruno Haible  <bruno@clisp.org>
80745
80746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80747         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80748
80749 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80750
80751         * modules/snprintf (Depends-on): Remove minmax.
80752         (Maintainer): Add self and Bruno.
80753
80754 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80755
80756         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80757         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80758         (EOVERFLOW): Define if the system does not.
80759         Do not include "minmax.h"; it wasn't used.
80760         (snprintf): Don't assume size_t promotes to an unsigned type.
80761         Fix bug when generated string was too long for the buffer: the
80762         buffer's contents are supposed to be the initial prefix of the
80763         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80764         exceeds INT_MAX; do the check ourselves.
80765
80766         Import the following changes from libc:
80767
80768         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80769
80770         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80771         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80772         set wc to the byte which couldn't be converted.
80773         (re_string_reconstruct): Don't clear valid_raw_len before calling
80774         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80775         tip_context using re_string_context_at.
80776
80777         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80778
80779         * lib/posix/regex.h: g++ still cannot handled [restrict].
80780
80781         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80782
80783         * lib/posix/regex.h: Remove special handling for VMS.
80784
80785 2006-08-10  Jim Meyering  <jim@meyering.net>
80786
80787         * modules/same-inode: New module.
80788         * modules/dev-ino: New module.
80789         * modules/cycle-check: Depend on these modules, rather than simply
80790         including their .h files.
80791         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80792         required via m4/cycle-check.m4.
80793         * modules/same: Depend on new same-inode module, rather than
80794         including same-inode.h.
80795         * modules/chdir-safer: New file.
80796
80797         * modules/chown (Depends-on): Add stat-macros.
80798
80799 2006-08-10  Jim Meyering  <jim@meyering.net>
80800
80801         * m4/cycle-check.m4: New file.
80802         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80803         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80804
80805 2006-08-10  Eric Blake  <ebb9@byu.net>
80806
80807         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80808         in from original proposal.
80809
80810 2006-08-10  Eric Blake  <ebb9@byu.net>
80811         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80812
80813         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80814         namespace.
80815
80816 2006-08-10  Bruno Haible  <bruno@clisp.org>
80817
80818         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80819         as well.
80820
80821 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         Sync from coreutils.
80824
80825         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80826
80827         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80828         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80829
80830 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80831
80832         * modules/restrict: Remove; no longer needed now that we assume
80833         Autoconf 2.59 or later.
80834         * MODULES.html.sh: Remove 'restrict'.
80835         * modules/argp (Depends-on): Remove 'restrict'.
80836         * modules/base64 (Depends-on): Likewise.
80837         * modules/gc (Depends-on): Likewise.
80838         * modules/getaddrinfo (Depends-on): Likewise.
80839         * modules/glob (Depends-on): Likewise.
80840         * modules/inet_ntop (Depends-on): Likewise.
80841         * modules/inet_pton (Depends-on): Likewise.
80842         * modules/memxor (Depends-on): Likewise.
80843         * modules/regex (Depends-on): Likewise.
80844         * modules/strtok_r (Depends-on): Likewise.
80845         * modules/time_r (Depends-on): Likewise.
80846
80847 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80850         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80851         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80852         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80853         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80854         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80855         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80856         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80857
80858         Merge from coreutils.
80859         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80860         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80861         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80862         * m4/time_r.m4 (gl_TIME_R): Likewise.
80863
80864 2006-08-09  Karl Berry  <karl@gnu.org>
80865
80866         * config/srclist.txt: no more gettext-tools, per Bruno.
80867
80868 2006-08-08  Eric Blake  <ebb9@byu.net>
80869
80870         * modules/verror: New module.
80871         * MODULES.html.sh: Document it.
80872
80873 2006-08-08  Eric Blake  <ebb9@byu.net>
80874
80875         * lib/verror.h, lib/verror.c: New files.
80876
80877 2006-08-08  Eric Blake  <ebb9@byu.net>
80878
80879         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80880         verror_at_line output complies with GNU Coding Standards even when
80881         file is NULL.
80882
80883 2006-08-07  Bruno Haible  <bruno@clisp.org>
80884
80885         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80886         versions of AIX.
80887         Reported by Ralf Wildenhues.
80888
80889 2006-08-07  Bruno Haible  <bruno@clisp.org>
80890
80891         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80892         in an AC_DEFUN. Needed so that the autoconf snippets can use
80893         AC_REQUIRE.
80894
80895 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80896
80897         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80898         Initialize pkgdata_DATA.
80899         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80900         overriding it.
80901
80902 2006-08-06  Eric Blake  <ebb9@byu.net>
80903
80904         * lib/error.h: Fold in some upstream changes from glibc.
80905         * lib/error.c: Likewise.
80906
80907 2006-08-04  Bruno Haible  <bruno@clisp.org>
80908
80909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80910         Make the mostlyclean-local rule depend on mostlyclean-generic.
80911         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80912
80913 2006-07-31  Bruno Haible  <bruno@clisp.org>
80914
80915         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80916         <stdlib.h>, <string.h>.
80917
80918 2006-07-30  Bruno Haible  <bruno@clisp.org>
80919
80920         * modules/readlink (License): Change to LGPL.
80921
80922 2006-07-30  Bruno Haible  <bruno@clisp.org>
80923
80924         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80925         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80926         set PKGDATADIR to point to it.
80927
80928 2006-07-30  Bruno Haible  <bruno@clisp.org>
80929
80930         * modules/csharpexec (configure.ac): Comment out macro invocation.
80931         * modules/javaexec (configure.ac): Likewise.
80932         * modules/javacomp-script (configure.ac): Likewise.
80933
80934         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80935
80936 2006-07-30  Bruno Haible  <bruno@clisp.org>
80937
80938         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80939         linked-list.
80940
80941 2006-07-30  Bruno Haible  <bruno@clisp.org>
80942
80943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80944
80945 2006-07-30  Bruno Haible  <bruno@clisp.org>
80946
80947         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80948         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80949         get removed.
80950
80951 2006-07-29  Bruno Haible  <bruno@clisp.org>
80952
80953         Make it possible for gnulib-tool to work with locally modified or
80954         augmented gnulib repositories.
80955         * gnulib-tool (func_usage): Document --local-dir option.
80956         (local_gnulib_dir): New variable.
80957         Handle --local-dir option.
80958         (func_lookup_file): New function.
80959         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80960         (func_get_description, func_get_filelist, func_get_description,
80961         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80962         func_get_automake_snippet, func_get_include_directive,
80963         func_get_license, func_get_maintainer): Use func_lookup_file.
80964         (func_import, func_create_testdir): Use func_lookup_file.
80965
80966 2006-07-29  Bruno Haible  <bruno@clisp.org>
80967
80968         * modules/setenv (Depends-on): Add unistd.
80969
80970 2006-07-29  Bruno Haible  <bruno@clisp.org>
80971
80972         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80973
80974 2006-07-29  Bruno Haible  <bruno@clisp.org>
80975
80976         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80977
80978 2006-07-29  Bruno Haible  <bruno@clisp.org>
80979
80980         * gnulib-tool (import, update): If there is no Makefile.am, look at
80981         aclocal.m4, instead of bailing out.
80982
80983 2006-07-29  Bruno Haible  <bruno@clisp.org>
80984
80985         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80986         Categorize the options by when they are useful.
80987
80988 2006-07-29  Bruno Haible  <bruno@clisp.org>
80989
80990         * gnulib-tool (func_usage): Document option --no-libtool.
80991         Handle option --no-libtool.
80992         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80993         for changed semantics of $libtool variable.
80994         (func_import): Likewise. If libtool is not used, show this through
80995         an option --no-libtool.
80996         (func_create_testdir): Update.
80997
80998 2006-07-29  Bruno Haible  <bruno@clisp.org>
80999
81000         * gnulib-tool (func_import): Extend error message about missing
81001         --doc-base.
81002
81003 2006-07-29  Bruno Haible  <bruno@clisp.org>
81004
81005         * gnulib-tool (func_import): Don't create the $docbase directory if
81006         there is no file to store there.
81007
81008 2006-07-29  Bruno Haible  <bruno@clisp.org>
81009
81010         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81011         relevant, look for configure.ac there, not in the current directory.
81012         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81013
81014 2006-07-29  Bruno Haible  <bruno@clisp.org>
81015
81016         * gnulib-tool (SORT): New variable.
81017         (func_usage): Undocument --assume-autoconf option.
81018         Remove --assume-autoconf option handling.
81019         (autoconf_minversion): Determine from the contents of configure.ac.
81020         (func_import): Remove autoconf_minversion handling.
81021         Suggested by Eric Blake.
81022
81023 2006-07-29  Bruno Haible  <bruno@clisp.org>
81024
81025         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81026
81027 2006-07-29  Bruno Haible  <bruno@clisp.org>
81028
81029         * config/srclist.txt (*setenv.[ch]): Remove rules.
81030
81031 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81032
81033         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81034
81035 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81036
81037         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81038         arpa/inet.h.
81039
81040 2006-07-28  Simon Josefsson  <jas@extundo.com>
81041
81042         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81043         * modules/inet_pton (Depends-on): Likewise.
81044
81045 2006-07-28  Simon Josefsson  <jas@extundo.com>
81046
81047         * m4/netinet_in_h.m4: New file.
81048
81049 2006-07-28  Simon Josefsson  <jas@extundo.com>
81050
81051         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81052         #include's.
81053
81054 2006-07-28  Simon Josefsson  <jas@extundo.com>
81055
81056         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81057         #include's.
81058
81059 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81060
81061         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81062         setgid on directories only if they set these bits.
81063         * lib/modechange.h: Remove obsolete comment about masks.
81064
81065 2006-07-28  Eric Blake  <ebb9@byu.net>
81066
81067         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81068         macro expansion.
81069
81070 2006-07-28  Bruno Haible  <bruno@clisp.org>
81071
81072         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81073
81074 2006-07-28  Bruno Haible  <bruno@clisp.org>
81075
81076         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81077
81078 2006-07-28  Bruno Haible  <bruno@clisp.org>
81079
81080         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81081         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81082         Define fallbacks.
81083         Avoids link error on FreeBSD 4.x.
81084         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81085
81086         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81087         encoding.
81088         * lib/mbswidth.c (iswcntrl): Likewise.
81089
81090 2006-07-27  Bruno Haible  <bruno@clisp.org>
81091
81092         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81093         test.
81094
81095 2006-07-27  Bruno Haible  <bruno@clisp.org>
81096
81097         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81098         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81099         defined.
81100
81101 2006-07-26  Eric Blake  <ebb9@byu.net>
81102
81103         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81104
81105 2006-07-26  Eric Blake  <ebb9@byu.net>
81106
81107         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81108         like mingw that lack mkstemp.
81109         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81110         avoid compilation warning on mingw.
81111
81112 2006-07-26  Bruno Haible  <bruno@clisp.org>
81113
81114         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81115         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81116         INT_FAST*_MIN, INTPTR_MIN.
81117
81118 2006-07-25  Bruno Haible  <bruno@clisp.org>
81119
81120         * modules/version-etc (Depends-on): Add stdarg.
81121
81122 2006-07-25  Bruno Haible  <bruno@clisp.org>
81123
81124         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81125         complex commands.
81126
81127 2006-07-25  Bruno Haible  <bruno@clisp.org>
81128
81129         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81130         defined in <stdarg.h> or config.h.
81131
81132 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81133
81134         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81135         (gl_STDIO_SAFER): Remove.
81136
81137 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81138
81139         * MODULES.html.sh (File stream based Input/Output):
81140         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81141         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81142         * modules/fopen-safer, modules/tmpfile-safer: New files.
81143         * modules/stdio-safer: Remove.
81144
81145 2006-07-24  Bruno Haible  <bruno@clisp.org>
81146
81147         * modules/tmpdir: New file.
81148         * MODULES.html.sh (File system functions): Add it.
81149
81150 2006-07-24  Bruno Haible  <bruno@clisp.org>
81151
81152         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81153         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81154
81155 2006-07-24  Bruno Haible  <bruno@clisp.org>
81156
81157         * modules/clean-temp: New file.
81158
81159 2006-07-24  Bruno Haible  <bruno@clisp.org>
81160
81161         * m4/tmpdir.m4: New file, from GNU gettext.
81162
81163 2006-07-24  Bruno Haible  <bruno@clisp.org>
81164
81165         * lib/tmpdir.h: New file, from GNU gettext.
81166         * lib/tmpdir.c: New file, from GNU gettext.
81167
81168 2006-07-24  Bruno Haible  <bruno@clisp.org>
81169
81170         * lib/clean-temp.h: New file, from GNU gettext.
81171         * lib/clean-temp.c: New file, from GNU gettext.
81172
81173 2006-07-23  Eric Blake  <ebb9@byu.net>
81174
81175         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81176         (Depends-on): Add binary-io.
81177
81178 2006-07-23  Eric Blake  <ebb9@byu.net>
81179
81180         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81181
81182 2006-07-23  Eric Blake  <ebb9@byu.net>
81183
81184         * lib/tmpfile-safer.c: New file.
81185         * lib/stdio-safer.h (fopen_safer): Add prototype.
81186         * lib/stdio--.h (tmpfile): Make safer.
81187
81188 2006-07-23  Bruno Haible  <bruno@clisp.org>
81189
81190         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81191         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81192         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81193         gl_linked_remove_at): Use it.
81194
81195 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81196         and Simon Josefsson <jas@extundo.com>
81197
81198         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81199
81200         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81201
81202 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81203
81204         * modules/close-stream: New file.
81205         * modules/closeout (Description): Make it clear that it exits
81206         with a diagnostic on error.
81207         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81208         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81209
81210 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81211
81212         * m4/close-stream.m4: New file.
81213
81214 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81215
81216         * lib/close-stream.c, lib/close-stream.h: New files.
81217
81218 2006-07-22  Bruno Haible  <bruno@clisp.org>
81219
81220         Merge from GNU gettext 0.15.
81221
81222         2006-05-01  Bruno Haible  <bruno@clisp.org>
81223
81224                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81225
81226         2006-07-22  Bruno Haible  <bruno@clisp.org>
81227
81228                 * modules/javaversion: New file.
81229                 * MODULES.html.sh (Java): Add javaversion.
81230
81231         2006-03-12  Bruno Haible  <bruno@clisp.org>
81232
81233                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81234
81235         2005-12-04  Bruno Haible  <bruno@clisp.org>
81236
81237                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81238                 (untested).
81239
81240         2006-06-21  Bruno Haible  <bruno@clisp.org>
81241
81242                 Avoid warnings from recent versions of mcs.
81243                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81244                 -o, -L, -r any more. Use options documented since mcs-1.0
81245                 instead. Similarly for -g.
81246
81247         2005-12-04  Bruno Haible  <bruno@clisp.org>
81248
81249                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81250                 .resources, not .resource.
81251
81252         2005-07-09  Bruno Haible  <bruno@clisp.org>
81253
81254                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81255                 add a .dll suffix.
81256                 Reported by Mark Junker <mjscod@gmx.de>.
81257
81258         2006-07-22  Bruno Haible  <bruno@clisp.org>
81259
81260                 * modules/gettext: Upgrade to gettext-0.15.
81261                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81262                 m4/visibility.m4.
81263                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81264
81265 2006-07-22  Bruno Haible  <bruno@clisp.org>
81266
81267         Merge from GNU gettext 0.15.
81268
81269         2006-03-25  Bruno Haible  <bruno@clisp.org>
81270
81271                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81272
81273         2006-07-21  Bruno Haible  <bruno@clisp.org>
81274
81275                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81276                 "1.1".
81277
81278         2006-05-09  Bruno Haible  <bruno@clisp.org>
81279
81280                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81281                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81282                 for the conftestver execution.
81283
81284         2006-05-01  Bruno Haible  <bruno@clisp.org>
81285
81286                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81287                 optional target-version argument. Verify that the compiler
81288                 groks source of the specified source-version, or add -source
81289                 option as necessary. Verify that the compiler produces
81290                 bytecode in the specified target-version, or add -target and
81291                 -source options as necessary. Make the result of the test
81292                 available as variable CONF_JAVAC. Also log error output in
81293                 config.log.
81294
81295         2006-03-11  Bruno Haible  <bruno@clisp.org>
81296
81297                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81298
81299         2006-05-09  Bruno Haible  <bruno@clisp.org>
81300
81301                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81302                 CLASSPATH_SEPARATOR to a semicolon.
81303
81304         2006-03-12  Bruno Haible  <bruno@clisp.org>
81305
81306                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81307                 available as variable CONF_JAVA, for subsequent autoconf
81308                 tests. Also log error output in config.log.
81309
81310         2006-07-19  Bruno Haible  <bruno@clisp.org>
81311
81312                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81313                 that getline works on glibc2 systems. Needed to avoid trouble
81314                 in relocatable.c.
81315                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81316
81317         2005-12-04  Bruno Haible  <bruno@clisp.org>
81318
81319                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81320                 launcher (untested).
81321
81322         2005-12-04  Bruno Haible  <bruno@clisp.org>
81323
81324                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81325
81326         2006-07-22  Bruno Haible  <bruno@clisp.org>
81327
81328                 * gettext.m4: Update from GNU gettext-0.15.
81329                 * nls.m4: Likewise.
81330                 * po.m4: Likewise.
81331                 * inttypes-pri.m4: Likewise.
81332                 * inttypes-h.m4: Renamed from inttypes.m4.
81333                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81334
81335 2006-07-22  Bruno Haible  <bruno@clisp.org>
81336
81337         Merge from GNU gettext 0.15.
81338
81339         2005-07-05  Bruno Haible  <bruno@clisp.org>
81340
81341                 * printf-args.c (printf_fetchargs): Work around broken
81342                 definition of wint_t on mingw.
81343
81344         2005-02-12  Bruno Haible  <bruno@clisp.org>
81345
81346                 * xallocsa.h: Add extern "C" for C++.
81347
81348         2006-05-17  Bruno Haible  <bruno@clisp.org>
81349
81350                 Cygwin portability.
81351                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81352
81353         2006-04-30  Bruno Haible  <bruno@clisp.org>
81354
81355                 * progreloc.c: Include <mach-o/dyld.h> if available.
81356                 (find_executable): Use _NSGetExecutablePath when possible.
81357
81358         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81359
81360                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81361                 function.
81362
81363         2005-12-29  Bruno Haible  <bruno@clisp.org>
81364
81365                 * progreloc.c (set_program_name_and_installdir): Fix
81366                 compilation error.
81367
81368         2005-12-04  Bruno Haible  <bruno@clisp.org>
81369
81370                 Cygwin portability.
81371                 * progreloc.c: Include <windows.h> also on Cygwin.
81372                 (find_executable): Add support for Cygwin.
81373                 (set_program_name_and_installdir): Handle also platforms with
81374                 nonempty EXEEXT.
81375
81376         2006-07-11  Bruno Haible  <bruno@clisp.org>
81377
81378                 * javacomp.c: Fix a comment.
81379                 Reported by Jim Meyering.
81380
81381         2006-04-30  Bruno Haible  <bruno@clisp.org>
81382
81383                 * javacomp.h (compile_java_class): Add source_version,
81384                 target_version arguments.
81385                 * javacomp.c: Rewritten to choose only a compiler that
81386                 respects the specified source_version and target_version.
81387
81388         2006-06-27  Bruno Haible  <bruno@clisp.org>
81389
81390                 Assume correct S_ISDIR macro.
81391                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81392
81393         2006-07-22  Bruno Haible  <bruno@clisp.org>
81394
81395                 * javaversion.h: New file, from GNU gettext.
81396                 * javaversion.c: New file, from GNU gettext.
81397                 * javaversion.java: New file, from GNU gettext.
81398                 * javaversion.class: New file, from GNU gettext.
81399
81400         2006-05-17  Bruno Haible  <bruno@clisp.org>
81401
81402                 Cygwin portability.
81403                 * javaexec.c (execute_java_class): Test for jview program
81404                 also on Cygwin.
81405
81406         2006-04-09  Bruno Haible  <bruno@clisp.org>
81407
81408                 * fatal-signal.c: Don't include string.h.
81409                 (at_fatal_signal): Use a copying loop instead of memcpy.
81410
81411         2005-12-04  Bruno Haible  <bruno@clisp.org>
81412
81413                 * csharpexec.c: Add support for 'clix' launcher (untested).
81414                 (execute_csharp_using_sscli): New function.
81415                 (execute_csharp_program): Call it.
81416
81417         2006-06-21  Bruno Haible  <bruno@clisp.org>
81418
81419                 Avoid warnings from recent versions of mcs.
81420                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81421                 -o, -L, -r any more. Use options documented since mcs-1.0
81422                 instead. Similarly for -g.
81423
81424         2005-07-09  Bruno Haible  <bruno@clisp.org>
81425
81426                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81427                 add a .dll suffix.
81428                 Reported by Mark Junker <mjscod@gmx.de>.
81429
81430         2006-06-17  Bruno Haible  <bruno@clisp.org>
81431
81432                 * config.charset: Update for NetBSD 3.0.
81433
81434         2006-05-17  Bruno Haible  <bruno@clisp.org>
81435
81436                 Cygwin portability.
81437                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81438
81439         2006-05-16  Bruno Haible  <bruno@clisp.org>
81440
81441                 * localcharset.c [CYGWIN]: Include <windows.h>.
81442                 (get_charset_aliases): For Cygwin, return the same CPxxx
81443                 aliases list as under WIN32.
81444                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81445                 the environment variables. Fall back to GetACP().
81446
81447         2006-04-05  Bruno Haible  <bruno@clisp.org>
81448
81449                 * config.charset: Update Juan Manuel Guerrero's address.
81450
81451         2005-02-12  Bruno Haible  <bruno@clisp.org>
81452
81453                 * allocsa.h: Add extern "C" for C++.
81454
81455         2005-02-10  Bruno Haible  <bruno@clisp.org>
81456
81457                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81458                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81459
81460         2006-07-22  Bruno Haible  <bruno@clisp.org>
81461
81462                 * gettext.h: Update to GNU gettext-0.15.
81463
81464 2006-07-22  Bruno Haible  <bruno@clisp.org>
81465
81466         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81467         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81468         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81469
81470 2006-07-21  Eric Blake  <ebb9@byu.net>
81471
81472         * modules/stdlib-safer: New file.
81473         * MODULES.html.sh (File stream based Input/Output): Add
81474         stdlib-safer.
81475
81476 2006-07-21  Eric Blake  <ebb9@byu.net>
81477
81478         * lib/stdlib-safer.h: New file from coreutils, required by
81479         stdlib--.h.
81480
81481 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81482
81483         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81484
81485 2006-07-20  Bruno Haible  <bruno@clisp.org>
81486
81487         * gnulib-tool: Recognize new option --assume-autoconf.
81488         (autoconf_minversion): New variable.
81489         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81490
81491 2006-07-20  Bruno Haible  <bruno@clisp.org>
81492
81493         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81494
81495 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81496
81497         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81498         Reindent and repaginate.
81499
81500 2006-07-19  Derek Price  <derek@ximbiot.com>
81501
81502         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81503         Correct grammar.
81504
81505 2006-07-17  Bruno Haible  <bruno@clisp.org>
81506
81507         * modules/list: New file.
81508         * modules/array-list: New file.
81509         * modules/carray-list, modules/carray-list-tests: New files.
81510         * modules/linked-list, modules/linked-list-tests: New files.
81511         * modules/avltree-list, modules/avltree-list-tests: New files.
81512         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81513         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81514         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81515         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81516         * modules/oset: New file.
81517         * modules/array-oset: New file.
81518         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81519         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81520         * tests/test-carray_list.c: New file.
81521         * tests/test-linked_list.c: New file.
81522         * tests/test-avltree_list.c: New file.
81523         * tests/test-rbtree_list.c: New file.
81524         * tests/test-linkedhash_list.c: New file.
81525         * tests/test-avltreehash_list.c: New file.
81526         * tests/test-rbtreehash_list.c: New file.
81527         * tests/test-avltree_oset.c: New file.
81528         * tests/test-rbtree_oset.c: New file.
81529         * MODULES.html.sh (Container data structures): New section.
81530
81531 2006-07-17  Bruno Haible  <bruno@clisp.org>
81532
81533         * m4/gl_list.m4: New file.
81534
81535 2006-07-17  Bruno Haible  <bruno@clisp.org>
81536
81537         * lib/gl_list.h: New file.
81538         * lib/gl_list.c: New file.
81539         * lib/gl_array_list.h: New file.
81540         * lib/gl_array_list.c: New file.
81541         * lib/gl_carray_list.h: New file.
81542         * lib/gl_carray_list.c: New file.
81543         * lib/gl_linked_list.h: New file.
81544         * lib/gl_linked_list.c: New file.
81545         * lib/gl_anylinked_list1.h: New file.
81546         * lib/gl_anylinked_list2.h: New file.
81547         * lib/gl_avltree_list.h: New file.
81548         * lib/gl_avltree_list.c: New file.
81549         * lib/gl_anyavltree_list1.h: New file.
81550         * lib/gl_anyavltree_list2.h: New file.
81551         * lib/gl_rbtree_list.h: New file.
81552         * lib/gl_rbtree_list.c: New file.
81553         * lib/gl_anyrbtree_list1.h: New file.
81554         * lib/gl_anyrbtree_list2.h: New file.
81555         * lib/gl_anytree_list1.h: New file.
81556         * lib/gl_anytree_list2.h: New file.
81557         * lib/gl_linkedhash_list.h: New file.
81558         * lib/gl_linkedhash_list.c: New file.
81559         * lib/gl_anyhash_list1.h: New file.
81560         * lib/gl_anyhash_list2.h: New file.
81561         * lib/gl_avltreehash_list.h: New file.
81562         * lib/gl_avltreehash_list.c: New file.
81563         * lib/gl_rbtreehash_list.h: New file.
81564         * lib/gl_rbtreehash_list.c: New file.
81565         * lib/gl_anytreehash_list1.h: New file.
81566         * lib/gl_anytreehash_list2.h: New file.
81567
81568         * lib/gl_oset.h: New file.
81569         * lib/gl_oset.c: New file.
81570         * lib/gl_array_oset.h: New file.
81571         * lib/gl_array_oset.c: New file.
81572         * lib/gl_avltree_oset.h: New file.
81573         * lib/gl_avltree_oset.c: New file.
81574         * lib/gl_rbtree_oset.h: New file.
81575         * lib/gl_rbtree_oset.c: New file.
81576         * lib/gl_anytree_oset.h: New file.
81577
81578 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81579
81580         * m4/mkancesdirs.m4: New file.
81581         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81582         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81583         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81584         it.
81585
81586 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81587
81588         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81589         * lib/mkancesdirs.h: New files.
81590         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81591         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81592         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81593         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81594         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81595         callers changed.  Revamp internals significantly, by not
81596         attempting to create directories that are temporarily more
81597         permissive than the final results.  Do not attempt to use
81598         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81599         This removes some race conditions, fixes some bugs, and simplifies
81600         things.  Use new dirchownmod function to do owner and mode changes.
81601         * lib/mkdir-p.h: Likewise.
81602         * lib/modechange.c (octal_to_mode): New function.
81603         (struct mode_change): New member mentioned.
81604         (make_node_op_equals): New arg mentioned.  All callers changed.
81605         (mode_compile): Keep track of which mode bits the user has explicitly
81606         mentioned.
81607         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81608         New arg PMODE_BITS, to keep track of which mode bits the user
81609         mentioned; it treats S_ISUID and S_ISGID speciall.
81610         All callers changed.
81611         * lib/modechange.h: Likewise.
81612
81613 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81614
81615         * MODULES.html.sh: Add mkancestors.
81616         * modules/mkancesdirs: New module.
81617         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81618         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81619         The chdir-safer and afs files are now orphans; I'll remove them
81620         unless someone speaks up.
81621         Add lib/dirchownmod.c, lib/dirchownmod.h.
81622         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81623         Add lchown, mkancesdirs.
81624         (Maintainer): Add self.
81625
81626 2006-07-15  Karl Berry  <karl@gnu.org>
81627
81628         * gnulib-tool: help message wording/arrangement.
81629
81630 2006-07-14  Simon Josefsson  <jas@extundo.com>
81631
81632         * doc/gnulib.texi (Libtool and Windows): New section.
81633
81634 2006-07-12  Simon Josefsson  <jas@extundo.com>
81635
81636         * modules/gendocs (License): Fix license, approved by Karl.
81637
81638 2006-07-12  Eric Blake  <ebb9@byu.net>
81639
81640         * MODULES.html.sh: Add gendocs.
81641
81642 2006-07-11  Eric Blake  <ebb9@byu.net>
81643
81644         * modules/fdl: New module, to install doc/fdl.texi.
81645         * MODULES.html.sh: Add new section for documentation modules.
81646         * gnulib-tool: Avoid space-tab.
81647         (--doc-base): New option, to manage files from doc.
81648
81649 2006-07-11  Eric Blake  <ebb9@byu.net>
81650
81651         * m4/absolute-header.m4: Fix comments to match recent change.
81652
81653 2006-07-11  Eric Blake  <ebb9@byu.net>
81654
81655         * gnulib-tool: List --doc-base before --tests-base.
81656
81657 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81658
81659         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81660
81661 2006-07-11  Bruno Haible  <bruno@clisp.org>
81662
81663         * README: Mention where to put documentation.
81664
81665 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81666
81667         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81668
81669 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81670
81671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81672         to stdint.m4.
81673
81674 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81675
81676         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81677         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81678         "no/such/file/stdint.h" when there is no such file, so that
81679         the resulting C code can be parsed by dodgy compilers.
81680         Problems reported by Bob Proulx.
81681
81682 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81683
81684         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81685         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81686         macros into the GNU _D_EXACT_NAMLEN.
81687         * lib/savedir.c:  Likewise.
81688         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81689
81690 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81691         and Paul Eggert  <eggert@cs.ucla.edu>
81692
81693         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81694         * m4/savedir.m4:
81695         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81696         macros into the GNU _D_EXACT_NAMLEN.
81697
81698 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81699
81700         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81701         around the absolute name, to work around a problem with the HP-UX
81702         11.23 native C compiler, reported by Bob Proulx.
81703
81704 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         * doc/maintain.texi, make-stds.texi: Sync from
81707         <http://savannah.gnu.org/projects/gnustandards>.
81708
81709 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81710
81711         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81712
81713 2006-07-09  Jim Meyering  <jim@meyering.net>
81714
81715         * m4/glob.m4: Remove a doubled word in a comment.
81716
81717 2006-07-09  Jim Meyering  <jim@meyering.net>
81718
81719         * lib/argp-pv.c: Remove a doubled word in a comment.
81720         * lib/check-version.c (check_version): Likewise.
81721         * lib/javacomp.c (compile_java_class): Likewise.
81722
81723 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81724
81725         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81726         for the benefit of people using Autoconf 2.60.  If you want to
81727         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81728         (or m4/onceonly.m4, if pre-2.57) manually.
81729
81730 2006-07-08  Jim Meyering  <jim@meyering.net>
81731
81732         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81733         comment.
81734         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81735         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81736         comment.
81737
81738 2006-07-08  Jim Meyering  <jim@meyering.net>
81739
81740         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81741
81742 2006-07-07  Simon Josefsson  <jas@extundo.com>
81743
81744         * tests/test-crc.c: Change expected crc value, the test vector
81745         were probably computed using the old broken crc.c?
81746
81747 2006-07-06  Simon Josefsson  <jas@extundo.com>
81748
81749         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81750         now the canonical place for the M4 file).
81751
81752         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81753         from the sys_socket dependency now.
81754
81755         * modules/inet_pton (Files): Ditto.
81756
81757         * modules/inet_ntop (Files): Ditto.
81758
81759 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81760
81761         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81762         not gl_PREREQ_GETUSERSHELL.
81763
81764 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81765
81766         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81767         with only one argument, for Autoconf 2.60.
81768         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81769         expand to nothing, so add a shell command to avoid syntax error.
81770         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81771
81772 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81773
81774         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81775
81776 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81777
81778         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81779         no longer needed.  Check for isblank decl.
81780         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81781         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81782         of existence.
81783
81784 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81785
81786         * lib/getloadavg.c: Use __VMS, not VMS.
81787         * lib/getopt.c: Likewise.
81788         * lib/getpagesize.h: Likewise.
81789         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81790         and probably does not work.
81791
81792 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81793
81794         * lib/.cppi-disable: Add wcwidth.
81795         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81796         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81797         (ISGRAPH): Remove.  All uses changed to isgraph.
81798         (FOLD) [!defined _LIBC]: Remove special case.
81799         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81800         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81801         HAVE_ISBLANK.
81802         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81803         case.
81804
81805 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81806
81807         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81808         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81809         brackets.  Other minor changes to suppress some compiler
81810         warnings.
81811
81812 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81813         and Paul Eggert  <eggert@cs.ucla.edu>
81814
81815         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81816         of invoking obsolescent AC_HEADER_DIRENT macro.
81817         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81818         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81819         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81820         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81821         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81822         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81823         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81824         * m4/readdir.m4: Remove; no longer needed.
81825
81826 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81827         and Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81830         Don't worry about this obsolete case any more.
81831         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81832         directories.
81833         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81834         worry about this obsolete case any more.
81835         * lib/fts.c: Likewise.
81836         * lib/getcwd.c: Likewise.
81837         * lib/glob.h: Likewise.
81838         * lib/savedir.c: Likewise.
81839
81840 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81841
81842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81843         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81844         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81845         needed.
81846         All uses removed.
81847         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81848         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81849         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81850         needed.
81851         * m4/getdate.m4 (gl_GETDATE): Likewise.
81852         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81853         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81854         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81855         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81856         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81857         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81858         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81859         needed.
81860
81861 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         * lib/memcasecmp.c: Include <limits.h>.
81864         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81865         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81866         Don't assume isdigit succeeds only on '0' through '9'.
81867
81868 2006-07-05  Eric Blake  <ebb9@byu.net>
81869
81870         * modules/getaddrinfo (Depends-on): Add snprintf.
81871
81872 2006-07-05  Eric Blake  <ebb9@byu.net>
81873
81874         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81875         to avoid 'header present but could not be compiled' on cygwin.
81876
81877 2006-07-05  Eric Blake  <ebb9@byu.net>
81878
81879         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81880         missing from netdb.h.
81881         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81882
81883 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81884
81885         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81886         no longer needed.
81887         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81888         * m4/getdate.m4 (gl_GETDATE): Likewise.
81889         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81890         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81891         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81892         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81894
81895 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81896
81897         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81898         All uses of is_space replaced by isspace.
81899         * lib/exit.h: Don't talk about STDC_HEADERS.
81900         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81901         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81902         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81903         replaced by isprint etc.
81904         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81905         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81906         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81907         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81908         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81909         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81910
81911 2006-07-05  Bruno Haible  <bruno@clisp.org>
81912
81913         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81914         the function exists, before testing against AIX.
81915         Reported by Martin Lambers <marlam@marlam.de>.
81916
81917 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81920         From Mark D. Baushke.
81921
81922 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81923
81924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81925         to the absolute name, not just one, to bypass Sun C 5.8's
81926         "warning: #include of /usr/include/... may be non-portable".
81927
81928 2006-07-04  Eric Blake  <ebb9@byu.net>
81929
81930         * modules/dirname-tests: New test module.
81931         * tests/test-dirname.c: New file, replacing dirname.c
81932         TEST_DIRNAME section that was recently deleted.
81933
81934 2006-07-04  Bruno Haible  <bruno@clisp.org>
81935
81936         Assume ANSI C header files and <ctype.h> functions.
81937         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81938         (mbsnwidth): Use isprint, iscntrl instead.
81939
81940 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81941
81942         Merge from coreutils.
81943         * MODULES.html.sh: Add xstrtold.
81944         * modules/xstrtold: New file.
81945         * modules/cycle-check (Files): Add lib/same-inode.h.
81946         * modules/dirname (Files): Add m4/double-slash-root.m4.
81947         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81948         * modules/mkdir-p (Files): Add lib/same-inode.h.
81949         * modules/same (Files): Add lib/same-inode.h.
81950
81951 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81952
81953         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81954         This is to keep the terminology clean; POSIX talks about
81955         "absolute pathnames", not "full pathnames", but the GNU
81956         Coding Standards say to use "path" for something else;
81957         so use "absolute" to keep both sides happy.
81958         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81959         Set gl_absolute_header, not gl_full_header_path.
81960         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81961         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81962         All uses changed.
81963
81964         Merge from coreutils.
81965
81966         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81967
81968         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81969         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81970         want to require the building of c-strtod.o.
81971         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81972         needs -lm directly.
81973         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81974
81975         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81976
81977         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81978         --as-needed option if available.  Problem reported by Albert Chin in
81979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81980         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81981         cc merely issues a bunch of annoying warnings for --as-needed
81982         (this problem was reported by Bob Proulx).  Also, try linking with
81983         -lm to detect a bug in binutils 2.16 (this problem was reported
81984         by Ralf Wildenhues).
81985
81986         2006-06-18  Jim Meyering  <jim@meyering.net>
81987
81988         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81989         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81990         macro.
81991         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81992         also check for glibc-2.4's abort-inducing bug.
81993
81994         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81995         Low-probability clean-up should be to use rmdir to get rid of
81996         the just-created directory, not unlink.
81997
81998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81999         configure fail, and request a bug report to inform us about it.
82000         Add a comment that, barring reports to the contrary, in 2007 we'll
82001         assume ftruncate is universally available.
82002
82003         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82006
82007         2006-03-12  Jim Meyering  <jim@meyering.net>
82008
82009         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82010         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82011         * m4/same.m4 (gl_SAME): Likewise.
82012         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82013
82014         2006-03-11  Eric Blake  <ebb9@byu.net>
82015
82016         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82017         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82018         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82019         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82020
82021 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82022
82023         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82024         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82025         reported by Mark D. Baushke, one in
82026         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82027
82028         Merge from coreutils.
82029
82030         * lib/.cppi-disable: Add stdint_.h.
82031         * lib/.cvsignore: Add stdint.h.
82032
82033         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82036         both double and long double versions.
82037         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82038         * lib/xstrtold.c: New file.
82039         * lib/xstrtod.h (xstrtold): New decl.
82040
82041         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82042
82043         * lib/filemode.c (setst): Remove.
82044         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82045         (arguably) clearer, and the generated code is a bit smaller on my
82046         Debian GNU/Linux stable x86 host.
82047
82048         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82049
82050         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82051         Assume that filemode.h includes sys/types.h and sys/stat.h.
82052         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82053         (ftypelet): Reorder to put common cases first, for efficiency.
82054         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82055         to do 'M'.
82056         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82057         of 10, for compatibility with FreeBSD.  All callers changed.
82058         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82059         types that can't be deduced solely from st_mode.  First arg is now a
82060         const pointer.
82061         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82062         (strmode): Renamed from mode_string.
82063         (filemodestring): New decl.
82064         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82065         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82066         needed.
82067         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82068
82069         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82070
82071         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82072         fsusage.h now does that.  Include fsusage.h first, to test interface.
82073         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82074         at most one method (the old code could have generated decls that
82075         didn't conform to C89, not that this was ever exercised).
82076         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82077
82078         2006-03-19  Jim Meyering  <jim@meyering.net>
82079
82080         Work even in a chroot where d_ino values for entries in "/"
82081         don't match the stat.st_ino values for the same names.
82082         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82083         number, iterate through all entries again, using lstat instead.
82084         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82085         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82086
82087         * lib/getcwd.c (__getcwd): Clarify a comment.
82088         Use memcpy in place of a call to strcpy.
82089
82090         2006-03-12  Jim Meyering  <jim@meyering.net>
82091
82092         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82093         matches that of the current directory (which we're about to chdir ".."
82094         out of), then save the dev-ino of the parent, instead.
82095
82096         * lib/same-inode.h (SAME_INODE): New file/macro.
82097         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82098         Include "same-inode.h", instead.
82099         * lib/same.c: Likewise.
82100         * lib/cycle-check.h: Include "same-inode.h".
82101         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82102         * lib/cycle-check.c (SAME_INODE): Remove definition.
82103         * lib/root-dev-ino.h: Include "same-inode.h".
82104
82105         2006-03-11  Eric Blake  <ebb9@byu.net>
82106
82107         * lib/same.c (same_name): s/base_name/last_component/
82108         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82109         * lib/filenamecat.c (file_name_concat): Likewise.
82110
82111         2006-03-11  Eric Blake  <ebb9@byu.net>,
82112                     Paul Eggert  <eggert@cs.ucla.edu>
82113
82114         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82115         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82116         drive prefix.
82117         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82118         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82119         (last_component): New method.
82120         * lib/dirname.c (dir_len): Determine when drive letters need a
82121         subsequent slash.  Preserve // when it is special.
82122         (dir_name): Don't append dot when drive letter is absolute.
82123         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82124         * lib/basename.c (base_name): New semantics - malloc the result.
82125         Preserve // when it is special.  Preserve relative files that look
82126         like drive letters.
82127         (base_len): Preserve // when it is special.
82128         (last_component): New method, similar to old base_name semantics.
82129         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82130         base_name.  Strip redundant slashes from ///.
82131
82132 2006-07-03  Jim Meyering  <jim@meyering.net>
82133
82134         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82135         macro is used before the first cycle_check call.
82136
82137 2006-07-03  Eric Blake  <ebb9@byu.net>
82138
82139         * modules/dirname (Depends-on): Add xstrndup.
82140
82141 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82144         test cases, so that config.log is a bit easier to follow.
82145
82146 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82147
82148         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82149         both are 64 bits, since this seems to be the tradition, and this
82150         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82151         we ever run into a host that prefers long long to long in this
82152         case, we'll need another configure-time test.  Problem reported by
82153         Jim Meyering.
82154
82155 2006-07-02  Eric Blake  <ebb9@byu.net>
82156
82157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82158
82159 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82160
82161         * modules/inttypes (Depends-on): No longer depends on stdint.
82162         * modules/stdint (Description): Say more about assumptions.
82163         Say that the fast types might differ.  Say macros are used.
82164         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82165         (Makefile.am): Revise list of substituted symbols to match
82166         new stdint.m4.
82167         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82168         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82169         * tests/test-stdint.c (verify_same_types)
82170         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82171         the code conforms to C99/C89.
82172         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82173         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82174
82175 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82176
82177         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82178         but fix a bug, by requiring at least 64 bits.
82179         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82180         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82181         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82182         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82183
82184         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82185         changes.  Make 2.59 a prerequisite.  Check and substitute for
82186         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82187         inttypes.h.  Do not use special include files; just use the
82188         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82189         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82190         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82191         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82192         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82193         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82194         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82195         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82196         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82197         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82198         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82199         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82200         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82201         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82202         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82203         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82204         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82205         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82206         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82207         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82208         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82209         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82210         not check for things that C99 does not require, e.g., int8_t.  If
82211         a test isn't needed unless <stdint.h> isn't working, and is
82212         unlikely to be needed for any other reason, then don't do it
82213         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82214         size_t, since we assume C89 freestanding at least.  Do not check
82215         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82216         the right thing even if the types are not defined.  Instead use:
82217         (gl_STDINT_TYPE_PROPERTIES): New macro.
82218         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82219         testing whether <sys/types.h> clashes, as Autoconf does this for
82220         us now.  All uses removed.
82221         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82222         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82223         (gl_CHECK_TYPE_SAME):
82224         Remove; no longer needed.
82225         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82226         exists, since we'll return 0 anyway in that case.
82227         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82228
82229 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82230
82231         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82232         possible collision with system files.
82233         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82234         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82235         WCHAR_MIN and WCHAR_MAX in this case.
82236         (<stddef.h>): Do not include; no longer needed.
82237         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82238         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82239         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82240         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82241         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82242         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82243         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82244         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82245         !defined(__c99))]: Include in this case too, since it's harmless
82246         now.
82247         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82248         dangerous to do so.
82249         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82250         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82251         (_STDINT_MIN, _STDINT_MAX): New macros.
82252         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82253         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82254         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82255         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82256         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82257         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82258         macros, not typedefs; this simplifies things quite a bit.
82259         Use long int for all types narrower than int64_t.
82260         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82261         Define in terms of long long int or int64_t or long int,
82262         not int64_t or int32_t.  This saves some compile-time testing.
82263         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82264         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82265         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82266         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82267         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82268         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82269         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82270         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82271         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82272         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82273         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82274         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82275         undef any previous version and define our own version, for
82276         simplicity and consistency with the new macros for types.
82277         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82278         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82279         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82280         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82281         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82282         @WINT_T_SUFFIX@ to keep things simple here.
82283         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82284         Simplify by assuming typical 8/16/32/64 host, since we're
82285         already doing that elsewhere anyway.
82286         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82287         and assume long long int is 64 bits if available.  This
82288         speeds up 'configure'.
82289
82290 2006-07-01  Eric Blake  <ebb9@byu.net>
82291
82292         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82293         Reported by Andreas Buening.
82294
82295 2006-07-01  Eric Blake  <ebb9@byu.net>
82296
82297         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82298
82299 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82300
82301         * lib/getaddrinfo.c: fixed typo
82302
82303 2006-06-29  Jim Meyering  <jim@meyering.net>
82304
82305         * modules/strftime (Maintainer): Add my name, since with the
82306         FPRINTFTIME changes strftime.c has forked from glibc.
82307
82308 2006-06-29  Eric Blake  <ebb9@byu.net>
82309
82310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82311
82312 2006-06-29  Eric Blake  <ebb9@byu.net>
82313
82314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82315
82316 2006-06-29  Eric Blake  <ebb9@byu.net>
82317
82318         * lib/stat_.h: New file.
82319
82320 2006-06-29  Eric Blake  <ebb9@byu.net>
82321
82322         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82323         unused static function.
82324
82325 2006-06-29  Eric Blake  <ebb9@byu.net>
82326
82327         * doc/functions.texi (Function Portability): Document missing lstat
82328         on mingw.
82329
82330 2006-06-29  Eric Blake  <ebb9@byu.net>
82331
82332         * MODULES.html.sh: Add sys_stat.
82333         * modules/sys_stat: New module.
82334         * modules/mkstemp (Depends-on): Add sys_stat.
82335
82336 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82337
82338         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82339
82340 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82341
82342         * m4/c-bs-a.m4: Removed.
82343
82344 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82345
82346         * lib/strftime.c: Assume strftime() exists.
82347
82348 2006-06-29  Derek Price  <derek@ximbiot.com>
82349
82350         * modules/c-bs-a: Removed - \a is C89.
82351         * MODULES.html.sh: Remove c-bs-a.
82352
82353 2006-06-29  Bruno Haible  <bruno@clisp.org>
82354
82355         * modules/wcwidth (License): Change to LGPL.
82356
82357 2006-06-28  Simon Josefsson  <jas@extundo.com>
82358
82359         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82360         on _WIN32.
82361
82362         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82363         getnameinfo.
82364
82365 2006-06-28  Simon Josefsson  <jas@extundo.com>
82366
82367         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82368
82369 2006-06-28  Simon Josefsson  <jas@extundo.com>
82370
82371         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82372         functions there.  It will succeed on Windows XP, but on Windows
82373         2000 and (presumably) earlier, it will fail, and use the internal
82374         re-implementation.
82375         (use_win32_p): New function.
82376         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82377         Support AI_NUMERICSERV to disable getservbyname.
82378         (getnameinfo): New function, only supports
82379         NI_NUMERICHOST|NI_NUMERICSERV for now.
82380
82381         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82382         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82383         getnameinfo.
82384
82385 2006-06-28  Eric Blake  <ebb9@byu.net>
82386
82387         * modules/wcwidth: New file.
82388         * modules/mbchar (Depends-on): Add wcwidth.
82389         * modules/mbswidth (Depends-on): Add wcwidth.
82390         * MODULES.html.sh: Add wcwidth.
82391
82392 2006-06-28  Eric Blake  <ebb9@byu.net>
82393
82394         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82396
82397 2006-06-28  Eric Blake  <ebb9@byu.net>
82398
82399         * lib/xvasprintf.h: Fix comments.
82400
82401 2006-06-28  Eric Blake  <ebb9@byu.net>
82402
82403         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82404         * lib/mbswidth.c (wcwidth): Move from here...
82405         * lib/wcwidth.h: ...to this new file.
82406
82407 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82408
82409         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82410
82411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82412         it's obsolete.
82413         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82414
82415 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82416
82417         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82418         Autoconf 2.60 says this stuff was obsolete.
82419
82420 2006-06-28  Bruno Haible  <bruno@clisp.org>
82421
82422         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82423
82424 2006-06-28  Bruno Haible  <bruno@clisp.org>
82425
82426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82427         gt_TYPE_WCHAR_T.
82428
82429 2006-06-28  Bruno Haible  <bruno@clisp.org>
82430
82431         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82432         declaration for wcwidth.
82433         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82434
82435 2006-06-28  Bruno Haible  <bruno@clisp.org>
82436
82437         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82438         (mkdir): Define using _mkdir.
82439
82440 2006-06-28  Bruno Haible  <bruno@clisp.org>
82441
82442         * lib/getaddrinfo.h: Fix POSIX URL.
82443         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82444         _WIN32.
82445         (use_win32_p): Make static.
82446         (getaddrinfo): Reject service name if it is empty or does not consist
82447         solely of decimal digits, or if its value is > 65535.
82448         (getnameinfo): Remove useless casts.
82449
82450 2006-06-27  Simon Josefsson  <jas@extundo.com>
82451
82452         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82453         Eggert and Martin Lambers.
82454
82455 2006-06-27  Simon Josefsson  <jas@extundo.com>
82456
82457         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82458         Eggert and Martin Lambers.
82459
82460 2006-06-27  Bruno Haible  <bruno@clisp.org>
82461
82462         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82463         result to 0, not to empty.
82464         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82465
82466 2006-06-27  Bruno Haible  <bruno@clisp.org>
82467
82468         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82469
82470 2006-06-26  Simon Josefsson  <jas@extundo.com>
82471
82472         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82473         present.
82474
82475 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82476
82477         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82478         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82480
82481 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82482
82483         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82484
82485 2006-06-26  Bruno Haible  <bruno@clisp.org>
82486
82487         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82488
82489 2006-06-26  Bruno Haible  <bruno@clisp.org>
82490
82491         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82492
82493 2006-06-26  Bruno Haible  <bruno@clisp.org>
82494
82495         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82496         SGI C compiler in pre-C99 mode.
82497         Suggested by Mark D. Baushke and Larry Jones.
82498
82499 2006-06-26  Bruno Haible  <bruno@clisp.org>
82500
82501         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82502         WCHAR_MAX.
82503         Reported by Mark D. Baushke and Larry Jones.
82504
82505 2006-06-26  Bruno Haible  <bruno@clisp.org>
82506
82507         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82508         in pre-C99 mode.
82509         Suggested by Mark D. Baushke and Larry Jones.
82510
82511 2006-06-23  Simon Josefsson  <jas@extundo.com>
82512             Bruno Haible  <bruno@clisp.org>
82513
82514         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82515         Emit mostlyclean-local rule.
82516         (func_emit_tests_Makefile_am): Likewise.
82517         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82518
82519 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82520
82521         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82522
82523 2006-06-23  Bruno Haible  <bruno@clisp.org>
82524
82525         * tests/test-stdint.c: Update to match ISO C 99 Technical
82526         Corrigendum 1.
82527
82528 2006-06-23  Bruno Haible  <bruno@clisp.org>
82529
82530         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82531
82532 2006-06-23  Bruno Haible  <bruno@clisp.org>
82533
82534         * lib/stdint_.h: Treat IRIX like OpenBSD.
82535
82536 2006-06-23  Bruno Haible  <bruno@clisp.org>
82537
82538         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82539         ISO C 99 Technical Corrigendum 1.
82540
82541 2006-06-22  Simon Josefsson  <jas@extundo.com>
82542
82543         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82544         MinGW.
82545
82546 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82549         needed.  Some compiler complained about some of them.  Problem reported
82550         by Larry Jones in
82551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82552
82553 2006-06-21  Simon Josefsson  <jas@extundo.com>
82554
82555         * tests/test-getaddrinfo.c: New file.
82556
82557         * modules/getaddrinfo-tests: New file.
82558
82559         * MODULES.html.sh: Add inet_pton.
82560
82561         * modules/inet_pton: New file.
82562
82563 2006-06-21  Simon Josefsson  <jas@extundo.com>
82564
82565         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82566         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82567         of using the (limited) gnulib implementation on Windows XP.
82568
82569         * m4/inet_pton.m4: New file.
82570
82571 2006-06-21  Simon Josefsson  <jas@extundo.com>
82572
82573         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82574         variable.
82575
82576         * lib/socket_.h: Don't define WINVER.
82577
82578         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82579         slightly modified to work in gnulib.
82580
82581 2006-06-21  Simon Josefsson  <jas@extundo.com>
82582
82583         * doc/gnulib.texi (Windows sockets): Add.
82584
82585 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82586
82587         * lib/read-file.c (fread_file): Start with buffer allocation of
82588         0 bytes rather than 1 byte; this simplifies the code.
82589         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82590         code to free buffer and save/restore errno.
82591         (internal_read_file): Remove unused local.
82592
82593 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82594
82595         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82596         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82597         Problem reported by Denis Excoffier in
82598         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82599
82600 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82601
82602         * modules/sys_socket, modules/socklen: Include sys/types since
82603         FreeBSD 4.x's sys/socket.h needs it.
82604
82605 2006-06-19  Simon Josefsson  <jas@extundo.com>
82606
82607         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82608
82609 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82610
82611         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82612
82613 2006-06-19  Bruno Haible  <bruno@clisp.org>
82614
82615         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82616         and FULL_PATH_INTTYPES_H in angle brackets.
82617         Reported by Mark D. Baushke <mdb@gnu.org>.
82618
82619 2006-06-17  Eric Blake  <ebb9@byu.net>
82620
82621         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82622         errno.
82623
82624 2006-06-17  Bruno Haible  <bruno@clisp.org>
82625
82626         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82627         <sys/inttypes.h>.
82628
82629 2006-06-17  Bruno Haible  <bruno@clisp.org>
82630
82631         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82632         whether errno is declared. Assume <errno.h> declares errno.
82633
82634 2006-06-17  Bruno Haible  <bruno@clisp.org>
82635
82636         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82637
82638 2006-06-17  Bruno Haible  <bruno@clisp.org>
82639
82640         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82641         problem on Solaris 2.5.1.
82642
82643 2006-06-16  Eric Blake  <ebb9@byu.net>
82644
82645         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82646         * lib/unicodeio.c [!defined errno]: Likewise.
82647         * lib/strtol.c [!defined errno]: Likewise.
82648         * lib/strtod.c [!defined errno]: Likewise.
82649
82650 2006-06-15  Eric Blake  <ebb9@byu.net>
82651
82652         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82653
82654 2006-06-15  Eric Blake  <ebb9@byu.net>
82655
82656         * config/srclist.txt (ssize_t.m4): Lose sync.
82657
82658 2006-06-15  Bruno Haible  <bruno@clisp.org>
82659
82660         * modules/stdint (Files): Include m4/full-header-path.m4,
82661         m4/size_max.m4, m4/wchar_t.m4.
82662         (Makefile.am): Many more substitutions.
82663         * modules/stdint-tests: New file.
82664         * tests/test-stdint.c: New file.
82665
82666 2006-06-15  Bruno Haible  <bruno@clisp.org>
82667
82668         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82669         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82670         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82671         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82672         gl_CHECK_TYPE_SAME): New macros.
82673
82674 2006-06-15  Bruno Haible  <bruno@clisp.org>
82675
82676         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82677
82678 2006-06-15  Bruno Haible  <bruno@clisp.org>
82679
82680         * lib/stdint_.h: Rewritten to be fully auto-configured.
82681         Fixes bug on HP-UX/IA64.
82682
82683 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82684
82685         * lib/getdate.y (__attribute__): Don't define if already defined.
82686         Problem reported by Larry Jones.
82687         * lib/utimens.c (__attribute__): Likewise.
82688
82689 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82690
82691         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82692         reported by Andreas Schwab.
82693
82694 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82695             Bruno Haible  <bruno@clisp.org>
82696
82697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82698         check for the declaration of strnlen and a run test that exposes the
82699         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82700         rpl_strndup.
82701
82702 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82703             Bruno Haible  <bruno@clisp.org>
82704
82705         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82706
82707 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82708
82709         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82710         compile test, for Tru64 4.0D.
82711
82712 2006-05-28  Karl Berry  <karl@gnu.org>
82713
82714         * config/srclist.txt (printf-args.c): lose sync.
82715
82716 2006-05-26  Martin Lambers  <marlam@marlam.de>
82717
82718         * lib/getpass.c: Updates the test for the native W32 API, and adds
82719         missing includes, thus fixing compilation warnings.
82720
82721 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82722
82723         * lib/exclude.c (exclude_fnmatch): New function.
82724         (excluded_file_name): Call exclude_fnmatch.
82725         * lib/exclude.h (excluded_file_name): New prototype
82726
82727 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82728
82729         * lib/tempname.c (small_open, large_open): New macros.
82730         (__open, __open64) [!_LIBC]: Remove.
82731         (__gen_tempname): Use small_open and large_open instead of __open
82732         and __open64.  This fixes a portability bug on HP-UX 11.11i
82733         reported by Simon Wing-Tang in
82734         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82735
82736 2006-05-24  Bruno Haible  <bruno@clisp.org>
82737
82738         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82739         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82740         Reported by Thorsten Maerz <torte@netztorte.de> via
82741         Aaron Stone <aaron@serendipity.cx>.
82742
82743 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82746         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82747         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82748         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82749         not really conditional on the cache.
82750         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82751
82752 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82753
82754         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82755         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82756         (my_usleep): Don't mishandle maximum value.
82757
82758 2006-05-19  Jim Meyering  <jim@meyering.net>
82759
82760         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82761
82762 2006-05-17  Bruno Haible  <bruno@clisp.org>
82763
82764         Cygwin portability.
82765         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82766
82767 2006-05-17  Bruno Haible  <bruno@clisp.org>
82768
82769         * lib/stdint_.h: Fix recognition of Cygwin.
82770
82771 2006-05-15  Bruno Haible  <bruno@clisp.org>
82772
82773         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82774         on libtool patch by Ralf Wildenhues.
82775
82776 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82777
82778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82779         test for C99 conformance; (bool) 0.5 is an integer constant
82780         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82781         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82782
82783 2006-05-11  Simon Josefsson  <jas@extundo.com>
82784
82785         * m4/xvasprintf.m4: Fix obvious typo.
82786
82787 2006-05-11  Jim Meyering  <jim@meyering.net>
82788
82789         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82790         James Lemley.
82791
82792 2006-05-10  Simon Josefsson  <jas@extundo.com>
82793
82794         * lib/md4.c: Typo fix, update copyright years.
82795         (K1, K2): Don't use L because it turn computations into 64-bit on
82796         64-bit platforms.
82797
82798 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82799
82800         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82801         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82802         unwanted sign propagation, e.g., on hosts with 64-bit int.
82803         There still are some problems with reeelly weird theoretical hosts
82804         (e.g., 33-bit int) but it's not worth worrying about now.
82805         * lib/sha1.c (rol): Likewise.
82806         (K1, K2, K3, K4): Remove unnecessary L suffix.
82807
82808 2006-05-10  Bruno Haible  <bruno@clisp.org>
82809
82810         * lib/des.c: Cast to avoid warnings.
82811
82812 2006-05-09  Bruno Haible  <bruno@clisp.org>
82813
82814         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82815         (Depends-on): Depend also on xsize, stdarg.
82816         (configure.ac): Add gl_XVASPRINTF.
82817
82818 2006-05-09  Bruno Haible  <bruno@clisp.org>
82819
82820         * m4/xvasprintf.m4: New file.
82821
82822 2006-05-09  Bruno Haible  <bruno@clisp.org>
82823
82824         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82825         (EOVERFLOW): Define fallback value.
82826         (xstrcat): New function.
82827         (xvasprintf): Recognize the special case of a string concatenation.
82828
82829 2006-05-08  Eric Blake  <ebb9@byu.net>
82830
82831         * gnulib-tool (func_version): Base copyright year on CVS date.
82832         (func_emit_copyright_notice): New function.
82833         (func_emit_lib_Makefile_am): Use it.
82834         (func_emit_tests_Makefile_am): Likewise.
82835         (func_import): Likewise.
82836
82837 2006-05-08  Bruno Haible  <bruno@clisp.org>
82838
82839         * modules/stdarg: New file.
82840         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82841
82842 2006-05-08  Bruno Haible  <bruno@clisp.org>
82843
82844         * m4/stdarg.m4: New file, from GNU gettext.
82845
82846 2006-05-08  Bruno Haible  <bruno@clisp.org>
82847
82848         * config/srclist.txt (build-aux/config.rpath): different from latest
82849         release.
82850
82851 2006-05-08  Bruno Haible  <bruno@clisp.org>
82852
82853         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82854
82855 2006-05-05  Jim Meyering  <jim@meyering.net>
82856
82857         * m4/warning.m4: New file, derived from bison's file by the same name.
82858
82859 2006-05-03  Bruno Haible  <bruno@clisp.org>
82860
82861         * lib/stdint_.h: Shorter URL.
82862         * lib/inttypes.h: Likewise.
82863
82864 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82865
82866         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82867
82868 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82869
82870         * lib/verify.h: Document the internals better.  Most of this change
82871         was written by Bruno Haible.
82872
82873 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * doc/verify.texi: New file, partly based on a proposal by
82876         Bruno Haible.
82877
82878 2006-05-02  Bruno Haible  <bruno@clisp.org>
82879
82880         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82881         test from here...
82882         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82883
82884 2006-04-29  Bruno Haible  <bruno@clisp.org>
82885
82886         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82887         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82888
82889 2006-04-29  Bruno Haible  <bruno@clisp.org>
82890
82891         * gnulib-tool: Make --update option actually work.
82892
82893 2006-04-29  Bruno Haible  <bruno@clisp.org>
82894
82895         * doc/gcd.texi: New file.
82896         * doc/gnulib.texi: Include it.
82897
82898 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * lib/getdate.y (get_date): When adding relative date, start with the
82901         initial time, not with the result of the first mktime call.
82902
82903 2006-04-25  Bruno Haible  <bruno@clisp.org>
82904
82905         * gnulib-tool (func_import): Output the include directives in three
82906         blocks, sorted separately.
82907         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82908
82909 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82910
82911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82912         to define main with arguments, for C++.  Reported by Eric Blake.
82913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82914         Prefer 'int main ()' to 'int main (void)', for C++.
82915         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82916         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82917         for 'main', for C99 and C++.
82918
82919 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82920
82921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82922         Don't assume that exit status -1 is valid.
82923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82924         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82925         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82926         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82927         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82928         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82929         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82930         functions can be used without declaring them, or that you can
82931         exit with status -1.
82932         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82933
82934 2006-04-24  Karl Berry  <karl@gnu.org>
82935
82936         * config/srclist.txt (longdouble.m4): sync lost.
82937
82938 2006-04-24  Eric Blake  <ebb9@byu.net>
82939
82940         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82941
82942 2006-04-24  Bruno Haible  <bruno@clisp.org>
82943
82944         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82945         poll() implementation in AIX.
82946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82947
82948 2006-04-24  Bruno Haible  <bruno@clisp.org>
82949
82950         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82951         assigned exactly once.
82952
82953 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82954             Bruno Haible  <bruno@clisp.org>
82955
82956         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82957         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82958         for AM_CPPFLAGS.
82959
82960 2006-04-23  Bruno Haible  <bruno@clisp.org>
82961
82962         * modules/copy-file: Depend on unistd.
82963         * modules/execute: Likewise.
82964         * modules/fatal-signal: Likewise.
82965         * modules/findprog: Likewise.
82966         * modules/mkdtemp : Likewise.
82967         * modules/pipe: Likewise.
82968         * modules/wait-process: Likewise.
82969
82970 2006-04-23  Bruno Haible  <bruno@clisp.org>
82971
82972         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82973         condition was already detected.
82974         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82975
82976 2006-04-23  Bruno Haible  <bruno@clisp.org>
82977
82978         * lib/copy-file.c: Include <unistd.h> unconditionally.
82979         * lib/execute.c: Likewise.
82980         * lib/fatal-signal.c: Likewise.
82981         * lib/findprog.c: Likewise.
82982         * lib/mkdtemp.c: Likewise.
82983         * lib/pipe.h: Likewise.
82984         * lib/pipe.c: Likewise.
82985         * lib/wait-process.h: Likewise.
82986
82987 2006-04-23  Bruno Haible  <bruno@clisp.org>
82988
82989         * gnulib-tool (func_usage): Fix --import description. Document
82990         --update.
82991         (func_import): Create temporary file in a temporary directory, if
82992         --dry-run is specified. Silence errors from 'grep' when there are no
82993         m4 files in $m4dir.
82994         (func_create_testdir): Silence errors from 'grep' when there are no
82995         m4 files in $m4dir.
82996         Reported by Karl Berry <karl@freefriends.org>.
82997
82998 2006-04-20  Bruno Haible  <bruno@clisp.org>
82999
83000         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83001         one argument, so that the code will be portable to Autoconf 2.60.
83002         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83003         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83004         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83005
83006 2006-04-19  Derek Price  <derek@ximbiot.com>
83007             Eric Blake  <ebb9@byu.net>
83008
83009         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83010         rather than "/full/path.h".  Update comment to match.  Shorten &
83011         generalize m4_translit call via AS_TR_CPP.
83012
83013 2006-04-19  Derek Price  <derek@ximbiot.com>
83014             Eric Blake  <ebb9@byu.net>
83015
83016         * lib/inttypes.h: Correct grammar in comment.
83017
83018 2006-04-18  Derek Price  <derek@ximbiot.com>
83019             Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * modules/inttypes: New file.
83022         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83023
83024 2006-04-18  Derek Price  <derek@ximbiot.com>
83025             Paul Eggert  <eggert@cs.ucla.edu>
83026
83027         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83028         New files.
83029
83030 2006-04-18  Derek Price  <derek@ximbiot.com>
83031             Paul Eggert  <eggert@cs.ucla.edu>
83032
83033         * lib/inttypes.h: New file.
83034         * lib/strtoimax.c: Assume <inttypes.h>.
83035
83036 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83039         isn't mounted.  Problem reported by Kir Kolyshkin.
83040
83041 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83042
83043         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83044         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83045         Derek R. Price.
83046         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83047         implementation.
83048
83049 2006-04-12  Eric Blake  <ebb9@byu.net>
83050
83051         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83052         is now done automatically by the corresponding Autoconf macro.
83053
83054 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83055
83056         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83057         time_r.h.
83058
83059 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83060
83061         Merge regex changes from libc, removing some of our
83062         POSIX-conformance changes that were rejected and redoing them in a
83063         less-intrusive way.
83064
83065         * lib/regcomp.c (re_compile_internal, init_dfa):
83066         Length arg is now size_t, not Idx.  All uses changed.
83067         (peek_token): Forward decl now says internal_function.
83068         (__re_error_msgid, __re_error_msgid_idx):
83069         Now static rather than extern with attribute_hidden.
83070         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83071         For some reason libc prefers K&R style defns for external functions.
83072         (regerror) [!defined _LIBC]: Likewise.
83073         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83074         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83075         (build_range_exp, build_collating_symbol):
83076         Use K&R-style defn.
83077         (re_compile_fastmap): Use '\0' to memset, not 0.
83078         (utf8_sb_map): Make the calculations more obvious.
83079         (init_dfa, parse_bracket_exp, build_charclass_op):
83080         Call calloc and cast result, as glibc does.
83081         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83082         (build_range_exp, build_collating_symbol):
83083         Now internal functions.
83084
83085         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83086
83087         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83088         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83089         Don't depend on VMS; depend on __VMS instead, for POSIX
83090         namespace cleanness.
83091         (regoff_t): Define to ssize_t, not long int.
83092
83093         Remove the REG_ macros named below.  Instead, make the old names
83094         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83095         __USE_GNU_REGEX.
83096         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83097         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83098         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83099         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83100         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83101         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83102         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83103         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83104         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83105         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83106         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83107         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83108         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83109         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83110         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83111         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83112         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83113         (REG_NREGS):
83114         Remove.  All uses replaced by the old RE_* names.
83115         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83116         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83117         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83118         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83119         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83120         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83121         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83122         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83123         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83124         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83125         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83126         Don't bother having these macros be independent of each others'
83127         values, since they no longer exist in the POSIX name space.
83128
83129         Rename the following member names back to their old names,
83130         unless !__USE_GNU_REGEX.  All uses changed back.
83131         (buffer): Renamed from re_buffer.
83132         (allocated): Renamed from re_allocated.
83133         (used): Renamed from re_used.
83134         (syntax): Renamed from re_syntax.
83135         (fastmap): Renamed from re_fastmap.
83136         (translate): Renamed from re_translate.
83137         (can_be_null): Renamed from re_can_be_null.
83138         (regs_allocated): Renamed from re_regs_allocated.
83139         (fastmap_accurate): Renamed from re_fastmap_accurate.
83140         (no_sub): Renamed from re_no_sub.
83141         (not_bol): Renamed from re_not_bol.
83142         (not_eol): Renamed from re_not_eol.
83143         (newline_anchor): Renamed from re_newline_anchor.
83144         (num_regs): Renamed from rm_num_regs.
83145         (start): Renamed from rm_start.
83146         (end): Renamed from rm_end.
83147
83148         (free_state): Move up a bit.
83149
83150         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83151         #define to be empty.
83152         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83153         when that is what is intended.
83154         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83155         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83156         (MAX): New macro.
83157         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83158         All uses changed back to re_malloc, etc.  It's now the caller's
83159         responsibility to check for overflow; all callers changed.
83160         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83161         (re_x2nrealloc): Remove.
83162         (free_state): Remove decl.
83163
83164         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83165         (re_set_registers, re_exec):
83166         Use K&R-style defn.
83167
83168         2006-01-31  Roland McGrath  <roland@redhat.com>
83169
83170         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83171         Reported by Mike Frysinger <vapier@gentoo.org>.
83172
83173         2006-01-15  Andreas Jaeger  <aj@suse.de>
83174
83175         [BZ #1950]
83176         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83177         build_wcs_upper_buffer change.
83178         (build_wcs_upper_buffer): Change return type.
83179
83180         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83181
83182         * lib/regex_internal.h: Include <stdint.h> if available.
83183
83184         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83185
83186         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83187
83188         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83189
83190         * lib/regcomp.c: Adjust for changed secondary hash function.
83191
83192         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83193
83194         * lib/regex.h: Pretty printing.
83195         Clean up namespace a bit.
83196
83197         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83198
83199         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83200         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83201
83202         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83203                     Ulrich Drepper  <drepper@redhat.com>
83204
83205         [BZ #1302]
83206         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83207         changed.
83208         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83209
83210         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83211
83212         [BZ #281]
83213         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83214         * lib/regcomp.c: Remove unnecessary uses of
83215         unsigned RE_TRANSLATE_TYPE.
83216         * lib/regex_internal.h: Likewise.
83217         * lib/regex_internal.c: Likewise.
83218         * lib/regexec.c: Likewise.
83219         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83220
83221         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83222
83223         * lib/regexec.c (find_recover_state): Remove unnecessary
83224         initialization.
83225         (transit_state_bkref): Make DFA a const pointer.
83226         (get_subexp): Likewise.
83227         (check_arrival): Likewise.
83228         (update_cur_sifted_state): Likewise.
83229         (re_search_internal): Likewise.
83230         (prune_impossible_nodes): Likewise.
83231         (acquire_init_state_context): Likewise.
83232         (proceed_next_node): Likewise.
83233         (set_regs): Likewise.
83234         (free_fail_stack_return): Likewise.
83235         (check_arrival_expand_ecl): Mark DFA parameter as const.
83236         (check_arrival_expand_ecl_sub): Likewise.
83237         (check_subexp_limits): Likewise.
83238         (sub_epsilon_src_nodes):  Likewise.
83239         (add_epsilon_src_nodes):  Likewise.
83240         (merge_state_array): Likewise.
83241         (update_regs): Likewise.
83242         (build_trtable): Likewise.
83243         (sift_states_backward): Mark MCTX parameter as const.
83244         (build_sifted_states): Likewise.
83245         (update_cur_sifted_state): Likewise.
83246         (sift_states_mkref): Likewise.
83247         (check_arrival_expand_ecl): Mark eclosure as const.
83248         (check_dst_limits_calc_pos_1): Likewise.
83249         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83250         pointer.
83251
83252         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83253
83254         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83255         (transit_state_sb): Likewise.
83256         (transit_state_mb): Likewise.
83257         (sift_states_iter_mb): Likewise.
83258         (check_arrival_add_next_nodes): Likewise.
83259         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83260         [_LIBC] (re_search_2_stub): Use mempcpy.
83261
83262         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83263         mbrtowc for very simple UTF-8 case.
83264
83265         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83266         a pointer-to-const.
83267         (re_acquire_state_context): Likewise.
83268         * lib/regex_internal.h: Adjust prototypes.
83269
83270         * lib/regex.c: Prevent using C++ compilers.
83271
83272         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83273         (re_acquire_state_context): Likewise.
83274
83275 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83276
83277         * modules/regex (Depends-on): Add ssize_t.
83278
83279 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83280
83281         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83282         translation table.
83283
83284 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83285
83286         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83287
83288 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83289             Bruno Haible  <bruno@clisp.org>
83290
83291         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83292         <sys/types.h> and <inttypes.h>.
83293
83294 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83295
83296         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83297         `__error_t_defined', so argp.h will not typedef the former.
83298
83299 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83300
83301         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83302         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83303         glibc names.  Even if glibc is changed to conform to POSIX, the
83304         traditional names will be available anyway, since regex depends on
83305         the extensions module.  Also, fix a longstanding typo in the
83306         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83307         reported by Emanuele Giaquinta.  Also, change sense of cached
83308         variable, so that the message makes sense.
83309
83310 2006-03-24  Simon Josefsson  <jas@extundo.com>
83311
83312         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83313         including some doc fixes.
83314         (base64_encode_alloc): Fix +1 bug on allocation failures.
83315
83316 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83317
83318         * lib/base64.c (base64_encode): Do not read past end of array with
83319         unsanitized input on systems with CHAR_BIT > 8.
83320
83321 2006-03-24  Eric Blake  <ebb9@byu.net>
83322
83323         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83324
83325 2006-03-22  Karl Berry  <karl@gnu.org>
83326
83327         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83328         * config/srclistvars.sh (COREUTILS): new var.
83329
83330 2006-03-17  Jim Meyering  <jim@meyering.net>
83331
83332         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83333         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83334
83335 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83336
83337         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83338         no longer needs it.  Instead, check that regoff_t is as least
83339         as wide as ptrdiff_t.
83340
83341         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83342         so that our regex.h stays compatible with the installed regex.
83343         This is helpful for installers who configure --without-included-regex.
83344         Problem reported by Emanuele Giaquinta.
83345
83346 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83347
83348         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83349         Typedef to long int, not to off_, as POSIX will likely change
83350         in that direction.
83351
83352 2006-03-15  Eric Blake  <ebb9@byu.net>
83353
83354         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83355
83356 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83357
83358         * lib/argp-help.c (validate_uparams): Fix typo
83359         * lib/argp-parse.c (argp_default_options): Consistently begin help
83360         messages with a lowercase letter.
83361
83362 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83365         overrun buffers and shouldn't be used (much as gets shouldn't be
83366         used).
83367         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83368
83369 2006-03-08  Simon Josefsson  <jas@extundo.com>
83370
83371         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83372         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83373
83374 2006-03-08  Simon Josefsson  <jas@extundo.com>
83375
83376         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83377         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83378
83379 2006-03-08  Simon Josefsson  <jas@extundo.com>
83380
83381         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83382         signal that configure disabled the device.
83383
83384 2006-03-08  Simon Josefsson  <jas@extundo.com>
83385
83386         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83387         languages.
83388
83389 2006-03-07  Simon Josefsson  <jas@extundo.com>
83390
83391         * modules/getopt (Depends-on): Add unistd.
83392
83393         * modules/unistd: New file.
83394
83395 2006-03-07  Simon Josefsson  <jas@extundo.com>
83396
83397         * modules/gc-random: New file.
83398
83399 2006-03-07  Simon Josefsson  <jas@extundo.com>
83400
83401         * m4/unistd_h.m4: New file.
83402
83403 2006-03-07  Simon Josefsson  <jas@extundo.com>
83404
83405         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83406         test to be side-effect free by storing the result in the cache
83407         variable gl_cv_lib_readline, and moving the assignment of
83408         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83409         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83410
83411 2006-03-07  Simon Josefsson  <jas@extundo.com>
83412
83413         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83414         error on missing devices (the functions will return an error).
83415
83416         * m4/gc.m4: Move random stuff to gc-random.m4
83417
83418 2006-03-07  Simon Josefsson  <jas@extundo.com>
83419
83420         * lib/unistd_.h: New file.
83421
83422 2006-03-07  Simon Josefsson  <jas@extundo.com>
83423
83424         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83425
83426 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83427
83428         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83429         Problem reported by Juan Manuel Guerrero.
83430
83431 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83432
83433         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83434         the unistd module.
83435         * lib/getlogin_r.c: Likewise.
83436         * lib/getlogin_r.h: Likewise.
83437         * lib/glob.c: Likewise.
83438         * lib/pagealign_alloc.c: Likewise.
83439         * lib/unistd_.h: Remove; no longer needed.
83440
83441 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83444         Add unistd.
83445         * modules/c-stack (Depends-on): Add unistd.
83446         * modules/getlogin_r: Likewise.
83447         * modules/glob: Likewise.
83448         * modules/pagealign_alloc: Likewise.
83449         * modules/unistd (Files): Remove lib/unistd_.h.
83450         (EXTRA_DIST): Remove.
83451         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83452         need unistd_.h.
83453         (MOSTLYCLEANFILES): Remove unistd.h-t.
83454
83455 2006-03-03  Simon Josefsson  <jas@extundo.com>
83456
83457         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83458
83459 2006-03-03  Simon Josefsson  <jas@extundo.com>
83460
83461         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83462         libidn and bison.
83463
83464 2006-03-03  Simon Josefsson  <jas@extundo.com>
83465
83466         * build-aux/maint.mk: Add indent target.
83467
83468 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83469
83470         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83471         our replacement poll.h in any case, to avoid a differing
83472         declaration from a system header.  Seen on AIX.
83473
83474 2006-03-01  Simon Josefsson  <jas@extundo.com>
83475
83476         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83477         <kasal@ucw.cz>.
83478
83479 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83480
83481         * modules/gettime (Depends-on): Add extensions module.
83482         * modules/nanosleep (Depends-on): Likewise.
83483         * modules/settime (Depends-on): Likewise.
83484
83485 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83488         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83489         pedantically.
83490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83491         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83492
83493         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83494         not "==".  Reported by Ralf Wildenhues.
83495
83496 2006-03-01  Karl Berry  <karl@gnu.org>
83497
83498         * doc/Copyright/request-*: new files, synced from gnuorg.
83499
83500 2006-03-01  Karl Berry  <karl@gnu.org>
83501
83502         * config/srclist.txt (Copyright/*): new entries.
83503
83504 2006-02-28  Simon Josefsson  <jas@extundo.com>
83505
83506         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83507
83508 2006-02-27  Simon Josefsson  <jas@extundo.com>
83509
83510         * lib/base64.h: Indent #define's.  From Jim Meyering
83511         <jim@meyering.net>.
83512
83513 2006-02-27  Jim Meyering  <jim@meyering.net>
83514
83515         Revert the change of 2006-02-24, so these files can continue
83516         to be sync'd from gettext.
83517         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83518         of `config.h'.
83519
83520 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83521
83522         * modules/intprops: New file.
83523         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83524         Add intprops.
83525         * modules/getloadavg (Files): Remove lib/intprops.h.
83526         (Depends-on): Add intprops.
83527         * modules/human: Likewise.
83528         * modules/inttostr: Likewise.
83529         * modules/openat: Likewise.
83530         * modules/sig2str: Likewise.
83531         * modules/userspec: Likewise.
83532         * modules/utimecmp: Likewise.
83533         * modules/xnanosleep: Likewise.
83534         * modules/xstrtol: Likewise.
83535
83536 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83537
83538         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83539         * modules/lock-tests (TESTS): Use $(EXEEXT).
83540         * modules/tls-tests: Likewise.
83541         * modules/argp-tests: Likewise.
83542         (check_PROGRAMS): New var, replacing...
83543         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83544
83545 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83546
83547         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83548         `config.h'.
83549
83550 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83551
83552         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83553
83554 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83555
83556         Sync from coreutils.
83557         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83558         gl_CHDIR_SAFER.
83559
83560 2006-02-22  Jim Meyering  <jim@meyering.net>
83561
83562         Sync from coreutils.
83563         * m4/chdir-safer.m4: New file.
83564
83565 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83568         AT_FDCWD exceeds INT_MAX.
83569         * lib/openat.h (AT_FDCWD): Likewise.
83570
83571 2006-02-17  Eric Blake  <address@hidden>
83572
83573         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83574
83575 2006-02-16  Simon Josefsson  <jas@extundo.com>
83576
83577         * modules/getaddrinfo (Depends-on): Add sys_socket.
83578
83579 2006-02-15  Simon Josefsson  <jas@extundo.com>
83580
83581         * build-aux/maint.mk: Add dsyntax-check rule.
83582
83583 2006-02-15  Eric Blake  <ebb9@byu.net>
83584
83585         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83586         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83587         'present but cannot compile' warnings on cygwin.
83588         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83589         use ws2tcpip.h if sys/socket.h works.
83590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83591         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83592
83593 2006-02-14  Simon Josefsson  <jas@extundo.com>
83594
83595         * modules/maintainer-makefile (Files): Rename.
83596
83597         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83598         and (the local) Makefile.cfg to maint-cfg.mk.
83599
83600         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83601         to the latter.
83602
83603         * modules/maintainer-makefile: New module.
83604
83605         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83606         severaly stripped to make it possible to build it up from scratch
83607         with reliable tests.
83608
83609         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83610         fixes to permit overriding the default actions when configure and
83611         makefile are not available.
83612
83613 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83614
83615         Sync from coreutils.
83616         * modules/lstat (Depends-on): Don't depend on xalloc.
83617         (License): Change from GPL to LGPL, since this is now simply a
83618         replacement for a libc function.
83619
83620 2006-02-14  Jim Meyering  <jim@meyering.net>
83621
83622         Sync from coreutils.
83623
83624         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83625         failure on deficient systems, and simplify gnulib lgpl dependencies.
83626         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83627         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83628
83629         * lib/xalloc-die.c: Remove unused definition of N_.
83630
83631 2006-02-14  Jim Meyering  <jim@meyering.net>
83632
83633         Sync from coreutils.
83634         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83635         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83636         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83637         double-quote uses of that variable, to accommodate the rare case in
83638         which getmntent is available in none of the libraries checked.  This
83639         happens at least on FreeBSD 5.0.
83640
83641 2006-02-13  Simon Josefsson  <jas@extundo.com>
83642
83643         * gnulib-tool (Usage): Fix --import, from
83644         karl@freefriends.org (Karl Berry).
83645
83646 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83647
83648         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83649
83650 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83651
83652         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83653         "autoupdate" on 2005-12-12.
83654
83655 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83656
83657         * modules/closeout (Depends-on): Remove atexit.
83658
83659 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83660
83661         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83662         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83663
83664 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83665
83666         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83667         __EXTENSIONS__ if this causes compilation to fail.  Problem
83668         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83669         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83670
83671 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83672
83673         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83674         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83676         All uses changed.
83677
83678 2006-01-26  Simon Josefsson  <jas@extundo.com>
83679
83680         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83681         prototype is visible on mingw32.
83682
83683         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83684         for mingw32.
83685
83686         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83687         mingw32).
83688
83689 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83690
83691         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83692         attempt to open for write; this always fails, at least on POSIX
83693         hosts.  This reinstates the 2006-01-09 change, which was
83694         inadvertently removed.
83695
83696 2006-01-26  Bruno Haible  <bruno@clisp.org>
83697
83698         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83699         Reported by Paul Eggert.
83700
83701 2006-01-26  Bruno Haible  <bruno@clisp.org>
83702             Paul Eggert  <eggert@cs.ucla.edu>
83703
83704         * lib/stdbool_.h (_Bool)
83705         [(! (defined __cplusplus || defined __BEOS__)
83706           && !defined __GNUC__
83707           && !(defined __HP_cc || defined __xlc__
83708                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83709                || defined __sgi))]:
83710         #define to signed char in these cases too; this simplifies
83711         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83712         etc., separately) and makes it more conservative.
83713
83714 2006-01-25  Simon Josefsson  <jas@extundo.com>
83715
83716         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83717         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83718         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83719
83720 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83721
83722         * lib/argp-namefrob.h: Bugfix. Remove stray #
83723
83724 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83725
83726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83727         so that we test the test.
83728         Check for yet another HP-UX cc bug involving *bool |= bool.
83729
83730 2006-01-25  Karl Berry  <karl@gnu.org>
83731
83732         * config/srclist.txt (vasnprintf.c): sync lost.
83733
83734 2006-01-25  Jim Meyering  <jim@meyering.net>
83735
83736         Sync from the stable (b5) branch of coreutils:
83737
83738         * lib/fts.c (fts_children): Don't let close() clobber errno from
83739         failed fchdir().
83740
83741         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83742         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83743         a dangling symlink.  That can also happen at least for ELOOP.
83744         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83745         FYI, this bug predates the inclusion of fts.c in coreutils.
83746
83747         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83748         in their own block, so pre-c99 compilers don't object.
83749
83750         Avoid the double-free (first in fts_read, second in fts_close) that
83751         would occur when an `active' directory is made inaccessible (e.g.,
83752         via chmod a-x) during a traversal.
83753         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83754         before returning.  Reproduce this failure by
83755         mkdir -p a/b; cd a; chmod a-x . b
83756         Reported by Stavros Passas.
83757
83758 2006-01-25  Jim Meyering  <jim@meyering.net>
83759
83760         * lib/fileblocks.c: Remove more useless parentheses.
83761         * lib/readutmp.h: Likewise.
83762
83763 2006-01-25  Bruno Haible  <bruno@clisp.org>
83764
83765         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83766         warnings.
83767         Reported by Paul Eggert.
83768
83769 2006-01-25  Bruno Haible  <bruno@clisp.org>
83770
83771         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83772         rid of a trap command. For Solaris sh.
83773         Reported by Mark D. Baushke <mdb@gnu.org>.
83774
83775 2006-01-24  Simon Josefsson  <jas@extundo.com>
83776
83777         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83778         Bruno.
83779
83780 2006-01-24  Karl Berry  <karl@gnu.org>
83781
83782         * config/srclist.txt (argp-namefrob.h): sync lost.
83783
83784 2006-01-24  Jim Meyering  <jim@meyering.net>
83785
83786         * modules/openat (Files): Add lib/intprops.h.
83787         From Mark D. Baushke.
83788
83789 2006-01-24  Jim Meyering  <jim@meyering.net>
83790
83791         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83792         Reported by Mark D. Baushke.
83793
83794 2006-01-24  Jim Meyering  <jim@meyering.net>
83795
83796         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83797
83798 2006-01-24  Bruno Haible  <bruno@clisp.org>
83799
83800         * modules/strnlen (Maintainer): Change from glibc to all.
83801
83802 2006-01-24  Bruno Haible  <bruno@clisp.org>
83803
83804         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83805         Patch by Paul Eggert.
83806
83807 2006-01-24  Bruno Haible  <bruno@clisp.org>
83808
83809         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83810         already has it.
83811         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83812         2005-11-26.
83813
83814         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83815         'signed char' to avoid problems with the built-in _Bool type.
83816         Reported by Paul Eggert on 2005-11-26.
83817
83818 2006-01-24  Bruno Haible  <bruno@clisp.org>
83819
83820         * gnulib-tool (func_import): Avoid constructing complicated sed
83821         expressions inside backquote.
83822         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83823
83824 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83825
83826         These changes imported from libc.
83827         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83828         test and two separate function calls.
83829         * lib/strndup.c (__strndup): Add libc_hidden_def.
83830
83831 2006-01-23  Simon Josefsson  <jas@extundo.com>
83832
83833         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83834         Remove the test_*_SOURCES variable: automake infers it by default.
83835         * modules/tls-tests: Likewise.
83836
83837 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83838
83839         Work around porting bugs reported by Dieter in
83840         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83841         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83842         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83843         Include "getopt.h" first, to check interface.
83844         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83845         !HAVE_DECL_GETENV.
83846         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83847         (__strndup): Revert to K&R-style function dfns, the glibc style.
83848         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83849         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83850         Include strnlen.h first, to get prototype properly.
83851         (strnlen): Renamed from __strnlen.
83852         Remove weak alias.
83853
83854 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83855
83856         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83857
83858 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83859
83860         * config/srclist.txt: Adjust to reflect glibc reorganization.
83861         This affects only comments.
83862
83863 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83864
83865          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83866          Reported by Bruce Korb <bkorb@gnu.org>.
83867
83868 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83869
83870         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83871         to pacify gcc -Wswitch-default.
83872
83873 2006-01-22  Bruno Haible  <bruno@clisp.org>
83874
83875         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83876         temporary buffer for sprintf, take into account the precision also
83877         for 'd', 'i', 'u', 'o', 'x', 'X'.
83878
83879 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83880
83881         * modules/argp-tests: New module
83882         * tests/test-argp.c: New file
83883         * tests/test-argp-2.sh: New file
83884
83885 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83886
83887         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83888         (__argp_base_name): Removed
83889         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83890         typo.
83891         (__argp_base_name): Provide macro definition or extern declaration
83892         depending on the configuration
83893
83894 2006-01-20  Simon Josefsson  <jas@extundo.com>
83895
83896         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83897
83898 2006-01-20  Simon Josefsson  <jas@extundo.com>
83899
83900         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83901
83902 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83903
83904         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83905         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83906         Suggested by Bruno Haible.
83907
83908 2006-01-20  Karl Berry  <karl@gnu.org>
83909
83910         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83911         until changes propagate, I guess.
83912
83913 2006-01-19  Simon Josefsson  <jas@extundo.com>
83914
83915         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83916
83917 2006-01-19  Simon Josefsson  <jas@extundo.com>
83918
83919         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83920
83921 2006-01-19  Simon Josefsson  <jas@extundo.com>
83922
83923         * gnulib-tool: Set check_PROGRAMS.
83924
83925         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83926         modules/des-tests, modules/gc-arcfour-tests,
83927         modules/gc-arctwo-tests, modules/gc-des-tests,
83928         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83929         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83930         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83931         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83932         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83933         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83934         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83935         test_*_SOURCES.
83936
83937 2006-01-18  Simon Josefsson  <jas@extundo.com>
83938
83939         * modules/socklen (Depends-on): Depend on sys_socket.
83940
83941 2006-01-18  Simon Josefsson  <jas@extundo.com>
83942
83943         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83944         modules/des-tests, modules/gc-arcfour-tests,
83945         modules/gc-arctwo-tests, modules/gc-des-tests,
83946         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83947         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83948         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83949         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83950         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83951         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83952         $(EXEEXT) to automake TESTS variable, for mingw32.
83953
83954 2006-01-17  Simon Josefsson  <jas@extundo.com>
83955
83956         * modules/socklen (Include): Need sys/socket.h.
83957
83958 2006-01-17  Bruno Haible  <bruno@clisp.org>
83959
83960         * modules/ssize_t (Include): Add <sys/types.h>.
83961
83962 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83965         it's not portable and it doesn't work with cross-compiles.
83966         Problem reported by Bruno Haible.  Fix missing-$ typo in
83967         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83968         -zignore from being used with Sun's C compiler.
83969
83970 2006-01-12  Simon Josefsson  <jas@extundo.com>
83971
83972         * lib/base64.c: Fix warning, reported by Bruno Haible
83973         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83974
83975 2006-01-12  Bruno Haible  <bruno@clisp.org>
83976
83977         * modules/ldd: New file.
83978         * build-aux/ldd.sh.in: New file.
83979         * MODULES.html.sh (Support for building libraries and executables): Add
83980         ldd.
83981
83982 2006-01-12  Bruno Haible  <bruno@clisp.org>
83983
83984         * m4/ldd.m4: New file.
83985
83986 2006-01-12  Bruno Haible  <bruno@clisp.org>
83987
83988         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83989         endless loop while replacing $auxdir with build-aux.
83990
83991 2006-01-11  Simon Josefsson  <jas@extundo.com>
83992
83993         * lib/stdint_.h (SIZE_MAX): Add missing (.
83994
83995 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83996
83997         Sync from coreutils.
83998         * lib/md5.c: Fix commentary typos.
83999         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84000         * lib/md5.h (__attribute__): Remove; unused.
84001         * lib/sha1.c: Fix commentary to match md5 better.
84002         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84003         so that we don't need to worry about alignment.  All uses changed.
84004         This merges the 2005-10-28 md5 change into sha1.
84005
84006 2006-01-11  Jim Meyering  <jim@meyering.net>
84007
84008         Sync from coreutils.
84009         * lib/md5.c (OP): Fix spacing.
84010
84011 2006-01-11  Bruno Haible  <bruno@clisp.org>
84012
84013         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84014         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84015         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84016
84017 2006-01-11  Bruno Haible  <bruno@clisp.org>
84018
84019         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84020         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84021         the "early" section as well.
84022
84023 2006-01-11  Bruno Haible  <bruno@clisp.org>
84024
84025         Avoid "ar: no archive members specified" error on MacOS X.
84026         * gnulib-tool (func_modules_add_dummy): New function.
84027         (func_import, func_create_testdir): Invoke it.
84028
84029 2006-01-11  Bruno Haible  <bruno@clisp.org>
84030
84031         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84032         with $auxdir in AC_CONFIG_FILES statements.
84033
84034 2006-01-11  Bruno Haible  <bruno@clisp.org>
84035
84036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84037         Initialize also noinst_HEADERS to empty.
84038
84039 2006-01-11  Bruno Haible  <bruno@clisp.org>
84040
84041         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84042         variables.
84043         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84044         autoreconf.
84045
84046 2006-01-11  Bruno Haible  <bruno@clisp.org>
84047
84048         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84049         overridable by the user.
84050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84051
84052 2006-01-10  Simon Josefsson  <jas@extundo.com>
84053
84054         * modules/sys_socket: New file.
84055
84056 2006-01-10  Simon Josefsson  <jas@extundo.com>
84057
84058         * m4/sys_socket_h.m4: New file.
84059
84060 2006-01-10  Simon Josefsson  <jas@extundo.com>
84061
84062         * lib/socket_.h: New file.
84063
84064 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         * modules/readutmp (Maintainer): Add myself.
84067
84068 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84069
84070         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84071         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84072         People who are still concerned with buggy memcmp implementations
84073         can invoke gl_FUNC_MEMCMP themselves.
84074
84075 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84076
84077         * lib/regex_internal.h (BITSET_WORD_BITS):
84078         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84079         preprocessor mishandles large unsigned values as if they were signed.
84080         Problem reported by Claudio Fontana in
84081         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84082
84083 2006-01-10  Jim Meyering  <jim@meyering.net>
84084
84085         Avoid the double-free (first in fts_read, second in fts_close) that
84086         would occur when an `active' directory is made inaccessible (e.g.,
84087         via chmod a-x) during a traversal.
84088         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84089         before returning.  Reproduce this failure by
84090         mkdir -p a/b; cd a; chmod a-x . b
84091         Reported by Stavros Passas.
84092
84093         Sync from coreutils.
84094         * lib/sha1.c: Tweak grammar in a comment.
84095
84096 2006-01-10  Jim Meyering  <jim@meyering.net>
84097
84098         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84099         Patch by Joerg Sonnenberger.
84100
84101 2006-01-10  Bruno Haible  <bruno@clisp.org>
84102
84103         * modules/readutmp: Depend on module free.
84104         * modules/strtok_r: Depend on module restrict.
84105
84106 2006-01-10  Bruno Haible  <bruno@clisp.org>
84107
84108         * modules/gettext (configure.ac): Add an invocation of
84109         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84110
84111 2006-01-10  Bruno Haible  <bruno@clisp.org>
84112
84113         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84114         Reported by Werner Lemberg <wl@gnu.org>.
84115
84116 2006-01-10  Bruno Haible  <bruno@clisp.org>
84117
84118         * lib/localcharset.c: Update from GNU gettext.
84119
84120 2006-01-10  Bruno Haible  <bruno@clisp.org>
84121
84122         * lib/argp.h (__const): Remove macro. Use const instead.
84123         * lib/argp-fmtstream.h (__const): Likewise.
84124         * lib/glob_.h (__const): Remove macro.
84125         * lib/glob-libc.h: Use const instead of __const.
84126
84127 2006-01-10  Bruno Haible  <bruno@clisp.org>
84128
84129         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84130         variable.
84131         Needed to avoid an automake error regarding the 'gettext' module.
84132
84133 2006-01-09  Simon Josefsson  <jas@extundo.com>
84134
84135         * modules/inet_ntop (Depends-on): Add restrict.
84136
84137 2006-01-09  Simon Josefsson  <jas@extundo.com>
84138
84139         * modules/gc-rijndael-tests (License): Put under LGPL.
84140
84141         * modules/gc-des-tests (License): Likewise.
84142
84143         * modules/gc-arcfour-tests (License): Likewise.
84144
84145         * modules/gc-arctwo-tests (License): Likewise.
84146
84147         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84148
84149         * modules/gc-hmac-sha1-tests (Files): Likewise.
84150
84151         * modules/gc-hmac-md5-tests (License): Likewise.
84152
84153         * modules/gc-sha1-tests (License): Likewise.
84154
84155         * modules/gc-md5-tests (License): Likewise.
84156
84157         * modules/gc-md4-tests (License): Likewise.
84158
84159         * modules/gc-md2-tests (License): Likewise.
84160
84161         * modules/gc-tests (License): Likewise.
84162
84163         * modules/des-tests (License): Likewise.
84164
84165         * modules/md4-tests (License): Likewise.
84166
84167         * modules/md2-tests (License): Likewise.
84168
84169 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84170
84171         Sync from coreutils:
84172
84173         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84174         * modules/lib-ignore: New file.
84175         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84176         chdir-safer.m4, lchmod.m4.
84177         * modules/openat: Add mkdirat.c, openat-priv.h.
84178
84179 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84180
84181         Sync from coreutils.
84182         * m4/lib-ignore.m4: New file.
84183         * m4/lchmod.m4: New file.
84184
84185 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84186
84187         Sync from coreutils.
84188         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84189         for write access: POSIX says that must fail.
84190         * lib/fts.c (diropen): Likewise.
84191         * lib/save-cwd.c (save_cwd): Likewise.
84192         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84193         well, for minor improvements on hosts that lack O_DIRECTORY.
84194         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84195         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84196         Fall back on chown if open failed with EACCES.
84197
84198         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84199         Report an error at compile-time if only a 1-second nominal clock
84200         resolution is found.
84201
84202         * lib/lchmod.h: New file.
84203         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84204         (make_dir_parents): Use lchown rather than chown, and
84205         lchmod rather than chmod.
84206
84207         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84208         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84209         "proc" reported by n0dalus.
84210
84211         * lib/mountlist.c: Include <limits.h>.
84212         (dev_from_mount_options)
84213         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84214         New function.  It no longer assumes "dev=" has the System V meaning
84215         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84216         (read_file_system_list)
84217         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84218         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84219         dev= in that case.
84220
84221         * lib/posixtm.h (PDS_PRE_2000): New macro.
84222         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84223         allow_century.  All usages changed.  Reject dates outside the range
84224         1969-1999 if PDS_PRE_2000 is used.
84225
84226 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84227
84228         Sync from coreutils.
84229         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84230         (Time of day items): Mention the possibility of leap seconds.
84231         Problem reported by Dr. David Alan Gilbert.
84232
84233 2006-01-09  Jim Meyering  <jim@meyering.net>
84234
84235         Sync from coreutils.
84236
84237         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84238
84239         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84240
84241         * lib/modechange.c (mode_compile): Reject an invalid mode string
84242         that starts with an octal digit.  From Andreas Gruenbacher.
84243
84244         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84245         and dup to open_safer and dup_safer, respectively.
84246         (openat_permissive): Fix typo in comment.
84247
84248         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84249         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84250         (_): Remove; no longer needed.
84251         (openat): Renamed from rpl_openat; no need for rpl_openat
84252         since openat.h renames openat for us.
84253         Replace most of the body with a call to openat_permissive,
84254         to avoid duplicate code.
84255         Port to (probably hypothetical) environments were mode_t is
84256         wider than int.
84257         (openat_permissive): Require mode arg, so that we can check
84258         types better.  Put it just after flags.  Change cwd failure
84259         indicator from pointer-to-bool to pointer-to-errno-value.
84260         All callers changed.
84261         Invoke openat_save_fail and/or openat_restore_fail if
84262         cwd_errno is null, so that openat can call us.
84263         (openat_permissive, fdopendir, fstatat, unlinkat):
84264         Simplify errno handling to avoid some duplicate code,
84265         as it's OK to set errno on success.
84266         * lib/openat.h: Revamp code so that function macros depend on
84267         __OPENAT_PREFIX only, not also on AT_FDCWD.
84268         (openat_ro): Remove.  Caller changed to use openat_permissive.
84269         (openat_permissive): Now a macro, if not a function.
84270         (openat_restore_fail, openat_save_fail): Now always functions,
84271         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84272
84273         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84274         and openat.c.
84275         * lib/mkdirat.c: Include openat-priv.h.
84276         Remove definitions of macros defined therein.
84277         * lib/openat.c: Likewise.
84278
84279         * lib/mkdirat.c (mkdirat): New file and function.
84280         * lib/openat.h (mkdirat): Declare.
84281
84282         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84283
84284         * lib/openat.h (openat_permissive): Declare.
84285         (openat_ro): Define.
84286
84287         * lib/openat.c (EXPECTED_ERRNO): New macro.
84288         (openat_permissive): New function -- used in remove.c rewrite.
84289         (all functions): Set errno just before returning, only if there
84290         was an actual failure.
84291         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84292
84293         Emulate openat-family functions using Linux's procfs, if possible.
84294         Idea and some code based on Ulrich Drepper's glibc changes.
84295
84296         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84297         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84298         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84299         before falling back on save_cwd and restore_cwd.
84300         (fdopendir, fstatat, unlinkat): Likewise.
84301
84302         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84303         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84304
84305         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84306         as second argument to va_arg.  Otherwise, some versions of gcc
84307         warn that `if this code is reached, the program will abort'.
84308
84309 2006-01-09  Jim Meyering  <jim@meyering.net>
84310
84311         Sync from coreutils.
84312         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84313         Require openat-priv.h.
84314
84315 2006-01-09  Bruno Haible  <bruno@clisp.org>
84316
84317         * modules/strnlen (Include): Use strnlen.h.
84318
84319 2006-01-09  Bruno Haible  <bruno@clisp.org>
84320
84321         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84322
84323 2006-01-09  Bruno Haible  <bruno@clisp.org>
84324
84325         * lib/sysexit_.h (EX_OK): New macro.
84326         Suggested by Martin Lambers <marlam@marlam.de>.
84327
84328 2006-01-09  Bruno Haible  <bruno@clisp.org>
84329
84330         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84331         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84332
84333 2006-01-09  Bruno Haible  <bruno@clisp.org>
84334
84335         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84336         numbers.
84337
84338 2006-01-09  Bruno Haible  <bruno@clisp.org>
84339
84340         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84341         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84342         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84343         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84344
84345 2006-01-09  Bruno Haible  <bruno@clisp.org>
84346
84347         * build-aux/javacomp.sh.in: New file, moved from lib/.
84348         * modules/javacomp-script (Files): Update.
84349         (configure.ac): Add AC_CONFIG_FILES invocation.
84350         (EXTRA_DIST): Remove variable.
84351
84352         * build-aux/javaexec.sh.in: New file, moved from lib/.
84353         * modules/javaexec (Files): Update.
84354         (configure.ac): Add AC_CONFIG_FILES invocation.
84355         (EXTRA_DIST): Remove javaexec.sh.in.
84356
84357         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84358         * modules/csharpcomp-script (Files): Update.
84359         (configure.ac): Add AC_CONFIG_FILES invocation.
84360         (EXTRA_DIST): Remove variable.
84361
84362         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84363         * modules/csharpexec (Files): Update.
84364         (configure.ac): Add AC_CONFIG_FILES invocation.
84365         (EXTRA_DIST): Remove csharpexec.sh.in.
84366
84367 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84368
84369         Sync from coreutils.
84370
84371         Add POSIX ACL support
84372         * lib/acl.h (copy_acl, set_acl): Add declarations.
84373         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84374         systems other than Linux.
84375         (chmod_or_fchmod): New function: use fchmod when possible,
84376         and chmod otherwise.
84377         (file_has_acl): Add a POSIX ACL implementation, with a
84378         Linux-specific subcase.
84379         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84380         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84381         acls are unsupported.
84382         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84383         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84384         are unsupported.
84385
84386 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84387
84388         Sync from coreutils.
84389         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84390
84391 2006-01-07  Bruno Haible  <bruno@clisp.org>
84392
84393         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84394         gl_EARLY.
84395
84396 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84399         Problem reported for Mingw by Mark Junker.
84400
84401 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * README: Gnulib normally doesn't generate a tarball.
84404
84405 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84406
84407         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84408         long int, not int, for nanosecond counts, so that people who are
84409         used to POSIX struct timespec won't be surprised.  Reported by Jim
84410         Meyering.
84411
84412 2005-12-28  Bruno Haible  <bruno@clisp.org>
84413
84414         * build-aux/config.rpath: Update from GNU gettext.
84415
84416 2005-12-16  Jim Meyering  <jim@meyering.net>
84417
84418         * modules/fprintftime: New module.
84419         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84420
84421 2005-12-16  Jim Meyering  <jim@meyering.net>
84422
84423         * m4/fprintftime.m4: New file.
84424
84425 2005-12-16  Jim Meyering  <jim@meyering.net>
84426
84427         * lib/fprintftime.c, lib/fprintftime.h: New files.
84428
84429 2005-12-15  Simon Josefsson  <jas@extundo.com>
84430
84431         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84432         new m4/socklen.m4.
84433
84434 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84435
84436         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84437         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84438
84439 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84440
84441         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84442         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84443         struct uparams is valid. Fall back to the default values if it is
84444         not.
84445
84446 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84447
84448         * modules/argp (Files): Add argp-pin.c
84449         (Depends-on): dirname
84450         (lib_SOURCES): Add argp-pin.c
84451
84452 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84453
84454         * m4/argp.m4:  Check if program_invocation_name and
84455         program_invocation_short_name are declared and define appropriate
84456         macros if they are not.
84457
84458 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84459
84460         * lib/argp-help.c (__argp_base_name): New function
84461         (__argp_short_program_name): Rewrite using __argp_base_name
84462         * lib/argp-namefrob.h: Define program_invocation_name and
84463         program_invocation_short_name if requested
84464         (__argp_base_name): Add prototype
84465         * lib/argp-parse.c (argp_def): Use gettext wrappers
84466         (argp_default_parser): Use __argp_base_name
84467         * lib/argp-pin.c: New file. Defines program_invocation_name and
84468         program_invocation_short_name on systems that lack them.
84469
84470 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84471
84472         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84473         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84474         porting problem reported by Georg Schwarz in
84475         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84476
84477 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84478
84479         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84480         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84481         porting problem reported by Georg Schwarz in
84482         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84483
84484 2005-12-05  Bruno Haible  <bruno@clisp.org>
84485
84486         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84487         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84488         Reported by Mark Junker <mjscod@gmx.de>.
84489
84490 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84491
84492         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84493         Use implementation from Albert Chin, with some
84494         comments/corrections by Stepan Kasal and myself.
84495
84496 2005-12-02  Bruno Haible  <bruno@clisp.org>
84497
84498         * gnulib-tool (func_import): Accept GPLed build tool modules when
84499         --lgpl is given.
84500         * modules/csharpcomp-script: New file.
84501         * modules/csharpcomp: Depend on it.
84502         * modules/javacomp-script: New file.
84503         * modules/javacomp: Depend on it.
84504         Suggested by Simon Josefsson.
84505
84506 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84507
84508         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84509         statement, to work around an HP-UX 10.20 compiler bug reported by
84510         Peter O'Gorman.
84511
84512 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84513
84514         * modules/savedir (Depends-on): Add openat.
84515
84516 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84517
84518         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84519         (uintmax_t) [defined uintmax_t]: Do not declare.
84520         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84521         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84522         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84523         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84524         sake of portability to weird hosts that C allows (though we don't
84525         know of any practical examples).
84526
84527         * lib/savedir.h (fdsavedir): New decl.
84528         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84529         contains most of the former guts of savedir.
84530         (savedir): Use savedirstream.
84531         Include "openat.h".
84532
84533 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84534
84535         * modules/obstack (Files): Add m4/ulonglong.m4.
84536         Problem reported by Davide Angelocola.
84537
84538 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84539
84540         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84541         coreutils no longer futzes with rounding modes.
84542
84543 2005-11-14  Jim Meyering  <jim@meyering.net>
84544
84545         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84546         replacement of mkstemp.
84547
84548 2005-11-10  Simon Josefsson  <jas@extundo.com>
84549
84550         * lib/readline.c: Remove EOL.
84551
84552 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84553
84554         * modules/gethrxtime (Depends-on): Add gettime.
84555
84556 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84557
84558         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84559         or gettimeofday; no longer needed.
84560
84561 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84562
84563         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84564         time business.
84565         (gethrxtime) [! (HAVE_NANOUPTIME
84566         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84567         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84568         our own approximation.
84569
84570 2005-11-08  Eric Blake  <ebb9@byu.net>
84571
84572         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84573
84574 2005-11-08  Eric Blake  <ebb9@byu.net>
84575
84576         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84577
84578 2005-11-04  Bruno Haible  <bruno@clisp.org>
84579
84580         * gnulib-tool: Implement --update mode.
84581
84582 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84583
84584         Fix porting problem reported by Theodoros V. Kalamatianos.
84585         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84586         Don't assume that futimes failing means we must fail.
84587
84588 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84589
84590         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84591         variables to suggest the intended function of the PATH_MAX check.
84592
84593 2005-10-30  Kean Johnston  <jkj@sco.com>
84594
84595         Trivial changes to support SCO systems.
84596         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84597         as PATH_MAX.
84598         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84599         where __ptr is null when no I/O is pending.
84600
84601 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84602
84603         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84604         leave errno alone.  Problem reported by Dmitry V. Levin.
84605
84606 2005-10-28  Simon Josefsson  <jas@extundo.com>
84607
84608         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84609         Test more.
84610
84611         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84612
84613         * modules/md2, modules/md2-tests: New files.
84614
84615 2005-10-28  Simon Josefsson  <jas@extundo.com>
84616
84617         * m4/inet_ntop.m4: More tests.
84618
84619         * m4/gc-md2.m4, md2.m4: New file.
84620
84621 2005-10-28  Simon Josefsson  <jas@extundo.com>
84622
84623         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84624         "restrict" keywords, as per POSIX.  Protect the function
84625         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84626         Don't use K&R prototypes.  Check the sprintf return values.
84627         Re-define EAFNOSUPPORT if not present.  Indent.
84628
84629         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84630         suggested by Bruno Haible <bruno@clisp.org>.
84631
84632         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84633
84634         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84635
84636         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84637         libgcrypt).
84638
84639         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84640
84641         * lib/md2.h, lib/md2.c: New files.
84642
84643 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84644
84645         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84646         errno alone.  Problem reported by Frederic Jolliton.
84647
84648 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84649
84650         * modules/verify (License): Change from GPL to LGPL.  This is a
84651         tiny module and there are apparently near-equivalents that are
84652         under the BSD license.
84653
84654 2005-10-24  Simon Josefsson  <jas@extundo.com>
84655
84656         * modules/sha1: Relicense to LGPL.
84657
84658 2005-10-24  Simon Josefsson  <jas@extundo.com>
84659
84660         * lib/md4.h: Shrink buffer size, now that we changed the type.
84661
84662 2005-10-23  Simon Josefsson  <jas@extundo.com>
84663
84664         * gnulib-tool (func_import): Fix --tests-base.
84665
84666 2005-10-22  Simon Josefsson  <jas@extundo.com>
84667
84668         * modules/arcfour (Depends-on): Need stdint.
84669
84670 2005-10-22  Simon Josefsson  <jas@extundo.com>
84671
84672         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84673         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84674
84675 2005-10-22  Simon Josefsson  <jas@extundo.com>
84676
84677         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84678         suggested by Bruno Haible <bruno@clisp.org>.
84679
84680 2005-10-22  Simon Josefsson  <jas@extundo.com>
84681
84682         * lib/crc.h: Include stddef.h, for size_t.
84683
84684 2005-10-22  Simon Josefsson  <jas@extundo.com>
84685
84686         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84687         arcfour_context struct (simplify test vector testing in GNU
84688         Shishi).
84689
84690 2005-10-21  Simon Josefsson  <jas@extundo.com>
84691
84692         * modules/des, modules/des-tests: New files.
84693
84694         * modules/gc-des, modules/gc-des-tests: New files.
84695
84696         * tests/test-des.c, tests/test-gc-des.c: New file.
84697
84698 2005-10-21  Simon Josefsson  <jas@extundo.com>
84699
84700         * modules/arctwo, modules/arctwo-tests: New files.
84701
84702         * tests/test-arctwo.c: New file.
84703
84704         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84705
84706         * tests/test-gc-arctwo.c: New file.
84707
84708 2005-10-21  Simon Josefsson  <jas@extundo.com>
84709
84710         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84711         Bruno Haible <bruno@clisp.org>.
84712
84713         * m4/gc-des.m4: New file.
84714
84715 2005-10-21  Simon Josefsson  <jas@extundo.com>
84716
84717         * m4/arctwo.m4: New file.
84718
84719         * m4/gc-arctwo.m4: New file.
84720
84721 2005-10-21  Simon Josefsson  <jas@extundo.com>
84722
84723         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84724         block.
84725
84726 2005-10-21  Simon Josefsson  <jas@extundo.com>
84727
84728         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84729         <bruno@clisp.org>.
84730
84731         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84732
84733         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84734         Bruno Haible <bruno@clisp.org>.
84735
84736         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84737         <bruno@clisp.org>.
84738
84739 2005-10-21  Simon Josefsson  <jas@extundo.com>
84740
84741         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84742
84743 2005-10-21  Simon Josefsson  <jas@extundo.com>
84744
84745         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84746
84747 2005-10-21  Simon Josefsson  <jas@extundo.com>
84748
84749         * lib/des.h, lib/des.c: New files.
84750
84751         * lib/gc-gnulib.c: Support DES.c
84752
84753 2005-10-21  Simon Josefsson  <jas@extundo.com>
84754
84755         * lib/arctwo.h, lib/arctwo.c: New files.
84756
84757         * lib/gc-gnulib.c: Support ARCTWO.
84758
84759 2005-10-21  Simon Josefsson  <jas@extundo.com>
84760
84761         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84762         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84763
84764 2005-10-21  Simon Josefsson  <jas@extundo.com>
84765
84766         * gnulib-tool (func_import, func_create_testdir): Define automake
84767         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84768         Makefile.am snippet),
84769         suggested by Bruno Haible <bruno@clisp.org>.
84770
84771         * modules/gc (Makefile.am): Use it.
84772
84773 2005-10-21  Bruno Haible  <bruno@clisp.org>
84774
84775         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84776         patch.
84777
84778 2005-10-19  Simon Josefsson  <jas@extundo.com>
84779
84780         * tests/test-gc-rijndael.c: New file.
84781
84782         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84783
84784 2005-10-19  Simon Josefsson  <jas@extundo.com>
84785
84786         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84787         interface too.
84788
84789 2005-10-19  Simon Josefsson  <jas@extundo.com>
84790
84791         * tests/test-gc-arcfour.c: New file.
84792
84793         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84794
84795 2005-10-19  Simon Josefsson  <jas@extundo.com>
84796
84797         * modules/gc-md4, modules/gc-md4-tests: New file.
84798
84799         * tests/test-gc-md4.c: New file.
84800
84801 2005-10-19  Simon Josefsson  <jas@extundo.com>
84802
84803         * m4/gc-md4.m4: New file.
84804
84805 2005-10-19  Simon Josefsson  <jas@extundo.com>
84806
84807         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84808         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84809         <kasal@ucw.cz>.
84810
84811 2005-10-19  Simon Josefsson  <jas@extundo.com>
84812
84813         * m4/gc-arcfour.m4: New file.
84814
84815         * m4/gc-rijndael.m4: New file.
84816
84817 2005-10-19  Simon Josefsson  <jas@extundo.com>
84818
84819         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84820
84821 2005-10-19  Simon Josefsson  <jas@extundo.com>
84822
84823         * lib/gc-gnulib.c: Support ARCFOUR.
84824
84825 2005-10-19  Simon Josefsson  <jas@extundo.com>
84826
84827         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84828         support.
84829
84830         * lib/gc.h: Add ECB enum type.
84831
84832         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84833
84834 2005-10-18  Simon Josefsson  <jas@extundo.com>
84835
84836         * tests/test-md5.c: New file.
84837
84838         * modules/md5-tests: New file.
84839
84840 2005-10-18  Simon Josefsson  <jas@extundo.com>
84841
84842         * tests/test-md4.c: New file.
84843
84844         * modules/md4, modules/md4-tests: New files.
84845
84846 2005-10-18  Simon Josefsson  <jas@extundo.com>
84847
84848         * m4/md4.m4: New file.
84849
84850 2005-10-18  Simon Josefsson  <jas@extundo.com>
84851
84852         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84853
84854 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84855
84856         * gnulib-tool (func_create_testdir): Omit the second check whether
84857         BUILT_SOURCES in nonempty.
84858
84859 2005-10-17  Simon Josefsson  <jas@extundo.com>
84860
84861         * tests/test-rijndael.c: New file.
84862
84863 2005-10-17  Simon Josefsson  <jas@extundo.com>
84864
84865         * modules/sha1: Depend on stdint instead of md5.
84866
84867         * modules/md5: Depend on stdint, remove uint32_t.
84868
84869 2005-10-17  Simon Josefsson  <jas@extundo.com>
84870
84871         * modules/gc-sha1-tests: New file.
84872
84873         * tests/test-gc-sha1.c: New file.
84874
84875 2005-10-17  Simon Josefsson  <jas@extundo.com>
84876
84877         * m4/md5.m4: Remove call to uint32_t.m4.
84878
84879 2005-10-17  Simon Josefsson  <jas@extundo.com>
84880
84881         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84882
84883         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84884         md5.h.
84885
84886         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84887
84888         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84889
84890 2005-10-17  Simon Josefsson  <jas@extundo.com>
84891
84892         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84893
84894 2005-10-17  Simon Josefsson  <jas@extundo.com>
84895
84896         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84897
84898 2005-10-17  Simon Josefsson  <jas@extundo.com>
84899
84900         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84901
84902         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84903
84904 2005-10-17  Bruno Haible  <bruno@clisp.org>
84905
84906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84907         that it can also be used in a test.
84908
84909 2005-10-16  Bruno Haible  <bruno@clisp.org>
84910
84911         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84912         TESTS_ENVIRONMENT, so that individual tests can augment it.
84913
84914         * gnulib-tool (func_create_testdir): Use an intermediate target for
84915         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84916         macros, like $(ALLOCA_H), which cannot be passed through the command
84917         line.
84918
84919 2005-10-15  Simon Josefsson  <jas@extundo.com>
84920
84921         * modules/rijndael-tests: New file.
84922
84923         * modules/rijndael: New file.
84924
84925 2005-10-15  Simon Josefsson  <jas@extundo.com>
84926
84927         * m4/rijndael.m4: New file.
84928
84929 2005-10-15  Simon Josefsson  <jas@extundo.com>
84930
84931         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84932
84933         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84934
84935 2005-10-14  Simon Josefsson  <jas@extundo.com>
84936
84937         * tests/test-arcfour.c: New file.
84938
84939         * modules/arcfour, modules/arcfour-tests: New files.
84940
84941 2005-10-14  Simon Josefsson  <jas@extundo.com>
84942
84943         * m4/arcfour.m4: New file.
84944
84945 2005-10-14  Simon Josefsson  <jas@extundo.com>
84946
84947         * lib/arcfour.h, lib/arcfour.c: New files.
84948
84949 2005-10-14  Roland McGrath  <roland@redhat.com>
84950
84951         Import from libc.  [BZ #1331]
84952         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84953         macro argument.
84954         Reported by Matej Vela <vela@debian.org>.
84955
84956 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84957
84958         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84959         include <wchar.h>; no longer needed.
84960
84961 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84962
84963         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84964
84965 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84966         and  Ulrich Drepper  <drepper@redhat.com>
84967
84968         Import from libc.
84969         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84970         instead of inline stream orientation test and two separate
84971         function calls.  Pay no attention to USE_IN_LIBIO.
84972
84973 2005-10-13  Simon Josefsson  <jas@extundo.com>
84974
84975         * modules/gc-hmac-md5-tests: New file.
84976
84977         * tests/test-gc-hmac-sha1.c: New file.
84978
84979         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84980
84981         * modules/gc-hmac-md5-tests: New file.
84982
84983         * tests/test-gc-md5.c: New file.
84984
84985         * modules/gc-md5-tests: New file.
84986
84987 2005-10-13  Simon Josefsson  <jas@extundo.com>
84988
84989         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84990         Move memory allocation outside of loop.
84991
84992 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84993
84994         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84995         intermediate directory is in a read-only file system.  Problem
84996         reported by Eric Blake.
84997
84998 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84999
85000         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85001
85002 2005-10-12  Simon Josefsson  <jas@extundo.com>
85003
85004         * tests/test-hmac-sha1.c: New file.
85005
85006         * modules/hmac-sha1-tests: New file.
85007
85008         * modules/hmac-sha1: New file.
85009
85010 2005-10-12  Simon Josefsson  <jas@extundo.com>
85011
85012         * modules/gc-sha1: New file.
85013
85014 2005-10-12  Simon Josefsson  <jas@extundo.com>
85015
85016         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85017
85018         * tests/test-gc-pbkdf2-sha1.c: New file.
85019
85020 2005-10-12  Simon Josefsson  <jas@extundo.com>
85021
85022         * modules/gc-md5, modules/gc-hmac-md5: New files.
85023
85024         * modules/gc (Files): Remove md5, memxor and hmac files.
85025
85026 2005-10-12  Simon Josefsson  <jas@extundo.com>
85027
85028         * m4/gc-pbkdf2-sha1.m4: New file.
85029
85030         * m4/gc-hmac-sha1.m4: New file.
85031
85032         * m4/gc-sha1: New file.
85033
85034         * m4/hmac-sha1.m4: New file.
85035
85036 2005-10-12  Simon Josefsson  <jas@extundo.com>
85037
85038         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85039
85040         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85041
85042 2005-10-12  Simon Josefsson  <jas@extundo.com>
85043
85044         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85045         suggested by Bruno Haible <bruno@clisp.org>.
85046
85047 2005-10-12  Simon Josefsson  <jas@extundo.com>
85048
85049         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85050
85051 2005-10-12  Simon Josefsson  <jas@extundo.com>
85052
85053         * lib/gc-pbkdf2-sha1.c: New file.
85054
85055         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85056
85057 2005-10-12  Simon Josefsson  <jas@extundo.com>
85058
85059         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85060
85061         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85062
85063 2005-10-12  Simon Josefsson  <jas@extundo.com>
85064
85065         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85066         GC_USE_HMAC_MD5, respectively.
85067
85068         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85069         (gc_md5): Fix typo.
85070
85071         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85072
85073         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85074
85075         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85076
85077 2005-10-12  Bruno Haible  <bruno@clisp.org>
85078
85079         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85080         Reported by Stepan Kasal <kasal@ucw.cz>.
85081
85082 2005-10-11  Simon Josefsson  <jas@extundo.com>
85083
85084         * tests/test-crc.c: New file.
85085
85086         * modules/crc, modules/crc-tests: New files.
85087
85088 2005-10-11  Simon Josefsson  <jas@extundo.com>
85089
85090         * m4/crc.m4: New file.
85091
85092 2005-10-11  Simon Josefsson  <jas@extundo.com>
85093
85094         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85095
85096         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85097
85098         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85099
85100 2005-10-11  Simon Josefsson  <jas@extundo.com>
85101
85102         * lib/crc.h, lib/crc.c: New files.
85103
85104         * lib/gc.h (gc_hash_buffer): Add doc.
85105
85106 2005-10-11  Bruno Haible  <bruno@clisp.org>
85107
85108         * modules/c-strcasestr: New file.
85109         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85110
85111 2005-10-11  Bruno Haible  <bruno@clisp.org>
85112
85113         * modules/c-strcase: New file.
85114         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85115
85116 2005-10-11  Bruno Haible  <bruno@clisp.org>
85117
85118         * lib/strcasecmp.c: Include limits.h.
85119         (strcasecmp): Avoid integer overflow on exotic platforms.
85120         * lib/strncasecmp.c: Include limits.h.
85121         (strncasecmp): Avoid integer overflow on exotic platforms.
85122         Reported by Paul Eggert.
85123
85124 2005-10-11  Bruno Haible  <bruno@clisp.org>
85125
85126         * lib/c-strcasestr.h: New file, from GNU gettext.
85127         * lib/c-strcasestr.c: New file, from GNU gettext.
85128
85129 2005-10-11  Bruno Haible  <bruno@clisp.org>
85130
85131         * lib/c-strcase.h: New file, from GNU gettext.
85132         * lib/c-strcasecmp.c: New file, from GNU gettext.
85133         * lib/c-strncasecmp.c: New file, from GNU gettext.
85134
85135 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85136
85137         * modules/mempcpy (License): GPL -> LGPL.
85138         * modules/strchrnul (License): Likewise.
85139         * modules/sysexits (License): Likewise.
85140
85141 2005-10-08  Simon Josefsson  <jas@extundo.com>
85142
85143         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85144
85145 2005-10-07  Simon Josefsson  <jas@extundo.com>
85146
85147         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85148
85149 2005-10-06  Simon Josefsson  <jas@extundo.com>
85150
85151         * tests/test-hmac-md5.c: New file.
85152
85153         * modules/hmac-md5-tests: New file.
85154
85155         * modules/hmac-md5: New file.
85156
85157 2005-10-06  Simon Josefsson  <jas@extundo.com>
85158
85159         * m4/hmac-md5.m4: New file.
85160
85161         * m4/memxor.m4: Require gl_C_RESTRICT.
85162
85163 2005-10-06  Simon Josefsson  <jas@extundo.com>
85164
85165         * lib/memxor.c (memxor): Avoid casts and warnings.
85166
85167 2005-10-06  Simon Josefsson  <jas@extundo.com>
85168
85169         * lib/hmac-md5.c: New file.
85170
85171         * lib/hmac.h: New file.
85172
85173 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85174
85175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85176         promotes to int, not unsigned int, to catch the AIX 5.3
85177         compiler bug.
85178
85179 2005-10-05  Simon Josefsson  <jas@extundo.com>
85180
85181         * modules/memxor: New file.
85182
85183         * modules/iconv (Files): Move config.rpath to havelib, it is used
85184         there.
85185
85186         * modules/havelib (Files): Add config.rpath.
85187
85188 2005-10-05  Simon Josefsson  <jas@extundo.com>
85189
85190         * m4/memxor.m4: New file.
85191
85192 2005-10-05  Simon Josefsson  <jas@extundo.com>
85193
85194         * lib/memxor.c (memxor): Fix compiler error.
85195
85196         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85197         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85198
85199         * lib/memxor.h, lib/memxor.c: New files.
85200
85201         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85202         we assume all systems have it, suggested by Jim Meyering
85203         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85204         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85205         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85206         same reasons.
85207
85208 2005-10-05  Simon Josefsson  <jas@extundo.com>
85209
85210         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85211
85212 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85213
85214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85215         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85216         needed, since the source code now assumes these .h files.
85217
85218 2005-10-05  Derek Price  <derek@ximbiot.com>
85219
85220         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85221
85222 2005-10-05  Bruno Haible  <bruno@clisp.org>
85223
85224         * modules/stdint (License): Change to LGPL.
85225
85226 2005-10-04  Simon Josefsson  <jas@extundo.com>
85227
85228         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85229         D. Baushke" <mdb@gnu.org>.
85230
85231 2005-10-04  Bruno Haible  <bruno@clisp.org>
85232
85233         * lib/verify.h (verify_true): Provide alternative definition for C++.
85234
85235 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85236
85237         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85238         (SSIZE_MAX): New macro, if not already defined.
85239         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85240         than 2 GiB.
85241
85242 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85243
85244         Sync from coreutils.
85245         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85246         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85247         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85248         ULLONG_MAX doesn't work with 2.7.2.1.
85249
85250 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85251
85252         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85253         From Ben Pfaff.
85254
85255         * modules/exclude (Depends-on): Depend on verify.
85256         * modules/strtoimax (Depends-on): Likewise.
85257         * modules/utimecmp (Depends-on): Likewise.
85258
85259 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85260
85261         * lib/exclude.c: Include verify.h.
85262         (verify): Remove.  All callers changed to use verify.h's version.
85263         * lib/strtoimax.c: Likewise.
85264         * lib/utimecmp.c: Likewis.e
85265
85266         Sync from coreutils.
85267         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85268         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85269         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85270         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85271         bother returning ENOSYS if settimeofday or stime fails; just let
85272         them return whatever errno they want to return.
85273         * lib/utimens.c: Include unistd.h, for dup2.
85274         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85275         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85276
85277 2005-10-02  Jim Meyering  <jim@meyering.net>
85278
85279         Sync from coreutils.
85280         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85281         from glibc-2.2.5 that fails for read-only files.
85282
85283 2005-10-02  Jim Meyering  <jim@meyering.net>
85284
85285         Sync from coreutils.
85286         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85287         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85288         `#if HAVE_CONFIG_H'.
85289         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85290         Remove AT_FDCWD test.
85291         Do not consume the fd unless successful.
85292         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85293         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85294         block, so that we don't even try to compile it if settimeofday is
85295         available.  This works around a compilation failure on OSF1 V5.1,
85296         due to stime requiring a `long int*' while tv_sec is `int'.
85297
85298 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85299
85300         Sync from coreutils.
85301         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85302         against `yes', rather than just testing for nonempty.
85303
85304 2005-10-01  Simon Josefsson  <jas@extundo.com>
85305
85306         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85307         and Darwin.
85308
85309         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85310         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85311         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85312         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85313         Check if struct addrinfo is declared.
85314
85315 2005-10-01  Simon Josefsson  <jas@extundo.com>
85316
85317         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85318         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85319         AI_* and EAI_* definitions.  Protect function declarations.
85320
85321 2005-10-01  Jim Meyering  <jim@meyering.net>
85322
85323         Sync from coreutils.
85324
85325         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85326         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85327         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85329         in the inet and nsl libraries.  Required on Solaris 5.7.
85330
85331 2005-10-01  Jim Meyering  <jim@meyering.net>
85332
85333         Sync from coreutils.
85334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85335         in the inet and nsl libraries.  Required on Solaris 5.7.
85336
85337 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85338
85339         * lib/getdelim.c (getdelim): Remove unused variables.
85340
85341 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85342
85343         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85344         so that the code works even with ancient cpp.  Portability problem
85345         with GCC 2.7.2.1 reported by Thomas M.Ott.
85346
85347 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85348
85349         * modules/regex (Depends-on): Add strcase.
85350
85351         * modules/gethostname (Licence): Change from GPL to LGPL, since
85352         gethostname.c is a trivial implementation of a standard library
85353         function.
85354         * modules/poll (License): Change from GPL to LGPL, since it's
85355         derived from LGPL code.
85356
85357 2005-09-27  Jim Meyering  <jim@meyering.net>
85358
85359         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85360         HAVE_CONFIG_H.
85361
85362         * lib/intprops.h (signed_type_or_expr__): Define.
85363         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85364         for unsigned types.
85365
85366 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85367
85368         * lib/verify.h (verify_expr): Remove, replacing with:
85369         (verify_true): New macro that returns true instead of void.
85370         (verify_type__): Remove.
85371         (verify): Use verify_true rather than verify_type__.
85372
85373 2005-09-26  Bruno Haible  <bruno@clisp.org>
85374
85375         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85376         is necessary.
85377         (lib_SOURCES): Remove mbchar.c.
85378         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85379         (Files): Add m4/mbrtowc.m4.
85380         * modules/mbiter: Likewise.
85381         * modules/mbuiter: Likewise.
85382
85383 2005-09-26  Bruno Haible  <bruno@clisp.org>
85384
85385         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85386         compile mbchar.c if they are not both present.
85387         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85388         * m4/mbiter.m4 (gl_MBITER): Likewise.
85389         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85390         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85391         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85392
85393 2005-09-25  Jim Meyering  <jim@meyering.net>
85394
85395         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85396         also uses socklen_t.
85397
85398 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * lib/utimens.c (ENOSYS): Define if not already defined.
85401         (futimens): Support having a null PATH if the file descriptor
85402         is nonnegative.
85403
85404         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85405         Remove.
85406         (__attribute): Define to empty unless GCC 3.1 or later.
85407         This works around a core dump on OpenBSD 3.4, which has GCC
85408         2.95.3, which dumps core when given __attribute__(()).  It also
85409         simplifies other tests, since we really don't want to bother with
85410         worrying about which ancient version of GCC supported what.
85411         Original problem reported by Yoann Vandoorselaere, with part of
85412         the fix suggested by Derek Price.
85413
85414 2005-09-24  Jim Meyering  <jim@meyering.net>
85415
85416         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85417         so we can once again use a positive bitfield width of 1 -- now we
85418         don't have to explain why we were using a bitfield width of 2.
85419
85420 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85421
85422         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85423         and similarly for the other external symbols.  Problem reported
85424         by James Gallager.
85425
85426         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85427         bug reported by Jim Meyering.
85428
85429         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85430         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85431         not needed, since socklen is a prerequisite module.
85432
85433 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85434
85435         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85436         Problem reported by Eric Blake.
85437         (getaddrinfo): Initialize se so that it's not garbage.
85438         Redo internal storage allocation so that it doesn't make unportable
85439         assumptions about alignment.
85440         Fix a memory leak.
85441
85442         * lib/utimens.c (futimens): Use futimesat if available.
85443         Prefer it to futimes since it doesn't have the futimes bug.
85444
85445         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85446         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85447         Instead, declare a function that returns a pointer to an array,
85448         and use verify_type__ to declare the size of the array.
85449         Problem and germ of a solution reported by Bruno Haible.
85450         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85451         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85452
85453 2005-09-23  Jim Meyering  <jim@meyering.net>
85454
85455         Sync from coreutils.
85456         Correct build failure (socklen_t not defined) on at least
85457         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85459
85460 2005-09-23  Jim Meyering  <jim@meyering.net>
85461
85462         * modules/getaddrinfo (Depends-on): Add socklen.
85463
85464 2005-09-23  Bruno Haible  <bruno@clisp.org>
85465
85466         * tests/test-verify.c: New file.
85467
85468 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85469
85470         Sync from coreutils.
85471
85472         * modules/argmatch (Depends-on): Add verify.
85473         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85474         unistd-safer.
85475         * modules/save-cwd (Depends-on): Likewise.
85476
85477         * modules/openat (Files): Add lib/openat-die.c.
85478         (Depends-on): Remove error, exitfail.
85479         Add dirname.
85480
85481         * modules/verify: New file.
85482         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85483         with "verify" module.
85484
85485 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85486
85487         Sync from coreutils.
85488
85489         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85490         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85491         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85492         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85493         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85494         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85495         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85496         Don't bother checking for string.h, stdlib.h, unistd.h.
85497         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85498         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85499         module's job.
85500         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85501         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85502
85503         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85504         (gl_GETDATE): Use it.
85505
85506         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85507
85508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85509
85510         Sync from coreutils.
85511
85512         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85513         stat-time.h.
85514         * lib/argmatch.h: Include verify.h
85515         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85516         (ARGMATCH_ASSERT): Remove; unused.
85517         * lib/canonicalize.c: Assume STDC_HEADERS.
85518         * lib/exclude.c: Include "strcase.h".
85519         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85520         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85521         and stdio-safer.h.
85522         (getusershell): Call fopen, not fopen_safer.
85523         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85524         Do not include unistd-safer.h.
85525         (save_cwd): Don't call fd_safer; no longer needed
85526         now that we include fcntl--.h.
85527
85528         * lib/getdate.y (relative_time): New type.
85529         (RELATIVE_TIME_0): New constant.
85530         (parser_control): Use relative_time instead of doing it ourselves.
85531         (%union): Add new relative_time rel member.
85532         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85533         Now typeless.
85534         (relunit, relunit_snumber): Now of type rel.
85535         (zone, rel, relunit, get_date): Adjust to above changes.
85536
85537         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85538         Do not include unistd-safer.h.
85539         (getloadavg): Don't call fd_safer; no longer needed
85540         now that we include fcntl--.h.
85541
85542         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85543         (make_dir_parents): Treat ENOSYS like EEXIST.
85544
85545         Improve quality of diagnostics on restore_cwd failure.
85546         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85547         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85548         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85549         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85550         each time through the loop.  Do not diagnose restore_cwd failure;
85551         that is the caller's job (and perhaps the caller does not care).
85552
85553         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85554         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85555         If the file already exists but is not a directory, don't bother
85556         to try to make its parents.
85557         Close potential file descriptor leak if we can't chdir("/") (!).
85558         Don't always return true if chdir($PWD) fails; return true only
85559         if the requested action was done successfully (except for the
85560         chdir($PWD)).
85561         Don't log final directory unless we actually made it.
85562         Refactor to avoid duplicate code to fix up permissions.
85563         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85564
85565         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85566         to make it a bit faster and (I hope) clearer.
85567         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85568         Fix bug in formats like %2N.
85569
85570         * lib/verify.h: New file.
85571
85572 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85573
85574         Sync from coreutils.
85575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85576
85577 2005-09-22  Jim Meyering  <jim@meyering.net>
85578
85579         Sync from coreutils.
85580
85581         * m4/lstat.m4 (gl_FUNC_LSTAT):
85582         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85583         Remove obsolete comment.
85584         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85585         * m4/xstrtod.m4: Likewise.
85586
85587         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85588
85589 2005-09-22  Jim Meyering  <jim@meyering.net>
85590
85591         Sync from coreutils.
85592
85593         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85594
85595         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85596         the .tm_year member, since otherwise gcc-4.0 would now warn about
85597         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85598
85599         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85600         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85601
85602         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85603         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85604         when run in a time zone for which daylight savings time is in effect
85605         for the starting date.
85606
85607         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85608         stop us from restricting permissions of just-created absolute-named
85609         directories.
85610         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85611         to restore initial working directory.
85612         * lib/mkdir-p.c (make_dir_parents): New parameter:
85613         different_working_dir, to tell caller if/when we change the working
85614         directory and are unable to return to the initial one.
85615         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85616         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85617         `return false'.  This fixes a bug introduced on 2004-07-30.
85618
85619         * lib/openat.c (fdopendir): Be sure to close the supplied
85620         file descriptor before returning.  This makes our replacement
85621         implementation a little closer to Solaris's, where fdopendir
85622         ties the file descriptor to the returned DIR* pointer.
85623         * lib/openat.c (unlinkat): New function.
85624         * lib/openat.h (unlinkat): Add prototype.
85625         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85626         (openat_restore_fail): Rename from openat_restore_die.
85627         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85628
85629         Provide an alternative to exiting immediately upon save_cwd or
85630         restore_cwd failure.  Now, an application can arrange e.g.,
85631         to perform a longjump in that case.
85632         * lib/openat.c: Include dirname.h.
85633         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85634         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85635         and openat_restore_die rather than calling error directly.
85636         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85637
85638         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85639         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85640         define.
85641
85642         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85643         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85644                             int utc, int nanoseconds);
85645         Background:
85646         date should not have to allocate a megabyte of virtual memory to
85647         handle a format argument like +%1048575T.  When implemented with
85648         strftime, it must allocate such a buffer, use strftime to fill it
85649         in, print it, then free it.
85650         With fprintftime, it simply prints everything and exits.
85651         With no need for memory allocation, that's one fewer way to fail.
85652         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85653         optional field width, not before, so we accept %9:z, not %:9z.
85654         (my_strftime): Be sure to use L_('x') for literals.
85655
85656         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85657         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85658         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85659         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85660         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85661         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85662         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85663         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85664         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85665         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85666         * lib/xgethostname.c, lib/xreadlink.c:
85667         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85668
85669         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85670         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85671         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85672         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85673         and don't include <sys/file.h>).
85674
85675 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85676
85677         Sync from coreutils.
85678
85679         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85680         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85681         [!LDAV_DONE]: Avoid unused variable warning.
85682
85683 2005-09-21  Bruno Haible  <bruno@clisp.org>
85684
85685         * lib/unicodeio.h (unicode_to_mb): New declaration.
85686
85687 2005-09-20  Derek Price  <derek@ximbiot.com>
85688
85689         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85690         getaddrinfo.h.
85691
85692 2005-09-20  Bruno Haible  <bruno@clisp.org>
85693
85694         * gnulib-tool: Remove trailing slashes from the values specified for
85695         --source-base, --m4-base, --tests-base, --aux-dir.
85696         Suggested by Simon Josefsson <jas@extundo.com>.
85697
85698 2005-09-20  Bruno Haible  <bruno@clisp.org>
85699
85700         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85701         func_modules_to_filelist, func_import, func_create_testdir): Make all
85702         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85703         change when gnulib-tool is invoked in a different locale.
85704
85705 2005-09-19  Simon Josefsson  <jas@extundo.com>
85706
85707         * m4/socklen.m4: Fix typo.
85708
85709 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85710
85711         Use a consistent style for including <config.h>.
85712         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85713         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85714         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85715         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85716         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85717         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85718         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85719         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85720         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85721         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85722         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85723         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85724         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85725         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85726         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85727         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85728         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85729         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85730         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85731         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85732         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85733         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85734         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85735         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85736         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85737         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85738         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85739         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85740         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85741         lib/xstrtoumax.c, lib/yesno.c:
85742         Standardize inclusion of config.h.
85743         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85744         lib/inttostr.h:  Removed inclusion of config.h from header files.
85745         * lib/inttostr.c:  Adjusted in-tree users.
85746         * lib/timespec.h: Remove superfluous warning to include config.h.
85747         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85748         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85749         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85750         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85751         config.h with HAVE_CONFIG_H.
85752
85753 2005-09-19  Jim Meyering  <jim@meyering.net>
85754
85755         * modules/pathmax (License): Change to LGPL.
85756
85757 2005-09-19  Derek Price  <derek@ximbiot.com>
85758
85759         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85760
85761 2005-09-19  Bruno Haible  <bruno@clisp.org>
85762
85763         * gnulib-tool (import): Provide default for --tests-base.
85764
85765 2005-09-19  Bruno Haible  <bruno@clisp.org>
85766
85767         * doc/quote.texi: New file, extracted from gnulib.texi.
85768         * doc/ctime.texi: New file, extracted from gnulib.texi.
85769         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85770         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85771         * doc/gnulib.texi: Include them.
85772
85773 2005-09-18  Bruno Haible  <bruno@clisp.org>
85774
85775         Portability fix.
85776         * gnulib-tool (func_readlink): New function.
85777         (func_ln_if_changed): Use it.
85778
85779 2005-09-18  Bruno Haible  <bruno@clisp.org>
85780
85781         * gnulib-tool: Support --with-tests also with --import.
85782         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85783         (func_import): Use variables $testsbase and $inctests. Emit a
85784         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85785         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85786         SUBDIRS += $testsdir.
85787         (func_create_testdir): Update.
85788
85789 2005-09-18  Bruno Haible  <bruno@clisp.org>
85790
85791         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85792         instead of $dry_run.
85793         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85794         (func_ln_if_changed): Don't handle dry-run here.
85795         (func_import): In dry-run mode, detect more precisely which actions
85796         would be performed, and don't use "...ing" verbs.
85797
85798 2005-09-18  Bruno Haible  <bruno@clisp.org>
85799
85800         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85801         (func_import): Use join on two temporary files instead of three nested
85802         loops, in order to determine which files are new or old.
85803
85804 2005-09-18  Bruno Haible  <bruno@clisp.org>
85805
85806         * gnulib-tool (func_import): Comment out code that spits out the
85807         new files with --dry-run.
85808
85809 2005-09-18  Bruno Haible  <bruno@clisp.org>
85810
85811         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85812
85813 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85814
85815         * lib/stat-time.h: New file.
85816         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85817         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85818         in a different way.
85819         (timespec_cmp): New function.
85820         * lib/utimecmp.c: Include stat-time.h.
85821         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85822         members exist, not on the obsolescent ST_MTIM_NSEC.
85823         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85824
85825 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85826
85827         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85828
85829 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85830
85831         * MODULES.html.sh (File system functions): Add stat-time.
85832         * modules/stat-time: New file.
85833         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85834         is now done in a different way, by the stat-time module.
85835         * modules/utimecmp (Depends-on): Add stat-time.
85836
85837 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85838
85839         * m4/st_mtim.m4: Remove.  Superseded by...
85840         * m4/stat-time.m4: New file.
85841         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85842         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85843
85844 2005-09-15  Derek Price  <derek@ximbiot.com>
85845
85846         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85847
85848 2005-09-15  Derek Price  <derek@ximbiot.com>
85849
85850         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85851         * lib/regex_internal.c: Ditto, using this...
85852         (__GNUC_PREREQ): ...new macro.
85853         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85854         using...
85855         (__GNUC_PREREQ): ...this new macro.
85856
85857         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85858
85859 2005-09-15  Derek Price  <derek@ximbiot.com>
85860             Paul Eggert  <eggert@cs.ucla.edu>
85861
85862         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85863         changes, consolidating in...
85864         * lib/regex_internal.h: ...this file.
85865
85866 2005-09-13  Jim Meyering  <jim@meyering.net>
85867
85868         * lib/canon-host.c: Filter through gnu indent and reword comments
85869         slightly.
85870         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85871
85872 2005-09-13  Derek Price  <derek@ximbiot.com>
85873
85874         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85875         failure.
85876         Reported by Jim Meyering  <jim@meyering.net>.
85877
85878 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85879
85880         * lib/base64.c: Typo.
85881         (base64_encode): Put b64str in initialized data section.
85882
85883 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85884
85885         Merge glibc and coreutils changes into gnulib, plus a few
85886         extra fixes.
85887         * lib/md5.c: Use #error rather than a string.
85888         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85889         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85890         (__attribute__): Define to empty for non recent-GCC.
85891         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85892         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85893         Renamed from their non-__ counterparts, with new macros replacing
85894         them if not _LIBC.  Add __THROW attribute.
85895         (rol): Remove.
85896         (struct md5_ctx): Align buffer if using GCC.
85897         * lib/sha1.h (struct sha1_ctx): Likewise.
85898         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85899         The old name was backwards.
85900         (NOTSWAP): Remove; not used.
85901         (rol): New macro, moved here from md5.h.
85902         (sha1_process_block): Remove a FIXME that doesn't make sense.
85903
85904 2005-09-12  Derek Price  <derek@ximbiot.com>
85905
85906         Return usable errors from canon-host.
85907         * lib/canon-host.h: New file.
85908         * lib/canon-host.c (canon_host): Wrap...
85909         (canon_host_r): ...this new function, which now relies exclusively on
85910         getaddrinfo.
85911         (ch_strerror): New function.
85912         (last_cherror): New global.
85913         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85914         interface.
85915         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85916         void *.
85917         (freeaddrinfo): Free ai->ai_canonname when set.
85918
85919 2005-09-12  Derek Price  <derek@ximbiot.com>
85920
85921         Make canon-host require getaddrinfo.
85922         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85923         AC_LIBSOURCE canon-host.h.  Call...
85924         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85925         gl_GETADDRINFO.
85926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85927
85928 2005-09-12  Derek Price  <derek@ximbiot.com>
85929
85930         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85931         LGPL.
85932         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85933
85934 2005-09-12  Derek Price  <derek@ximbiot.com>
85935
85936         * lib/gai_strerror.c: Include config.h when available.  Include
85937         getaddrinfo.h before other headers to test interface.
85938         Reported by Larry Jones <lawrence.jones@ugs.com>.
85939
85940 2005-09-12  Derek Price  <derek@ximbiot.com>
85941             Paul Eggert  <eggert@cs.ucla.edu>
85942
85943         * modules/glob (Files): Add glob-libc.h.
85944
85945 2005-09-12  Derek Price  <derek@ximbiot.com>
85946             Paul Eggert  <eggert@cs.ucla.edu>
85947
85948         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85949         glob_.h, glob-libc.h.
85950         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85951
85952 2005-09-12  Derek Price  <derek@ximbiot.com>
85953             Paul Eggert  <eggert@cs.ucla.edu>
85954
85955         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85956         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85957         protecting things that should be done only in gnulib contexts.
85958         * lib/glob_.h: New file, containing only the glob things needed for
85959         gnulib.
85960         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85961         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85962         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85963         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85964         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85965         and to respect the namespace rules better.
85966
85967 2005-09-08  Simon Josefsson  <jas@extundo.com>
85968
85969         * modules/socklen: New file.
85970
85971 2005-09-08  Simon Josefsson  <jas@extundo.com>
85972
85973         * m4/socklen.m4: New file.
85974
85975 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85976
85977         * modules/utimens (Files): Add m4/utimbuf.m4, since
85978         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85979         Reported by Sergey Poznyakoff.
85980
85981 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85982
85983         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85984         definitions, since that's the preferred style in glibc.
85985         Fix a minor spacing issue, and update copyright notice to match
85986         glibc's.
85987
85988 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85989
85990         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85991
85992 2005-09-06  Simon Josefsson  <jas@extundo.com>
85993
85994         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85995         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85996
85997 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85998
85999         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86000         warning.
86001
86002 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86003
86004         * config/srclist.txt: Add glibc bug 1302.
86005
86006 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86007
86008         Change bitset word type from unsigned int to unsigned long int,
86009         as this has better performance on typical 64-bit hosts.
86010         Port bitset code to hosts with unusual word sizes.
86011         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86012         (build_collating_symbol):
86013         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86014         argument is a bitset.  This is merely a style issue, but it makes
86015         it clearer that an entire array is expected.
86016         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86017         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86018         Port to the case where bitset_word is not the same as unsigned int.
86019         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86020         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86021         Likewise.
86022         * lib/regexec.c (check_dst_limits_calc_pos_1,
86023         check_subexp_matching_top):
86024         (build_trtable, group_nodes_into_DFAstates):
86025         Likewise.
86026         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86027         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86028         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86029         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86030         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86031         * lib/regcomp.c (optimize_subexps, lower_subexp):
86032         Work even if bitset_word has holes in its bitwise representation.
86033         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86034         * lib/regexec.c (check_dst_limits_calc_pos_1,
86035         check_subexp_matching_top):
86036         Likewise.
86037         * lib/regex_internal.c (re_string_reconstruct):
86038         Don't assume UCHAR_MAX == 255.
86039         * lib/regex_internal.h (bitset_set_all): Likewise.
86040         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86041         All uses changed.
86042         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86043         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86044         All uses changed.
86045         (BITSET_WORD_MAX): New macro.
86046         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86047         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86048         (bitset_empty, bitset_copy):
86049         Prefer sizeof (bitset) to multiplying it out ourselves.
86050         (bitset_not_merge): Remove; unused.
86051         (bitset_contain): Return bool, not unsigned int with one bit on.
86052         All callers changed.
86053         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86054         alignment than re_node_set; do this by defining a new internal
86055         type struct dests_alloc and using it to allocate memory.
86056
86057 2005-09-05  Bruno Haible  <bruno@clisp.org>
86058
86059         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86060         links.
86061
86062 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86063
86064         * modules/size_max (Makefile.am): Add size_max.h
86065
86066 2005-09-04  Derek Price  <derek@ximbiot.com>
86067
86068         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86069
86070 2005-09-03  Simon Josefsson  <jas@extundo.com>
86071
86072         * gnulib-tool: Fix typo.
86073
86074 2005-09-03  Simon Josefsson  <jas@extundo.com>
86075
86076         * config/srclist.txt: Add glibc bug 1293.
86077
86078 2005-09-03  Derek Price  <derek@ximbiot.com>
86079
86080         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86081         From Larry Jones <lawrence.jones@ugs.com>.
86082
86083 2005-09-02  Simon Josefsson  <jas@extundo.com>
86084
86085         * modules/socklen: New file.
86086
86087 2005-09-02  Simon Josefsson  <jas@extundo.com>
86088
86089         * modules/havelib: New module.
86090
86091         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86092         Use havelib.
86093
86094 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86095
86096         Check for arithmetic overflow when calculating sizes, to prevent
86097         some buffer-overflow issues.  These patches are conservative, in the
86098         sense that when I couldn't determine whether an overflow was possible,
86099         I inserted a run-time check.
86100         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86101         macros.
86102         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86103         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86104         (re_xnrealloc, re_x2nrealloc): New inline functions.
86105         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86106         parse_bracket_exp):
86107         (build_equiv_class, build_charclass): Check for arithmetic overflow
86108         in size expression calculations.
86109         * lib/regex_internal.c (re_string_realloc_buffers):
86110         (build_wcs_upper_buffer, re_node_set_add_intersect):
86111         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86112         (re_dfa_add_node, register_state): Likewise.
86113         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86114         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86115         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86116         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86117
86118 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86119
86120         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86121         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86122
86123 2005-09-02  Bruno Haible  <bruno@clisp.org>
86124
86125         Support for lib vs. lib64 distinction on biarch platforms.
86126         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86127         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86128         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86129
86130 2005-09-02  Bruno Haible  <bruno@clisp.org>
86131
86132         * gnulib-tool (import): In the other first-use case, provide defaults
86133         as well.
86134
86135 2005-09-02  Bruno Haible  <bruno@clisp.org>
86136
86137         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86138         patches not yet found in the latest gettext release.
86139
86140 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86141
86142         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86143         to avoid a collision with bits/local_lim.h in glibc.
86144         All uses changed.  Problem reported by Dmitry V. Levin in
86145         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86146
86147         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86148         bugs in int versus size_t comparisons.
86149         (re_string_context_at): Fix bug where the code assumed that
86150         Idx is signed.
86151
86152         Use bool where appropriate.
86153         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86154         All callers changed.
86155         (calc_eclosure_iter): Likewise, for ROOT arg.
86156         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86157         (build_charclass_op): Likewise, for NON_MATCH arg.
86158         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86159         (re_string_construct_common): Likewise, for ICASE arg.
86160         * lib/regexec.c (re_search_2_stub, re_search_stub):
86161         Likewise, for RET_LEN arg.
86162         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86163         (set_regs): Likewise, for FL_BACKTRACK arg.
86164         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86165         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86166         (calc_eclosure_iter, parse_bracket_exp):
86167         Use bool for internal variables that are booleans.
86168         * lib/regexec.c (re_search_internal, check_matching,
86169         proceed_next_node):
86170         (set_regs, build_sifted_states, sift_states_bkref):
86171         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86172         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86173         (find_collation_sequence_value):
86174         Likewise.
86175         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86176         (re_node_set_compare):
86177         Return bool, not int. All callers changed.
86178         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86179         (build_trtable, check_node_accept): Likewise.
86180         * lib/regex_internal.h: Include stdbool.h.
86181
86182         Fix bugs uncovered when converting to bool.
86183         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86184         failure instead of charging ahead blindly.
86185         * lib/regex_internal.c (register_state): Likewise.
86186         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86187         for freeing internal storage.
86188         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86189         bitset pieces used as boolean, to avoid undefined behavior
86190         on hosts that do int overflow checking.
86191
86192 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86193
86194         * config/srclist.txt: Add glibc bugs 1285-1287.
86195
86196 2005-09-01  Jim Meyering  <jim@meyering.net>
86197
86198         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86199         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86200         Require gl_STAT_MACROS, too.
86201
86202 2005-09-01  Bruno Haible  <bruno@clisp.org>
86203
86204         * gnulib-tool (import): In the first-use case, provide defaults.
86205
86206 2005-09-01  Bruno Haible  <bruno@clisp.org>
86207
86208         * gnulib-tool (func_import): Remove the .tmp files.
86209
86210 2005-09-01  Bruno Haible  <bruno@clisp.org>
86211
86212         * gnulib-tool (func_import): Fix handling of symbolic links.
86213
86214 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86215
86216         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86217         old glibc regex code mishandles strings longer than 2**31 bytes.
86218         This patch fixes this when the regex code is used in gnulib
86219         (i.e., outside glibc).
86220
86221         This patch should not affect the use of the regex code inside
86222         glibc.  No doubt this problem also needs to be handled for glibc
86223         as well, but the result will be an incompatible change to the
86224         glibc ABI, and the old ABI will have to be supported too.  That
86225         can be the the subject for another patch.
86226
86227         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86228         governing whether the rest of this patch is active.  By default,
86229         the macro is disabled and the patch has no effect.
86230         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86231         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86232         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86233         (re_match_2, re_set_registers): Use the new types.
86234         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86235         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86236         New macros.
86237         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86238         (re_string_context_at, bin_tree_t, re_dfastate_t):
86239         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86240         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86241         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86242         (re_string_char_size_at, re_string_wchar_at):
86243         (re_string_elem_size_at):
86244         Use the new types and macros to port to 64-bit hosts.
86245         Use unsigned types for internal values, so that the code
86246         mostly works even for arrays larger than SSIZE_MAX.
86247         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86248         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86249         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86250         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86251         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86252         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86253         (calc_inveclosure, parse_dup_op, build_range_exp):
86254         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86255         (fetch_number, create_token_tree, mark_opt_subexp):
86256         Likewise.
86257         * lib/regex_internal.c (re_string_construct_common,
86258         create_ci_newstate):
86259         (create_cd_newstate, re_string_allocate, re_string_construct):
86260         (re_string_realloc_buffers, build_wcs_upper_buffer):
86261         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86262         (re_string_reconstruct, re_string_peek_byte_case):
86263         (re_string_fetch_byte_case, re_string_context_at):
86264         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86265         (re_node_set_init_copy, re_node_set_add_intersect):
86266         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86267         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86268         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86269         (re_acquire_state, re_acquire_state_context, register_state):
86270         Likewise.
86271         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86272         search_cur_bkref_entry):
86273         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86274         (re_search_internal, re_search_2_stub, re_search_stub)
86275         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86276         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86277         (update_cur_sifted_state, check_dst_limits):
86278         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86279         (check_subexp_limits, sift_states_bkref, merge_state_array):
86280         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86281         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86282         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86283         (expand_bkref_cache, check_node_accept_bytes):
86284         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86285         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86286         (acquire_init_state_context, check_halt_node_context):
86287         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86288         (sift_states_backward, clean_state_log_if_needed):
86289         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86290         (find_recover_state, transit_state_sb, transit_state_mb):
86291         (transit_state_bkref, build_trtable, match_ctx_clean):
86292         Likewise.
86293         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86294         to work around an assumption that REG_MISSING is negative.
86295
86296         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86297         (seek_collating_symbol_entry) [defined _LIBC]:
86298         (lookup_collation_sequence_value) [defined _LIBC]:
86299         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86300         Use prototypes rather than old-style function definitions.
86301         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86302         (transit_state_sb) [0]:
86303         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86304
86305         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86306         rm_eo.
86307
86308         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86309         (optimize_subexps, lower_subexp):
86310         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86311         since the signed shift might overflow.  Use 1u<<31 instead.
86312         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86313         Likewise.
86314         * lib/regexec.c (check_dst_limits_calc_pos_1,
86315         check_subexp_matching_top): Likewise.
86316
86317         * lib/regcomp.c (optimize_subexps, lower_subexp):
86318         Use CHAR_BIT rather than 8, for clarity.
86319         * lib/regexec.c (check_dst_limits_calc_pos_1):
86320         (check_subexp_matching_top): Likewise.
86321         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86322         have to worry about portability issues when shifting it left.
86323         Remove no-longer-needed test for table_size > 0.
86324         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86325         in a word, as the resulting behavior is undefined.
86326         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86327         in one case, a <= should have been an <, and in another case the
86328         whole test was missing.
86329         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86330         the standard name CHAR_BIT.
86331         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86332         this is not true on one's complement and signed-magnitude hosts.
86333
86334         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86335         next_last_offset.
86336         (struct re_dfa_t): Remove unused member states_alloc.
86337         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86338
86339 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86340
86341         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86342         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86343         and large-file glibc and in 32-bit large-file Solaris.
86344
86345 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86346
86347         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86348         lengths fit in regoff_t; this isn't true if regoff_t is the same
86349         width as size_t.
86350         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86351         (= START + RANGE) instead of RANGE.  This avoids overflow
86352         problems when regoff_t is the same width as size_t.
86353         All callers changed.
86354         (re_search_2_stub): Check for overflow when adding the
86355         sizes of the two strings.
86356         (re_search_stub): Check for overflow when adding START
86357         to RANGE; if it occurs, substitute the extreme value.
86358
86359 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86360
86361         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86362
86363 2005-08-31  Jim Meyering  <jim@meyering.net>
86364
86365         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86366         a pointer-to-const.
86367         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86368         (register_state): Likewise.
86369         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86370         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86371         (group_nodes_into_DFAstates): Likewise.
86372
86373 2005-08-31  Jim Meyering  <jim@meyering.net>
86374
86375         * check-module: Add a FIXME comment.
86376
86377 2005-08-31  Eric Blake  <ebb9@byu.net>
86378
86379         * modules/unistd-safer (Files): Add unistd--.h.
86380         * modules/stdio-safer (Files): Add stdio--.h.
86381
86382 2005-08-31  Derek Price  <derek@ximbiot.com>
86383
86384         * lib/getdelim.c (getdelim): Return EOF on EOF.
86385         Reported by Larry Jones <lawrence.jones@ugs.com>.
86386
86387 2005-08-31  Bruno Haible  <bruno@clisp.org>
86388
86389         Avoid unnecessary diffs in the generated lib/Makefile.am.
86390         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86391         the generated files.
86392         (func_import): Don't set cmd.
86393
86394 2005-08-31  Bruno Haible  <bruno@clisp.org>
86395
86396         * lib/strstr.c: Include <stddef.h>, for NULL.
86397         * lib/strcasestr.c: Likewise.
86398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86399
86400 2005-08-31  Bruno Haible  <bruno@clisp.org>
86401
86402         * gnulib-tool: New option --macro-prefix.
86403         (func_import): Use macro_prefix.
86404         (import): Handle option --macro-prefix.
86405
86406 2005-08-31  Bruno Haible  <bruno@clisp.org>
86407
86408         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86409         Also use new variables cached_lgpl, cached_libtool.
86410
86411 2005-08-31  Bruno Haible  <bruno@clisp.org>
86412
86413         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86414         always instantiating them.
86415
86416 2005-08-31  Bruno Haible  <bruno@clisp.org>
86417
86418         * gnulib-tool (func_import): Read the previous cached settings
86419         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86420         earlier added by gnulib but are now dropped. Warn when a gnulib file
86421         overwrites a non-gnulib file.
86422
86423 2005-08-31  Bruno Haible  <bruno@clisp.org>
86424
86425         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86426         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86427         projects that don't keep autogenerated files in CVS. Put into
86428         actioncmd only the specified modules, not the transitive closure.
86429
86430 2005-08-31  Bruno Haible  <bruno@clisp.org>
86431
86432         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86433         Create directories that shall be filled.
86434         (import): Don't look for gl_* macros in configure.ac. Recurse across
86435         all directories containing a gnulib-cache.m4 files, if meaningful.
86436
86437 2005-08-31  Bruno Haible  <bruno@clisp.org>
86438
86439         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86440         (import): Set seen_libtool when we see gl_LIBTOOL.
86441
86442 2005-08-31  Bruno Haible  <bruno@clisp.org>
86443
86444         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86445         declaration macro definitions from generated gnulib.m4.
86446
86447 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86448
86449         * lib/iconvme.h: Add prototype for iconv_alloc.
86450
86451 2005-08-29  Simon Josefsson  <jas@extundo.com>
86452
86453         * lib/iconvme.c: Fix errno.
86454
86455 2005-08-29  Bruno Haible  <bruno@clisp.org>
86456
86457         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86458         that it works when the directory contains spaces.
86459
86460 2005-08-29  Bruno Haible  <bruno@clisp.org>
86461
86462         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86463
86464 2005-08-29  Bruno Haible  <bruno@clisp.org>
86465
86466         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86467         Emit more advice.
86468
86469 2005-08-29  Bruno Haible  <bruno@clisp.org>
86470         and Stepan Kasal  <kasal@ucw.cz>
86471
86472         * check-module: If more parameters are given, check each of them
86473         separately; add more exceptions, as noted by Jim Meyering.
86474         (check_module): New procedure.
86475         (%exempt_header): Now contains all exceptions.
86476
86477 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86478
86479         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86480
86481 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86482
86483         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86484
86485 2005-08-28  Bruno Haible  <bruno@clisp.org>
86486
86487         * m4/gnulib-tool.m4: New file.
86488
86489 2005-08-27  Jim Meyering  <jim@meyering.net>
86490
86491         * modules/unistd-safer (Files): Add pipe-safer.c.
86492         * modules/fcntl-safer (Files): Add creat-safer.c.
86493
86494 2005-08-27  Jim Meyering  <jim@meyering.net>
86495
86496         * m4/stdlib-safer.m4: New file.  From coreutils.
86497         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86498         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86499         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86500         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86501         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86502
86503 2005-08-27  Jim Meyering  <jim@meyering.net>
86504
86505         * lib/fopen-safer.c: Merge minor changes from coreutils.
86506         * lib/dup-safer.c: Likewise.
86507         * lib/fd-safer.c: Likewise.
86508
86509         Merge from coreutils.
86510         * lib/stdio--.h: New file.
86511         * lib/stdlib--.h: New file.
86512         * lib/mkstemp-safer.c: New file.
86513
86514         GNU tar needs these.
86515         * lib/pipe-safer.c: New file.
86516         * lib/creat-safer.c: New file.
86517         * lib/fcntl--.h (creat): Define to creat_safer.
86518         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86519         * lib/unistd--.h (pipe): Define to pipe_safer.
86520         * lib/unistd-safer.h: Declare pipe_safer.
86521
86522 2005-08-26  Simon Josefsson  <jas@extundo.com>
86523
86524         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86525         Haible <bruno@clisp.org>.
86526
86527 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86528
86529         * lib/regex_internal.h: Remove all references to
86530         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86531         or better.
86532         (bitset_not, bitset_merge, bitset_not_merge):
86533         (bitset_mask, re_string_allocate, re_string_construct):
86534         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86535         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86536         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86537         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86538         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86539         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86540         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86541         (re_acquire_state_context):
86542         Remove unnecessary forward decls.
86543         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86544         Put __attribute at function definition,
86545         now that the function decl has been removed.
86546         * lib/regex_internal.c (re_string_peek_byte_case):
86547         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86548         Likewise.
86549
86550 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86551
86552         * m4/regex.m4: Add AC_PREREQ(2.50).
86553         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86554
86555 2005-08-25  Simon Josefsson  <jas@extundo.com>
86556
86557         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86558         __fsetlocking.
86559
86560 2005-08-25  Simon Josefsson  <jas@extundo.com>
86561
86562         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86563         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86564         GLIBC specific code.
86565
86566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86567
86568         Make regex safe for g++.  This fixes one real bug (an "err"
86569         that should have been "*err").  g++ problem reported by
86570         Sam Steingold.
86571         * lib/regex_internal.h (re_calloc): New macro, consistent with
86572         re_malloc etc.  All callers of calloc changed to use re_calloc.
86573         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86574         not int.  All callers changed.
86575         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86576         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86577         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86578         (find_recover_state): Change "err" to "*err"; this fixes what
86579         appears to be a real bug.
86580         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86581         versus int.
86582
86583 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86584
86585         * modules/regex (Depends-on): Add malloc, since the code
86586         assumes that !malloc(0) means failure.
86587
86588 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86589
86590         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86591
86592         alloca modernization/simplification for regex.
86593         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86594         needs to be at the start of the file, and can be moved into
86595         regex_internal.h and simplified.
86596         * lib/regex_internal.h: Include <alloca.h>.
86597         (__libc_use_alloca) [!defined _LIBC]: New macro.
86598         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86599         now works outside glibc.
86600
86601 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86602
86603         * config/srclist.txt: Add glibc bugs 1241, 1245.
86604
86605 2005-08-25  Jim Meyering  <jim@meyering.net>
86606
86607         * lib/open-safer.c: Include <config.h>.
86608         Otherwise, we'd lose LARGEFILE support in any file using
86609         e.g. "fcntl--.h"
86610
86611 2005-08-25  Bruno Haible  <bruno@clisp.org>
86612
86613         * m4/minmax.m4: Require autoconf 2.52.
86614         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86615         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86616         alternatives of translit over the alphabet.
86617         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86618
86619 2005-08-24  Simon Josefsson  <jas@extundo.com>
86620
86621         * tests/test-getpass.c: New file.
86622
86623 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86624
86625         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86626         for GNU regex features.
86627
86628 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86629
86630         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86631         * lib/regex.h (regerror): Likewise.
86632
86633         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86634         requires this.  (The code never needed it.)
86635
86636         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86637         All uses of recently-renamed identifiers changed to use the new,
86638         POSIX-compliant names.  The code will build and run just fine
86639         without these changes, but it's better to eat our own dog food
86640         and use the standard-conforming names.
86641
86642         * lib/regex.h: Fix a multitude of POSIX name space violations.
86643         These changes have an effect only for programs that define
86644         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86645         do not change anything for programs compiled in the normal way.
86646         Also, there is no effect on the ABI.
86647
86648         (_REGEX_SOURCE): New macro.
86649         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86650         defined and _GNU_SOURCE is not; this fixes a name space violation.
86651
86652         Rename the following macros to obey POSIX requirements.
86653         The old names are still visible as macros if _REGEX_SOURCE is defined.
86654         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86655         RE_BACKSLASH_ESCAPE_IN_LISTS.
86656         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86657         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86658         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86659         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86660         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86661         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86662         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86663         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86664         (REG_INTERVALS): renamed from RE_INTERVALS.
86665         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86666         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86667         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86668         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86669         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86670         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86671         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86672         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86673         RE_UNMATCHED_RIGHT_PAREN_ORD.
86674         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86675         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86676         (REG_DEBUG): renamed from RE_DEBUG.
86677         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86678         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86679         unusual, since we can't clash with the POSIX REG_ICASE.
86680         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86681         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86682         (REG_NO_SUB): renamed from RE_NO_SUB.
86683         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86684         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86685         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86686         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86687         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86688         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86689         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86690         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86691         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86692         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86693         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86694         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86695         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86696         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86697         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86698         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86699         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86700         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86701         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86702         (REG_FIXED): Renamed from REGS_FIXED.
86703         (REG_NREGS): Renamed from RE_NREGS.
86704
86705         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86706         of other REG_* macros, since POSIX says the user is allowed to
86707         #undef these macros selectively.
86708
86709         (reg_errcode_t): Update comment stating what other tables need
86710         to be consistent.
86711
86712         Rename the following enum values to obey POSIX requirements.
86713         The old names are still visible as macros.
86714         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86715         is not defined, since GNU is supposed to be a superset of POSIX as
86716         much as possible, and since we want reg_errcode_t to be a signed
86717         type for implementation consistency.
86718         (_REG_NOERROR): Renamed from REG_NOERROR.
86719         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86720         (_REG_BADPAT): Renamed from REG_BADPAT.
86721         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86722         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86723         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86724         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86725         (_REG_EBRACK): Renamed from REG_EBRACK.
86726         (_REG_EPAREN): Renamed from REG_EPAREN.
86727         (_REG_EBRACE): Renamed from REG_EBRACE.
86728         (_REG_BADBR): Renamed from REG_BADBR.
86729         (_REG_ERANGE): Renamed from REG_ERANGE.
86730         (_REG_ESPACE): Renamed from REG_ESPACE.
86731         (_REG_BADRPT): Renamed from REG_BADRPT.
86732         (_REG_EEND): Renamed from REG_EEND.
86733         (_REG_ESIZE): Renamed from REG_ESIZE.
86734         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86735         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86736         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86737         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86738         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86739
86740         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86741         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86742         changed.  But support the old name if the new one is not defined
86743         and if _REGEX_SOURCE.
86744
86745         Change the following member names in struct re_pattern_buffer.
86746         The old names are still supported if !_REGEX_SOURCE.
86747         The new names are always supported, regardless of _REGEX_SOURCE.
86748         (re_buffer): Renamed from buffer.
86749         (re_allocated): Renamed from allocated.
86750         (re_used): Renamed from used.
86751         (re_syntax): Renamed from syntax.
86752         (re_fastmap): Renamed from fastmap.
86753         (re_translate): Renamed from translate.
86754         (re_can_be_null): Renamed from can_be_null.
86755         (re_regs_allocated): Renamed from regs_allocated.
86756         (re_fastmap_accurate): Renamed from fastmap_accurate.
86757         (re_no_sub): Renamed from no_sub.
86758         (re_not_bol): Renamed from not_bol.
86759         (re_not_eol): Renamed from not_eol.
86760         (re_newline_anchor): Renamed from newline_anchor.
86761
86762         Change the following member names in struct re_registers.
86763         The old names are still supported if !_REGEX_SOURCE.
86764         The new names are always supported, regardless of _REGEX_SOURCE.
86765         (rm_num_regs): Renamed from num_regs.
86766         (rm_start): Renamed from start.
86767         (rm_end): Renamed from end.
86768
86769         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86770         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86771         Prepend __ to parameter names.
86772
86773         Undo yesterday's changes.
86774
86775 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86776
86777         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86778         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86779         lib/regex.c.
86780
86781 2005-08-24  Jim Meyering  <jim@meyering.net>
86782
86783         Sync from coreutils.
86784         * m4/fcntl-safer.m4: New file.
86785
86786         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86787         and object files for this module.
86788
86789 2005-08-24  Jim Meyering  <jim@meyering.net>
86790
86791         Sync from coreutils.
86792         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86793
86794 2005-08-24  Jim Meyering  <jim@meyering.net>
86795
86796         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86797         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86798
86799 2005-08-24  Jim Meyering  <jim@meyering.net>
86800
86801         * modules/fcntl-safer: New module.
86802         * modules/fts (Depends-on): Add fcntl-safer.
86803         * MODULES.html.sh (File descriptor based Input/Output):
86804         Add fcntl-safer.
86805
86806 2005-08-24  Bruno Haible  <bruno@clisp.org>
86807
86808         Support for unit test modules.
86809         * modules/README: Mention tests modules.
86810         * modules/TEMPLATE-TESTS: New file.
86811         * gnulib-tool: New options --extract-tests-module, --with-tests and
86812         --tests-base (unused for the moment).
86813         (testsbase, inctests): New variables.
86814         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86815         (func_verify_module): Exclude TEMPLATE-TESTS.
86816         (func_verify_nontests_module, func_verify_tests_module): New functions.
86817         (func_get_dependencies): Add implicit dependency for tests modules.
86818         (func_get_tests_module): New function.
86819         (func_modules_transitive_closure): When --with-tests was specified,
86820         include the unit tests as well, unless explicitly avoided.
86821         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86822         (func_emit_tests_Makefile_am): New function.
86823         (func_create_testdir): When --with-tests was specified, emit a
86824         tests/ directory.
86825         * MODULES.html.sh (Future developments): Update.
86826
86827 2005-08-24  Bruno Haible  <bruno@clisp.org>
86828
86829         * modules/tls-tests: New file.
86830         * tests/test-tls.c: New file, from GNU gettext.
86831
86832 2005-08-24  Bruno Haible  <bruno@clisp.org>
86833
86834         * modules/lock-tests: New file.
86835         * tests/test-lock.c: New file, from GNU gettext.
86836
86837 2005-08-24  Bruno Haible  <bruno@clisp.org>
86838
86839         * lib/lock.h: Add multiple inclusion guard.
86840         * lib/tls.h: Add multiple inclusion guard.
86841
86842 2005-08-24  Bruno Haible  <bruno@clisp.org>
86843
86844         * gnulib-tool: Add support for the --aux-dir option to
86845         --create-testdir, --create-megatestdir, --test, --megatest.
86846         (func_create_testdir, func_create_megatestdir): Optionally emit a
86847         AC_CONFIG_AUX_DIR directive.
86848         (create-testdir, create-megatestdir, test, megatest): Provide a
86849         default value for $auxdir.
86850
86851 2005-08-24  Bruno Haible  <bruno@clisp.org>
86852
86853         * gnulib-tool (import): Use compound statement instead of subshell
86854         where possible.
86855
86856 2005-08-24  Bruno Haible  <bruno@clisp.org>
86857
86858         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86859
86860 2005-08-24  Bruno Haible  <bruno@clisp.org>
86861
86862         * gnulib-tool (func_version): Update.
86863
86864 2005-08-24  Bruno Haible  <bruno@clisp.org>
86865
86866         * gnulib-tool (func_import, func_create_testdir,
86867         func_create_megatestdir): Quote all autoconf macro arguments.
86868
86869 2005-08-24  Bruno Haible  <bruno@clisp.org>
86870
86871         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86872         option --force, because --force causes the aclocal.m4 of each
86873         subdirectory to be newer than the corresponding config.h.in.
86874
86875 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86876
86877         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86878         All contents moved to gl_REGEX.
86879         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86880         assume that it does.
86881
86882 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86883
86884         * lib/regex.h (REG_NOSYS)
86885         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86886         Define, since POSIX requires it as of 2001.
86887         (_REG_ENOSYS)
86888         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86889         New private symbol, used to keep the enum signed in all cases.
86890         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86891         Youngman in
86892         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86893
86894         * lib/regex_internal.c (re_string_skip_chars, register_state):
86895         (calc_state_hash):
86896         Remove forward decls; no longer needed now that we use prototypes.
86897         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86898         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86899         (clean_state_log_if_needed): Likewise.
86900
86901 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86902
86903         * config/srclist.txt: Add glibc bugs 1231-1233.
86904
86905 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86906
86907         Fix problems reported by Sam Steingold in
86908         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86909         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86910         assumed that reg_errcode_t is a signed type, which is not
86911         necessarily true if _XOPEN_SOURCE is not defined.
86912         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86913         since some compilers warn about it otherwise.
86914
86915 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86916
86917         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86918         (init_word_char, create_initial_state, duplicate_node_closure):
86919         (fetch_token, peek_token_bracket, build_range_exp):
86920         (build_collating_symbol): Remove forward decls; no longer needed
86921         now that we use prototypes.
86922
86923         * lib/regcomp.c:
86924         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86925         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86926         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86927         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86928         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86929         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86930         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86931         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86932         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86933         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86934         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86935         (build_charclass, build_charclass_op, fetch_number, create_tree):
86936         (create_token_tree, mark_opt_subexp, duplicate_tree):
86937         Use prototypes rather than old-style definitions.
86938
86939         * lib/regex_internal.c:
86940         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86941         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86942         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86943         (re_string_reconstruct, re_string_peek_byte_case):
86944         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86945         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86946         (re_node_set_init_copy, re_node_set_add_intersect):
86947         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86948         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86949         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86950         (re_acquire_state, re_acquire_state_context, register_state):
86951         (create_ci_newstate, create_cd_newstate, free_state):
86952         Likewise.
86953         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86954         re_search_2):
86955         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86956         (re_search_internal, prune_impossible_nodes):
86957         (acquire_init_state_context, check_matching, static):
86958         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86959         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86960         (update_regs, sift_states_backward, build_sifted_states):
86961         (clean_state_log_if_needed, merge_state_array):
86962         (update_cur_sifted_state, add_epsilon_src_nodes):
86963         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86964         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86965         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86966         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86967         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86968         (check_arrival, check_arrival_add_next_nodes):
86969         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86970         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86971         (check_node_accept_bytes, check_node_accept, extend_buffers):
86972         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86973         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86974         (sift_ctx_init):
86975         Likewise.
86976
86977         * lib/regex_internal.h:
86978         (re_string_allocate, re_string_construct, re_string_reconstruct):
86979         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86980         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86981         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86982         (re_string_context_at, re_string_peek_byte_case):
86983         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86984         is defined, since we now use prototypes always.
86985
86986         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86987         C89 or better.  All uses removed.
86988
86989 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86990
86991         * config/srclist.txt: Add glibc bugs 1220-1227.
86992
86993 2005-08-20  Jim Meyering  <jim@meyering.net>
86994
86995         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86996         of unused local, dfa.
86997
86998 2005-08-20  Bruno Haible  <bruno@clisp.org>
86999
87000         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87001
87002 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87003
87004         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87005         (re_node_set_insert_last, re_dfa_add_node):
87006         Rename local variables to avoid GCC shadowing warnings.
87007
87008 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87009
87010         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87011         [defined lint]: Suppress bogus uninitialized-variable warnings.
87012
87013         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87014         and let the caller return REG_ESPACE if out of space.  This
87015         removes an uninitialied-variable warning with GCC 4.0.1, and also
87016         avoids taking the address of a local variable.  All callers
87017         changed.
87018
87019 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87020
87021         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87022         $LIBCSRC/posix/regexec.c.
87023         Add glibc bug 1217 for regcomp.c.
87024
87025 2005-08-19  Jim Meyering  <jim@meyering.net>
87026
87027         * lib/regexec.c (proceed_next_node): Redo local variables to
87028         avoid GCC shadowing warnings.
87029
87030 2005-08-18  Bruno Haible  <bruno@clisp.org>
87031
87032         * lib/strstr.c (strstr): Fix return value in multibyte case.
87033         * lib/strcasestr.c (strcasestr): Likewise.
87034
87035 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87036
87037         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87038
87039 2005-08-17  Jim Meyering  <jim@meyering.net>
87040
87041         Make the %s format (seconds since the epoch) work for a negative
87042         number and when used with a zero-padded field width, e.g. %015s.
87043
87044         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87045         label so that it precedes the code to set `digits'.  Otherwise,
87046         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87047         print `00-22'.  Now, it prints `-0022', as it should.
87048
87049 2005-08-17  Bruno Haible  <bruno@clisp.org>
87050
87051         * modules/strstr (Files): Add m4/mbrtowc.m4.
87052         (Depends-on): Add mbuiter.
87053
87054 2005-08-17  Bruno Haible  <bruno@clisp.org>
87055
87056         * modules/strcasestr: New file.
87057         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87058         strcasestr.
87059
87060 2005-08-17  Bruno Haible  <bruno@clisp.org>
87061
87062         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87063
87064 2005-08-17  Bruno Haible  <bruno@clisp.org>
87065
87066         * modules/mbuiter: New file.
87067         * MODULES.html.sh (Extended multibyte and wide character utilities):
87068         Add mbuiter.
87069
87070 2005-08-17  Bruno Haible  <bruno@clisp.org>
87071
87072         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87073         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87074
87075 2005-08-17  Bruno Haible  <bruno@clisp.org>
87076
87077         * m4/strcasestr.m4: New file.
87078
87079 2005-08-17  Bruno Haible  <bruno@clisp.org>
87080
87081         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87082         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87083
87084 2005-08-17  Bruno Haible  <bruno@clisp.org>
87085
87086         * lib/strcasestr.h: New file.
87087         * lib/strcasestr.c: New file.
87088
87089 2005-08-17  Bruno Haible  <bruno@clisp.org>
87090
87091         * lib/strcasecmp.c: Use mbuiter.h.
87092
87093 2005-08-17  Bruno Haible  <bruno@clisp.org>
87094
87095         * lib/mbuiter.h: New file.
87096
87097 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87098
87099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87100         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87101         and gl_GETOPT are both invoked via different paths (as happens
87102         with GNU tar CVS because it uses both argp and getopt), the former
87103         wins.
87104
87105 2005-08-16  Bruno Haible  <bruno@clisp.org>
87106
87107         * modules/tls: New file.
87108         * MODULES.html.sh (Multithreading): Add tls.
87109
87110 2005-08-16  Bruno Haible  <bruno@clisp.org>
87111
87112         * modules/strnlen1: New file.
87113         * MODULES.html.sh (String handling): Add strnlen1.
87114
87115 2005-08-16  Bruno Haible  <bruno@clisp.org>
87116
87117         * modules/strcase (Files): Add m4/mbrtowc.m4.
87118         (Depends-on): Add strnlen1, mbchar.
87119
87120 2005-08-16  Bruno Haible  <bruno@clisp.org>
87121
87122         * modules/mbiter: New file.
87123         * MODULES.html.sh (Extended multibyte and wide character utilities):
87124         Add mbiter.
87125
87126 2005-08-16  Bruno Haible  <bruno@clisp.org>
87127
87128         * modules/mbfile: New file.
87129         * MODULES.html.sh (Extended multibyte and wide character utilities):
87130         Add mbfile.
87131
87132 2005-08-16  Bruno Haible  <bruno@clisp.org>
87133
87134         * modules/mbchar: New file.
87135         * MODULES.html.sh (Extended multibyte and wide character utilities):
87136         New section.
87137
87138 2005-08-16  Bruno Haible  <bruno@clisp.org>
87139
87140         * m4/tls.m4: New file, from GNU gettext.
87141
87142 2005-08-16  Bruno Haible  <bruno@clisp.org>
87143
87144         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87145         always.
87146         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87147
87148 2005-08-16  Bruno Haible  <bruno@clisp.org>
87149
87150         * m4/mbiter.m4: New file.
87151
87152 2005-08-16  Bruno Haible  <bruno@clisp.org>
87153
87154         * m4/mbfile.m4: New file.
87155
87156 2005-08-16  Bruno Haible  <bruno@clisp.org>
87157
87158         * m4/mbchar.m4: New file.
87159
87160 2005-08-16  Bruno Haible  <bruno@clisp.org>
87161
87162         * lib/tls.h: New file, from GNU gettext.
87163         * lib/tls.c: New file, from GNU gettext.
87164
87165 2005-08-16  Bruno Haible  <bruno@clisp.org>
87166
87167         * lib/strnlen1.h: New file.
87168         * lib/strnlen1.c: New file.
87169
87170 2005-08-16  Bruno Haible  <bruno@clisp.org>
87171
87172         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87173         (mbi_init): Update.
87174         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87175         NUL byte, not after it.
87176
87177 2005-08-16  Bruno Haible  <bruno@clisp.org>
87178
87179         * lib/strcase.h (strcasecmp): Add note in comments.
87180         * lib/strncasecmp.c: Use code from strcasecmp.c.
87181         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87182         (strcasecmp): Work correctly in multibyte locales.
87183
87184 2005-08-16  Bruno Haible  <bruno@clisp.org>
87185
87186         * lib/mbiter.h: New file.
87187
87188 2005-08-16  Bruno Haible  <bruno@clisp.org>
87189
87190         * lib/mbfile.h: New file.
87191
87192 2005-08-16  Bruno Haible  <bruno@clisp.org>
87193
87194         * lib/mbchar.h: New file.
87195         * lib/mbchar.c: New file.
87196
87197 2005-08-16  Bruno Haible  <bruno@clisp.org>
87198
87199         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87200         the valid ones. Makes the comparison operations transitive:
87201         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87202         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87203
87204 2005-08-15  Simon Josefsson  <jas@extundo.com>
87205
87206         * modules/ssize_t (License): Change to 'unlimited'.
87207
87208         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87209
87210 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87211
87212         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87213         Add comments for each pending glibc patch.
87214
87215 2005-08-15  Bruno Haible  <bruno@clisp.org>
87216
87217         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87218         __cplusplus is defined.
87219
87220 2005-08-14  Jim Meyering  <jim@meyering.net>
87221
87222         Sync from coreutils.
87223
87224         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87225         Use the hash-table-based cycle-detection code not just when
87226         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87227         Reported by James Youngman in
87228         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87229         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87230         FTS_TIGHT_CYCLE_CHECK.
87231         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87232         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87233         once again.
87234         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87235         * lib/fts.c (fd_safer): Remove decl.
87236         Include fcntl--.h rather than unistd-safer.h
87237         (fts_safe_changedir): Don't call fd_safer; no longer needed
87238         now that we include fcntl--.h.
87239
87240 2005-08-12  Simon Josefsson  <jas@extundo.com>
87241
87242         * modules/getndelim2: Use ssize_t module.
87243         * modules/getnline: Likewise.
87244         * modules/safe-read: Likewise.
87245         * modules/xreadlink: Likewise.
87246
87247         * modules/ssize_t: New file.
87248
87249 2005-08-12  Simon Josefsson  <jas@extundo.com>
87250
87251         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87252
87253 2005-08-12  Simon Josefsson  <jas@extundo.com>
87254
87255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87256         ssize_t.
87257
87258 2005-08-12  Simon Josefsson  <jas@extundo.com>
87259
87260         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87261         readline, getdelim and check_version.
87262         (Support for systems lacking ISO C 99: Sizes of integer types):
87263         Add size_max.
87264
87265 2005-08-12  Bruno Haible  <bruno@clisp.org>
87266
87267         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87268
87269 2005-08-11  Simon Josefsson  <jas@extundo.com>
87270
87271         * modules/readline: New file.
87272
87273         * modules/strnlen (Files): Add strnlen.h.
87274
87275 2005-08-11  Simon Josefsson  <jas@extundo.com>
87276
87277         * m4/readline.m4: New file.
87278
87279 2005-08-11  Simon Josefsson  <jas@extundo.com>
87280
87281         * lib/readline.h, readline.c: New file.
87282
87283 2005-08-11  Simon Josefsson  <jas@extundo.com>
87284
87285         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87286         gl_AVOID.
87287
87288 2005-08-11  Bruno Haible  <bruno@clisp.org>
87289
87290         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87291
87292 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87293
87294         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87295
87296 2005-08-10  Simon Josefsson  <jas@extundo.com>
87297
87298         * tests/test-iconvme.c: New file.
87299
87300 2005-08-10  Simon Josefsson  <jas@extundo.com>
87301
87302         * m4/strnlen.m4: New file.
87303
87304         * m4/strndup.m4: Don't check for strnlen declaration, done in
87305         strnlen.m4.
87306
87307 2005-08-10  Simon Josefsson  <jas@extundo.com>
87308
87309         * lib/strndup.c: Use strnlen.h.
87310
87311         * lib/strnlen.h: New file.
87312
87313 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87314
87315         * README: Typos.
87316
87317 2005-08-02  Simon Josefsson  <jas@extundo.com>
87318
87319         * modules/readline: New file.
87320
87321 2005-08-02  Simon Josefsson  <jas@extundo.com>
87322
87323         * modules/getdelim: New file.
87324
87325         * modules/getline: Rewrite, don't use getndelim2.
87326
87327 2005-08-02  Simon Josefsson  <jas@extundo.com>
87328
87329         * m4/getline.m4: Separate out getdelim stuff into separate module.
87330
87331         * m4/getdelim.m4: New file.
87332
87333 2005-08-02  Simon Josefsson  <jas@extundo.com>
87334
87335         * lib/getline.h, getline.c: Rewrite.
87336
87337         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87338
87339 2005-07-31  Bruno Haible  <bruno@clisp.org>
87340
87341         * lib/lock.h (gl_lock_initializer): New macro.
87342         (gl_lock_define_initialized): Use it.
87343         (gl_rwlock_initializer): New macro.
87344         (gl_rwlock_define_initialized): Use it.
87345         (gl_recursive_lock_initializer): New macro.
87346         (gl_recursive_lock_define_initialized): Use it.
87347
87348 2005-07-30  Karl Berry  <karl@gnu.org>
87349
87350         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87351         Report from Ben Pfaff, regarding getopt.
87352
87353 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87354
87355         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87356         normal way.
87357         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87358         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87359         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87360         (gl_GETOPT): Use the new macros.  Most of the implementation
87361         is moved to the new macros.  This is for programs like Emacs
87362         that don't want all the functionality of gl_GETOPT.
87363
87364 2005-07-26  Bruno Haible  <bruno@clisp.org>
87365
87366         * m4/lock.m4: Update from GNU gettext.
87367
87368 2005-07-26  Bruno Haible  <bruno@clisp.org>
87369
87370         * lib/lock.h: Update from GNU gettext.
87371         * lib/lock.c: Update from GNU gettext.
87372
87373 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87374
87375         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87376         obsolescent AC_TRY_RUN.  Include the default includes files, for
87377         'exit'.
87378
87379 2005-07-24  Bruno Haible  <bruno@clisp.org>
87380
87381         * modules/visibility: New file.
87382         * MODULES.html.sh (Misc): Add visibility.
87383
87384 2005-07-24  Bruno Haible  <bruno@clisp.org>
87385
87386         * m4/visibility.m4: New file.
87387
87388 2005-07-24  Bruno Haible  <bruno@clisp.org>
87389
87390         * doc/visibility.texi: New file.
87391
87392 2005-07-22  Bruno Haible  <bruno@clisp.org>
87393
87394         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87395         $(ALLOCA_H), redundant through BUILT_SOURCES.
87396         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87397         redundant through BUILT_SOURCES.
87398         * modules/byteswap (Makefile.am): Remove explicit dependency on
87399         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87400         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87401         $(FNMATCH_H), redundant through BUILT_SOURCES.
87402         * modules/getopt (Makefile.am): Remove explicit dependency on
87403         $(GETOPT_H), redundant through BUILT_SOURCES.
87404         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87405         redundant through BUILT_SOURCES.
87406         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87407         redundant through BUILT_SOURCES.
87408         * modules/stdbool (Makefile.am): Remove explicit dependency on
87409         $(STDBOOL_H), redundant through BUILT_SOURCES.
87410         * modules/stdint (Makefile.am): Remove explicit dependency on
87411         $(STDINT_H), redundant through BUILT_SOURCES.
87412         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87413         Remove explicit dependency on $(SYSEXITS_H).
87414         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87415
87416 2005-07-18  Simon Josefsson  <jas@extundo.com>
87417
87418         * lib/check-version.c (check_version): Accept identical versions too.
87419
87420 2005-07-18  Bruno Haible  <bruno@clisp.org>
87421
87422         * modules/lock: New file.
87423         * MODULES.html.sh (Multithreading): New section.
87424
87425 2005-07-18  Bruno Haible  <bruno@clisp.org>
87426
87427         * m4/lock.m4: New file, from GNU gettext.
87428
87429 2005-07-18  Bruno Haible  <bruno@clisp.org>
87430
87431         * lib/lock.h: New file, from GNU gettext.
87432         * lib/lock.c: New file, from GNU gettext.
87433
87434 2005-07-18  Bruno Haible  <bruno@clisp.org>
87435
87436         * lib/lock.h (gl_once_t): New type.
87437         (gl_once_define, gl_once): New macros.
87438         * lib/lock.c (fresh_once): New variable.
87439         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87440         functions.
87441
87442 2005-07-16  Simon Josefsson  <jas@extundo.com>
87443
87444         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87445         workaround, suggested by Bruno.
87446
87447 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87448
87449         * modules/xalloc (Depends-on): Add xalloc-die.
87450         * modules/xvasprintf (Depends-on): Add xalloc-die.
87451
87452 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87453
87454         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87455         with a minor change.
87456
87457 2005-07-15  Bruno Haible  <bruno@clisp.org>
87458
87459         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87460         When using lib/poll.c, define poll as rpl_poll.
87461
87462 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87463
87464         * modules/argp (Depends-on): Remove unlocked-io.
87465
87466 2005-07-14  Derek Price  <derek@ximbiot.com>
87467
87468         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87469         for glob symlink bug.
87470
87471 2005-07-14  Bruno Haible  <bruno@clisp.org>
87472
87473         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87474         Instead, test for *_unlocked function declarations directly.
87475
87476 2005-07-11  Simon Josefsson  <jas@extundo.com>
87477
87478         * modules/size_max: New file.
87479
87480         * modules/xsize: Depend on size_max module for size_max.m4.
87481
87482 2005-07-11  Simon Josefsson  <jas@extundo.com>
87483
87484         * lib/size_max.h: New file.
87485
87486 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87487
87488         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87489         copyright symbol and the year.
87490         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87491         (version_etc_va): Use parameterized copyright notice.
87492         Reword to conform to the current GNU coding standards.
87493
87494 2005-07-11  Karl Berry  <karl@gnu.org>
87495
87496         * doc/gnulib.texi (Quoting): new node.
87497         (Initial import): more info, from Patrice.
87498
87499 2005-07-11  Bruno Haible  <bruno@clisp.org>
87500
87501         * gnulib-tool (func_usage): Document option --avoid.
87502         (Command line options): Handle --avoid.
87503         (func_acceptable): New function.
87504         (func_modules_transitive_closure): Use it.
87505
87506 2005-07-11  Bruno Haible  <bruno@clisp.org>
87507
87508         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87509         Reported by Jim Meyering.
87510
87511 2005-07-10  Bruno Haible  <bruno@clisp.org>
87512
87513         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87514         Needed when size_t is smaller than 'unsigned int'.
87515         Reported by Paul Eggert.
87516
87517 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87518
87519         * modules/argp (Depends-on): Add unlocked-io
87520
87521 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87522
87523         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87524         block of defines.
87525
87526 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87527
87528         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87529         fix now.
87530
87531 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87532         and Paul Eggert  <eggert@cs.ucla.edu>
87533
87534         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87535         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87536
87537 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87538
87539         * modules/regex (Files): Add lib/regex_internal.c,
87540         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87541         (Depends-on): Add extensions.
87542         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87543
87544 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87545
87546         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87547         pathconf.
87548         * m4/same.m4 (gl_SAME): Likewise.
87549         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87550
87551         * m4/regex.m4: Adjust to new libc regex implementation.
87552         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87553         all the .c and .h parts of (the new) regex.
87554         Quote the m4 stuff better.
87555         Check for RE_ICASE bug of old gnulib.
87556         Check for REG_STARTEND of recent libc.
87557         Rename local variables from jm_* to gl_*.
87558         Quote operand of "test -f".
87559         Say "recent enough" version of libc, not "version 2".
87560         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87561         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87562         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87563         Remove check for btowc, isascii.
87564         Require AM_LANGINFO_CODESET.
87565
87566 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87567
87568         * lib/regex.c, regex.h: Sync from libc.
87569         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87570         * lib/regexec.c:
87571         New files, synced from libc, except that regex_internal.h
87572         currently has a small porting fix.
87573
87574 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87575
87576         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87577         regex_internal.c, regexec.c.
87578         Add regex_internal.h too, but as a comment, since the libc version
87579         is currently broken in gnulib mode.
87580
87581 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87582
87583         Support programs like Emacs that use gnulib but not gettext.
87584         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87585         * modules/gettext-h: New file.
87586         * modules/gettext (Files): Remove lib/gettext.h.
87587         (Depends-on): Add gettext-h.
87588         (Makefile.am): Remove lib_SOURCES.
87589         * modules/argmatch, modules/c-stack, modules/closeout:
87590         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87591         * modules/execute, modules/file-type, modules/getaddrinfo:
87592         * modules/getopt, modules/human, modules/javacomp:
87593         * modules/javaexec, modules/mkdir-p, modules/obstack:
87594         * modules/openat, modules/pagealign_alloc, modules/pipe:
87595         * modules/quotearg, modules/regex, modules/rpmatch:
87596         * modules/unicodeio, modules/userspec, modules/version-etc:
87597         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87598         * modules/xsetenv:
87599         Depend on gettext-h, not gettext.
87600
87601 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87602
87603         * gnulib-tool (func_import): Add support for 'public domain' license.
87604         * modules/alloca, modules/atexit, modules/memmove:
87605         Now public domain, not GPL.
87606         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87607         * modules/realloc, modules/strerror, modules/strtod:
87608         Now LGPL, not GPL.
87609
87610 2005-07-05  Bruno Haible  <bruno@clisp.org>
87611
87612         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87613         autoconf CVS. Needed for mingw.
87614
87615 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87616
87617         Remove the dependency of the strftime module on the tzset module.
87618         * modules/strftime (Depends-on): Remove dependency on tzset.
87619
87620 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87621
87622         Remove the dependency of the strftime module on the tzset module.
87623         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87624         gl_FUNC_TZSET_CLOBBER.
87625
87626 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87627
87628         Remove the dependency of the strftime module on the tzset module.
87629         * lib/strftime.c (my_strftime)
87630         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87631         Copy the input structure, to work around some of the bug with
87632         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87633         Solaris releases, you should also use the tzset module, but we won't
87634         require it as a dependency any more since we don't want LGPLed code
87635         to depend on GPLed code.
87636
87637 2005-07-02  Jim Meyering  <jim@meyering.net>
87638
87639         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87640         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87641         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87642         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87643
87644 2005-07-02  Jim Meyering  <jim@meyering.net>
87645
87646         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87647
87648 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87649
87650         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87651         declares only 'struct timespec;' (!).
87652
87653 2005-07-01  Jim Meyering  <jim@meyering.net>
87654
87655         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87656         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87657         * lib/save-cwd.c, tempname.c:
87658         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87659         and don't include <sys/file.h>).
87660
87661 2005-06-29  Jim Meyering  <jim@meyering.net>
87662
87663         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87664         type name.  Use the variable name instead.
87665         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87666         Likewise.
87667
87668 2005-06-28  Simon Josefsson  <jas@extundo.com>
87669
87670         * modules/check-version (Files): Add check-version.m4.
87671
87672 2005-06-28  Simon Josefsson  <jas@extundo.com>
87673
87674         * m4/check-version.m4: New file, suggested by Jim Meyering
87675         <jim@meyering.net>.
87676
87677 2005-06-28  Simon Josefsson  <jas@extundo.com>
87678
87679         * lib/check-version.h, lib/check-version.c: New files.
87680
87681 2005-06-28  Simon Josefsson  <jas@extundo.com>
87682
87683         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87684         collision with global variable.  Better indentation.  Don't
87685         increment buffer pointer beyond buffer end.  Based on comments
87686         from Paul Eggert <eggert@cs.ucla.edu>.
87687
87688         * lib/base64.h: Indent.
87689
87690 2005-06-28  Simon Josefsson  <jas@extundo.com>
87691
87692         * doc/gnulib.texi (Library version handling): New section.
87693
87694 2005-06-28  Jim Meyering  <jim@meyering.net>
87695
87696         * check-module (find_included_lib_files): Hard-code another
87697         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87698         but modules/fts-lgpl (correctly) does not list those files.
87699
87700         * modules/canonicalize (Files): Add lib/pathmax.h.
87701
87702 2005-06-25  Simon Josefsson  <jas@extundo.com>
87703
87704         * modules/check-version: New file.
87705
87706 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87707
87708         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87709         initializer of struct addrinfo, as an indication that we don't
87710         care how many members the structure has.
87711
87712 2005-06-24  Derek Price  <derek@ximbiot.com>
87713         and Bruno Haible  <bruno@clisp.org>
87714
87715         Remove stat module & update lstat.
87716         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87717         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87718         * m4/stat.m4: Remove this file.
87719
87720 2005-06-24  Derek Price  <derek@ximbiot.com>
87721         and Bruno Haible  <bruno@clisp.org>
87722
87723         Remove stat module & update lstat.
87724         * lib/stat.c: Remove this file...
87725         (slash_aware_lstat): ...moving this content and its support...
87726         * lib/lstat.c (rpl_lstat): ...into here.
87727         * lib/lstat.h: New file.
87728
87729 2005-06-24  Derek Price  <derek@ximbiot.com>
87730         and Bruno Haible  <bruno@clisp.org>
87731
87732         Remove stat module & update lstat.
87733         * config/srclist.txt (libc sources): Remove stat.
87734
87735 2005-06-24  Derek Price  <derek@ximbiot.com>
87736         and Bruno Haible  <bruno@clisp.org>
87737
87738         Remove stat module & update lstat.
87739         * MODULES.html.sh (stat): Remove.
87740         * MODULES.html: Regenerated.
87741         * modules/lstat (Description): Correct function name.
87742         (Files): Add "lstat.h".
87743         (Depends-on): Remove stat, add xalloc, stat-macros.
87744         * modules/stat: Remove this file.
87745         (Include): Add "lstat.h", remove <sys/stat.h>.
87746
87747 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87748
87749         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87750         (ranged_convert): Don't save conversion in a temporary struct.
87751         This causes a warning with GCC 4.0.0, and anyway in the typical
87752         case it's not worth the extra 100 bytes or so of code.
87753         (ranged_convert, __mktime_internal): When calling a function via a
87754         pointer P, use P () rather than (*P) (), as we now assume C89 or
87755         better.
87756
87757 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87758
87759         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87760         "who -r" failed to give output.  Problem reported by Tim Waugh.
87761
87762         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87763         (xcalloc): Use it to avoid needless tests.
87764         Problem reported by Jim Meyering.
87765
87766 2005-06-20  Derek Price  <derek@ximbiot.com>
87767
87768         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87769         unnecessary for Autoconfs > 2.59c.
87770
87771 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87772
87773         * lib/argp.h (__option_is_short): Check upper limit of
87774         __key. Isprint() requires its argument to have the value
87775         of an unsigned char or EOF.
87776
87777 2005-06-16  Jim Meyering  <jim@meyering.net>
87778
87779         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87780         when either N or S is zero.
87781
87782 2005-06-16  Derek Price  <derek@ximbiot.com>
87783
87784         * m4/bison.m4: Declare YACC & YFLAGS precious.
87785
87786 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87787
87788         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87789         multibyte string or pattern, fall back on unibyte matching.
87790         Problem reported by James Youngman.
87791
87792 2005-06-08  Bruno Haible  <bruno@clisp.org>
87793
87794         * modules/csharpcomp: New file.
87795         * MODULES.html.sh (C#): Add csharpcomp.
87796
87797 2005-06-08  Bruno Haible  <bruno@clisp.org>
87798
87799         * m4/csharpcomp.m4: New file, from GNU gettext.
87800
87801 2005-06-08  Bruno Haible  <bruno@clisp.org>
87802
87803         * lib/csharpcomp.h: New file, from GNU gettext.
87804         * lib/csharpcomp.c: New file, from GNU gettext.
87805         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87806
87807 2005-06-08  Bruno Haible  <bruno@clisp.org>
87808
87809         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87810         warning on mingw.
87811
87812 2005-06-07  Derek Price  <derek@ximbiot.com>
87813
87814         Sync from CVS.
87815         * lib/glob_.h: Indent nested #ifdef.
87816
87817 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87818
87819         Sync from coreutils.
87820         Use "file name" when talking about file names, instead of "filename"
87821         or "path", as per the GNU coding standards.
87822         * lib/mkdir-p.c: Renamed from makepath.c.
87823         (make_dir_parents): Renamed from make_path.  All callers changed.
87824         * lib/mkdir-p.h: Likewise.  All includers changed.
87825         * lib/filenamecat.c: Renamed from path-concat.c.
87826         (file_name_concat): Renamed from path_concat.  All callers changed.
87827         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87828         * lib/filenamecat.h: Likewise.  All includers changed.
87829         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87830         in comments or local variable names.
87831         * lib/basename.c: Likewise.
87832         * lib/canonicalize.c, canonicalize.h: Likewise.
87833         * lib/dirname.c, dirname.h: Likewise.
87834         * lib/euidaccess.c: Likewise.
87835         * lib/exclude.c: Likewise
87836         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87837         * lib/fsusage.c, fsuage.h: Likewise.
87838         * lib/fts.c, fts_.h: Likewise.
87839         * lib/getcwd.c: Likewise.
87840         * lib/getloadavg.c: Likewise.
87841         * lib/mkstemp.c: Likewise.
87842         * lib/mountlist.c, mountlist.h: Likewise.
87843         * lib/openat.c, openat.h: Likewise.
87844         * lib/readlink-stub.c: Likewise.
87845         * lib/readutmp.c, readutmp.h: Likewise.
87846         * lib/rename.c: Likewise.
87847         * lib/rmdir.c: Likewise.
87848         * lib/same.c: Likewise.
87849         * lib/savedir.c: Likewise.
87850         * lib/stripslash.c: Likewise.
87851         * lib/tempname.c: Likewise.
87852         * lib/xreadlink.c: Likewise.
87853         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87854         All uses changed.
87855         * lib/exclude.h: Likewise.
87856
87857         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87858         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87859         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87860         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87861         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87862         files have been getting away with it for years (MORE/BSD 4.3
87863         is extinct now).
87864         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87865         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87866
87867         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87868         Define to 256, not 255, as per modern POSIX.
87869
87870 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87871
87872         Sync from coreutils.
87873         Use "file name" when talking about file names, instead of "filename"
87874         or "path", as per the GNU coding standards.
87875         * MODULES.html.sh: mkdir-p renamed from makepath.
87876         filenamecat renamed from path-concat.
87877         * modules/filenamecat: Renamed from modules/path-concat.
87878         (Files): filenamecat.h and filenamecat.c renamed from
87879         path-concat.h and path-concat.c.
87880         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87881         (Include): filenamecat.h, not path-concat.h.
87882         * modules/mkdir-p: Renamed from modules/makepath.
87883         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87884         makepath.c.
87885         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87886         (Include): mkdir-p.h, not makepath.h.
87887
87888 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87889
87890         Sync from coreutils.
87891         * m4/mkdir-p.m4: Renamed from makepath.m4.
87892         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87893         Rename files from makepath.c to mkdir-p.c, and from
87894         makepath.h to mkdir-p.h.
87895         * m4/filenamecat.m4: Renamed from path-concat.m4.
87896         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87897         Rename files from path-concat.c to filenamecat.c,
87898         and from path-concat.h to filenamecat.h.
87899         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87900         "file name" in local variables or comments.
87901         * m4/rename.m4: Likewise.
87902
87903 2005-06-01  Bruno Haible  <bruno@clisp.org>
87904
87905         * modules/csharpexec: New file.
87906         * MODULES.html.sh (C#): New section.
87907
87908 2005-06-01  Bruno Haible  <bruno@clisp.org>
87909
87910         * m4/csharp.m4: New file, from GNU gettext.
87911         * m4/csharpexec.m4: New file, from GNU gettext.
87912
87913 2005-06-01  Bruno Haible  <bruno@clisp.org>
87914
87915         * lib/csharpexec.h: New file, from GNU gettext.
87916         * lib/csharpexec.c: New file, from GNU gettext.
87917         * lib/csharpexec.sh.in: New file, from GNU gettext.
87918
87919 2005-05-31  Derek Price  <derek@ximbiot.com>
87920             Paul Eggert  <eggert@cs.ucla.edu>
87921
87922         Sync from cvs.
87923         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87924
87925 2005-05-31  Derek Price  <derek@ximbiot.com>
87926             Paul Eggert  <eggert@cs.ucla.edu>
87927
87928         Sync from cvs.
87929         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87930
87931 2005-05-29  Derek Price  <derek@ximbiot.com>
87932
87933         * config/srclist.txt (glob_.h, glob.c): Add these files.
87934
87935 2005-05-29  Derek Price  <derek@ximbiot.com>
87936
87937         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87938         * modules/glob: New file.
87939         * modules/getlogin_r: Add link to POSIX spec in description.
87940
87941 2005-05-29  Derek Price  <derek@ximbiot.com>
87942             Paul Eggert  <eggert@cs.ucla.edu>
87943
87944         * m4/glob.m4: New file.
87945
87946 2005-05-29  Derek Price  <derek@ximbiot.com>
87947             Paul Eggert  <eggert@cs.ucla.edu>
87948
87949         * lib/glob_.h, lib/glob.c: New files.
87950
87951 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87952
87953         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87954         * modules/fts-lgpl (Depends-on): Remove gettext.
87955
87956 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87957
87958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87959         and don't require gt_INTTYPES_PRI.
87960
87961 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87962
87963         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87964
87965         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87966         the configuration hassle isn't worth it.
87967         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87968         (LONGEST_MODIFIER, PRIuMAX): Remove.
87969
87970 2005-05-27  Bruno Haible  <bruno@clisp.org>
87971
87972         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87973
87974 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87975
87976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87977         _POSIX_PTHREAD_SEMANTICS for Solaris.
87978
87979 2005-05-25  Derek Price  <derek@ximbiot.com>
87980
87981         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87982
87983 2005-05-25  Derek Price  <derek@ximbiot.com>
87984             Paul Eggert  <eggert@cs.ucla.edu>
87985
87986         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87987         * lib/getlogin_r.c, getlogin_r.h: New files.
87988
87989 2005-05-25  Bruno Haible  <bruno@clisp.org>
87990             Derek Price  <derek@ximbiot.com>
87991
87992         * lib/getlogin_r.h: Simplify API documentation.
87993
87994 2005-05-23  Derek Price  <derek@ximbiot.com>
87995
87996         * modules/minmax (Files): Add m4/minmax.m4.
87997         (configure.ac): Add gl_MINMAX.
87998
87999 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88000
88001         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88002         so that unistd-safer.h (GPL'ed code) need not be included.
88003
88004 2005-05-22  Bruno Haible  <bruno@clisp.org>
88005
88006         * m4/minmax.m4: New file.
88007         Based on a patch by Derek Price <derek@ximbiot.com>.
88008
88009 2005-05-22  Bruno Haible  <bruno@clisp.org>
88010
88011         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88012         (INT64_MIN): Fix definition.
88013         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88014
88015         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88016         NEED_SIGNED_INT_TYPES.
88017
88018         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88019         HAVE_SYSTEM_INTTYPES.
88020
88021 2005-05-22  Bruno Haible  <bruno@clisp.org>
88022
88023         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88024         Also include <sys/param.h> if it defines MIN, MAX.
88025         Based on a patch by Derek Price <derek@ximbiot.com>.
88026
88027 2005-05-21  Jim Meyering  <jim@meyering.net>
88028
88029         * modules/fts (Files): Add m4/inttypes-pri.m4.
88030         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88031
88032 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88033
88034         New fts module.
88035         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88036         (setup_dir, free_dir): New functions.
88037         (enter_dir, leave_dir): Define trivial
88038         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88039         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88040         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88041         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88042         Move to fts-cycle.c.
88043         (fts_open): Use setup_dir.
88044         (fts_close): Use free_dir.
88045         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88046         This adds a label and some gotos, but the alternatives were messier.
88047         Check for memory allocation failure when entering a dir.
88048         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88049         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88050         (FTS): New member fts_cycle, that is a union that contains the
88051         old active_dir_ht and cycle_state.  All uses changed to mention
88052         fts_cycle.ht and fts_cycle.state.
88053         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88054         fts.c, with the following changes:
88055         (setup_dir, free_dir): New functions.
88056         (enter_dir): Now returns bool.  Return true if successful, false
88057         if memory exhausted.  All callers changed.
88058         Do not bother partly cleaning up on
88059         memory allocation failure; that is free_dir's job.
88060         However, free ad if hash_insert fails, to avoid memory leak.
88061         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88062         fts->fts_options to see which union member to use.
88063
88064 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88065
88066         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88067         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88068
88069 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88070
88071         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88072
88073 2005-05-20  Jim Meyering  <jim@meyering.net>
88074
88075         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88076         Now a macro, to pacify GCC.
88077
88078 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88079
88080         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88081         of -1.
88082
88083 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88084
88085         * lib/chown.c (rpl_chown): Return -1 on failure.
88086
88087 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88088
88089         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88090         Don't check for stddef.h.
88091         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88092         don't use its results.
88093         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88094         since we include them unconditionally.  Don't require
88095         AM_STDBOOL_H, since stdbool is a prerequisite.
88096         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88097         since we assume C89 or better.
88098         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88099         as we don't use their results.
88100         Don't check for fchdir, memmove, memset, strrchr, as we use
88101         them unconditionally.
88102         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88103         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88104
88105 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88106
88107         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88108         Include <stddef.h> unconditionally, since we assume C89 now.
88109         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88110         * lib/fts.c: Include fts_.h first, to check interface.
88111         Do not include intprops.h; no longer needed.
88112         Include cycle-check.h and hash.h, since fts_.h no longer does.
88113         Remove unnecessary casts of closedir to void.
88114         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88115         decide whether to decrement nlinks.
88116         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88117         (FTS): Use struct hash_table * instead of Hash_table, so that
88118         we no longer need to include hash.h here.
88119
88120 2005-05-18  Jim Meyering  <jim@meyering.net>
88121
88122         * modules/dirfd (License): Change to LGPL.  Most of the code
88123         is already in the public domain.
88124
88125 2005-05-18  Jim Meyering  <jim@meyering.net>
88126
88127         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88128         Reported by Yoann Vandoorselaere.
88129
88130 2005-05-17  Jim Meyering  <jim@meyering.net>
88131
88132         * m4/fts.m4: New file, from coreutils.
88133
88134 2005-05-17  Jim Meyering  <jim@meyering.net>
88135
88136         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88137
88138 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88139
88140         Sync from coreutils.
88141         * m4/unlinkdir.m4: New file.
88142
88143 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         Sync from coreutils.
88146         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88147         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88148         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88149         White space changes only.
88150         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88151         special.
88152         * lib/yesno.c: Include getline.h, not ctype.h.
88153         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88154         Use getline to remove arbitrary restriction on response length.
88155
88156 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * config/srclist-update: Spell out "Street" in FSF postal
88159         mail address; this is the style the FSF seems to prefer.
88160
88161         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88162         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88163         this updates FSF postal mail address.
88164
88165         Sync from coreutils.
88166         * modules/unlinkdir: New file.
88167         * modules/yesno (Depends-on): Add getline.
88168         * MODULES.html.sh (File system functions): Add unlinkdir.
88169
88170 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88171
88172         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88173         lib/strsep.h:
88174         Change the initial comment to refer to GPL, not LGPL.
88175         gnulib-tool will change it to LGPL as needed.
88176
88177         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88178         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88179         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88180         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88181         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88182         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88183         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88184         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88185         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88186         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88187         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88188         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88189         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88190         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88191         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88192         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88193         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88194         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88195         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88196         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88197         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88198         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88199         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88200         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88201         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88202         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88203         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88204         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88205         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88206         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88207         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88208         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88209         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88210         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88211         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88212         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88213         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88214         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88215         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88216         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88217         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88218         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88219         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88220         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88221         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88222         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88223         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88224         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88225         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88226         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88227         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88228         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88229         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88230         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88231         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88232         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88233         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88234         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88235         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88236         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88237         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88238         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88239         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88240         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88241         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88242         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88243         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88244         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88245         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88246         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88247         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88248         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88249         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88250         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88251         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88252         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88253         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88254         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88255         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88256         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88257         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88258         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88259         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88260         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88261         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88262         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88263         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88264         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88265         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88266         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88267         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88268         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88269         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88270         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88271         lib/yesno.c, lib/yesno.h:
88272         Update FSF postal mail address.
88273
88274 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88275
88276         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88277         tests/test-memmem.c, tests/test-stpncpy.c:
88278         Update FSF postal mail address.
88279
88280 2005-05-13  Bruno Haible  <bruno@clisp.org>
88281
88282         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88283         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88284         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88285         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88286         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88287         Add support for 64-bit integers in the MSVC compiler.
88288
88289 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88290
88291         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88292
88293 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88294
88295         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88296
88297 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88298
88299         * doc/getdate.texi (General date syntax): Don't say that date
88300         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88301         Problem reported by Nic Ferrier.
88302
88303 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88304
88305         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88306         specified in ai_socktype. Fix invalid ai_protocol
88307         check. ai_protocol is usually set to 0 or depending on
88308         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88309         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88310         ai_socktype / ai_protocol in the returned addrinfo structure.
88311
88312 2005-05-10  Simon Josefsson  <jas@extundo.com>
88313
88314         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88315         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88316
88317 2005-05-10  Karl Berry  <karl@gnu.org>
88318
88319         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88320         (from http://www.gnu.org/licenses).
88321         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88322         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88323         fdl.texi suffices.
88324
88325 2005-05-10  Karl Berry  <karl@gnu.org>
88326
88327         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88328         (COPYING.DOC): remove.
88329
88330         * config/srclist-update: new FSF address.
88331
88332 2005-05-10  Derek Price  <derek@ximbiot.com>
88333
88334         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88335         possible.
88336
88337 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88338             Bruno Haible  <bruno@clisp.org>
88339
88340         * modules/inet_ntop: New file.
88341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88342         inet_ntop.
88343
88344 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88345             Bruno Haible  <bruno@clisp.org>
88346
88347         * m4/inet_ntop.m4: New file.
88348
88349 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88350             Bruno Haible  <bruno@clisp.org>
88351
88352         * lib/inet_ntop.h: New file.
88353         * lib/inet_ntop.c: New file, from glibc with modifications.
88354
88355 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88356
88357         * modules/time_r (License): Change to LGPL.
88358         * modules/extensions (License): Change to LGPL.  Actually,
88359         the license is more permissive than that, but currently gnulib-tool
88360         doesn't know how to handle more-permissive licenses.
88361
88362         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88363         Problem reported by Dave Love.
88364
88365 2005-05-08  Jim Meyering  <jim@meyering.net>
88366
88367         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88368         blank.
88369
88370 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88371
88372         * modules/argmatch (Depends-on): Add stdbool.
88373         * modules/backupfile (Depends-on): Likewise.
88374         * modules/chdir-long (Depends-on): Likewise.
88375         * modules/closeout (Depends-on): Likewise.
88376         * modules/cycle-check (Depends-on): Likewise.
88377         * modules/dirname (Depends-on): Likewise.
88378         * modules/fnmatch (Depends-on): Likewise.
88379         * modules/fsusage (Depends-on): Likewise.
88380         * modules/fwriteerror (Depends-on): Likewise.
88381         * modules/getcwd (Depends-on): Likewise.
88382         * modules/getloadavg (Depends-on): Likewise.
88383         * modules/hard-locale (Depends-on): Likewise.
88384         * modules/makepath (Depends-on): Likewise.
88385         * modules/mountlist (Depends-on): Likewise.
88386         * modules/nanosleep (Depends-on): Likewise.
88387         * modules/posixtm (Depends-on): Likewise.
88388         * modules/quotearg (Depends-on): Likewise.
88389         * modules/readtokens (Depends-on): Likewise.
88390         * modules/readtokens0 (Depends-on): Likewise.
88391         * modules/readutmp (Depends-on): Likewise.
88392         * modules/save-cwd (Depends-on): Likewise.
88393         * modules/strftime (Depends-on): Likewise.
88394         * modules/userspec (Depends-on): Likewise.
88395         * modules/utimecmp (Depends-on): Likewise.
88396         * modules/xgetcwd (Depends-on): Likewise.
88397         * modules/xnanosleep (Depends-on): Likewise.
88398         * modules/xstrtod (Depends-on): Likewise.
88399         * modules/yesno (Depends-on): Likewise.
88400
88401 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88402
88403         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88404         needless checks.
88405
88406 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88407
88408         Merge from coreutils.  Among other things,
88409         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88410         * lib/fd-safer.c: New file.
88411         * lib/fcntl-safer.h, open-safer.c: Remove.
88412         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88413         * lib/dup-safer.c: Include unistd-safer.h first.
88414         Don't include errno.h.
88415         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88416         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88417         * lib/file-type.c: Rely on file-type.h change.
88418         * lib/getloadavg.c: Include unistd-safer.h.
88419         (getloadavg): Use safer open.
88420         * lib/getusershell.c: Include "stdio-safer.h".
88421         (getusershell): Use safer fopen.
88422         * lib/long-options.c (long_options): Use NULL rather than 0.
88423         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88424         'free'.
88425         * lib/modechange.c: Likewise.
88426         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88427         (MODE_DONE): New constant.
88428         (struct mode_change): Remove 'next' member.
88429         (make_node_op_equals): New function; like the old one of the
88430         same name, except it allocates an array.
88431         (mode_compile, mode_create_from_ref): Use it.
88432         (mode_compile): Allocate result as an array, not a linked list.
88433         Parse octal string ourself, so that we catch mistakes like "+0".
88434         (mode_adjust): Arg is an array, not a linked list.
88435         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88436         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88437         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88438         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88439         Remove.  This is now stat-macros.h's job.
88440         (talloc): Remove.  All callers replaced by xalloc, so that
88441         our invokers don't have to worry about reporting memory failures.
88442         (make_node_op_equals): Remove.
88443         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88444         New constants.
88445         (struct mode_change): Moved here from modechange.h.
88446         (mode_append_entry): Remove.
88447         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88448         apps to have incorrect behavior.  Use simpler algorithm for head
88449         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88450         Detect more invalid usages rather than having somewhat-random behavior.
88451         Don't insert an "a=" action, as that leads to incorrect behavior.
88452         (mode_compile, mode_create_from_ref): Return NULL on error instead
88453         of an enum, since now there's only one way to have an error.  All
88454         callers changed.
88455         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88456         at the correct time.  Simplify calculation of "+u" and its ilk.
88457         Don't mishandle "+X".
88458         (mode_free): Remove "register" and localize decls.
88459         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88460         (struct mode_change): Move to modechange.c; callers don't
88461         need to see this stuff.
88462         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88463         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88464         (mode_change, mode_adjust): Reflect the new signatures noted above.
88465         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88466         that might redefine system include files.
88467         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88468         (my_usleep): Use NULL rather than (void *) 0.
88469         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88470         Use siginterrupt to specify that system calls should be interrupted.
88471         (rpl_nanosleep): Move initialization of suspended closer to call of
88472         my_usleep.
88473         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88474         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88475         (desirable_utmp_entry): New function.
88476         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88477         using x2nrealloc, to simplify logic.
88478         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88479         size calculation.  Do not assume utmp file is a regular file.
88480         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88481         (READ_UTMP_CHECK_PIDS): New constant.
88482         * lib/save-cwd.c: Include unistd-safer.h.
88483         (save_cwd): Use fd_safer.
88484         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88485         [!_LIBC] Include "stat-macros.h" instead.
88486         * lib/unistd-safer.h (fd_safer): New decl.
88487
88488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88489
88490         * modules/getloadavg (Depends-on): Add unistd-safer.
88491         * modules/getusershell (Depends-on): Add stdio-safer.
88492         * modules/lstat (Depends-on): Remove xalloc.
88493         * modules/mkstemp (Depends-on): Add stat-macros.
88494         * modules/modechange (Depends-on): Remove xstrtol.
88495         Add stat-macros, xalloc.
88496         * modules/save-cwd (Depends-on): Add unistd-safer.
88497         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88498         * modules/unistd-safer (Files): Add lib/fd-safer.c
88499         (Makefile.am): Remove lib_SOURCES.
88500
88501         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88502         Remove fcntl-safer; unistd-safer supersedes it.
88503
88504 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88505
88506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88507         AC_HEADER_STAT.
88508         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88509         (gl_PREREQ_CHOWN): Remove.
88510         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88511         it.  Don't require AC_HEADER_STAT.
88512         (gl_PREREQ_LSTAT): Remove.
88513         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88514         Don't require AC_HEADER_STAT.
88515         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88516         (gl_PREREQ_RMDIR): Remove.
88517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88518         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88519         the stat-macros module a prerequisite.
88520         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88521         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88522         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88523         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88524         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88525         variable names.
88526         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88527         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88528         variable prefixes.
88529         * m4/fcntl-safer.m4: Remove.
88530         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88531         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88532         Invoke gl_PREREQ_FD_SAFER.
88533         (gl_PREREQ_FD_SAFER): New macro.
88534         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88535         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88536         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88537         Remove duplicate call to AC_LIBOBJ(readutmp).
88538         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88539
88540         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88541         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88542
88543 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88544
88545         * MODULES.html.sh (Misc): Add byteswap.
88546
88547 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88548
88549         * modules/getcwd (Depends-on): Add extensions.
88550         * modules/openat (Depends-on): Likewise.
88551
88552 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88553
88554         * modules/byteswap: New file.
88555
88556 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88557
88558         * m4/byteswap.m4: New file.
88559
88560 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88561
88562         * lib/byteswap_.h: New file.
88563
88564 2005-04-25  Karl Berry  <karl@gnu.org>
88565
88566         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88567
88568 2005-04-25  Albert Chin  <china@thewrittenword.com>
88569
88570         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88571         Toolkit C bug.
88572
88573 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88574
88575         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88576         (func_ln_if_changed): Remove forcibly for no error message
88577         in case file does not exist.
88578
88579 2005-04-19  Simon Josefsson  <jas@extundo.com>
88580
88581         * gnulib-tool (Options): Make --symlink mean --symbolic.
88582
88583 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88584
88585         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88586
88587 2005-04-16  Simon Josefsson  <jas@extundo.com>
88588
88589         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88590
88591 2005-04-15  Simon Josefsson  <jas@extundo.com>
88592
88593         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88594
88595 2005-04-15  Simon Josefsson  <jas@extundo.com>
88596
88597         * gnulib-tool: Rename --symlink to --symbolic.
88598
88599 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88600
88601         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88602         symbolic links to files instead of copying/moving.  Add --aux-dir,
88603         specifying directory relative --dir where auxiliary build tools
88604         are placed.
88605
88606 2005-04-14  Bruno Haible  <bruno@clisp.org>
88607
88608         * modules/allocsa (License): Change to LGPL.
88609         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88610
88611 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88612
88613         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88614         that "UTC +1 second" continues to work.  Problem reported
88615         by Dmitry V. Levin.
88616         (relunit_snumber): New rule.
88617         (relunit): Use it.
88618
88619 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88620
88621         * lib/getdate.y (universal_time_zone_table): New constant.
88622         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88623         universal_time_zone_table.
88624         (lookup_zone): Prefer universal_time_zone_table to
88625         local_time_zone_table, so that "GMT" time stamps are allowed in
88626         London during the summer.  Problem reported by Ian Abbott.
88627
88628 2005-04-12  Jim Meyering  <jim@meyering.net>
88629
88630         * lib/human.c (humblock): Set *options even when returning due to
88631         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88632         warning from gcc-4.
88633
88634 2005-04-09  Jim Meyering  <jim@meyering.net>
88635
88636         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88637         -Wuninitialized: initialize tm0.tm_year.
88638
88639 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88640
88641         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88642         count, since there's no maximum.  All uses changed.
88643         Add member dsts_seen.
88644         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88645         not being INT_MAX.
88646         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88647         Use pc_rels_seen to decide whether a date is absolute.
88648
88649         * lib/getdate.y (number): Don't overwrite year.
88650         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88651         check.
88652
88653 2005-04-02  Simon Josefsson  <jas@extundo.com>
88654
88655         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88656         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88657
88658 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88659
88660         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88661         where no absolute path name can be longer than PATH_MAX.
88662
88663 2005-03-27  Jim Meyering  <jim@meyering.net>
88664
88665         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88666
88667 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88668
88669         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88670         "one's complement" -> "ones' complement" in comment, as per Knuth.
88671         "value of type" -> "type or expression" in comment.
88672         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88673
88674 2005-03-26  Jim Meyering  <jim@meyering.net>
88675
88676         Comment nits.
88677         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88678         Correct typos: s/or/of/.
88679
88680 2005-03-26  Jim Meyering  <jim@meyering.net>
88681
88682         * modules/check-include-files: Move to ../ and rename to...
88683         * check-module: ...this.
88684
88685 2005-03-25  Jim Meyering  <jim@meyering.net>
88686
88687         * modules/xvasprintf (Files): Add xalloc.h.
88688
88689 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88690
88691         * modules/gettext (Files): config/config.rpath ->
88692         build-aux/config.rpath
88693         * modules/iconv (Files): Likewise.
88694         Problem reported by Oskar Liljeblad.
88695
88696 2005-03-23  Jim Meyering  <jim@meyering.net>
88697
88698         * modules/check-include-files: New script to check for
88699         missing dependencies, multiple includes, etc.
88700
88701         * modules/c-strtold (Depends-on): Add xalloc.
88702         * modules/c-strtod (Depends-on): Add xalloc.
88703         * modules/hash (Depends-on): Add xalloc.
88704         (Files): Remove lib/xalloc.h.
88705
88706         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88707         * modules/userspec (Files): Add lib/inttostr.h.
88708
88709 2005-03-23  Jim Meyering  <jim@meyering.net>
88710
88711         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88712
88713 2005-03-22  Jim Meyering  <jim@meyering.net>
88714
88715         * modules/stat-macros: New module.
88716         * modules/canonicalize, modules/euidaccess, modules/file-type,
88717         * modules/filemode, modules/lchown, modules/makepath,
88718         * modules/rmdir, modules/stat: Depend on new stat-macros module
88719         rather than listing lib/stat-macros.h manually.
88720         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88721
88722 2005-03-22  Jim Meyering  <jim@meyering.net>
88723
88724         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88725
88726 2005-03-22  Bruno Haible  <bruno@clisp.org>
88727
88728         * config/srclist.txt: Replace target directory 'config' with
88729         'build-aux'.
88730         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88731         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88732         ../build-aux/.
88733
88734 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88735
88736         * modules/chdir-long (Depends-on): Add mempcpy.
88737
88738         * modules/acl, modules/backupfile, modules/c-strtod,
88739         modules/c-strtold, modules/canon-host, modules/canonicalize,
88740         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88741         modules/exclude, modules/exitfail, modules/file-type,
88742         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88743         modules/getdate, modules/getline, modules/getpagesize,
88744         modules/getpass, modules/getugroups, modules/group-member,
88745         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88746         modules/inttostr, modules/long-options, modules/makepath,
88747         modules/md5, modules/memcasecmp, modules/memcoll,
88748         modules/modechange, modules/mountlist, modules/path-concat,
88749         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88750         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88751         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88752         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88753         modules/strftime, modules/strndup, modules/strverscmp,
88754         modules/timespec, modules/unlocked-io, modules/userspec,
88755         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88756         modules/yesno:
88757         Remove lib_SOURCES line from Makefile.am section, as this is now
88758         done automatically by the corresponding Autoconf macro.
88759
88760 2005-03-21  Jim Meyering  <jim@meyering.net>
88761
88762         Changes imported from coreutils.
88763
88764         * lib/cycle-check.c: Don't include xalloc.h.
88765
88766         * lib/path-concat.c: Don't include assert.h.
88767         (path_concat): Remove assertion that would have triggered
88768         for ABASE starting with more than one slash.
88769         Reported by Andreas Schwab.
88770
88771         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88772         properly when ABASE is an absolute file name.
88773         Correct the description of this function.
88774         Include <assert.h>.
88775         Add an assertion and a test driver.
88776         This fixes a bug introduced on 2004-07-02.
88777         Andreas Schwab reported the resulting failure of cp --parents:
88778         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88779
88780 2005-03-21  Jim Meyering  <jim@meyering.net>
88781
88782         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88783         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88784
88785 2005-03-21  Jim Meyering  <jim@meyering.net>
88786         and  Paul Eggert  <eggert@cs.ucla.edu>
88787
88788         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88789         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88790         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88791         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88792         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88793         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88794         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88795         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88796         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88797         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88798         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88799         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88800         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88801         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88802         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88803         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88804         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88805         for these modules.
88806
88807 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88808
88809         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88810         (which shouldn't happen), generate nothing instead of returning 0
88811         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88812
88813 2005-03-16  Bruno Haible  <bruno@clisp.org>
88814
88815         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88816         HAVE_LONGLONG_64BIT.
88817
88818 2005-03-16  Bruno Haible  <bruno@clisp.org>
88819
88820         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88821         HAVE_LONGLONG_64BIT.
88822
88823 2005-03-16  Bruno Haible  <bruno@clisp.org>
88824
88825         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88826         HAVE_LONGLONG_64BIT.
88827
88828 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88829
88830         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88831         reliably distinguish strftime failure from empty output on POSIX
88832         hosts.
88833
88834 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88835
88836         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88837         (iconv_string): Don't guess a size-zero buffer, as that might cause
88838         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88839         result would be 'too large', where 'too large' is (heuristically)
88840         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88841         overflow concerns.  This will prevent some unwanted malloc failures
88842         when the inputs are very large.
88843
88844 2005-03-15  Karl Berry  <karl@gnu.org>
88845
88846         * config/srclist.txt (config.rpath): from gettext.
88847         * config/config.rpath: update.
88848
88849 2005-03-15  Bruno Haible  <bruno@clisp.org>
88850
88851         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88852         to 'negate'.
88853
88854         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88855         variable.
88856
88857         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88858         results.
88859
88860 2005-03-14  Simon Josefsson  <jas@extundo.com>
88861
88862         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88863         <fx@gnu.org>.
88864
88865 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88866
88867         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88868         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88869         intprops.h.
88870         * lib/strtol.c: Likewise.
88871
88872 2005-03-14  Jim Meyering  <jim@meyering.net>
88873
88874         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88875         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88876         to be nonzero so that we (and caller) can detect the difference
88877         between a valid zero-length expansion and an error return, even
88878         when the underlying strftime fails before writing anything into
88879         that location.
88880
88881 2005-03-14  Bruno Haible  <bruno@clisp.org>
88882
88883         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88884         Update from GNU gettext 0.14.3.
88885
88886 2005-03-10  Jim Meyering  <jim@meyering.net>
88887
88888         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88889
88890 2005-03-10  Jim Meyering  <jim@meyering.net>
88891
88892         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88893         so that this module works on systems without fchdir.
88894
88895 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88896
88897         Factor int-properties macros into a single file, except for
88898         glibc-related files.
88899         * lib/intprops.h: New file.
88900         * lib/getloadavg.c: Include it instead of limits.h.
88901         (INT_STRLEN_BOUND): Remove.
88902         * lib/human.c: Include intprops.h.
88903         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88904         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88905         302/1000.
88906         * lib/inttostr.h: Include intprops.h instead of limits.h.
88907         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88908         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88909         for consistency with intprops.h.
88910         (time_t_is_integer, twos_complement_arithmetic): Use them.
88911         * lib/sig2str.h: Include <signal.h>, intprops.h.
88912         (INT_STRLEN_BOUND): Remove.
88913         * lib/strftime.c (TYPE_SIGNED): Remove.
88914         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88915         * lib/strtol.c: Adjust comments to match intprops.h.
88916         * lib/userspec.c: Include intprops.h.
88917         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88918         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88919         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88920         instead of rolling our own expressions.
88921         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88922
88923         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88924         instead of int.
88925         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88926         the right thing even if adding 1900 would overflow.  Similarly
88927         for tm_mon + 1 and tm_yday + 1.
88928         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88929         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88930         (DO_SIGNED_NUMBER): New macro.
88931         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88932
88933 2005-03-07  Bruno Haible  <bruno@clisp.org>
88934
88935         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88936
88937 2005-03-07  Bruno Haible  <bruno@clisp.org>
88938
88939         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88940
88941 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88942
88943         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88944         (func_import): Only replace files via --import when they have actually
88945         changed.
88946
88947 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88948
88949         * m4/mmap-anon.m4: New file.
88950         * m4/pagealign_alloc.m4: New file.
88951
88952 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88953             Bruno Haible  <bruno@clisp.org>
88954
88955         * modules/pagealign_alloc: New file.
88956         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88957
88958 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88959             Bruno Haible  <bruno@clisp.org>
88960
88961         * lib/pagealign_alloc.h: New file.
88962         * lib/pagealign_alloc.c: New file.
88963
88964 2005-03-03  Bruno Haible  <bruno@clisp.org>
88965
88966         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88967         Use an all-permissive copyright notice, recommended by RMS.
88968
88969 2005-03-02  Bruno Haible  <bruno@clisp.org>
88970
88971         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88972         of AIX, the replacement has to be done only after <string.h> is
88973         included, therefore not in config.h. stpncpy.h does the replacement,
88974         and stpncpy.c uses it.
88975
88976 2005-03-02  Bruno Haible  <bruno@clisp.org>
88977
88978         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88979         stpncpy.c uses it.
88980
88981 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88982
88983         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88984         The workaround isn't strictly needed for POSIX conformance, and
88985         it's too much of a pain to configure and maintain.  We'll ask
88986         people to fix their kernels instead.
88987         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88988         (NANOSLEEP_BUG_WORKAROUND): Remove.
88989         (xnanosleep): Remove the workaround.
88990
88991 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88992
88993         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88994         Reported by Derek Price.
88995         (Include): Add "timespec.h".
88996
88997         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88998
88999 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89000
89001         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89002         to detect nanosleep bug.
89003
89004 2005-03-01  Bruno Haible  <bruno@clisp.org>
89005
89006         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89007
89008 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89009
89010         * modules/gethrxtime: New file.
89011         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89012         (Depends-on): Add gethrxtime.
89013         (configure.ac): Add gl_XNANOSLEEP.
89014         (Makefile.am): Remove lib_SOURCES line.
89015
89016 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89017
89018         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89019         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89020
89021 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89022
89023         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89024         * lib/timespec.h (gettime): Return void, since it always
89025         succeeds now.  All uses changed.
89026         * lib/gettime.c (gettime): Likewise.
89027         [HAVE_NANOTIME]: Prefer nanotime.
89028         Assume gettimeofday succeeds, as POSIX requires.
89029         Assime time () succeeds, since other code already does.
89030         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89031         (timespec_subtract): Remove.
89032         (NANOSLEEP_BUG_WORKAROUND): New constant.
89033         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89034         things considerably.  Use it only on GNU/Linux hosts, since the
89035         workaround shouldn't be needed elsewhere.
89036
89037 2005-02-24  Bruno Haible  <bruno@clisp.org>
89038
89039         * modules/gettext (Files): Add m4/glibc2.m4.
89040
89041 2005-02-24  Bruno Haible  <bruno@clisp.org>
89042
89043         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89044         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89045         * m4/progtest.m4:
89046         Update from GNU gettext 0.14.2.
89047         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89048
89049 2005-02-24  Bruno Haible  <bruno@clisp.org>
89050
89051         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89052         * lib/config.charset: Update from GNU gettext 0.14.2.
89053
89054 2005-02-24  Bruno Haible  <bruno@clisp.org>
89055
89056         * lib/gettext.h: Update from GNU gettext 0.14.2.
89057
89058 2005-02-23  Simon Josefsson  <jas@extundo.com>
89059
89060         * m4/iconvme.m4: New file.
89061
89062 2005-02-23  Jim Meyering  <jim@meyering.net>
89063
89064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89065         change.
89066         Thanks to Bruno Haible for catching it.
89067
89068 2005-02-22  Simon Josefsson  <jas@extundo.com>
89069
89070         * modules/iconvme: New file.
89071
89072         * MODULES.html.sh: Add iconvme.
89073
89074 2005-02-22  Simon Josefsson  <jas@extundo.com>
89075
89076         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89077
89078 2005-02-22  Simon Josefsson  <jas@extundo.com>
89079
89080         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89081
89082 2005-02-22  Jim Meyering  <jim@meyering.net>
89083
89084         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89085         s/ifndef/ifdef/.
89086
89087 2005-02-20  Neil Conway  <neilc@samurai.com>
89088
89089         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89090         returned by OSX/Darwin if the specified buffer is not large
89091         enough for the hostname.
89092
89093 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89094
89095         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89096         pass it to _help, otherwise the latter coredumps trying to
89097         dereference state.root_argp.
89098
89099 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89100
89101         * modules/chdir-long (Depends-on): Add memrchr.
89102         * modules/memrchr (Files): Add lib/memrchr.h.
89103         (Include): "memrchr.h".
89104
89105 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89106
89107         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89108
89109 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89110
89111         * lib/memrchr.h: New file.
89112         * lib/chdir-long.c: Include it.
89113         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89114         Don't bother including stddef.h.
89115
89116 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89117
89118         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89119         inclusion.
89120         Include <sys/types.h>, for dev_t.
89121         (ME_DUMMY, ME_REMOTE): Move from here....
89122         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89123         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89124         Dmitry V. Levin.
89125         Include mountlist.h first, to test the interface.
89126
89127 2005-01-29  Bruno Haible  <bruno@clisp.org>
89128
89129         * lib/progname.c (program_name): Initialize.
89130         Needed when linking statically on MacOS X.
89131
89132 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89133
89134         Sync from coreutils.
89135         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89136         (Depends-on): Add c-strtod.
89137         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89138
89139 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89140
89141         Sync from coreutils.
89142         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89143
89144         Remove files that are specific to coreutils.
89145         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89146
89147 2005-01-28  Bruno Haible  <bruno@clisp.org>
89148
89149         * modules/javacomp: New file.
89150         * MODULES.html.sh (Java): Add javacomp.
89151
89152 2005-01-28  Bruno Haible  <bruno@clisp.org>
89153
89154         * m4/javacomp.m4: New file, from GNU gettext.
89155
89156 2005-01-28  Bruno Haible  <bruno@clisp.org>
89157
89158         * lib/javacomp.sh.in: New file, from GNU gettext.
89159         * lib/javacomp.h: New file, from GNU gettext.
89160         * lib/javacomp.c: New file, from GNU gettext.
89161
89162 2005-01-26  Simon Josefsson  <jas@extundo.com>
89163
89164         * lib/gai_strerror.c: Use GPL in header.
89165
89166 2005-01-26  Bruno Haible  <bruno@clisp.org>
89167
89168         * modules/javaexec: New file.
89169         * MODULES.html.sh (Java): Add javaexec.
89170
89171 2005-01-26  Bruno Haible  <bruno@clisp.org>
89172
89173         * m4/javaexec.m4: New file, from GNU gettext.
89174
89175 2005-01-26  Bruno Haible  <bruno@clisp.org>
89176
89177         * lib/javaexec.sh.in: New file, from GNU gettext.
89178         * lib/javaexec.h: New file, from GNU gettext.
89179         * lib/javaexec.c: New file, from GNU gettext.
89180
89181 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89182
89183         * modules/lchown (Depends-on): Remove lchown.h
89184
89185 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89186
89187         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89188         must be defined if the header file was not found, in order
89189         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89190
89191 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89192
89193         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89194         initializers for struct pentry_state.
89195         (__argp_error): Check return value of __asprintf
89196         (__argp_failure): Translate error message
89197
89198         * lib/argp-parse.c: Removed braces around the expansion of N_()
89199
89200 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89201
89202         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89203         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89204         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89205         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89206         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89207         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89208         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89209         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89210         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89211         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89212         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89213         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89214         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89215         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89216         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89217         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89218         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89219         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89220         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89221         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89222         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89223         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89224         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89225         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89226         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89227         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89228         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89229         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89230         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89231         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89232         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89233         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89234         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89235         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89236         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89237         Use an all-permissive copyright notice, recommended by RMS.
89238
89239 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89240
89241         * modules/chdir-long (Depends-on): Remove mempcpy.
89242
89243 2005-01-21  Jim Meyering  <jim@meyering.net>
89244
89245         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89246         same value as for Solaris 9.
89247
89248         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89249         component length.  This included changing the parameter to be
89250         of type `char *' rather than `char const *'.
89251         * lib/chdir-long.h (chdir_long): Update prototype.
89252
89253         * lib/openat.c (fdopendir, fstatat): New functions.
89254         * lib/openat.h: Include headers required for use of DIR and struct
89255         stat.
89256         [AT_SYMLINK_NOFOLLOW]: Define.
89257         (fdopendir, fstatat): Add prototypes.
89258
89259 2005-01-21  Bruno Haible  <bruno@clisp.org>
89260
89261         * modules/classpath: New file.
89262         * MODULES.html.sh (Java): Add classpath.
89263
89264 2005-01-21  Bruno Haible  <bruno@clisp.org>
89265
89266         * lib/classpath.h: New file, from GNU gettext.
89267         * lib/classpath.c: New file, from GNU gettext.
89268
89269 2005-01-20  Simon Josefsson  <jas@extundo.com>
89270
89271         * modules/version-etc-fsf: New file.
89272
89273 2005-01-20  Simon Josefsson  <jas@extundo.com>
89274
89275         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89276         * lib/version-etc.c: Remove version_etc_copyright.
89277         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89278         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89279
89280 2005-01-20  Simon Josefsson  <jas@extundo.com>
89281
89282         * lib/base64.h (isbase64): Add.
89283
89284         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89285         using a unsigned prototype, don't inline.
89286         (base64_decode): Use it.
89287
89288 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89289
89290         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89291         it.
89292
89293 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89294
89295         * lib/save-cwd.c (save_cwd): Remove code to support the case
89296         where fchdir is missing or flaky.
89297
89298 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89299
89300         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89301
89302 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89303
89304         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89305         AC_LIBSOURCES now does this.
89306         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89307         with new ullong_max module.
89308
89309 2005-01-19  Bruno Haible  <bruno@clisp.org>
89310
89311         * modules/sh-quote: New file.
89312         * MODULES.html.sh (Executing programs): Add sh-quote.
89313
89314 2005-01-19  Bruno Haible  <bruno@clisp.org>
89315
89316         * lib/sh-quote.h: New file, from GNU gettext.
89317         * lib/sh-quote.c: New file, from GNU gettext.
89318
89319 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89320
89321         Merge from coreutils.
89322         * m4/ullong_max.m4: New file.
89323         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89324         (gl_MACROS): Assume localeconv exists.
89325
89326 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89327
89328         Merge changes from coreutils, as described below in several
89329         changelogs dated today.
89330
89331         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89332         (O_DIRECTORY): Remove; not needed here, since "." must be
89333         a directory.  All uses removed.
89334         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89335         universal on Suns, and we also need to test for IRIX.
89336         Revamp code to use 'if' rather than '#if'.
89337         Avoid unnecessary comparison of cwd->desc to 0.
89338
89339         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89340         for known valid error numbers rather than observed invalid ones.
89341
89342 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89343
89344         * modules/ullong_max: New file.
89345
89346         * modules/chdir-long, modules/openat: New files.
89347         * modules/save-cwd (Depends-on): Depend on chdir-long.
89348         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89349
89350 2005-01-18  Jim Meyering  <jim@meyering.net>
89351
89352         Merge from coreutils.
89353         * m4/chdir-long.m4, m4/openat.m4: New files.
89354         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89355         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89356         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89357         is sane and DOES follow symlinks.  Besides, testing 20 different
89358         systems found no broken chown implementations.
89359         Prompted by a change in rsync's copy of this macro.
89360         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89361
89362         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89363
89364         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89365         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89366         NULL-means-set-to-current-time semantics.
89367         Remove temporary file immediately, rather than waiting
89368         for configure's at-exit trap code to do it.
89369
89370 2005-01-18  Jim Meyering  <jim@meyering.net>
89371
89372         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89373
89374         * lib/utimens.c (futimens): Account for the fact that futimes
89375         can also fail with errno == ENOSYS or errno == ENOENT.
89376         Patch from Dmitry V. Levin.
89377
89378         Change the name of the robust chdir function from chdir to chdir_long.
89379         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89380         (restore_cwd): Use chdir_long, not chdir.
89381         * lib/chdir-long.c: Renamed from chdir.c.
89382         * lib/chdir-long.h: Renamed from chdir.h.
89383         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89384         Hurd.
89385
89386 2005-01-18  Bruno Haible  <bruno@clisp.org>
89387
89388         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89389         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89390         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89391         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89392         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89393         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89394         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89395         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89396         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89397         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89398         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89399         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89400         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89401         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89402         Use an all-permissive copyright notice, recommended by RMS.
89403
89404 2005-01-18  Bob Proulx  <bob@proulx.com>
89405
89406         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89407         simplify offsetof() macro construct to avoid compile failure with
89408         native HP-UX 11.0 ANSI C compiler.
89409
89410 2005-01-17  Bruno Haible  <bruno@clisp.org>
89411
89412         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89413         redundant because stpncpy.m4 takes care of it.
89414
89415 2005-01-17  Bruno Haible  <bruno@clisp.org>
89416
89417         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89418
89419 2005-01-17  Bruno Haible  <bruno@clisp.org>
89420
89421         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89422         used.
89423
89424 2005-01-17  Bruno Haible  <bruno@clisp.org>
89425
89426         * lib/fwriteerror.h (fwriteerror): Change specification to include
89427         fclose.
89428         * lib/fwriteerror.c: Include <stdbool.h>.
89429         (fwriteerror): At the end, close the file stream. Record whether
89430         stdout was already closed.
89431
89432 2005-01-17  Bruno Haible  <bruno@clisp.org>
89433
89434         * lib/execute.c (environ): Declare if needed.
89435         * lib/pipe.c (environ): Likewise.
89436         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89437
89438 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89439
89440         * modules/argp: Depend on vsnprintf
89441
89442 2005-01-10  Jim Meyering  <jim@meyering.net>
89443
89444         * modules/closeout (Depends-on): Add atexit.
89445
89446 2005-01-06  Bruno Haible  <bruno@clisp.org>
89447
89448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89449
89450 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89451
89452         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89453         definitions to be after all include files, to avoid collisions.
89454         Problem reported by Bob Proulx.
89455
89456 2005-01-04  Jim Meyering  <jim@meyering.net>
89457
89458         Changes imported from coreutils.
89459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89460         as the mkstemp template, use a temporary directory and an
89461         8.3-friendly template to avoid trouble on systems like DJGPP.
89462         Reported by Juan M. Guerrero via Stepan Kasal.
89463         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89464         close. Remove the temporary directory right away, rather than waiting
89465         for configure's at-exit trap code to do it.
89466         Suggestion from Stepan Kasal.
89467
89468 2005-01-01  Simon Josefsson  <jas@extundo.com>
89469
89470         * gnulib-tool: Print #include directives when --import'ing.
89471
89472 2004-12-28  Simon Josefsson  <jas@extundo.com>
89473
89474         * tests/test-base64.c: Include required header files.  Remove
89475         unused variables.
89476
89477 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89478
89479         * modules/error (Depends-on): Remove gettext.
89480
89481 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89482
89483         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89484         not needed.  This removes a dependency on the gettext module.
89485         [defined _LIBC]: Do not include <libintl.h>; not needed.
89486
89487 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89488
89489         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89490         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89491
89492 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89493
89494         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89495         HAVE_DECL_STRTOLD.
89496
89497 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89498
89499         * modules/getdate (Depends-on): Remove alloca-opt.
89500
89501 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89502
89503         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89504
89505 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89506
89507         * lib/argp-parse.c: Include <stddef.h>.
89508         (alignof, alignto): New macros.
89509         (parser_init): Don't assume that void * is aligned sufficiently
89510         for struct option.
89511
89512         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89513         need to extend the stack.
89514         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89515         large.
89516
89517 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89518
89519         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89520
89521 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89522
89523         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89524         (2004-10-24) change.  Apparently this was a false alarm.
89525
89526         * modules/getdate: Depend on alloca-opt, not alloca.
89527
89528 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89529
89530         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89531         Remove now-obsolete comment about AIX.
89532         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89533         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89534         (YYMAXDEPTH): New macro.
89535
89536 2004-12-18  Simon Josefsson  <jas@extundo.com>
89537
89538         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89539
89540 2004-12-18  Bruno Haible  <bruno@clisp.org>
89541
89542         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89543
89544 2004-12-18  Bruno Haible  <bruno@clisp.org>
89545
89546         * lib/fatal-signal.c (fatal_signals): Make non-const.
89547         (init_fatal_signals): New function.
89548         (uninstall_handlers, install_handlers): Ignore signals that were set to
89549         SIG_IGN.
89550         (at_fatal_signal): Call init_fatal_signals.
89551         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89552         SIG_IGN.
89553         Reported by Paul Eggert.
89554
89555 2004-12-18  Bruno Haible  <bruno@clisp.org>
89556
89557         * doc/alloca.texi: New file.
89558         * doc/alloca-opt.texi: New file.
89559
89560 2004-12-17  Jim Meyering  <jim@meyering.net>
89561
89562         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89563         Otherwise, install-sh could exit with improper exit status when
89564         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89565
89566 2004-12-16  Simon Josefsson  <jas@extundo.com>
89567
89568         * tests/test-base64.c: Add license.
89569
89570 2004-12-15  Stepan Kasal  <address@hidden>
89571
89572         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89573
89574 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89575
89576         * modules/getcwd (Files): Add m4/d-ino.m4.
89577         Suggested by Mark D. Baushke.
89578
89579 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89580
89581         * lib/getdate.y (textint): New member "negative".
89582         (time_zone_hhmm): New function.
89583         Expect 14 shift-reduce conflicts, not 13.
89584         (o_colon_minutes): New rule.
89585         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89586         (yylex): Set the "negative" member of signed numbers.
89587
89588 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89589
89590         * doc/getdate.texi (Time of day items, Time zone items):
89591         Describe new formats +00:00, UTC+00:00.
89592
89593 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89594
89595         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89596         spurious "-l"s.  Problem reported by Stepan Kasal.
89597
89598 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89599
89600         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89601         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89602
89603 2004-12-04  Simon Josefsson  <jas@extundo.com>
89604
89605         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89606         Vandoorselaere <yoann@prelude-ids.org>.
89607
89608 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89609
89610         Changes imported from coreutils.
89611         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89612         exist.
89613         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89614
89615 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89616
89617         Changes imported from coreutils.
89618         * lib/hard-locale.c: Assume <locale.h> exists.
89619         Include "strdup.h".
89620         (GLIBC_VERSION): New macro.
89621         (hard_locale): Assume setlocale exists.
89622         Rewrite to avoid #ifdef.
89623         Use strdup rather than malloc + strcpy.
89624         * lib/human.c: Assume <locale.h> exists.
89625         (human_readable): Assume localeconv exists.
89626
89627 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89628
89629         * modules/hard-locale (Depends-on): Add strdup.
89630
89631 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89632
89633         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89634         convert T2, not T.  (Imported from libc.)
89635
89636 2004-11-30  Simon Josefsson  <jas@extundo.com>
89637
89638         * modules/restrict (License): Change to LGPL.
89639
89640 2004-11-30  Simon Josefsson  <jas@extundo.com>
89641
89642         * m4/restrict.m4: Add copyright and copying conditions.
89643
89644 2004-11-30  Simon Josefsson  <jas@extundo.com>
89645
89646         * m4/base64.m4: New file.
89647
89648 2004-11-30  Simon Josefsson  <jas@extundo.com>
89649
89650         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89651         base64.
89652
89653         * tests/test-base64.c: New file.
89654
89655         * modules/base64: New file.
89656
89657 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89658
89659         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89660         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89661
89662         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89663
89664 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89665
89666         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89667         (__getcwd.c): Don't restore errno; glibc doesn't.
89668         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89669         first, falling back to our code only if its results look suspicious.
89670         Ensure that the resulting buffer is only as large as necessary.
89671
89672         * lib/readutmp.c: Include readutmp.h first.
89673         Include <errno.h>, since readutmp.h no longer does that.
89674         * lib/readutmp.h: Don't include <errno.h>,
89675         <sys/param.h>, <time.h>; not needed to establish interface.
89676         (errno): Remove decl.
89677         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89678         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89679         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89680
89681 2004-11-28  Simon Josefsson  <jas@extundo.com>
89682
89683         * lib/base64.h, base64.c: New file.
89684
89685 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89686
89687         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89688
89689 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89690
89691         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89692         (Depends-on): Remove pathmax, same.  Add mempcpy.
89693         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89694         (Makefile.am): Append getcwd.h to lib_SOURCES.
89695         (Include): Add getcwd.h.
89696         (Maintainer): Change from Jim Meyering to "all, glibc",
89697         since getdate now uses intended-for-glibc code.
89698         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89699         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89700
89701 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89702
89703         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89704         HP's ANSI C compiler.
89705         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89706         Declaring int functions causes warnings on some modern systems and
89707         shouldn't be needed to compile on ancient ones.
89708         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89709         defined.
89710
89711         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89712         with the following changes.
89713         (__set_errno): Parenthesize properly.
89714         Include <stdbool.h>.
89715         (MIN, MAX, MATCHING_INO): New macros.
89716         (__getcwd): Define with prototype, not K&R form.
89717         Use heuristics to allocate default buffer on stack if possible.
89718         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89719         behavior, and to avoid the PATH_MAX limit when computing
89720         ../../../../...
89721         Use MATCHING_INO to compare inode number to file.
89722         Check for arithmetic overflow in size calculations.
89723         Fix bug in reallocation of dot array that caused getcwd to fail
89724         on directories nested deeper than 75.
89725         Be more careful about saving errno on error.
89726         Do not use realloc; use only free+malloc, as this is a bit
89727         more flexible and avoids a needless copy operation.
89728         Do not inspect st_dev and st_ino for symbolic links; POSIX
89729         doesn't specify the latter.
89730         Check for closedir errors.
89731         Avoid needless casts.
89732         Use "#ifdef weak_alias" around weak_alias, to be like other
89733         glibc code.
89734         The following changes to getcwd.c have effect only when used in
89735         gnulib; they have no effect inside glibc proper.
89736         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89737         as alloca isn't used.
89738         (alloca, __alloca): Likewise.
89739         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89740         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89741         unconditionally, as gnulib assumes C89 or better.
89742         Do not include <sys/param.h>.
89743         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89744         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89745         better.
89746         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89747         Include <dirent.h> in a way that is compatible with modern Autoconf.
89748         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89749         New macros, if not already defined.
89750         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89751         Use "_LIBC", not "defined _LIBC", for consistency.
89752         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89753         a mempcpy module.
89754         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89755         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89756         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89757         credit only to Jim Meyering and adjust the copyright dates.
89758         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89759         <stdlib.h>, <unistd.h>, "pathmax.h".
89760         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89761         (INITIAL_BUFFER_SIZE): Remove.
89762         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89763
89764 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89765
89766         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89767         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89768         Use the _ONCE methods, for efficiency.
89769         Check for fcntl.h.  In test program, include <errno.h>
89770         and <fcntl.h> if available.  Remove old K&R cruft from
89771         test program.  Check for common errors in GNU/Linux,
89772         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89773         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89774         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89775         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89776         name accordingly.
89777         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89778         accommodate new getcwd.c.
89779         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89780         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89781         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89782         that's all we need now.
89783
89784 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89785
89786         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89787         argp-parse.c depends on getopt internals, that means we should
89788         always use our getopt, to be on the safe side.
89789         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89790         order not to spoil the result of an eventual previous invocation
89791         of gl_GETOPT_SUBSTITUTE.
89792
89793 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89794
89795         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89796         redefinition warnings. To avoid them, include the defines
89797         in `#if !defined __need_getopt ... #endif'. The only place
89798         where __getopt_argv_const is used is in definitions
89799         of getopt_long and getopt_long_only below, which are as well
89800         protected by `#ifndef __need_getopt'.
89801         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89802         __need_getopt after including <stdio.h> and <unistd.h> These
89803         headers might have defined it.
89804
89805 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89806
89807         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89808
89809 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89810
89811         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89812         (futimens): New function, which uses futimes if available.
89813         (futimens, utimens): Support timespec==NULL, with same semantics
89814         as utime and utimens.
89815         * lib/utimens.h (futimens): New decl.
89816
89817 2004-11-23  Jim Meyering  <jim@meyering.net>
89818
89819         * lib/getopt_.h: Remove trailing blanks.
89820
89821 2004-11-23  Jim Meyering  <jim@meyering.net>
89822
89823         * lib/__fpending.c: Add comment.
89824
89825 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89826
89827         * modules/canonicalize (Depends-on): Add xreadlink.
89828         Problem reported by James Youngman.
89829
89830 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89831
89832         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89833         New macros.
89834         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89835         optopt): Use them instead of invoking ## directly; otherwise, the
89836         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89837
89838 2004-11-19  Bruno Haible  <bruno@clisp.org>
89839
89840         * lib/strtok_r.c: Move comments from here...
89841         * lib/strtok_r.h: ... to here.
89842
89843 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89844
89845         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89846         implementations that mishandle size_t overflow.
89847
89848 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89849
89850         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89851         might fail.  Problem reported by Yoann Vandoorselaere.
89852         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89853         implementations that mishandle size_t overflow.
89854
89855 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89856
89857         * modules/canon-host (Depends-on): Add strdup.
89858
89859 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89860
89861         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89862
89863 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89864
89865         * lib/canon-host.c: Include "strdup.h".
89866         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89867         Use strdup instead of malloc/strcpy to duplicate strings.
89868
89869         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89870         (human_space_before_unit): New constant.
89871         * lib/human.c (human_readable): Support it.
89872
89873         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89874         (xgetcwd): Set errno correctly when failing.
89875         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89876         the failure is actually due to a PATH_MAX problem.
89877
89878         Further getopt changes to make it more likely that glibc will
89879         buy the changes back.
89880         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89881         (getopt): Use it, so to preserve glibc semantic
89882         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89883         when compiling for libc.
89884         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89885         (getopt_long, getopt_long_only): Use it.
89886
89887         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89888         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89889         (getopt): Argv is now char * const *, as per standard.
89890         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89891         not char *__getopt_argv_const *.
89892         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89893         _getopt_long_only_r): Likewise.
89894         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89895         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89896         _getopt_long_r, _getopt_long_only_r): Likewise.
89897         * lib/getopt_.h (__getopt_argv_const): Remove.
89898         (getopt): Argv is now char * const *, as per standard.
89899
89900         * lib/getdate.y (tORDINAL): New token.
89901         (day, relunit): Allow it for relative times.
89902         (relative_time_table): Use tORDINAL for ordinals.
89903
89904 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89905
89906         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89907         Document that "second" isn't allowed as an ordinal number.
89908
89909 2004-11-16  Jim Meyering  <jim@meyering.net>
89910
89911         * modules/closeout (Depends-on): Add fpending.
89912
89913 2004-11-15  Jim Meyering  <jim@meyering.net>
89914
89915         * lib/closeout.c: Include "__fpending.h" once again.
89916         Include <stdbool.h>.
89917         (close_stdout): Don't fail just because stdout was closed initially,
89918         since some programs don't write to stdout in the normal course of
89919         operation (other than --version and --help), and we don't want this
89920         function to make e.g. `touch file >&-' fail.
89921         But do fail if it was closed and someone has tried to write to it.
89922         E.g., `printf foo >&-' must fail.
89923
89924 2004-11-13  Jim Meyering  <jim@meyering.net>
89925
89926         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89927
89928 2004-11-12  Simon Josefsson  <jas@extundo.com>
89929
89930         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89931         small doc fix is still pending.
89932
89933 2004-11-11  Simon Josefsson  <jas@extundo.com>
89934
89935         * modules/strtok_r: New file.
89936
89937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89938         strtok_r.
89939
89940 2004-11-11  Simon Josefsson  <jas@extundo.com>
89941
89942         * m4/strtok_r.m4: New file.
89943
89944         * m4/getopt.m4: Replace opterr.
89945
89946 2004-11-11  Simon Josefsson  <jas@extundo.com>
89947
89948         * lib/strtok_r.h, strtok_r.c: New file.
89949
89950 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89951
89952         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89953         of replacing opterr, getopt, etc.  This should handle the
89954         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89955
89956 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89957
89958         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89959         we can stop lying to compilers about the constness of argv when we
89960         are compiled outside glibc.
89961         (getopt, getopt_long, getopt_long_only): Use it.
89962         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89963         _getopt_internal, getopt): Likewise.
89964         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89965         _getopt_long_only_r): Likewise.
89966         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89967         _getopt_long_r, _getopt_long_only_r): Likewise.
89968
89969         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89970         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89971         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89972         the other external symbols.
89973         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89974         declaration, since the above renaming now works around collisions.
89975
89976 2004-11-11  Jim Meyering  <jim@meyering.net>
89977
89978         * lib/linebreak.c: Remove trailing blanks.
89979         * lib/alloca_.h: Likewise.
89980         * lib/acosl.c: Likewise.
89981         * lib/euidaccess.c: Likewise.
89982         * lib/allocsa.h: Likewise.
89983
89984 2004-11-10  Simon Josefsson  <jas@extundo.com>
89985
89986         * m4/getaddrinfo.m4: New file.
89987
89988 2004-11-10  Simon Josefsson  <jas@extundo.com>
89989
89990         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89991
89992 2004-11-10  Simon Josefsson  <jas@extundo.com>
89993
89994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89995         getaddrinfo.
89996
89997         * modules/getaddrinfo: New file.
89998
89999 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90000
90001         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90002
90003 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90004
90005         * lib/mktime.c (SHR): New macro, which is a portable
90006         substitute for >> that should work even on Crays.
90007         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90008         Problem reported by Mark D. Baushke in
90009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90010         * lib/getdate.y (SHR): Likewise.
90011         (tm_diff): Use it.
90012         * lib/strftime.c (SHR): Likewise.
90013         (tm_diff): Use it.
90014         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90015         quote_these_too, so that right shifts are well defined.  All uses
90016         changed.
90017
90018 2004-11-10  Jim Meyering  <jim@meyering.net>
90019
90020         Ensure that no close failure goes unreported.
90021         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90022         return early when it seems there's nothing to flush.
90023         Don't include __fpending.h.
90024
90025 2004-11-10  Jim Meyering  <jim@meyering.net>
90026
90027         * modules/closeout (Depends-on): Remove fpending.
90028
90029 2004-11-10  Jim Meyering  <jim@meyering.net>
90030
90031         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90032
90033 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90034
90035         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90036         gl_FUNC_STRFTIME.
90037         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90038         and AC_REQUIRE when possible, to avoid duplicate checks.
90039         Check for <wchar.h>.
90040
90041 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90042
90043         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90044
90045 2004-11-09  Bruno Haible  <bruno@clisp.org>
90046
90047         * m4/sockpfaf.m4: New file.
90048
90049 2004-11-05  Bruno Haible  <bruno@clisp.org>
90050
90051         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90052         Reported by Mark D. Baushke <mdb@cvshome.org>.
90053
90054 2004-11-04  Bruno Haible  <bruno@clisp.org>
90055
90056         2004-09-11  Bruno Haible  <bruno@clisp.org>
90057                 * allocsa.valgrind: New file.
90058         2004-02-06  Bruno Haible  <bruno@clisp.org>
90059                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90060                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90061                 Reported by Christopher Seip <chris.seip@hp.com>.
90062
90063 2004-11-04  Bruno Haible  <bruno@clisp.org>
90064
90065         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90066         (Makefile.am): Distribute it.
90067
90068 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90069
90070         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90071         with errno == ERANGE if the buffer is too small.
90072         Problem reported by Mark D. Baushke.
90073
90074 2004-11-03  Albert Chin  <china@thewrittenword.com>
90075             Paul Eggert  <eggert@cs.ucla.edu>
90076
90077         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90078         equivalent, substitute $ac_type for equivalent type rather than
90079         blindly using uint32_t *always* which won't work if uint32_t is not
90080         available.  Define _UINT32_T to work around typedef of uint32_t if
90081         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90082         2.5.1.
90083
90084 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90085
90086         * m4/jm-macros.m4: Sync from coreutils.
90087         (gl_MACROS): Check for mbrlen, for pathchk.
90088         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90089
90090 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90091
90092         * lib/xreadlink.c (MAXSIZE): New macro.
90093         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90094         size does not exceed MAXSIZE.  Avoid cast.
90095         As suggested by Mark D. Baushke in
90096         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90097         if readlink fails with buffer size just under MAXSIZE, try again
90098         with MAXSIZE.
90099
90100 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90101
90102         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90103
90104 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90105         and  Paul Eggert  <eggert@cs.ucla.edu>
90106
90107         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90108         (get_date): Overparenthesize to avoid GCC warning.
90109
90110 2004-11-02  Bruno Haible  <bruno@clisp.org>
90111
90112         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90113         returns void.
90114
90115 2004-11-02  Bruno Haible  <bruno@clisp.org>
90116
90117         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90118         function returns void.
90119
90120 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90121
90122         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90123         fflush_unlocked, flockfile, funlockfile, funlockfile,
90124         fputs_unlocked, putc_unlocked.
90125
90126 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90127
90128         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90129         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90130         already declared.
90131
90132 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90133
90134         * modules/getdate (Files): Add doc/getdate.texi.
90135         (Depends-on): Add setenv, xalloc.
90136
90137 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90138
90139         * lib/getdate.y: Add support for TZ="foo" within a date string.
90140         Fix some bugs near time_t boundaries.  Reject dates with
90141         out-of-range components, e.g., "Sept 31".
90142         Include <stdlib.h>, "setenv.h", "xalloc.h".
90143         (ISDIGIT_LOCALE): Remove; unused.
90144         Note that the TZ and time functions used here are not reentrant.
90145         (mktime_ok, get_tz): New functions.
90146         (TZBUFSIZE): New constant.
90147         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90148         This requires that we sometimes generate our own TZ="XXX..." setting.
90149
90150 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90151
90152         * doc/getdate.texi: New file, from coreutils with modifications for
90153         the new TZ parsing.
90154
90155 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90156
90157         * lib/mktime.c (not_equal_tm): Remove redundant check.
90158
90159 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90160
90161         * modules/regex (lib_SOURCES): Add regex.c.
90162         Reported by James Youngman in
90163         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90164
90165 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90166
90167         * lib/getdate.y: Use Bison 1.875 features, and some minor
90168         code cleanups.  This change does not affect semantics.
90169         Don't include <stdlib.h>; no longer needed.
90170         Don't include unlocked-io.h; only the "#if TEST" code uses
90171         stdio, and performance isn't crucial there.
90172         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90173         Bison 1.875 features as described below.
90174         All uses of "PC." replaced by "pc->".
90175         (YYSTYPE): Add a forward declaration.
90176         (yylex, yyerror): Use full prototypes in forward decls.
90177         Use "%pure-parser" rather than obsolescent "%pure_parser".
90178         Use %parse-param and %lex-param instead of obsolescent
90179         YYPARSE_PARAM and YYLEX_PARAM.
90180         (meridian_table, month_and_day_table, time_units_table,
90181         relative_time_table, time_zone_table, military_table,
90182         lookup_zone, lookup_word, get_date):
90183         Use NULL instead of 0 where appropriate.
90184         (to_hour): Avoid abort (), to avoid a dependency on
90185         stdlib.h.
90186         (yyerror, yylex): Now accepts parser_control * arg.
90187         (main) [TEST]: Use '\0' rather than 0 for char.
90188
90189 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90190
90191         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90192
90193 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90194
90195         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90196         It's now the caller's responsibility to handle the case where
90197         !HAVE_GETPAGESIZE && !defined getpagesize.
90198
90199         * lib/mktime.c (leapyear): Arg is long int, not int.
90200
90201 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90202
90203         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90204
90205 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90206
90207         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90208         missing.  Problem reported by James Youngman.
90209
90210 2004-10-16  Simon Josefsson  <jas@extundo.com>
90211
90212         * gnulib-tool: Fix comments.  Fix parse problem.
90213         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90214
90215 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90216
90217         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90218         implementation of getopt_long.  Problem reported by Alexander Taler in:
90219         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90220
90221 2004-10-15  Bruno Haible  <bruno@clisp.org>
90222
90223         * gnulib-tool: Untabify. Initialize supplied_libname.
90224         (func_usage): More homogenous output.
90225         (func_modules_transitive_closure, func_modules_to_filelist,
90226         func_emit_lib_Makefile_am): New functions.
90227         (func_import): New function, extracted from big case statement. Use
90228         func_get_license, func_modules_transitive_closure,
90229         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90230         opt_lgpl. Don't use test -a, as it's not portable.
90231         (func_create_testdir): Use func_modules_transitive_closure,
90232         func_modules_to_filelist, func_emit_lib_Makefile_am.
90233
90234 2004-10-15  Bruno Haible  <bruno@clisp.org>
90235
90236         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90237
90238 2004-10-15  Bruno Haible  <bruno@clisp.org>
90239
90240         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90241         the portions belonging to each module.
90242         Suggested by Derek Robert Price <derek@ximbiot.com>.
90243
90244 2004-10-12  Simon Josefsson  <jas@extundo.com>
90245
90246         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90247         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90248         to real functions.
90249
90250 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90251
90252         * modules/vsnprintf: New file.
90253
90254 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90255
90256         * m4/vsnprintf.m4: New file.
90257
90258 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90259
90260         * lib/vsnprintf.h: New file.
90261         * lib/vsnprintf.c: New file.
90262
90263 2004-10-11  Bruno Haible  <bruno@clisp.org>
90264
90265         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90266         vsnprintf.
90267
90268 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90269
90270         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90271
90272 2004-10-07  Bruno Haible  <bruno@clisp.org>
90273
90274         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90275         fits into the provided buffer.
90276
90277 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90278
90279         * lib/diacrit.c, diacrit.h: Add GPL notice.
90280
90281         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90282         notice.
90283         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90284         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90285         This avoids a potential constant-folding bug.
90286
90287 2004-10-05  Bruno Haible  <bruno@clisp.org>
90288
90289         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90290         for the declaration of strsep.
90291
90292 2004-10-05  Bruno Haible  <bruno@clisp.org>
90293
90294         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90295
90296 2004-10-04  Simon Josefsson  <jas@extundo.com>
90297
90298         * modules/memmem: New file.
90299         * tests/test-memmem.c: New file.
90300         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90301
90302 2004-10-04  Simon Josefsson  <jas@extundo.com>
90303
90304         * m4/memmem.m4: New file.
90305
90306 2004-10-04  Simon Josefsson  <jas@extundo.com>
90307
90308         * lib/memmem.h: New file.
90309         * lib/memmem.c: New file, taken from glibc.
90310
90311 2004-10-04  Simon Josefsson  <jas@extundo.com>
90312
90313         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90314         '#ifdef USE_UNLOCKED_IO'.
90315
90316 2004-10-04  Simon Josefsson  <jas@extundo.com>
90317
90318         * config/srclist.txt: Add memmem from glibc.
90319
90320 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90321
90322         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90323
90324         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90325         modules/exclude, modules/getdate, modules/getline,
90326         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90327         modules/getusershell, modules/linebuffer, modules/md5,
90328         modules/mountlist, modules/posixtm, modules/readtokens,
90329         modules/readutmp, modules/regex, modules/sha1,
90330         modules/version-etc, modules/yesno:
90331         Remove dependency on unlocked-io.
90332
90333 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90334
90335         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90336
90337         * m4/unlocked-io.m4: Add copyright notice.
90338         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90339
90340 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90341
90342         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90343         * lib/xmalloc.c (xmemdup): Likewise.
90344         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90345         XFREE): Remove these long-obsolescent macros.
90346         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90347         * lib/xstrdup.c: Remove.
90348
90349         * lib/regex.c (re_comp): Cast gettext return value to char *,
90350         Problem reported by Martin Neitzel via Mark D. Baushke.
90351
90352 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90353
90354         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90355         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90356         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90357         regex.c, sha1.c, version-etc.c, yesno.c:
90358         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90359         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90360         the includer's responsibility.
90361
90362         Sync from coreutils.
90363
90364         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90365         points to the start of a string, as the C Standard says the
90366         resulting behavior is undefined.
90367
90368         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90369         simple -> simple_backups, numbered_existing ->
90370         numbered_existing_backups, numbered -> numbered_backups
90371         to avoid shadowing problems.  All uses changed.
90372         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90373         * lib/backupfile.c (check_extension, numbered_backup):
90374         Rename locals to avoid shadowing 'basename'.
90375         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90376         once.
90377
90378         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90379         * lib/.cvsignore: Add getopt.h.
90380
90381 2004-10-04  Bruno Haible  <bruno@clisp.org>
90382
90383         * modules/README: New file.
90384         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90385         not a module.
90386
90387 2004-10-02  Jim Meyering  <jim@meyering.net>
90388
90389         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90390
90391 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90392
90393         * modules/strsep: New file.
90394
90395 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90396
90397         * m4/strsep.m4: New file.
90398
90399 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90400
90401         * lib/strsep.h: New file.
90402         * lib/strsep.c: New file.
90403
90404 2004-10-01  Simon Josefsson  <jas@extundo.com>
90405
90406         * lib/snprintf.c (snprintf): Handle size==0.
90407
90408 2004-10-01  Simon Josefsson  <jas@extundo.com>
90409             Bruno Haible  <bruno@clisp.org>
90410
90411         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90412         (snprintf): Declare 'args'.
90413
90414 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90415
90416         * lib/snprintf.c: Remove comments as to why each header is needed.
90417
90418 2004-10-01  Bruno Haible  <bruno@clisp.org>
90419
90420         * MODULES.html.sh: Add strsep.
90421
90422 2004-09-30  Simon Josefsson  <jas@extundo.com>
90423
90424         * modules/snprintf: New file.
90425
90426 2004-09-30  Simon Josefsson  <jas@extundo.com>
90427
90428         * m4/snprintf.m4: New file.
90429
90430 2004-09-30  Simon Josefsson  <jas@extundo.com>
90431
90432         * lib/snprintf.h, lib/snprintf.c: New files.
90433
90434 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90435
90436         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90437         (hol_entry_help): Never translate an empty string.
90438         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90439         * lib/argp.h (OPTION_NO_TRANS): New option.
90440
90441 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90442
90443         * modules/argp (Maintainer): Replace Simon Josefsson
90444         by Sergey Poznyakoff.
90445
90446 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90447
90448         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90449         changes merged back into glibc.
90450
90451 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90452
90453         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90454
90455 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90456
90457         * lib/xvasprintf.c: Include xalloc.h.
90458         (xvasprintf): Use xalloc_die, not xmalloc_die.
90459
90460 2004-09-29  Bruno Haible  <bruno@clisp.org>
90461
90462         * modules/alloca-opt: New file, derived from modules/alloca.
90463         * modules/allocsa: Depend on alloca-opt instead of alloca.
90464         * modules/setenv: Likewise.
90465         * modules/vasnprintf: Likewise.
90466         * MODULES.html.sh: Add alloca-opt.
90467
90468 2004-09-28  Simon Josefsson  <jas@extundo.com>
90469
90470         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90471         LGPL, and to replace license template from GPL to LGPL.
90472
90473 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90474
90475         * modules/dummy: Change license to LGPL.
90476
90477 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90478
90479         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90480
90481 2004-09-24  Simon Josefsson  <jas@extundo.com>
90482
90483         * modules/minmax (License): Change from GPL to LGPL.
90484
90485 2004-09-23  Simon Josefsson  <jas@extundo.com>
90486
90487         * gnulib-tool (--import): Typo.
90488
90489 2004-09-23  Simon Josefsson  <jas@extundo.com>
90490
90491         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90492
90493 2004-09-22  Bruno Haible  <bruno@clisp.org>
90494
90495         * modules/*: Add 'License' field.
90496         * gnulib-tool: Accept --extract-license option.
90497         (func_get_license): New function.
90498
90499 2004-09-21  Bruno Haible  <bruno@clisp.org>
90500
90501         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90502         Reported by Simon Josefsson.
90503
90504 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90505
90506         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90507         gl_AC_TYPE_LONG_LONG.
90508
90509 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90510
90511         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90512
90513 2004-09-18  Simon Josefsson  <jas@extundo.com>
90514         and  Paul Eggert  <eggert@cs.ucla.edu>
90515
90516         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90517         calls with autoreconf.  Define GL_LIB.
90518
90519 2004-09-14  Karl Berry  <karl@gnu.org>
90520
90521         * config/srclist.txt: unsync setenv.c, sigh.
90522
90523 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90524
90525         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90526         Problem reported by Bruno Haible in:
90527         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90528
90529 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90530
90531         * config/srclist.txt: Comment out argp-pvh.c.
90532
90533 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90534
90535         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90536         in case some system header has #define'd it.  Problem reported by
90537         Soeren D. Schulze in
90538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90539
90540 2004-09-09  Karl Berry  <karl@gnu.org>
90541
90542         * regex.[ch]: delete from the root.  These were supposed to be
90543                 synced with emacs cvs, but this has not happened for about
90544                 a year, and anyway nothing else uses emacs regex.[ch].
90545                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90546                 lib/regex[.ch] is untouched.
90547
90548 2004-09-09  Bruno Haible  <bruno@clisp.org>
90549
90550         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90551
90552 2004-09-09  Bruno Haible  <bruno@clisp.org>
90553
90554         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90555         modifications.
90556         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90557
90558 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90559
90560         * modules/xvasprintf: New file.
90561         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90562
90563 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90564
90565         * lib/xvasprintf.h: New file.
90566         * lib/xvasprintf.c: New file.
90567         * lib/xasprintf.c: New file.
90568
90569 2004-09-08  Bruno Haible  <bruno@clisp.org>
90570
90571         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90572
90573 2004-09-08  Bruno Haible  <bruno@clisp.org>
90574
90575         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90576         length is > INT_MAX.
90577         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90578         more.
90579
90580 2004-09-08  Bruno Haible  <bruno@clisp.org>
90581
90582         * lib/stdint_.h: New file, taken from GNU clisp.
90583
90584 2004-09-08  Bruno Haible  <bruno@clisp.org>
90585             Oskar Liljeblad  <oskar@osk.mine.nu>
90586
90587         * modules/stdint: New file.
90588         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90589
90590 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90591
90592         Import from coreutils.
90593         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90594         strings on unbounded length.  alloca's performance benefits aren't
90595         that important here.
90596         (V_STRDUP): Remove.
90597         (parse_with_separator): New function, with most of the internals
90598         of the old parse_user_spec.  Allow user to omit both user and group,
90599         for compatibility with FreeBSD.
90600         Clone only the user name, not the entire spec.
90601         Do not set *uid, *gid unless entirely successful.
90602         Avoid memory leak in some failing cases.
90603         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90604         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90605         (parse_user_spec): Rewrite to use parse_with_separator.
90606
90607 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90608
90609         * modules/userspec: Don't depend on alloca.
90610
90611 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90612
90613         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90614
90615 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90616
90617         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90618         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90619         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90620
90621 2004-08-16  Simon Josefsson  <jas@extundo.com>
90622
90623         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90624         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90625         Add --dry-run for --import.
90626         Let user provided command line parameters override configure.ac
90627         settings.
90628
90629 2004-08-12  Simon Josefsson  <jas@extundo.com>
90630
90631         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90632         as discussed with Paul Eggert in threads rooted at
90633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90634         and
90635         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90636         Before, the test was empty, and relied on ELIDE_CODE in source
90637         code.)
90638         (gl_PREREQ_GETOPT): New macro.
90639         (gl_GETOPT): Use them.
90640
90641 2004-08-12  Simon Josefsson  <jas@extundo.com>
90642
90643         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90644         * lib/getopt_.h: Renamed from getopt.h.
90645
90646 2004-08-12  Simon Josefsson  <jas@extundo.com>
90647
90648         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90649         Change default library name from libfoo to libgnu.
90650         Now, if you have a configure.ac that says:
90651                 gl_SOURCE_BASE(gl)
90652                 gl_M4_BASE(gl/m4)
90653                 gl_MODULES(error getopt etcetera)
90654                 gl_INIT
90655         you can import all you need by running:
90656                 ../gnulib/gnulib-tool --import
90657
90658         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90659         (Makefile.am): Rewrite, use logic from argz.
90660         (Include): Use <getopt.h> instead of "getopt.h".
90661
90662 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90663
90664         * modules/argp (Files): Add m4/unlocked-io.m4.
90665         (Depends-on): Add extensions.
90666
90667 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90668
90669         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90670         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90671         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90672         Check for program_invocation_name, program_invocation_short_name,
90673         flockfile, funlockfile, features.h, _getopt_long_only_r.
90674
90675 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90676
90677         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90678         its complicated substitute.
90679         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90680         and program_invocation_name.
90681         (__argp_basename) [!_LIBC]: Remove; the only use was
90682         replaced by its body.
90683         (__argp_short_program_name): Change condition from
90684         !defined __argp_short_program_name to
90685         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90686         to match argp-namefrob.h.
90687         (__argp_failure): Don't assume strerror_r returns char *.
90688         * lib/argp-parse.c (N_): Define unconditionally.
90689         (argp_default_options): Fill out initializers with 0 to avoid
90690         gcc warnings.
90691
90692 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90693
90694         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90695         getopt1.c.
90696
90697 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90698
90699         Merge from coreutils.
90700
90701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90702
90703         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90704         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90705
90706 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90707
90708         Merge from coreutils.
90709
90710         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90711         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90712         for Reliant Unix 5.43.
90713
90714         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90715         (union fooround): Use uintmax_t, not long int.
90716         The rest is a merge from libc:
90717         [defined _LIBC]: Include <shlib-compat.h>.
90718         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90719
90720         * lib/settime.c (settime): Recode to avoid warning with
90721         Sun Forte C 6U2.
90722
90723         * lib/strverscmp.c: Convert to UTF-8.
90724
90725 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90726
90727         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90728         m4/uintmax_t.m4.
90729
90730 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90731
90732         * modules/xalloc-die: New file.
90733         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90734
90735         * modules/md5 (Files): Add m4/uint32_t.m4.
90736         * modules/sha1: Renamed from modules/sha.
90737         (Files):
90738         Rename lib/sha.h to lib/sha1.h.
90739         Rename lib/sha.c to lib/sha1.c.
90740         Rename m4/sha.m4 to m4/sha1.m4.
90741         (lib_SOURCES): Likewise.
90742         (configure.ac): Rename gl_SHA to gl_SHA1.
90743         (Include): sha.h -> sha1.h.
90744
90745 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90746
90747         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90748         * m4/sha1.m4: Renamed from sha.m4.
90749         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90750
90751 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90752
90753         * lib/obstack.h (obstack_empty_p):
90754         Don't assume that chunk->contents is suitably aligned.
90755         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90756         Likewise. Problem reported by Benno in
90757         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90758
90759         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90760         readable.  This could be improved further but it'd take some work.
90761
90762 2004-08-08  Simon Josefsson  <jas@extundo.com>
90763
90764         * modules/xgethostname (Depends-on): Remove exit and error (not
90765         used).
90766
90767         * modules/getpass-gnu: Add getpass.h.
90768         (Depends-on): Add stdbool.
90769         * modules/getpass: Add getpass.h.
90770
90771 2004-08-08  Simon Josefsson  <jas@extundo.com>
90772
90773         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90774         Check getpass declaration.
90775
90776 2004-08-08  Simon Josefsson  <jas@extundo.com>
90777
90778         * lib/xgethostname.c: Don't include error.h (not used).
90779
90780         * lib/getpass.h: Add.
90781         * lib/getpass.c: Include getpass.h first.
90782
90783 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90784
90785         * lib/xalloc-die.c: New file.
90786         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90787         All uses removed.
90788         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90789         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90790         xalloc-die.c.
90791         (_, N_, xalloc_die): Move to xalloc-die.c.
90792         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90793         so that we needn't mess with xalloc_msg_memory_exhausted.
90794
90795         * lib/sha1.h: Renamed from sha.h.
90796         (SHA1_H): Renamed from _SHA_H.
90797         (sha1_ctx): Renamed from sha_ctx.
90798         (sha1_init_ctx): Renamed from sha_init_ctx.
90799         (sha1_process_block): Renamed from sha_process_block.
90800         (sha1_process_bytes): Renamed from sha_process_bytes.
90801         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90802         (sha1_read_ctx): Renamed from sha_read_ctx.
90803         (sha1_stream): Renamed from sha_stream.
90804         (sha1_buffer): Renamed from sha_buffer.
90805         * lib/sha1.c: Likewise; renamed from sha.c.
90806         Do not include <sys/types.h>.
90807         Include <stddef.h> rather than <stdlib.h>.
90808
90809 2004-08-08  Bruno Haible  <bruno@clisp.org>
90810
90811         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90812         FILESYSTEM_PREFIX_LEN.
90813         * lib/progreloc.c: Likewise.
90814         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90815
90816 2004-08-06  Simon Josefsson  <jas@extundo.com>
90817
90818         * modules/progname (Depends-on): Don't depend on stdbool.
90819
90820 2004-08-06  Simon Josefsson  <jas@extundo.com>
90821
90822         * modules/getsubopt: New file.
90823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90824         getsubopt.
90825
90826 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90827
90828         More merge from coreutils.
90829
90830         * m4/utimens.m4, m4/utimecmp.m4: New files.
90831         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90832         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90833         prereq.m4, sha.m4: Import changes from coreutils.
90834
90835 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90836
90837         More merge from coreutils.
90838         * modules/raise, modules/readtokens0, modules/utimens:
90839         * modules/utimecmp, module/xnanosleep: New files.
90840         * modules/strftime: Add lib/strftime.h.
90841         Change include from <time.h> to "strftime.h".
90842         * modules/yesno: Add lib/yesno.h.
90843         * modules/backupfile: Remove lib/addext.c.
90844         * modules/euidaccess: Add stat-macros.h.
90845         * modules/canonicalize, modules/euidaccess,
90846         modules/filemode, modules/lchown, modules/makepath,
90847         modules/rmdir, modules/stat: Likewise.
90848
90849 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90850
90851         Merge from tar.
90852         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90853         SIZE_MAX is a valid preprocessor constant.
90854         (__argp_basename): Change from "#ifndef _LIBC"
90855         to "#ifndef __argp_short_program_name", so that
90856         we don't compile these functions for tar.
90857
90858         More merges from coreutils.
90859         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90860         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90861         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90862         * lib/addext.c: Remove; no longer needed.
90863         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90864         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90865         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90866         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90867         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90868         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90869         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90870         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90871         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90872         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90873         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90874         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90875         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90876         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90877         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90878         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90879         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90880         Import changes from coreutils.
90881
90882 2004-08-05  Simon Josefsson  <jas@extundo.com>
90883
90884         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90885
90886 2004-08-05  Simon Josefsson  <jas@extundo.com>
90887
90888         * m4/getsubopt.m4: New file.
90889
90890 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90891
90892         Merge from coreutils.
90893
90894         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90895         * m4/getcwd-path-max.m4: New files.
90896
90897         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90898         FILESYSTEM_PREFIX_LEN ->
90899         FILE_SYSTEM_PREFIX_LEN.
90900         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90901         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90902         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90903         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90904
90905         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90906         prerequisite modules now handle the DOS stuff.
90907         Don't check for unistd.h.
90908
90909 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90910
90911         Merge from coreutils.
90912
90913         * lib/.gdb-history: Remove; this doesn't belong here.
90914
90915         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90916         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90917         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90918         * lib/getcwd.c: New files.
90919
90920         * lib/dirname.h: Include <stdbool.h>.
90921         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90922         for consistency with POSIX terminology.  All uses changed.
90923         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90924         (strip_trailing_slashes): Use bool for booleans.
90925         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90926
90927         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90928         sometimes returns a positive errno value even when it succeeds.
90929         (print_errno_message) [!LIBC]: Fall back on strerror if
90930         __strerror_r fails.
90931
90932         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90933         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90934         (longest_relative_suffix): New function.
90935         (path_concat): Use it.  Assume first argument is not NULL.
90936         Port to DOS.  Omit redundant separators.
90937         Report an error instead of returning NULL.
90938         Use mempcpy instead of memcpy.
90939         (xpath_concat): Remove: not declared or used.
90940
90941         * lib/same.h: Include <stdbool.h>
90942         (same_name): Return bool, not int.
90943         * lib/same.c (same_name): Likewise.
90944         (errno): Don't declare; we assume C89 or better now.
90945
90946         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90947         if not already defined.
90948
90949         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90950         * lib/dup-safer.c (errno): Likewise.
90951
90952 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90953
90954         Merge from coreutils.
90955         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90956         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90957         * modules/path-concat: Don't depend on strdup.
90958
90959 2004-08-03  Simon Josefsson  <jas@extundo.com>
90960
90961         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90962         * lib/progname.h: Don't include stdbool.h.
90963
90964 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90965
90966         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90967         * MODULES.html.sh (func_all_modules): Remove fatal.
90968
90969 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90970
90971         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90972
90973 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90974
90975         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90976         working.
90977
90978 2004-08-02  Simon Josefsson  <jas@extundo.com>
90979
90980         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90981         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90982         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90983
90984 2004-08-01  Simon Josefsson  <jas@extundo.com>
90985
90986         * lib/xgetdomainname.c: Include stdlib.h, for free().
90987
90988 2004-07-19  Bruno Haible  <bruno@clisp.org>
90989
90990         * MODULES.html.sh (func_all_modules): Add dummy.
90991
90992 2004-07-16  Simon Josefsson  <jas@extundo.com>
90993
90994         * modules/dummy: New file.
90995
90996 2004-07-16  Simon Josefsson  <jas@extundo.com>
90997
90998         * lib/dummy.c: New file.
90999
91000 2004-07-16  Bruno Haible  <bruno@clisp.org>
91001
91002         * lib/backupfile.h: Add extern "C" for C++.
91003         * lib/closeout.h: Likewise.
91004         * lib/copy-file.h: Likewise.
91005         * lib/findprog.h: Likewise.
91006         * lib/full-write.h: Likewise.
91007         * lib/pathname.h: Likewise.
91008         * lib/progname.h: Likewise.
91009         * lib/stpcpy.h: Likewise.
91010         * lib/stpncpy.h: Likewise.
91011         * lib/strcase.h: Likewise.
91012         * lib/strstr.h: Likewise.
91013         * lib/xalloc.h: Likewise.
91014
91015         * lib/mbswidth.h: Add extern "C" for C++.
91016         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91017
91018 2004-07-13  Robert Millan  <robertmh@gnu.org>
91019
91020         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91021
91022 2004-07-09  Simon Josefsson  <jas@extundo.com>
91023
91024         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91025         failed without this.)
91026
91027 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91028
91029         * modules/chown (Files): Add lib/fchown-stub.c, since
91030         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91031
91032 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91033
91034         * lib/fchown-stub.c: New file.
91035
91036 2004-06-24  Jim Meyering  <jim@meyering.net>
91037
91038         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91039
91040 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91041
91042         * modules/argz: Omit "#include".
91043
91044         * MODULES.html.sh (func_all_modules): Add calloc, to match
91045         2004-06-01 addition of calloc module.
91046
91047 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91048
91049         * m4/argz.m4: New file, which is autoupdated from libtool.
91050
91051 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91052
91053         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91054         libtool.
91055
91056 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91057
91058         * config/srclist-update: Don't insist on "USA." before the
91059         close-comment, as libtool omits the period and puts the */ on a
91060         separate line.
91061         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91062         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91063
91064 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91065
91066         * modules/argz: New file.
91067         * MODULES.html.sh (func_all_modules): Add argz.
91068
91069 2004-06-12  Jim Meyering  <jim@meyering.net>
91070         and  Paul Eggert  <eggert@cs.ucla.edu>
91071
91072         * modules/hash (Files): Add lib/xalloc.h.
91073         * modules/pipe (Depends-on): Add wait-process.
91074         * modules/stat (Depends-on): Add xalloc.
91075         * modules/userspec (Files): Add lib/userspec.h.
91076         * modules/xstrto
91077
91078         Upgrade from gettext-0.13.
91079         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91080         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91081         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91082
91083 2004-06-10  Jim Meyering  <jim@meyering.net>
91084
91085         * lib/calloc.c: New file.
91086
91087 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91088
91089         * lib/getdate.y (yylex): Allow space between sign and number.
91090         Problem reported by Dan Jacobson.
91091
91092 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91093
91094         Merge from coreutils CVS.
91095
91096         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91097         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91098         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91099         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91100         xstrtol.m4: Fix copyright date and/or serial number.
91101
91102         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91103         See if we need an fchown replacement.
91104         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91105         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91106         and use the replacement function if we detect either defect.
91107
91108         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91109         gl_UTIMECMP.
91110
91111 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91112         and  Jim Meyering  <jim@meyering.net>
91113
91114         Merge from coreutils CVS.
91115
91116         * lib/stat-macros.h: New file, with contents from file-type.h
91117         and coreutils' system.h.
91118         * lib/file-type.c: Include "stat-macros.h".
91119         * lib/file-type.h (file_type): Move all macro definitions to new file,
91120         stat-macros.h.
91121
91122         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91123         Wrap old code with this conditional.
91124         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91125         function that does not dereference symlinks.
91126         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91127
91128         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91129         dependency problems.
91130         (xreadlink): Accept new arg SIZE, for efficiency.
91131         All decls and uses changed.
91132         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91133
91134         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91135         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91136
91137         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91138         sysexits.h.
91139
91140 2004-06-01  Jim Meyering  <jim@meyering.net>
91141
91142         * m4/calloc.m4: New file.
91143
91144 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91145
91146         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91147         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91148         Also, fix a typo in a diagnostic.
91149
91150 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91151
91152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91153         or AC_FUNC_REALLOC.
91154
91155 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91156
91157         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91158         macros to be defined.
91159         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91160         the allocator returns NULL because the requested size is zero.
91161
91162 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91163
91164         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91165         var.  Add comment explaining why libc still defines it.  This
91166         merges the following patch from glibc:
91167         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91168
91169 2004-05-20  Andreas Schwab  <schwab@suse.de>
91170
91171         * m4/free.m4: Replace free if it not known to work, not the other
91172         way round.
91173
91174 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91175
91176         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91177         present in glibc since revision 1.1 of this file.
91178         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91179         obstack_alignment_mask, obstack_alloc, obstack_base,
91180         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91181         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91182         obstack_grow0, obstack_init, obstack_int_grow,
91183         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91184         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91185         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91186         nonexistent functions.
91187
91188 2004-05-18  Karl Berry  <karl@gnu.org>
91189
91190         * config/srclist.txt: break link for vasnprintf.c.
91191
91192 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91193
91194         Port obstack to the AS/400, where pointers are 16 bytes wide and
91195         you cannot cast an integer to a valid pointer.  This patch is
91196         currently waiting to be integrated into glibc; see
91197         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91198
91199         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91200         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91201         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91202         (struct obstack): temp member is now a union of a pointer and
91203         an integer, instead of an integer.  All integer uses changed.
91204         This does not affect the physical layout of struct obstack,
91205         except on hosts (like the AS/400) where the size or alignment of
91206         void * is greater than that of ptrdiff_t.
91207         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91208         __STDC__)]: Store temporary in pointer member of union, not
91209         integer member.
91210         * lib/obstack.c: Include <stddef.h>, for offsetof.
91211         (struct fooalign): Remove; it doesn't need a name.
91212         (union fooround): Change double to long double, and add void *.
91213         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91214         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91215         not a macro.  Hence the values are always int; so remove all
91216         casts-to-int in uses.
91217
91218 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91219
91220         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91221         we can get this patch merged into glibc.
91222
91223 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91224             Paul Eggert  <eggert@cs.ucla.edu>
91225
91226         * m4/argp: Depend on alloca.
91227
91228 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91229             Paul Eggert  <eggert@cs.ucla.edu>
91230
91231         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91232         freecoding.
91233
91234 2004-05-17  Bruno Haible  <bruno@clisp.org>
91235
91236         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91237         precision that consists of a '.' followed by an empty digit string.
91238         Patch by Tor Lillqvist <tml@iki.fi>.
91239
91240 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91241
91242         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91243         for backward compatibility with older code.  We need our own
91244         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91245         it under some other name, and our alloca.h will define it.
91246
91247 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91248             Derek Price  <derek@ximbiot.com>
91249
91250         * lib/alloca.c: Include <alloca.h>, to get our interface.
91251         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91252         include <alloca.h> first.  Use C89 prototype for alloca; this
91253         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91254         Use #elif for simplicity, since we can assume C89 now.
91255         Don't try to source the system alloca.h since it will not be found
91256         and to prevent recursively including its replacement.
91257         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91258         * lib/regex.c: Likewise.
91259
91260 2004-05-16  Derek Price  <derek@ximbiot.com>
91261             Paul Eggert  <eggert@cs.ucla.edu>
91262
91263         getline cleanup.  This changes the getndelim2 API: both order of
91264         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91265         no delimiter).
91266
91267         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91268         interface does that.
91269         (getline): Always use getdelim, so that we don't have two
91270         copies of this code.
91271         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91272         if available.
91273         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91274         (GETNDELIM2_MAXIMUM): New macro.
91275         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91276         instead of the old practice of delim2==0.  All callers changed.
91277         Return -1 on overflow, instead of returning junk.
91278         Do not set *linesize unless allocation succeeds.
91279         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91280         that we include sys/types.h.
91281         * lib/getnline.h: Likewise.
91282         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91283         (getndelim2): Reorder arguments.
91284         * lib/getnline.c (getnline, getndelim):
91285         Don't discard the NMAX argument.
91286         (getnline): Invoke getndelim, to avoid code duplication.
91287         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91288         of (size_t) -1 by callers of the getnline family.
91289
91290 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91291
91292         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91293         Check for gettimeofday.
91294         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91295         Check for settimeofday, stime.
91296
91297 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91298
91299         * lib/nanosleep.c (suspended): Change its type from int to
91300         sig_atomic_t volatile.
91301         (first_call): Make it private to rpl_nanosleep, and have it
91302         be zero initially as that's a bit faster.
91303         (my_usleep): Round up fractional times instead of truncating them,
91304         as this is the usual meaning for 'sleep'.
91305
91306         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91307         doesn't work.
91308         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91309         (ENOSYS): Define if not defined.
91310         (settime): Fall back on stime if it exists and settimeofday fails.
91311         But don't bother with fallbacks if a method fails with errno == EPERM.
91312
91313 2004-05-11  Jim Meyering  <jim@meyering.net>
91314
91315         Prior to this change, the save_cwd caller required read access to the
91316         current directory on most systems (ones with the fchdir function).
91317
91318         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91319         fails, try write-only, and finally, resort to using xgetcwd.
91320
91321 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91322
91323         * lib/obstack.c, obstack.h: Import changes from libc.
91324
91325 2004-04-28  Bruno Haible  <bruno@clisp.org>
91326
91327         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91328         also implicitly appends .exe to executables.
91329         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91330         accepts Windows pathnames.
91331         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91332         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91333         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91334         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91335         Reported by Derek Robert Price <derek@ximbiot.com>.
91336
91337 2004-04-21  Karl Berry  <karl@gnu.org>
91338
91339         * config/srclist.txt (localcharset.c): break sync.
91340
91341 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91342
91343         * m4/host-os.m4: Add a copyright notice.
91344
91345 2004-04-20  Jim Meyering  <jim@meyering.net>
91346
91347         Change UTILS_ to gl_ in AC_DEFINE'd names.
91348         Change utils_- and jm_-prefixed variables, too.
91349         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91350         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91352
91353         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91354         Don't emit trailing blanks.
91355         Also rename jm_-prefixed variables to have gl_ prefix.
91356
91357         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91358         Also rename jm_-prefixed variables to have gl_ prefix.
91359
91360         * m4/jm-macros.m4: Reflect the renamings.
91361         * m4/prereq.m4: Likewise.
91362
91363 2004-04-20  Jim Meyering  <jim@meyering.net>
91364
91365         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91366         memory.
91367
91368 2004-04-20  Jim Meyering  <jim@meyering.net>
91369             Bruno Haible  <bruno@clisp.org>
91370
91371         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91372         memory when realloc fails.
91373
91374 2004-04-19  Jim Meyering  <jim@meyering.net>
91375
91376         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91377         now that readutmp.c may call `free (0)'.
91378
91379 2004-04-19  Bruno Haible  <bruno@clisp.org>
91380
91381         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91382         * m4/inttypes_h.m4: Likewise.
91383         * m4/stdint_h.m4: Likewise.
91384         * m4/intmax_t.m4: Likewise.
91385         * m4/uintmax_t.m4: Likewise.
91386
91387 2004-04-18  Jim Meyering  <jim@meyering.net>
91388
91389         * m4/prereq.m4: Don't forbid jm_ prefix.
91390
91391         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91392         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91393         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91394         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91395         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91396         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91397         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91398         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91399         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91400         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91401         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91402         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91403         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91404         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91405         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91406         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91407         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91408         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91409         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91410
91411 2004-04-18  Jim Meyering  <jim@meyering.net>
91412
91413         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91414         failure, don't leak memory and do call END_UTMP_ENT.
91415
91416 2004-04-16  Jim Meyering  <jim@meyering.net>
91417
91418         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91419         coreutils' stat program.
91420         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91421
91422 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91423
91424         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91425         C89.
91426         (CHAR_BIT): Remove, since we assume C89.
91427         Include <stdint.h> if available, as per current Autoconf CVS advice.
91428
91429 2004-03-31  Jim Meyering  <jim@meyering.net>
91430
91431         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91432         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91433         * m4/xalloc.m4: Likewise.
91434
91435 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91436
91437         Merge from coreutils.
91438
91439         * m4/inttostr.m4: New file.
91440         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91441         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91442         Require gl_CLOCK_TIME.
91443         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91444
91445 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91446
91447         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91448         not bool, to be more consistent with Unix conventions.
91449         Suggested by Bruno Haible.
91450
91451         Merge from coreutils.
91452
91453         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91454         * lib/umaxtostr.c: New files.
91455
91456         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91457         the usual <time.h> dance.
91458         (get_date): Change signature to support fractional time stamps.
91459         All callers changed.
91460         * lib/getdate.y: Include "getdate.h" first, as we can now
91461         assume C89 and don't need to worry about 'const'.
91462         Similarly, include "unlocked-io.h" near start, not in middle.
91463         Include <limits.h>.
91464         (textint.value): Use long int rather than int.
91465         (textint.digits): Use size_t rather than int.
91466         (BILLION, LOG10_BILLION): New constants.
91467         (parser_control): New member rel_ns.  Members day_ordinal,
91468         time_zone, month, day, hour, minutes, rel_year, rel_month,
91469         rel_day, rel_hour, rel_minutes, rel_seconds
91470         are now long int, not int.  Member seconds is now struct timespec,
91471         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91472         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91473         not int.
91474         (%union.intval): Now long int, not int.
91475         New member timespec.
91476         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91477         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91478         (spec): Now is a timespec or an item list.
91479         (timespec, items): New nonterminals.
91480         (time, rel, relunit, number, get_date):
91481         Add support for fractional seconds.
91482         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91483         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91484         (to_hour): First arg is now long int, not int.
91485         (to_year): Returns long int, not int.
91486         Don't treat year -70 like 70.
91487         (tm_diff): Returns long int, not int.
91488         (lookup_word): Use bool instead of int when appropriate.
91489         (yylex): Use size_t for count, not int.
91490         Detect overflow when parsing large integer constants.
91491         Add support for fractions.
91492         (get_date): Make pointers 'const' if possible.
91493         Use more-portable code to detect integer overflow.
91494         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91495         Don't use ctime; it's not reliable if the year has >4 digits.
91496
91497         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91498         This is for compatibility with BSD.
91499
91500         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91501         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91502         From coreutils' system.h.
91503
91504         * lib/userspec.c: Don't include "posixver.h".
91505         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91506         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91507         compatible extension.  Simplify code by removing a boolean int
91508         that was always nonzero if a string was nonnull.
91509
91510 2004-03-30  Jim Meyering  <jim@meyering.net>
91511
91512         Merge from coreutils.
91513
91514         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91515         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91516         on some systems one must include <grp.h> before it.
91517         Reported by Christian Krackowizer.
91518
91519 2004-03-30  Jim Meyering  <jim@meyering.net>
91520
91521         Merge from coreutils.
91522
91523         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91524
91525         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91526         an empty input stream.
91527
91528         * lib/readtokens.c: Include <stdbool.h>.
91529         (readtoken): Use `size_t' rather than int/long.
91530         All callers adjusted.
91531         Use `bool' rather than `int' where appropriate.
91532         Use memset rather than an explicit loop.
91533         Use x2nrealloc rather than xrealloc.
91534         Allow the use of `\0' as a delimiter.
91535         (readtokens): Likewise.
91536         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91537
91538 2004-03-30  Jim Meyering  <jim@meyering.net>
91539
91540         * m4/realloc.m4: Remove file, since now it does no more than
91541         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91542         the `configure.ac' section of module/realloc.
91543         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91544
91545 2004-03-30  Bruno Haible  <bruno@clisp.org>
91546
91547         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91548         nonnull.
91549
91550 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91551
91552         Merge changes to getloadavg.c from coreutils and Emacs.
91553
91554         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91555         Define to an expression, not to the empty string.
91556         Include cloexec.h and xalloc.h.
91557         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91558         Use set_cloexec_flag rather than rolling our own.
91559         * lib/cloexec.c, lib/cloexec.h: New files.
91560
91561 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91562
91563         * m4/cloexec.m4: New file.
91564
91565 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91566
91567         * lib/getopt.h: Sync with libc CVS.
91568
91569 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91570             Bruno Haible  <bruno@clisp.org>
91571
91572         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91573         mbswidth.
91574
91575 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91576             Bruno Haible  <bruno@clisp.org>
91577
91578         * lib/mbswidth.h: Include <wchar.h> only if
91579         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91580         <wchar.h>.
91581         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91582
91583 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91584
91585         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91586         Sync with libc CVS.
91587         * lib/getopt_int.h: New file, also synced from libc.
91588
91589 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91590
91591         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91592         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91593         Bring back getopt.c, getopt.h, getopt1.c.
91594
91595 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91596
91597         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91598         All uses changed.  Check for sa_sigaction member; this fixes
91599         a bug first reported by Jason Andrade in
91600         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91601
91602 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91603
91604         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91605         '#if' expressions.  Unlike the code it replaces, it does not
91606         depend on (defined _SC_PAGESIZE).  However, it does depend on
91607         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91608         first reported by Jason Andrade in
91609         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91610
91611 2004-02-25  Simon Josefsson  <jas@extundo.com>
91612
91613         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91614
91615 2004-02-25  Simon Josefsson  <jas@extundo.com>
91616
91617         * lib/strdup.h: New file.
91618         * lib/strdup.c: Include it.
91619         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91620         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91621
91622 2004-02-23  Karl Berry  <karl@gnu.org>
91623
91624         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91625         (from fencepost.gnu.org:/gd/gnuorg).
91626
91627 2004-02-23  Karl Berry  <karl@gnu.org>
91628
91629         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91630         * config/srclist.txt: add maintain/standards documents.
91631
91632 2004-02-18  Bruno Haible  <bruno@clisp.org>
91633
91634         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91635         Reported by Derek Robert Price <derek@ximbiot.com>.
91636
91637 2004-02-16  Karl Berry  <karl@gnu.org>
91638
91639         * config/mkinstalldirs, install-sh: update from automake.
91640
91641 2004-02-06  Karl Berry  <karl@gnu.org>
91642
91643         * m4/po.m4: update from gettext 0.14.1.
91644
91645 2004-02-06  Karl Berry  <karl@gnu.org>
91646
91647         * lib/config.charset: update from gettext 0.14.1.
91648
91649 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91650
91651         Add comments and code, prompted by suggestions from Bruno Haible
91652         for sh-quote.
91653         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91654         describing the enum quoting_style values.
91655         * lib/quotearg.c (quotearg_alloc): New function.
91656         (quotearg_buffer_restyled): Treat lone { and } as special.
91657         Treat = as special.  Work around bug with older shells
91658         that "see" a '\' that is really the 2nd byte of a multibyte char.
91659         Quote empty string with shell_quoting_style.
91660
91661 2004-02-03  Bruno Haible  <bruno@clisp.org>
91662
91663         * m4/pipe.m4: New file, from GNU gettext.
91664
91665 2004-02-03  Bruno Haible  <bruno@clisp.org>
91666
91667         * lib/pipe.h: New file, from GNU gettext.
91668         * lib/pipe.c: New file, from GNU gettext.
91669
91670 2004-01-27  Bruno Haible  <bruno@clisp.org>
91671
91672         * m4/execute.m4: New file, from GNU gettext.
91673
91674 2004-01-27  Bruno Haible  <bruno@clisp.org>
91675
91676         * lib/execute.h: New file, from GNU gettext.
91677         * lib/execute.c: New file, from GNU gettext.
91678         * lib/w32spawn.h: New file, from GNU gettext.
91679
91680 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91681
91682         Merge from diffutils.
91683
91684         * lib/file-type.c (file_type): Add typed memory objects.
91685         * lib/file-type.h (S_TYPEISTMO): New macro.
91686
91687         * lib/c-stack.h (c_stack_action): Remove argv argument.
91688         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91689         (die): Don't calculate message unless segv_action returns.
91690         (get_stack_location, min_address_from_argv, max_address_from_argv,
91691         volatile stack_base, volatile_stack_size): Remove.
91692         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91693         that every segmentation violation is a stack overflow.  (Ouch!)
91694         See Debian bug 136249 (still outstanding) for more info about why
91695         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91696
91697 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91698
91699         Exit-status fix from coreutils.
91700
91701         Use exit_failure consistently in place of EXIT_FAILURE,
91702         so that program exit statuses are consistent on failure.
91703
91704         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91705         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91706         * lib/argmatch.h: Comment fix to match the above.
91707         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91708         Now a macro referring to exit_failure, instead of a separate
91709         variable.  Include "exitfail.h" to get it.
91710         * lib/xstrtol.h: Include "exitfail.h".
91711         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91712
91713         * lib/long-options.c (parse_long_options): Use prototype
91714         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91715         for clarity.
91716
91717 2004-01-21  Jim Meyering  <jim@meyering.net>
91718
91719         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91720         so as not to conflict with a different-sized __mktime_internal
91721         function in GNU libc.
91722         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91723         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91724
91725 2004-01-20  Karl Berry  <karl@gnu.org>
91726
91727         * config/config.guess: update from config.
91728
91729         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91730
91731 2004-01-20  Bruno Haible  <bruno@clisp.org>
91732
91733         Safer stack allocation.
91734         * lib/setenv.c: Include allocsa.h.
91735         (alloca): Remove fallback definition.
91736         (freea): Remove macro.
91737         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91738         instead of freea.
91739
91740 2004-01-20  Bruno Haible  <bruno@clisp.org>
91741
91742         * m4/eealloc.m4: New file, from GNU gettext.
91743
91744 2004-01-20  Bruno Haible  <bruno@clisp.org>
91745
91746         * m4/allocsa.m4: New file, from GNU gettext.
91747
91748 2004-01-20  Bruno Haible  <bruno@clisp.org>
91749
91750         * lib/xallocsa.h: New file, from GNU gettext.
91751         * lib/xallocsa.c: New file, from GNU gettext.
91752
91753 2004-01-20  Bruno Haible  <bruno@clisp.org>
91754
91755         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91756
91757 2004-01-20  Bruno Haible  <bruno@clisp.org>
91758
91759         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91760         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91761         specially.
91762
91763 2004-01-20  Bruno Haible  <bruno@clisp.org>
91764
91765         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91766         patch.
91767
91768 2004-01-20  Bruno Haible  <bruno@clisp.org>
91769
91770         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91771
91772 2004-01-20  Bruno Haible  <bruno@clisp.org>
91773
91774         * lib/eealloc.h: New file.
91775
91776 2004-01-20  Bruno Haible  <bruno@clisp.org>
91777
91778         * lib/binary-io.h: Avoid warnings on Cygwin.
91779
91780 2004-01-20  Bruno Haible  <bruno@clisp.org>
91781
91782         * lib/allocsa.h: New file, from GNU gettext.
91783         * lib/allocsa.c: New file, from GNU gettext.
91784
91785 2004-01-18  Karl Berry  <karl@gnu.org>
91786
91787         * doc/gpl.texi, doc/lgpl.texi: new files.
91788
91789 2004-01-18  Karl Berry  <karl@gnu.org>
91790
91791         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91792         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91793
91794 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91795
91796         Merge from coreutils.
91797
91798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91799         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91800         (gl_DEFAULT_POSIX2_VERSION): Move
91801         the documentation from 'configure' into 'config.hin',
91802         so that 'configure --help' isn't burdened by it and
91803         we don't have to worry about its formatting there.
91804         Reword the documentation so that it's more succinct
91805         and can be run together into a single paragraph.
91806         * m4/same.m4 (gl_SAME): Check for pathconf.
91807
91808 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91809
91810         Merge from coreutils.
91811
91812         * lib/posixver.c: Include posixver.h.
91813
91814         * lib/same.c: Include <stdbool.h>, <limits.h>.
91815         (_POSIX_NAME_MAX): Define if not defined.
91816         (MIN): New macro.
91817         (same_name): If file names are silently truncated, report
91818         that the file names are the same if they are the same after
91819         the silent truncation.
91820
91821         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91822         conversion function.
91823         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91824         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91825         longer needed.
91826
91827 2004-01-15  Jim Meyering  <jim@meyering.net>
91828
91829         Merge from coreutils.
91830
91831         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91832         if no library is required.
91833         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91834         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91835         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91836         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91837         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91838         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91839         value, $ac_cv_search_crypt, if it's "none required".
91840         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91841         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91842         not gl_FUNC_GETLOADAVG.
91843         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91844         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91845
91846 2004-01-15  Jim Meyering  <jim@meyering.net>
91847
91848         Merge from coreutils.
91849
91850         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91851         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91852         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91853
91854         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91855         optional configure-time default.
91856
91857         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91858
91859         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91860
91861 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91862
91863         Merge from coreutils.
91864
91865         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91866         value, $ac_cv_search_nanosleep, if it's "none required".
91867
91868 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91869
91870         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91871         with like-named macro in fnmatch.c.
91872         (EXT): Use an internal constant instead.
91873
91874         Merge fnmatch patches from glibc.
91875         * lib/fnmatch.c (mbsinit): Remove define.
91876         Add libc_hidden_ver (__fnmatch, fnmatch).
91877         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91878         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91879
91880 2004-01-14  Karl Berry  <karl@gnu.org>
91881
91882         * config/install-sh: update from automake.
91883
91884 2004-01-13  Karl Berry  <karl@gnu.org>
91885
91886         * config/install-sh: update from automake.
91887
91888 2004-01-09  Karl Berry  <karl@gnu.org>
91889
91890         * config/install-sh: update from automake.
91891
91892 2004-01-05  Karl Berry  <karl@gnu.org>
91893
91894         * config/config.{sub,guess}: update from config.
91895
91896 2003-12-31  Karl Berry  <karl@gnu.org>
91897
91898         * config/depcomp: update from automake.
91899
91900 2003-12-14  Karl Berry  <karl@gnu.org>
91901
91902         * lib/config.charset: update from gettext-runtime.
91903
91904 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91905
91906         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91907         Bug reported by Alfred M. Szmidt.
91908
91909 2003-12-03  Bruno Haible  <bruno@clisp.org>
91910
91911         * m4/gettext.m4: Upgrade from gettext-0.13.
91912         * m4/po.m4: Upgrade from gettext-0.13.
91913         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91914         * m4/intmax.m4: New file, from gettext-0.13.
91915         * m4/printf-posix.m4: New file, from gettext-0.13.
91916
91917 2003-11-29  Karl Berry  <karl@gnu.org>
91918
91919         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91920
91921 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91922             Bruno Haible  <bruno@clisp.org>
91923
91924         * lib/printf-parse.h: Don't include sys/types.h.
91925         (ARG_NONE): New macro.
91926         (char_directive): Change type of *arg_index fields to size_t.
91927         * lib/printf-parse.c: Don't include sys/types.h.
91928         (SSIZE_MAX): Remove macro.
91929         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91930         Remove unnecessary overflow check.
91931         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91932         fields.
91933
91934 2003-11-25  Bruno Haible  <bruno@clisp.org>
91935
91936         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91937
91938 2003-11-25  Bruno Haible  <bruno@clisp.org>
91939
91940         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91941         gt_TYPE_SSIZE_T.
91942
91943 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91944
91945         * modules/alloca: Remove dependency on xalloc.
91946
91947 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91948
91949         * lib/alloca.c: Remove dependency on xalloc module.
91950         (xalloc_die): Remove.
91951         (memory_full) [!defined emacs]: New macro.
91952         [!defined emacs]: Don't include xalloc.h.
91953         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91954         address arithmetic overflows.  Change datatypes a bit to avoid
91955         unnecessary casts.
91956
91957 2003-11-22  Jim Meyering  <jim@meyering.net>
91958
91959         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91960         s/size/size_t/.
91961
91962 2003-11-21  Karl Berry  <karl@gnu.org>
91963
91964         * config/config.{sub,guess}: update from config.
91965
91966 2003-11-18  Karl Berry  <karl@gnu.org>
91967
91968         * config/config.{sub,guess}: update from config.
91969
91970         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91971
91972 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91973
91974         * README: Mention that S+T cannot overflow if S is the size of
91975         an existing object and T is sufficiently small.
91976
91977 2003-11-17  Jim Meyering  <jim@meyering.net>
91978
91979         On systems without utime and without a utimes function capable of
91980         dealing with a NULL struct utimbuf* argument, this utime replacement
91981         could -- in unusual circumstances -- leak a file descriptor.
91982         * lib/utime.c: Include <unistd.h> and <errno.h>.
91983         (utime_null): Be sure to close `fd' and to preserve errno.
91984         Reported by Geoff Collyer via Arnold Robbins.
91985
91986 2003-11-17  Bruno Haible  <bruno@clisp.org>
91987
91988         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91989         (Depends-on): Add xsize.
91990
91991 2003-11-17  Bruno Haible  <bruno@clisp.org>
91992
91993         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91994
91995 2003-11-17  Bruno Haible  <bruno@clisp.org>
91996
91997         * lib/vasnprintf.c (alloca): Remove fallback definition.
91998         (freea): Remove definition.
91999         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92000         Reported by Paul Eggert.
92001
92002 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92003             Bruno Haible  <bruno@clisp.org>
92004
92005         Protect against address arithmetic overflow.
92006         * lib/printf-args.h: Include stddef.h.
92007         (arguments): Change type of field 'count' to size_t.
92008         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92009         'unsigned int' where appropriate.
92010         * lib/printf-parse.h: Include sys/types.h.
92011         (char_directive): Change type of *arg_index fields to ssize_t.
92012         (char_directives): Change type of fields 'count', max_*_length to
92013         size_t.
92014         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92015         (SSIZE_MAX): Define fallback value.
92016         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92017         instead of 'int' where appropriate. Check a_allocated, d_allocated
92018         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92019         * lib/vasnprintf.c: Include xsize.h.
92020         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92021         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92022         overflow. Avoid wraparound when converting a width or precision from
92023         decimal to binary.
92024
92025 2003-11-16  Bruno Haible  <bruno@clisp.org>
92026
92027         Update from GNU gettext.
92028         * lib/printf-parse.c: Generalize to it can be compiled for wide
92029         strings.
92030         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92031         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92032         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92033         SNPRINTF): New macros.
92034         Don't include <alloca.h> if the file is used inside libintl.
92035         (local_wcslen): New function, for Solaris 2.5.1.
92036         (VASNPRINTF): Use it instead of wcslen.
92037
92038 2003-11-16  Bruno Haible  <bruno@clisp.org>
92039
92040         * lib/xsize.h (xmax): New function.
92041         (xsum, xsum3, xsum4): Declare as "pure" functions.
92042
92043 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92044
92045         * modules/xalloc (Files): Undo latest change, since xalloc.h
92046         no longer needs SIZE_MAX or PTRDIFF_MAX.
92047
92048 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92049
92050         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92051         gl_PTRDIFF_MAX.
92052
92053 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92054
92055         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92056         "return", to pacify some unknown compiler.  Problem reported
92057         by Joerg Schilling.
92058
92059 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92060
92061         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92062         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92063         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92064         heuristic is just as accurate as far as we know, and it removes a
92065         dependency on size_max.m4 and ptrdiff_max.m4.
92066
92067 2003-11-11  Bruno Haible  <bruno@clisp.org>
92068
92069         * modules/xsize (Files): Add m4/size_max.m4.
92070         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92071
92072 2003-11-11  Bruno Haible  <bruno@clisp.org>
92073
92074         * m4/size_max.m4: New file.
92075         * m4/ptrdiff_max.m4: New file.
92076         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92078         (gl_XALLOC): Invoke it.
92079
92080 2003-11-11  Bruno Haible  <bruno@clisp.org>
92081
92082         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92083         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92084         defined.
92085
92086 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92087
92088         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92089         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92090         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92091         From Bruno Haible.
92092         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92093         not (size_t) -1, since it's defined here.
92094
92095 2003-11-09  Karl Berry  <karl@gnu.org>
92096
92097         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92098
92099 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92100
92101         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92102         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92103         Reject sizes of exactly SIZE_MAX bytes.
92104         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92105         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92106
92107 2003-11-05  Bruno Haible  <bruno@clisp.org>
92108
92109         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92110         SIZE_MAX defined in <limits.h> on Solaris.
92111
92112 2003-11-04  Jim Meyering  <jim@meyering.net>
92113
92114         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92115         variable names, rather than @VAR@.
92116         * modules/poll: Likewise.
92117
92118 2003-11-04  Bruno Haible  <bruno@clisp.org>
92119
92120         * modules/xsize: New file.
92121         * modules/linebreak: Depend on xsize.
92122         * MODULES.html.sh (func_all_modules): Add xsize.
92123
92124 2003-11-04  Bruno Haible  <bruno@clisp.org>
92125
92126         * m4/xsize.m4: New file.
92127
92128 2003-11-04  Bruno Haible  <bruno@clisp.org>
92129
92130         * lib/xsize.h: New file.
92131         * lib/linebreak.c: Include xsize.h.
92132         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92133         argument for overflow.
92134         Suggested by Paul Eggert.
92135
92136 2003-11-03  Karl Berry  <karl@gnu.org>
92137
92138         * config/config.{guess,sub}: update from config.
92139
92140 2003-11-03  Jim Meyering  <jim@meyering.net>
92141
92142         * modules/userspec (lib_SOURCES): Add userspec.h.
92143         (Include): Add "userspec.h".
92144         Improve description.
92145
92146 2003-11-03  Jim Meyering  <jim@meyering.net>
92147
92148         * lib/userspec.c: Include "userspec.h".
92149         * lib/userspec.h: New file.
92150
92151 2003-11-03  Bruno Haible  <bruno@clisp.org>
92152
92153         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92154
92155 2003-11-03  Bruno Haible  <bruno@clisp.org>
92156
92157         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92158         available, to avoid (extremely rare) race condition.
92159         Suggested by Paul Eggert.
92160
92161 2003-11-02  Karl Berry  <karl@gnu.org>
92162
92163         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92164
92165 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92166
92167         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92168         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92169         (read_filesystem_list): Set and use me_type_malloced.
92170         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92171         whatever the type happens to be), for brevity and consistency.
92172         Check for size calculation overflow on Alphas running OSF/1.
92173
92174 2003-10-31  Jim Meyering  <jim@meyering.net>
92175
92176         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92177
92178         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92179
92180 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92181             Bruno Haible  <bruno@clisp.org>
92182
92183         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92184         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92185
92186 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92187
92188         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92189         netbsd*-gnu*.  Suggested by Robert Millan.
92190
92191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92192
92193         * modules/group-member: Depend on stdbool.
92194
92195 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92196
92197         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92198
92199 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92200
92201         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92202         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92203         after the 'gnu' in these cases.  This fixes some bugs in the
92204         previous change, and is based on suggestions by Robert Millan.
92205
92206 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92207
92208         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92209         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92210         no longer needed.
92211         * lib/quotearg.c (quotearg_n_options): Use it.
92212         * lib/group-member.c: Include <stdbool.h>.
92213         (free_group_info): Arg is now const *; don't free arg.
92214         (get_group_info): Now returns bool and accepts struct group_info *,
92215         rather than returning a malloc'ed struct group_info *.
92216         All uses changed.  Check for overflow in internal size calculation.
92217
92218         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92219         rather than xmalloc/xrealloc.
92220         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92221         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92222         conformance bug: the old code used a pointer after freeing the
92223         storage that it addressed.
92224         * lib/hash.c (hash_initialize): Simplify the code by using
92225         xalloc_oversized rather than doing it by hand.
92226         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92227         the buffer preserved.  Use free and xmalloc instead.
92228         * lib/quotearg.c (quotearg_n_options): Likewise.
92229         Use a simpler test for size overflow.  Don't use xalloc_oversized
92230         because unsigned int might be wider than size_t (!); this suggests
92231         that we should switch from unsigned int to size_t for slot numbers.
92232
92233 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92234
92235         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92236         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92237         NetBSD kernels.  Requested by Richard Stallman.
92238
92239 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92240
92241         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92242         to allocate the returned structure.  Do not allocate a subarray,
92243         as x2nrealloc will do that.
92244         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92245         instead of xnrealloc.
92246         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92247
92248 2003-10-27  Bruno Haible  <bruno@clisp.org>
92249
92250         * lib/stdbool_.h: Better support for BeOS.
92251
92252 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92253
92254         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92255         now uses inline.
92256
92257 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92258
92259         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92260         callers that want to do their own size-overflow checking.  Include
92261         <stdbool.h>, since xalloc_oversized returns bool.
92262         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92263         to use xalloc_oversized.
92264
92265         Add two functions x2realloc, x2nrealloc, for programs that grow
92266         arrays dynamically by doubling their sizes.
92267         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92268         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92269         New functions.
92270
92271         Port to C99 semantics for 'inline' of external functions.
92272         Bug reported by Bruno Haible.
92273         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92274         with the old contents of xnmalloc.
92275         (xnmalloc, xmalloc): Use it.
92276         (xnrealloc_inline): New static inline function,
92277         with the old contents of xnrealloc.
92278         (xnrealloc, xrealloc): Use it.
92279
92280         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92281         that.
92282
92283 2003-10-26  Karl Berry  <karl@gnu.org>
92284
92285         * config/srclist.txt (COPYING.DOC): no longer available from
92286         /gd/gnuorg; don't know where the ultimate source is.
92287
92288 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92289
92290         Fix several address-calculation bugs in the hash modules,
92291         plus some minor code cleanup.
92292
92293         * lib/hash.h: Include <stdbool.h>, for bool.
92294         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92295         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92296         hash_get_n_entries, hash_get_max_bucket_length,
92297         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92298         hash_rehash): Use size_t rather than unsigned.
92299         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92300         hash_get_n_buckets_used, hash_get_n_entries,
92301         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92302         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92303         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92304         Likewise.
92305         (SIZE_MAX): Define if not defined.
92306         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92307         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92308         hash_print):
92309         Use const * when possible.
92310         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92311         (check_tuning): Fix bug: if tuning parameters were very close to
92312         0 or 1, rounding errors could have caused subscript violations.
92313         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92314         (hash_initialize): Add 'fail:' label
92315         to free table and return NULL, and use it to simplify code.
92316         Use calloc rather than clearing the storage ourself.
92317         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92318         buffer size calculations.
92319         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92320         Include <stddef.h>, for size_t.
92321         * lib/hash-pjw.c (hash_pjw): Likewise.
92322         Switch to method described by Bruno Haible.
92323         Include <limits.h>, for CHAR_BIT.
92324         (SIZE_BITS): New macro.
92325
92326 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92327
92328         * m4/getline.m4 (AM_FUNC_GETLINE):
92329         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92330         hosts.  Problem reported by Derek Robert Price in
92331         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92332         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92333         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92334
92335 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92336
92337         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92338         ceiling the allocation at NMAX bytes rather than silently
92339         discarding input bytes before NMAX is reached.  This makes
92340         a difference only if NMAX exceeds SIZE_MAX / 2.
92341
92342         * lib/obstack.c: Merge from glibc.
92343         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92344         Add libc_hidden_def (_obstack_newchunk).
92345         (_obstack_free) [! defined _LIBC]: Remove.
92346         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92347         a clone of the function body.
92348         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92349         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92350
92351         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92352         glibc.
92353         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92354         arg to memcpy.
92355
92356         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92357         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92358         Don't use lvalue casts, as GCC plans to remove support for them
92359         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92360         was also present in the non-GCC version, indicating that this
92361         code had always been buggy and had never been widely used.
92362         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92363         Use the fast variant of each macro, rather than copying the
92364         definiens of the fast variant; that way, we'll be more likely to
92365         catch future bugs in the fast variants.
92366
92367 2003-10-20  Bruno Haible  <bruno@clisp.org>
92368
92369         * modules/wait-process: New file.
92370         * MODULES.html.sh (func_all_modules): Add wait-process.
92371
92372 2003-10-20  Bruno Haible  <bruno@clisp.org>
92373
92374         * m4/wait-process.m4: New file.
92375
92376 2003-10-20  Bruno Haible  <bruno@clisp.org>
92377
92378         * lib/wait-process.h: New file, from GNU gettext.
92379         * lib/wait-process.c: New file, from GNU gettext.
92380
92381 2003-10-19  Jim Meyering  <jim@meyering.net>
92382
92383         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92384         HPUX 10.20.
92385
92386 2003-10-18  Karl Berry  <karl@gnu.org>
92387
92388         * config/config.guess: update from config.
92389
92390 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92391
92392         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92393         (getgroups): First arg is int, not size_t.
92394         Don't let 'free' mangle errno.
92395
92396 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92397
92398         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92399
92400 2003-10-16  Karl Berry  <karl@gnu.org>
92401
92402         * config/config.{guess,sub}: update from config.
92403
92404 2003-10-16  Jim Meyering  <jim@meyering.net>
92405
92406         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92407         memcpy.
92408
92409 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92410
92411         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92412         (SIZE_MAX): Remove.
92413         (new_exclude, add_exclude_file): Initial size no longer needs to
92414         be a power of 2.
92415         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92416         our own address arithmetic overflow checking.
92417
92418         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92419         (fnmatch): Do not alloca more than 2000 wide characters;
92420         instead, use malloc for large buffers.
92421         Check for address arithmetic overflow, and return -1
92422         with errno set to ENOMEM in that case.
92423         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92424         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92425         instead, return -1.  Check for address arithmetic overflow.
92426
92427 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92428
92429         Handle invalid suffixes and overflow independently, so that
92430         callers can treat them independently as needed.  Fix some bugs in
92431         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92432         suffix for a human-readable blocksize.  The major caller-visible
92433         change is the addition of a new
92434         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92435         that both overflow and suffix chars were found.
92436
92437         * lib/human.c (humblock): Don't check separately for invalid suffix
92438         char; that is xstrtoumax's job (now that its bug is fixed).
92439         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92440         INTMAX_MAX]: New macros.
92441         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92442         TYPE_MAXIMUM): New macros.
92443         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92444         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92445         if overflow occurs, as it's what __strtol does and it's more useful
92446         in practice.
92447         (__xstrtol): If __strtol reports some error other than ERANGE,
92448         reflect it to the caller as LONGINT_INVALID.  If it reports
92449         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92450         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92451         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92452         value.
92453         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92454         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92455         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92456         [defined UINTMAX_MAX]: New macros.
92457
92458 2003-10-14  Bruno Haible  <bruno@clisp.org>
92459
92460         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92461
92462 2003-10-14  Bruno Haible  <bruno@clisp.org>
92463
92464         * m4/sig_atomic_t: New file, from GNU gettext.
92465         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92466
92467 2003-10-14  Bruno Haible  <bruno@clisp.org>
92468
92469         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92470         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92471         Also use volatile where needed.
92472
92473 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92474
92475         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92476         Change maintainer from Bruno Haible to 'all'.
92477
92478 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92479
92480         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92481
92482 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92483
92484         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92485         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92486         and define in terms of the other primitives.
92487         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92488         (SIZE_MAX): Define if not already defined.
92489         (array_size_overflow): New function.
92490         (xalloc_die): Abort instead of exiting if 'error' returns.
92491         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92492         (xmalloc, xrealloc): Use them.
92493         (xcalloc): Check for address arithmetic overflow.
92494         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92495         a bit faster than strcpy.
92496
92497 2003-10-10  Simon Josefsson  <jas@extundo.com>
92498
92499         * modules/argp (Depends-on): Add restrict and strcase.
92500
92501 2003-10-10  Simon Josefsson  <jas@extundo.com>
92502
92503         * m4/argp.m4: Add AC_C_INLINE.
92504
92505 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92506
92507         Merge getpass from libc, plus a few fixes.
92508
92509         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92510         Include <stdbool.h>.
92511         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92512         __fsetlocking to empty.
92513         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92514         do include <bits/libc-lock.h>.
92515         Do not include <fcntl.h>; not needed.
92516         [_LIBC]: Include <wchar.h>.
92517         (NOTCANCEL_MODE): New macro.
92518         (flockfile, funlockfile) [_LIBC]: New macros.
92519         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92520         [!_LIBC]: New macros.
92521         (call_fclose): New function.
92522         (getpass): Use it.  Save tty stream separately; this simplifies the
92523         code and makes it more reliable if stdin happens to equal stdout.
92524         Invoke __fsetlocking on tty.
92525         Handle thread cancellation if needed.
92526         Namespace cleanup (use __tcgetattr, __getline).
92527         Use bool for Booleans.
92528         [USE_IN_LIBIO]: Handle wide streams.
92529         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92530         stream might go where.
92531
92532         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92533         doesn't have to include <stdio.h> before us.
92534         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92535         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92536         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92537         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92538         if not declared, so that we can use getpass.c code from libc without
92539         rewriting it.
92540         (flockfile, ftrylockfile, funlockfile): New macros.
92541
92542 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92543
92544         * modules/getpass: Depend on stdbool.
92545
92546 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92547
92548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92549
92550 2003-10-07  Karl Berry  <karl@gnu.org>
92551
92552         * config/config.{guess,sub}: update from config.
92553
92554 2003-10-06  Jim Meyering  <jim@meyering.net>
92555             Bruno Haible  <bruno@clisp.org>
92556
92557         This lets translators provide better translations for the
92558         "Written by ..." part of --version output.
92559         * lib/version-etc.h: Include stdarg.h.
92560         (version_etc_copyright): Declare as readonly.
92561         (version_etc): Make this function variadic with a NULL-terminated list
92562         of author name strings.
92563         (version_etc_va): New declaration.
92564         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92565         (version_etc_copyright): Declare as readonly.
92566         (version_etc_va): New function. Provide a different translatable string
92567         for each possible number of authors < 10. Abbreviate when there are 10
92568         authors or more.
92569         (version_etc): Make this function variadic. Call version_etc_va.
92570         Suggestion from Gary V. Vaughan.
92571
92572         * lib/long-options.h (parse_long_options): Change prototype: the
92573         authors string is moved to the end and becomes variadic.
92574         * lib/long-options.c: Include stdarg.h.
92575         (parse_long_options): Make this function variadic, too.
92576         Call version_etc_va, not version_etc.
92577
92578 2003-10-06  Bruno Haible  <bruno@clisp.org>
92579
92580         * modules/version-etc-2: Remove file.
92581         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92582
92583 2003-10-06  Bruno Haible  <bruno@clisp.org>
92584
92585         * modules/fatal-signal: New file.
92586         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92587
92588 2003-10-06  Bruno Haible  <bruno@clisp.org>
92589
92590         * m4/fatal-signal.m4: New file.
92591         * m4/signalblocking.m4: New file, from GNU gettext.
92592
92593 2003-10-06  Bruno Haible  <bruno@clisp.org>
92594
92595         * lib/version-etc-2.h: Remove file.
92596         * lib/version-etc-2.c: Remove file.
92597
92598 2003-10-06  Bruno Haible  <bruno@clisp.org>
92599
92600         * lib/fatal-signal.h: New file, from GNU gettext.
92601         * lib/fatal-signal.c: New file, from GNU gettext.
92602
92603 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92604
92605         * README: Rework advice for preventing empty .o files.
92606         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92607         not <sys/types.h>.
92608
92609 2003-10-04  Karl Berry  <karl@gnu.org>
92610
92611         * lib/argp*: update from libc.
92612
92613 2003-10-04  Karl Berry  <karl@gnu.org>
92614
92615         * config/config.{guess,sub}: update from config.
92616
92617 2003-10-02  Bruno Haible  <bruno@clisp.org>
92618
92619         * modules/lchown (Include): Add lchown.h.
92620         * modules/time_r (Include): Use "..." syntax.
92621         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92622
92623 2003-10-01  Simon Josefsson  <jas@extundo.com>
92624
92625         * MODULES.html.sh (func_all_modules): Move gethostname from section
92626         'based on' to section 'lacking' POSIX:2001.
92627
92628 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92629
92630         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92631         to output mode on the same stream.
92632
92633 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92634
92635         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92636         Fix arg typo in previous patch.
92637
92638 2003-09-28  Jim Meyering  <jim@meyering.net>
92639
92640         * lib/error.c: Correct cpp indentation.
92641
92642 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92643
92644         * modules/free: New file.
92645
92646 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92647
92648         * m4/free.m4: New file.
92649
92650 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92651
92652         * lib/minmax.h (MIN, MAX)
92653         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92654         Omit the special code that used __typeof__, since we worry that
92655         it could be more trouble than it's worth.  See:
92656         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92657         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92658
92659         * lib/free.c: New file.
92660
92661 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92662
92663         Trivial fixes to Makefile.am parts of module listings.
92664         * modules/strstr: Append strstr.h to lib_SOURCES.
92665         * modules/strcase: Likewise, for strcase.h.
92666
92667 2003-09-27  Karl Berry  <karl@gnu.org>
92668
92669         * config/mkinstalldirs: update from automake.
92670
92671 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92672
92673         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92674         (error_tail): Do not loop, reallocating temporary buffer, since
92675         the output cannot contain more wide characters than the input
92676         contains bytes, the size must be big enough already.  This avoids
92677         one potential size overflow calculation.  Check for size overflow
92678         when calculating temporary buffer size.  Free temporary buffer
92679         when done, if it was allocated with malloc; this plugs a memory
92680         leak.  Remove casts from void * to pointers, that are no longer
92681         needed now that we're assuming C89 or better.
92682
92683         Merge error changes from glibc.
92684
92685         * lib/error.c, error.h: Update copyright notice header to match glibc.
92686         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92687         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92688         Disable cancellation while printing error.
92689         * lib/error.h: Prepend __ to parameter names.
92690
92691 2003-09-26  Jim Meyering  <jim@meyering.net>
92692
92693         * lib/error.c (error_tail): Move some declarations
92694         into inner scope where the local variables are used.
92695
92696 2003-09-26  Bruno Haible  <bruno@clisp.org>
92697
92698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92699         stpncpy().
92700         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92701
92702 2003-09-26  Bruno Haible  <bruno@clisp.org>
92703
92704         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92705         (stpncpy): Define as alias for gnu_stpncpy.
92706         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92707
92708 2003-09-25  Simon Josefsson  <jas@extundo.com>
92709
92710         * lib/xgetdomainname.h: New file.
92711         * lib/xgetdomainname.c: New file.
92712
92713 2003-09-25  Simon Josefsson  <jas@extundo.com>
92714             Bruno Haible  <bruno@clisp.org>
92715
92716         * modules/getdomainname: New file.
92717         * modules/xgetdomainname: New file.
92718         * MODULES.html.sh (func_all_modules): Add getdomainname,
92719         xgetdomainname.
92720
92721 2003-09-25  Simon Josefsson  <jas@extundo.com>
92722             Bruno Haible  <bruno@clisp.org>
92723
92724         * m4/getdomainname.m4: New file.
92725
92726 2003-09-25  Simon Josefsson  <jas@extundo.com>
92727             Bruno Haible  <bruno@clisp.org>
92728
92729         * lib/getdomainname.h: New file.
92730         * lib/getdomainname.c: New file.
92731
92732 2003-09-25  Karl Berry  <karl@gnu.org>
92733
92734         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92735
92736 2003-09-25  Karl Berry  <karl@gnu.org>
92737
92738         * config/install-sh: update from automake.
92739
92740 2003-09-25  Bruno Haible  <bruno@clisp.org>
92741
92742         * modules/version-etc-2: New file, from modules/version-etc with
92743         modifications.
92744         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92745
92746 2003-09-25  Bruno Haible  <bruno@clisp.org>
92747
92748         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92749         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92750
92751 2003-09-24  Simon Josefsson  <jas@extundo.com>
92752
92753         * modules/xgethostname: Add xgethostname.h.
92754
92755 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92756
92757         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92758         the buffer associated with the argument.  Bug reported by
92759         Simon Josefsson.
92760
92761 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92762
92763         * README: Document assumptions that 'int' is at least 32 bits
92764         wide, that integer arithmetic is 2's complement without overflow,
92765         that there are no holes in integer values, that adding sizes of
92766         two nonoverlapping objects can't overflow, and that all-bits-zero
92767         yields scalar zero.  Fix spelling and capitalization typos.
92768
92769 2003-09-19  Karl Berry  <karl@gnu.org>
92770
92771         * lib/argp.h: update from libc.
92772
92773 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92774
92775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92776         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92777         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92778
92779 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92780
92781         * gnulib-tool: Use "test -h", not "test -L", for portability
92782         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92783         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92784         (sed_extract_prog): Issue s commands one-by-one, rather than
92785         using \| in one s command.
92786
92787 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92788
92789         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92790         input error, instead of returning NULL the next time we are called
92791         (and therefore losing track of errno).
92792
92793 2003-09-16  Bruno Haible  <bruno@clisp.org>
92794
92795         * gnulib-tool (func_create_testdir): Warn about duplicated
92796         dependencies.
92797
92798 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92799
92800         * modules/argmatch, modules/fatal, modules/obstack,
92801         modules/xalloc, modules/xgethostname: Sort dependencies by
92802         importance, not alphabetically.
92803
92804 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92805
92806         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92807         fails, so that the caller gets the proper errno.
92808
92809         * lib/readutmp.c (read_utmp): Likewise.
92810         Check for fstat error.  Close stream and free storage
92811         when failing.
92812
92813 2003-09-14  Karl Berry  <karl@gnu.org>
92814
92815         * config/srclist.txt (strdup.c): disable for c89 changes.
92816
92817 2003-09-14  Jim Meyering  <jim@meyering.net>
92818
92819         * lib/getloadavg.c: Correct cpp indentation.
92820         * lib/strdup.c: Likewise.
92821         * lib/vasnprintf.c: Likewise.
92822
92823 2003-09-14  Bruno Haible  <bruno@clisp.org>
92824
92825         * modules/fwriteerror: New file.
92826         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92827
92828 2003-09-14  Bruno Haible  <bruno@clisp.org>
92829
92830         * lib/fwriteerror.h: New file.
92831         * lib/fwriteerror.c: New file.
92832
92833 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92834
92835         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92836         modules/xgethostname, modules/xalloc: Depend on exit.
92837
92838 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92839
92840         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92841
92842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92843         and AC_MINIX, too, so that their extensions are available.
92844
92845         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92846         This macro has been superseded by gl_BACKUPFILE.
92847
92848         More patches to assume C89 or better.
92849
92850         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92851
92852         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92853         unconditionally.
92854         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92855         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92856         Include <string.h>, <stdlib.h> unconditionally.
92857         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92858         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92859         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92860         headers or for string.h.
92861         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92862         or strtoul.
92863
92864         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92865         headers.
92866         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92867         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92868         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92869         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92870         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92871         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92872         memcpy, memset.
92873         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92874         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92875         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92876         strtol.
92877         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92878         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92879         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92880         strtoul.
92881
92882 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92883
92884         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92885         * lib/obstack.c [!defined _LIBC]: Likewise.
92886         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92887         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92888         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92889
92890         More changes to assume C89 or better.
92891
92892         * lib/error.c (error_tail): Assume vprintf.
92893
92894         * lib/argmatch.c (getenv): Remove decl.
92895         * lib/progreloc.c (get_full_program_name): Define via prototype.
92896         * lib/setenv.c (clearenv): Likewise.
92897         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92898         needed.
92899         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92900         (malloc, memcpy): Remove decls.
92901         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92902         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92903         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92904         (memcpy): Remove macro.
92905         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92906         (__P): Remove.  All uses removed.
92907         (PTR): Remove.  All uses changed to void *.
92908         (CHAR_BIT, NULL): Remove.
92909         (spaces, zeros, memset_space, memset_zero)
92910         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92911         Remove.
92912         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92913         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92914         Define with prototype.
92915         Remove now-unnecessary prototype decl.
92916         (extra_args_spec): Assume ANSI C.  All uses changed.
92917         (extra_args_spec_iso): Remove.
92918         (my_strftime, emacs_strftimeu): Define via prototype.
92919         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92920         unconditionally.
92921         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92922         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92923         (strtoul, strtol): Remove decls.
92924         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92925         LONG_MAX): Remove.
92926         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92927         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92928         (LOCALE_PARAM_PROTO): New macro.
92929         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92930         (INTERNAL (strtol), strtol): Define with a prototype.
92931         (PARAMS): Remove.  All uses removed.
92932         * lib/tempname.c: Include <string.h> unconditionally.
92933         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92934         * lib/xgethostname.c (main): Define with a prototype.
92935         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92936         Include <stdlib.h> unconditionally.
92937         (calloc, malloc, realloc, free): Remove decls.
92938         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92939         Include <stdlib.h> unconditionally.  Sort include file names.
92940         (strtod): Remove.
92941         (xstrtod): Define with a prototype.
92942         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92943         (strtol, strtoul): Remove decls.
92944
92945 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92946
92947         More patches to assume C89 or better.
92948         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92949         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92950         string.h, memchr, STDC_HEADERS.
92951
92952 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92953
92954         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92955         Include <stdlib.h>, <string.h> unconditionally.
92956         Remove now-unnecessary cast to char *.
92957         * lib/strnlen.c: Include <string.h> unconditionally.
92958         * lib/yesno.c (yesno): Define with a prototype.
92959
92960 2003-09-11  Bruno Haible  <bruno@clisp.org>
92961
92962         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92963
92964 2003-09-10  Jim Meyering  <jim@meyering.net>
92965
92966         * lib/error.c: Correct indentation of cpp directives.
92967
92968 2003-09-10  Bruno Haible  <bruno@clisp.org>
92969
92970         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92971         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92972         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92973         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92974         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92975         <stdlib.h> and <string.h> checks.
92976         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92977         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92978
92979 2003-09-10  Bruno Haible  <bruno@clisp.org>
92980
92981         * lib/strcspn.c: Include <string.h> unconditionally.
92982         * lib/strpbrk.c: Include <string.h> unconditionally.
92983         * lib/strstr.c: Include <string.h> unconditionally.
92984         * lib/unicodeio.c: Include <string.h> unconditionally.
92985         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92986         * lib/unsetenv.c: Likewise.
92987         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92988         * lib/yesno.c: Include <stdlib.h> unconditionally.
92989         (rpmatch): Add prototype.
92990
92991 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92992
92993         More patches to assume C89 or better.
92994         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92995         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92996         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92997         or for string.h.
92998         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92999         stdlib.h.
93000         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93001         C headers.
93002         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93003         string.h.
93004         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93005         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93006         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93007         or for string.h.
93008         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93009         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93010         C headers.
93011         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93012         memcpy.
93013         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93014         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93015         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93016         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93017         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93018         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93019         string.h, free.
93020         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93021         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93022         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93023         C headers, or for string.h.
93024         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93025         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93026         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93027         headers, memory.h, stdlib.h, string.h, strings.h.
93028         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93029         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93030         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93031         strchr.
93032         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93033         headers, memory.h, string.h.
93034         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93035         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93036         free.
93037         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93038         headers.
93039         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93040         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93041         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93042         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93043         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93044
93045 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93046
93047         More K&R removal.
93048
93049         * lib/acosl.c (main): Use a prototype.
93050         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93051         tanl.c: Likewise.
93052
93053         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93054
93055         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93056         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93057         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93058         with a prototype.
93059         * lib/getopt.c (const): Remove macro.
93060         Include <string.h> unconditionally.
93061         (my_index): Remove; all uses changed to strchr.
93062         (strlen): Remove decl.
93063         (exchange): Remove forward decl; no longer needed.
93064         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93065         Define with prototype.
93066         * lib/getopt1.c (const): Remove macro.
93067         (getopt_long, getopt_long_only, main): Define with prototype.
93068
93069         * lib/getugroups.c: Include <string.h> unconditionally.
93070
93071         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93072         (getusershell, setusershell, endusershell, readname, main):
93073         Define with prototypes.
93074
93075         * lib/group-member.c: Include group-member.h first.
93076         Include <stdlib.h> unconditionally.
93077
93078         * lib/hard-locale.c: Include hard-locale.h first.
93079         Include <stdlib.h>, <string.h> unconditionally.
93080
93081         * lib/hash.c (free, malloc): Remove decls.
93082         Include <stdlib.h> unconditionally.
93083
93084         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93085         (getenv): Do not declare.
93086
93087         * lib/idcache.c: Include <string.h> unconditionally.
93088
93089         * lib/long-options.c: Include long-options.h first, to test interface.
93090         Include <stdlib.h> unconditionally.
93091
93092         * lib/makepath.c: Include makepath.h first, to test interface.
93093         Include <stdlib.h> and <string.h> unconditionally.
93094
93095         * lib/linebuffer.c: Include <stdlib.h>.
93096         (free): Remove decl.
93097
93098         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93099         stddef.h. rpl_malloc returns void *, not char *.
93100         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93101         prototype.
93102
93103         * lib/md5.h: Include <limits.h> unconditionally.
93104         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93105         (__P): Remove; all uses removed.
93106         * lib/md5.c: Include "md5.h" first.
93107         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93108         md5_buffer, md5_process_bytes, md5_process_block):
93109         Define with prototypes.
93110         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93111         * lib/sha.c: Include "sha.h" first.
93112         Include <stdlib.h>, <string.h> unconditionally.
93113
93114         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93115         * lib/memcmp.c (__ptr_t): Likewise.
93116         * lib/memrchr.c (__ptr_t): Likewise.
93117         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93118         Include <string.h> unconditionally.
93119         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93120         * lib/memchr.c: Include <stdlib.h> unconditionally.
93121         * lib/memchr.c (LONG_MAX): Remove.
93122         * lib/memrchr.c (LONG_MAX): Likewise.
93123         * lib/memchr.c (__memchr): Define via a prototype.
93124         * lib/memrchr.c (__memrchr): Likewise.
93125         * lib/memcmp.c (__P): Remove, and remove all uses.
93126         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93127         Remove forward decls; no longer needed.
93128         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93129         Use types required by C89 in prototype.
93130
93131         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93132         * lib/savedir.c: Likewise.
93133         * lib/mkdir.c (free): Remove decl.
93134         * lib/rmdir.c (rmdir): Define with a prototype.
93135         * lib/savedir.c: Include savedir.h first, to test interface.
93136
93137         * lib/mktime.c (STDC_HEADERS): Remove.
93138         Include <stdlib.h>, <string.h> unconditionally.
93139
93140         * lib/modechange.c: Include <stdlib.h> unconditionally.
93141         (malloc): Remove decl.
93142
93143         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93144         (free): Remove decl.
93145
93146         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93147         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93148         (This type really should be intptr_t, but that's a C99ism.)
93149         (_obstack_memcpy): Remove: all uses changed to memcpy.
93150         Include <string.h> unconditionally.
93151         (struct obstack): Assume __STDC__ for types of members
93152         chunkfun, freefun, extra_arg.
93153         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93154         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93155         obstack_begin, obstack_specify_allocation,
93156         obstack_specify_allocation_with_arg, obstack_chunkfun,
93157         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93158         Remove unprototyped decls and the macros that use them.
93159         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93160         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93161         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93162         (defined __STDC__ && __STDC__)]:
93163         Remove nonprototyped code.
93164         Include <stdlib.h> unconditionally.
93165         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93166         _obstack_allocated_p, _obstack_free, obstack_free,
93167         _obstack_memory_used, print_and_abort):
93168         Define using prototypes.
93169         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93170         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93171         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93172         obstack_next_free, obstack_object_size, obstack_room) [0]:
93173         Remove unused, unprototyped code.
93174
93175         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93176
93177         * lib/physmem.c (physmem_total, physmem_available, main): Define
93178         with prototypes.
93179
93180         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93181         (main): Define with a prototype.
93182
93183         * lib/posixver.c (getenv): Remove decl.
93184
93185         * lib/putenv.c (malloc): Returns void *, not char *.
93186         Include <string.h> unconditionally.
93187         (strchr, memcpy, NULL): Do not define.
93188
93189         * lib/readtokens.c: Include readtokens.h first, to test interface.
93190         Include <stdlib.h>, <string.h> unconditionally.
93191         (init_tokenbuffer): Define with a prototype.
93192
93193         * lib/regex.c (PARAMS): Remove.  All uses removed.
93194         All uses of _RE_ARGS removed, too.
93195         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93196         unconditionally.
93197         (bzero): Assume memset exists.
93198         (memcmp, memcpy, NULL): Remove.
93199         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93200         char, or assignments to local vars of type signed char.
93201         (init_syntax_once, PREFIX(extract_number_and_incr),
93202         PREFIX(print_partial_compiled_pattern),
93203         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93204         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93205         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93206         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93207         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93208         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93209         wcs_compile_range, byte_compile_range, truncate_wchar,
93210         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93211         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93212         count_mbs_length, wcs_re_match_2_internal,
93213         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93214         PREFIX(alt_match_null_string_p),
93215         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93216         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93217         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93218         now-unnecessary declaration, if any.
93219         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93220         regcomp, regexec):
93221         Remove now-unnecessary casts among pointer types.
93222         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93223
93224         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93225         (free): Remove decl.
93226
93227         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93228
93229         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93230         (free): Remove decl.
93231
93232         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93233         * lib/xgetcwd.c: Likewise.
93234
93235         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93236         (free): Remove decl.
93237
93238         * lib/strchrnul.c (strchrnul): Define with a prototype.
93239         Fix bug: c_in was not converted to char before searching.
93240
93241         The following changes are not K&R related:
93242
93243         * lib/group-member.h: Include <sys/types.h>, so that this file is
93244         self-contained.
93245         * lib/makepath.h: Likewise.
93246
93247         * lib/getusershell.c (readname, default_index, line_size, readname):
93248         Use size_t, not int, for sizes.
93249         (readname): If the size overflows, report an error instead of
93250         looping forever.
93251
93252 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93253
93254         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93255         libc.
93256
93257 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93258
93259         * README: New section: portability guidelines.
93260
93261 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93262
93263         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93264         C89 spec.
93265
93266 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93267
93268         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93269
93270 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93271
93272         Assume C89 or better; remove K&R cruft.
93273         A few of these changes were first proposed by Derek Robert Price
93274         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93275
93276         * lib/addext.c: Include <string.h> unconditionally.
93277         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93278         Don't declare getenv or malloc.
93279
93280         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93281         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93282         (NULL): Remove.
93283         (find_stack_direction, alloca): Use prototypes.
93284
93285         * lib/atexit.c (atexit): Define using a prototype.
93286
93287         * lib/basename.c, dirname.c, stripslash.c:
93288         Include <string.h> unconditionally.
93289
93290         * lib/bcopy.c: Include <stddef.h>.
93291         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93292
93293         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93294
93295         * lib/error.h (error, error_at_line, error_print_progname)
93296         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93297         * lib/error.c: Include error.h first, to check interface.
93298         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93299         (VA_START): Remove; all uses changeed to va_start.
93300         (exit, strerror): Remove decls.
93301         (error_print_progname): Prototype uncondionally.
93302         Don't include <errno.h>; no longer needed.
93303         (private_strerror): Remove.
93304         (error_tail): Always define.
93305         (error, error_at_line): Assume C89 or better; always use prototypes.
93306         * lib/fatal.c: Include "fatal.h" first, to test interface.
93307         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93308         (VA_START): Remove; all uses changed to va_start.
93309         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93310         this case.
93311         (exit): Remove decl.
93312         (fatal): Prototype unconditionally.  Assume va_start works.
93313         Abort at end, to pacify gcc.
93314
93315         * lib/euidaccess.c (main): Define with a prototype.
93316
93317         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93318
93319         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93320
93321         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93322         prototypes.
93323         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93324         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93325         (getenv): Remove decl.
93326         (fnmatch): Define using a prototype.
93327         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93328         (FCT): Define using a prototype.
93329
93330         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93331
93332         * lib/gethostname.c: Include <stddef.h>.
93333         (gethostname): Define with prototype.  Length is size_t, not int.
93334
93335 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93336
93337         Assume C89 or better; remove K&R cruft.
93338         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93339         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93340         string.h, getenv, malloc.
93341         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93342         headers.
93343         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93344         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93345         do not check for strerror.
93346         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93347         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93348         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93349         do not check for doprnt or vprintf.
93350         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93351         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93352
93353 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93354
93355         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93356         getversion.c should have been removed then, but was accidentally
93357         preserved.
93358
93359         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93360         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93361
93362 2003-09-08  Karl Berry  <karl@gnu.org>
93363
93364         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93365                 config, forget about prep.
93366
93367         * config/depcomp, missing: update from automake.
93368
93369 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93370
93371         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93372         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93373
93374 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93375
93376         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93377         copy_tm_result.  Bug reported by Simon Josefsson in
93378         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93379
93380 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93381
93382         * m4/time_r.m4: New file.
93383         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93384         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93385         is. Check for timegm declaration.
93386         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93387         Do not check for gmtime_r.
93388         Replace mktime if __mktime_internal does not exist and if mktime
93389         hasn't been replaced already.
93390
93391 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93392
93393         * lib/time_r.c, lib/time_r.h: New files.
93394
93395         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93396         __localtime_r.
93397         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93398         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93399
93400         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93401         __gmtime_r.
93402         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93403         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93404         Include <time_r.h>.
93405
93406         * lib/timegm.c: Switch to glibc implementation, with the following
93407         changes:
93408         [defined HAVE_CONFIG_H]: Include <config.h>.
93409         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93410         (__mktime_internal) [!defined _LIBC]: New decl.
93411         (__gmtime_r) [!defined _LIBC]: New macro and function.
93412         (timegm): Use a prototype, since gnulib assumes C89.
93413         Do not bother declaring tmp to be const, as it's not really usefu.
93414         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93415         (timegm): Declare only if HAVE_DECL_TIMEGM.
93416
93417 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93418
93419         * MODULES.html.sh (func_all_modules): Add time_r.
93420         * modules/time_r: New file.
93421         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93422         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93423
93424 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93425
93426         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93427         Bug reported by Lute Kamstra in
93428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93429
93430         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93431         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93432         course with correspondingly smaller numbers for tomorrow and
93433         yesterday.  From Tadayoshi Funaba.  Originally installed into
93434         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93435         coreutils merge?).
93436
93437 2003-08-31  Simon Josefsson  <jas@extundo.com>
93438
93439         * modules/timegm: New file.
93440         * MODULES.html.sh (func_all_modules): Add timegm.
93441
93442 2003-08-31  Simon Josefsson  <jas@extundo.com>
93443
93444         * m4/timegm.m4: New file.
93445
93446 2003-08-31  Simon Josefsson  <jas@extundo.com>
93447
93448         * lib/timegm.h: New file.
93449         * lib/timegm.c: New file.  Based on
93450         wget-1.8.2/src/http.c:mktime_from_utc.
93451
93452 2003-08-31  Karl Berry  <karl@gnu.org>
93453
93454         * lib/argp.h: update from libc.
93455
93456 2003-08-28  Bruno Haible  <bruno@clisp.org>
93457
93458         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93459         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93460         followed by '#define fnmatch fnmatch_posix' gives an error.
93461
93462 2003-08-28  Bruno Haible  <bruno@clisp.org>
93463
93464         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93465         warning on QNX, which defines O_BINARY to 000000.
93466
93467 2003-08-27  Jim Meyering  <jim@meyering.net>
93468
93469         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93470         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93471         would fail after 32.  Reported by Danny Levinson.  Details here:
93472         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93473
93474 2003-08-24  Bruno Haible  <bruno@clisp.org>
93475
93476         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93477         MSVC7 <stdio.h> is included later.
93478
93479 2003-08-22  Simon Josefsson  <jas@extundo.com>
93480
93481         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93482
93483 2003-08-20  Karl Berry  <karl@gnu.org>
93484
93485         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93486
93487 2003-08-20  Bruno Haible  <bruno@clisp.org>
93488
93489         * modules/progname: New file.
93490         * MODULES.html.sh (func_all_modules): Add progname.
93491
93492 2003-08-20  Bruno Haible  <bruno@clisp.org>
93493
93494         * lib/progname.h: New file, from GNU gettext.
93495         * lib/progname.c: New file, from GNU gettext.
93496         * lib/progreloc.c: New file, from GNU gettext.
93497
93498 2003-08-19  Jim Meyering  <jim@meyering.net>
93499
93500         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93501         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93502
93503 2003-08-19  Bruno Haible  <bruno@clisp.org>
93504
93505         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93506         more.
93507
93508 2003-08-19  Bruno Haible  <bruno@clisp.org>
93509
93510         * lib/xstrdup.c: Assume <string.h> exists.
93511
93512 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93513
93514         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93515         in makefile rules.
93516
93517 2003-08-18  Jim Meyering  <jim@meyering.net>
93518
93519         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93520         * m4/lib-ld.m4: Likewise.
93521
93522 2003-08-18  Jim Meyering  <jim@meyering.net>
93523
93524         * lib/setenv.h: Indent nested cpp directive.
93525         * lib/vasnprintf.c: Remove trailing blanks.
93526
93527 2003-08-17  Simon Josefsson  <jas@extundo.com>
93528
93529         * modules/xstrndup: New file.
93530         * MODULES.html.sh (func_all_modules): Add xstrndup.
93531
93532 2003-08-17  Simon Josefsson  <jas@extundo.com>
93533
93534         * modules/argp: Fix autoconf macro name. Add more dependencies.
93535
93536 2003-08-17  Simon Josefsson  <jas@extundo.com>
93537
93538         * m4/xstrndup.m4: New file.
93539
93540 2003-08-17  Simon Josefsson  <jas@extundo.com>
93541
93542         * m4/argp.m4: New file.
93543
93544 2003-08-17  Simon Josefsson  <jas@extundo.com>
93545             Bruno Haible  <bruno@clisp.org>
93546
93547         * lib/xstrndup.h: New file.
93548         * lib/xstrndup.c: New file.
93549
93550 2003-08-17  Bruno Haible  <bruno@clisp.org>
93551
93552         * modules/strndup (Files, Include): Add lib/strndup.h.
93553
93554 2003-08-17  Bruno Haible  <bruno@clisp.org>
93555
93556         * modules/euidaccess (Files): Add lib/euidaccess.h.
93557
93558 2003-08-17  Bruno Haible  <bruno@clisp.org>
93559
93560         * lib/strndup.h: New file.
93561
93562 2003-08-17  Bruno Haible  <bruno@clisp.org>
93563
93564         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93565         like AC_GNU_SOURCE.
93566         * modules/extensions (configure.ac): Comment out the invocation of
93567         gl_USE_SYSTEM_EXTENSIONS.
93568
93569 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93570
93571         Merges from coreutils, etc.
93572         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93573         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93574         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93575         fixing a typo.
93576         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93577         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93578
93579 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93580
93581         Document merge from coreutils.
93582         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93583         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93584         * modules/utime: Add m4/utimes-null.m4.
93585
93586 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93587
93588         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93589         space, undoing this 2003-08-12 change:
93590         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93591
93592 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93593
93594         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93595         strtoul.c from libc, undoing this 2003-08-12 change:
93596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93597
93598 2003-08-16  Jim Meyering  <jim@meyering.net>
93599
93600         Merges from coreutils.
93601         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93602         prefix.  Adjust cache variables similarly.  Create 500 rather than
93603         just 300 files, to exercise bug on Darwin6.5, too.
93604         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93605         $missing_dir.
93606         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93607         AM_SYS_POSIX_TERMIOS.
93608         Reported by mkc@mathdogs.com.
93609         Also change use of $am_cv_sys_posix_termios
93610         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93611         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93612         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93613         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93614         in /proc/mounts until it finds one with matching device number.  This
93615         is unnecessary when the FILE argument *is* a mount point.  No stat call
93616         is necessary in that case.  So, disable the statvfs-testing code on
93617         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93618         as RedHat bug# 84846.
93619         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93620         to 1MB, so as not to render systems with no stack size limit (e.g.,
93621         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93622         Include <unistd.h>.  On some systems,
93623         it is required for the definition of _SC_PAGESIZE.
93624
93625 2003-08-16  Jim Meyering  <jim@meyering.net>
93626
93627         Merge from coreutils.
93628         * lib/xstrtoimax.c: #else #if -> #elif.
93629         * lib/xstrtoumax.c: Likewise.
93630
93631 2003-08-16  Jim Meyering  <jim@meyering.net>
93632
93633         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93634         * m4/utimes.m4: Removed.
93635         * m4/utimes-null.m4: Renamed from utimes.m4.
93636
93637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93638         to 1MB, so as not to render systems with no stack size limit (e.g.,
93639         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93640         Include <unistd.h>.  On some systems,
93641         it is required for the definition of _SC_PAGESIZE.
93642
93643 2003-08-16  Jim Meyering  <jim@meyering.net>
93644         and Paul Eggert  <eggert@cs.ucla.edu>
93645
93646         Merges from coreutils, etc.
93647
93648         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93649         using the latest version from cvs.  This avoids problems with #line
93650         directives using a vendor (Sun) compiler.
93651         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93652         Don't set GETGROUPS_LIB here; now it's
93653         done via getgroups.m4's wrapper function.
93654         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93655         rather than just in sh-util/configure.in, so that the
93656         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93657         same.
93658         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93659         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93660         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93661         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93662         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93663         Remove code that is now done by the newly-required macros.
93664         Append $(EXEEXT) to DF_PROG.
93665         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93666         Do not invoke or require the following here,
93667         since prereq.m4 or some gnulib .m4 now does this for us:
93668         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93669         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93670         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93671         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93672         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93673         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93674         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93675         AC_FUNC_OBSTACK.
93676         Do not replace the following functions, as this is now the job
93677         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93678         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93679         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93680         atexit getpass, strdup, getpagesize.
93681         Replace 'raise'.
93682         Do not check for the following functions, as this is now the job
93683         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93684         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93685         setregid.
93686         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93687         Check for sys/sysctl.h.
93688         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93689         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93690         of checking for ssize_t ourselves.
93691
93692         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93693         Require every macro that gnulib/modules/* suggests for us.
93694         (jm_PREREQ_ADDEXT): New macro.
93695         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93696         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93697
93698         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93699         (gl_PHYSMEM): Use it.
93700         Also check for `table' function.
93701         Check for new headers and functions.
93702         Add check for sys/sysmp.h.
93703         With suggestions from Kaveh Ghazi.
93704         Ignore headers that are present but cannot be compiled.  This
93705         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93706         C 5.4.
93707
93708 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93709
93710         Document merge from coreutils.
93711         * modules/userspec: Depend on posixver.
93712         * modules/strftime: Depend on tzset.
93713
93714 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93715
93716         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93717         rather than tab, after '#' in shell-script copyright notices.
93718         Suggested by Bruno Haible.
93719
93720 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93721
93722         * config/srclist-update: Use three spaces, rather than tab, after '#'
93723         in shell-script copyright notices.  Suggested by Bruno Haible.
93724         Remove unnecessary parenthesization in regular expression.
93725
93726 2003-08-15  Jim Meyering  <jim@meyering.net>
93727
93728         Merge from coreutils.
93729         * lib/xgethostname.c: Include <stdlib.h>.
93730         (xghostname): Don't exit for anything other than memory-related
93731         failure; just return NULL.
93732         * lib/userspec.c: Include "posixver.h".
93733         (parse_user_spec): Accept `.' as a separator only
93734         in pre-POSIX-200112 mode.
93735         * lib/strtoimax.c: Use #elif rather than #else #if.
93736         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93737         Remove function, now that we can rely on a working tzset function.
93738         [!_LIBC]: Ensure that the required autoconf test has been run.
93739         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93740         Use underlying_strftime for %r.
93741         * lib/sha.c: Merge in some clean-up and optimization changes from
93742         glibc.
93743         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93744         Ensure that it is a multiple of 64.
93745         Rearrange loop exit tests so as to avoid performing an
93746         additional fread after encountering an error or EOF.
93747         * lib/realloc.c: Update copyright date.
93748
93749 2003-08-15  Jim Meyering  <jim@meyering.net>
93750         and Paul Eggert  <eggert@twinsun.com>
93751
93752         Merge from coreutils.
93753         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93754         member but strut utmpx does not.  Needed for AIX 4.3.3.
93755         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93756
93757 2003-08-15  Jim Meyering  <jim@meyering.net>
93758         and Paul Eggert  <eggert@cs.ucla.edu>
93759
93760         Merges from coreutils, etc.
93761         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93762         Require gl_FUNC_TZSET_CLOBBER.
93763         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93764         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93765         members.
93766
93767 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93768
93769         Help the merge from coreutils.
93770         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93771         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93772         * m4/tzset.m4: Use it too.
93773
93774 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93775
93776         * modules/tzset: New file.
93777
93778 2003-08-14  Jim Meyering  <jim@meyering.net>
93779
93780         Merges from coreutils.
93781         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93782         variable names, rather than @FNMATCH_H@.
93783         * modules/alloca: Likewise for $(ALLOCA_H).
93784
93785         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93786         the three copies of the literal target, `fnmatch.h'.
93787         * modules/alloca (alloca.h): Likewise.
93788
93789 2003-08-14  Jim Meyering  <jim@meyering.net>
93790
93791         Merge from coreutils.
93792         * m4/tzset.m4: New file.
93793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93794         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93795         otherwise, AIX 5.1 systems would end up using the latter.
93796         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93797         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93798         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93799         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93800
93801 2003-08-14  Jim Meyering  <jim@meyering.net>
93802
93803         Merge from coreutils.
93804         * lib/obstack.h: Whitespace changes.
93805         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93806         and xcalloc return values.
93807         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93808         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93809         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93810         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93811         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93812         error from mntctl.
93813         Use mntctl's return value to drive the entry-processing loop, since
93814         we can't rely on the value of the vmt_length member in the last
93815         entry.  On some systems doing so could result in exhausting
93816         virtual memory.  Based in part on a patch from Mike Jetzer.
93817
93818 2003-08-14  Jim Meyering  <jim@meyering.net>
93819         and Paul Eggert  <eggert@twinsun.com>
93820
93821         Merges from coreutils, plus other fixes.
93822         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93823         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93824         for credits and details.  Thanks to Kaveh Ghazi for helping
93825         to keep these files in sync.
93826         (ARRAY_SIZE): Define it.
93827         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93828         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93829         (memcasecmp): Don't assume size_t fits in unsigned int.
93830         Remove casts and duplicate code.
93831         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93832         (memcpy): Remove definition.
93833         Merge in some clean-up and optimization changes from glibc.
93834         [BLOCKSIZE]: Move definition to top of file.
93835         Ensure that it is a multiple of 64.
93836         Rearrange loop exit tests so as to avoid performing an
93837         additional fread after encountering an error or EOF.
93838         * lib/md5.h (md5_uintptr): Define.
93839         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93840         return to the initial working directory.  Preserve errno
93841         for caller.
93842         * lib/idcache.c: Include "xalloc.h".
93843         (xmalloc, xrealloc): Remove decls.
93844         (getuser): Remove casts no longer required in C89.
93845         * lib/human.c: Include stdio.h, for sprintf.
93846         * lib/group-member.c: Include "xalloc.h".
93847         (xmalloc, xrealloc): Remove decls.
93848         (get_group_info): Remove casts no longer required in C89.
93849         * lib/getusershell.c (readname): Remove casts no longer required in
93850         C89.
93851         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93852         * lib/getline.c: Whitespace fix, from coreutils.
93853
93854 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93855
93856         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93857         Check for isascii.
93858
93859         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93860         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93861         Undo previous (whitespace-only) change.
93862
93863 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93864
93865         * lib/exclude.c: Include <ctype.h>
93866         (IN_CTYPE_DOMAIN): New macro.
93867         (is_space): New fn.
93868         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93869         and empty lines.
93870
93871         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93872         Undo previous (whitespace-only) change.
93873
93874 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93875
93876         * config/srclist-update: Change update back to the old behavior,
93877         leaving whitespace alone.  Use one 'sed' command rather than a
93878         pipeline.
93879         (fixlicense): Now a variable, not a function.
93880         (remove_trailing_blanks): Remove.
93881         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93882         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93883         Undo previous (whitespace-only) change.
93884
93885 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93886
93887         Merge from coreutils.
93888         * modules/euidaccess: Add lib_SOURCES, include for new
93889         file euidaccess.h
93890
93891 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93892
93893         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93894         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93895         Normalize leading white space and remove trailing white space.
93896
93897         Merge from coreutils
93898         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93899
93900         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93901         0.12.1.  These files are now being upgraded automatically by
93902         ../config/srclist-update.
93903
93904 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93905
93906         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93907         Normalize leading white space and remove trailing white space.
93908         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93909         notice, as per ../config/srclist-update.
93910
93911         Merge from coreutils.
93912         * lib/euidaccess.h: New file.
93913         * lib/euidaccess.c: Include it.
93914         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93915         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93916         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93917
93918 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93919
93920         * config/srclist-update: Add copyright notice.
93921         (remove_id_lines, remove_trailing_blanks): New constants.
93922         (fixfile): Use them to normalize spacing a bit in copied files.
93923         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93924         Normalize leading white space and remove trailing white space.
93925
93926         * config/texinfo.tex: Sync with texinfo.
93927
93928         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93929         strtoul.c from libc, to merge coreutils whitespace changes.
93930
93931         * config/srclist.txt: Get the following m4 files from gettext:
93932         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93933         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93934         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93935         wint_t.m4.
93936
93937 2003-08-12  Karl Berry  <karl@gnu.org>
93938
93939         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93940         been made.
93941
93942 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93943
93944         * modules/gnu-source, m4/gnu-source.m4:
93945         Remove; we're assuming Autoconf 2.54 or later now.
93946         Suggested by Bruno Haible.
93947         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93948
93949 2003-08-11  Bruno Haible  <bruno@clisp.org>
93950
93951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93952
93953 2003-08-11  Bruno Haible  <bruno@clisp.org>
93954
93955         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93956         (vasnprintf): Use it instead of wcslen.
93957
93958 2003-08-11  Bruno Haible  <bruno@clisp.org>
93959
93960         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93961         value to ensure that _Bool promotes to int. Use #define for _Bool when
93962         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93963
93964 2003-08-10  Karl Berry  <karl@gnu.org>
93965
93966         * lib/regex.h: update from libc (whitespace fix).
93967
93968 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93969
93970         Merge some files from coreutils.  These changes were
93971         originally made by Jim Meyering.
93972         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93973         many older Unixes require this.
93974         * lib/alloca.c (alloca): Remove cast to argument of free;
93975         no longer needed in C89.
93976         * lib/alloca_.h, regex.h: Fix white space to match
93977         what GNU indent does.
93978
93979 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93980
93981         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93982         apparently Emacs's Unicode mode got confused before my 2003-08-05
93983         checkin.
93984
93985 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93986
93987         * m4/extensions.m4: New file.
93988         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93989         Require gl_USE_SYSTEM_EXTENSIONS.
93990         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93991         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93992
93993 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93994
93995         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93996         * modules/extensions, modules/gnu-source: New files.
93997         * modules/timespec, modules/unlocked-io: Depend on extensions.
93998
93999 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94000
94001         * modules/restrict: New file.
94002         * MODULES.html.sh (func_all_modules): Add restrict.
94003         * modules/regex: Depend on restrict.
94004
94005 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94006
94007         * m4/restrict.m4: New file.
94008         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94009
94010 2003-08-07  Bruno Haible  <bruno@clisp.org>
94011
94012         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94013         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94014
94015 2003-08-07  Bruno Haible  <bruno@clisp.org>
94016
94017         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94018         makes the module 'getndelim2' compatible with the module 'getline'.
94019
94020 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94021
94022         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94023         byte with "\201" to avoid glitches when editing that source file
94024         with multi-gnome-terminal.
94025
94026 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94027
94028         * lib/bumpalloc.h: Remove.
94029
94030 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94031
94032         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94033         * modules/bumpalloc: Remove.
94034
94035 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94036
94037         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94038         GNU coding style.
94039
94040         Merge from coreutils.
94041         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94042         1. From glibc.
94043         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94044         from Karl Berry, implemented by Jim Meyering.
94045         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94046         from Dmitry V. Levin.
94047         Remove anachronistic cast of xrealloc.
94048         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94049         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94050         type. Otherwise, it wouldn't compile with at least /bin/cc on
94051         ymp-cray-unicos9.0.2.X.
94052         Combine two mostly-identical uses of alloca into one.
94053         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94054
94055 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94056
94057         [From Emacs.]
94058
94059         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94060         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94061         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94062         obsolete NLIST_NAME_UNION.
94063         [__GNU__]: Undef BSD and FSCALE.
94064         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94065
94066 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94067
94068         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94069         an enum type, so that it's guaranteed to promote to int.  See:
94070         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94071
94072 2003-08-03  Karl Berry  <karl@gnu.org>
94073
94074         * config/depcomp: update from automake.
94075
94076 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94077
94078         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94079         (strerror): Don't assume that a printable int fits in 14 bytes.
94080
94081 2003-07-31  Bruno Haible  <bruno@clisp.org>
94082
94083         * modules/getpass-gnu: New file.
94084         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94085
94086 2003-07-31  Bruno Haible  <bruno@clisp.org>
94087
94088         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94089
94090 2003-07-24  Karl Berry  <karl@gnu.org>
94091
94092         * config/missing: update from automake.
94093
94094 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94095             Bruno Haible  <bruno@clisp.org>
94096
94097         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94098         * lib/getline.c (getline, getdelim): Likewise.
94099         Remove _GNU_SOURCE define; now it's defined in config.h through
94100         m4/getline.m4.
94101
94102 2003-07-23  Karl Berry  <karl@gnu.org>
94103
94104         * config/config.sub: update from prep.
94105
94106 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94107
94108         * modules/xalloc (Depends-on): Add exitfail.
94109         * modules/xmemcoll: Likewise.
94110
94111 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94112
94113         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94114         over-parenthesization in macros.
94115
94116         Sync with coreutils.
94117
94118         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94119         required by C99.
94120
94121         Use `exit_failure' for xalloc and xmemcoll instead of their own
94122         private exit-failure variables.
94123         * lib/xalloc.h (xalloc_exit_failure): Remove.
94124         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94125         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94126         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94127         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94128         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94129
94130 2003-07-20  Jim Meyering  <jim@meyering.net>
94131
94132         * modules/closeout (Depends-on): Add exitfail.
94133         Suggestion from Bruno Haible.
94134
94135 2003-07-19  Karl Berry  <karl@gnu.org>
94136
94137         * config/config.sub: update from prep.
94138
94139 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94140
94141         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94142         Remove.
94143         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94144         to test that it can stand by itself.  Include "exitfail.h".
94145         Clients should set exit_failure instead.
94146         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94147
94148 2003-07-18  Bruno Haible  <bruno@clisp.org>
94149
94150         * modules/getndelim2: New file.
94151         * modules/getline: Share files with module getndelim2.
94152         * modules/getnline: Depend on getndelim2 instead of sharing files with
94153         it. Add getnline.c to lib_SOURCES.
94154         * MODULES.html.sh (func_all_modules): Add getndelim2.
94155
94156 2003-07-18  Bruno Haible  <bruno@clisp.org>
94157
94158         * m4/getndelim2.m4: New file.
94159         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94160         invoke gl_PREREQ_GETNDELIM2.
94161         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94162         gl_PREREQ_GETNDELIM2.
94163         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94164         gl_GETNDELIM2.
94165
94166 2003-07-18  Bruno Haible  <bruno@clisp.org>
94167
94168         * lib/getndelim2.h: New file.
94169         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94170         getndelim2.h.
94171         (getndelim2): Make non-static. Change return type to ssize_t.
94172         * lib/getline.h: Change argument names.
94173         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94174         * lib/getnline.c: Include getndelim2.h.
94175
94176 2003-07-18  Andreas Schwab  <schwab@suse.de>
94177
94178         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94179
94180 2003-07-17  Karl Berry  <karl@gnu.org>
94181
94182         * config/config.sub: update from prep.
94183
94184 2003-07-17  Bruno Haible  <bruno@clisp.org>
94185
94186         * modules/getnline: New file.
94187         * modules/getline: Add lib/getndelim2.c to source file list.
94188         * MODULES.html.sh (func_all_modules): Add getnline.
94189
94190 2003-07-17  Bruno Haible  <bruno@clisp.org>
94191
94192         * m4/getnline.m4: New file.
94193
94194 2003-07-17  Bruno Haible  <bruno@clisp.org>
94195
94196         * m4/Makefile.am.in: Remove file.
94197         * m4/Makefile.am: Remove file.
94198         * m4/Makefile.in: Remove file.
94199
94200 2003-07-17  Bruno Haible  <bruno@clisp.org>
94201
94202         * lib/getnline.h: New file.
94203         * lib/getnline.c: New file.
94204         * lib/getndelim2.c: New file, extracted from getline.c.
94205         (getndelim2): Renamed from getdelim2, with added nmax argument.
94206         * lib/getline.c: Include getndelim2.c.
94207         (getdelim2): Moved out to getndelim2.c.
94208         (getline, getdelim): Update.
94209
94210 2003-07-17  Bruno Haible  <bruno@clisp.org>
94211
94212         * lib/Makefile.am: Remove file.
94213         * lib/Makefile.in: Remove file.
94214
94215 2003-07-17  Bruno Haible  <bruno@clisp.org>
94216
94217         * configure.in: Remove file.
94218         * Makefile.in: Remove file.
94219
94220 2003-07-17  Bruno Haible  <bruno@clisp.org>
94221
94222         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94223
94224 2003-07-16  Karl Berry  <karl@gnu.org>
94225
94226         * config/srclist-update: was running fixlicense twice, which caused
94227                 texinfo.tex to be nullified for some reason.  Simplify,
94228                 $gplsrc is no longer needed as far as I can see?
94229
94230 2003-07-16  Jim Meyering  <jim@meyering.net>
94231
94232         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94233
94234 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94235
94236         * config/srclist.txt: Get the following files from gettext-runtime/intl
94237         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94238         ref-del.sin.  From Bruno Haible.
94239         * config/srclist-update (fixfile): Change grep pattern again, since the
94240         previous fix didn't work (there was another trailing $).  Use
94241         '[$]' to escape the $s.
94242
94243 2003-07-15  Karl Berry  <karl@gnu.org>
94244
94245         * lib/vasnprintf.c: update from gettext.
94246
94247 2003-07-15  Karl Berry  <karl@gnu.org>
94248
94249         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94250         gets expanded when surrounded by '$'.
94251
94252 2003-07-15  Jim Meyering  <jim@meyering.net>
94253
94254         * modules/save-cwd: Don't depend on error.  From Derek Price.
94255
94256 2003-07-15  Jim Meyering  <jim@meyering.net>
94257
94258         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94259
94260 2003-07-14  Simon Josefsson  <jas@extundo.com>
94261
94262         * modules/mempcpy: New file.
94263         * MODULES.html.sh (func_all_modules): Add mempcpy.
94264
94265 2003-07-14  Simon Josefsson  <jas@extundo.com>
94266
94267         * m4/mempcpy.m4: New file.
94268
94269 2003-07-14  Simon Josefsson  <jas@extundo.com>
94270
94271         * lib/mempcpy.h: New file.
94272         * lib/mempcpy.c: New file.
94273
94274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94275
94276         * modules/getdate, modules/posixtm: Depend on mktime.
94277
94278 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94279
94280         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94281         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94282         unicodeio.c, unicodeio.h, unlocked-io.h:
94283         Switch from LGPL to GPL.
94284
94285 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94286
94287         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94288         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94289         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94290         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94291         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94292         updated automatically by ../config/srclist-update.  This changes
94293         their license from LPGL to GPL.
94294
94295 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94296
94297         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94298         assumed to refer to the root of the most recent stable gettext version.
94299         * config/srclistvars.sh: Add defaults for eggert.
94300         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94301         Match "This program" as well as "The program".  This is needed
94302         for gettext.
94303
94304 2003-07-14  Jim Meyering  <jim@meyering.net>
94305
94306         Don't emit diagnostics.  Let callers do that.
94307         * lib/save-cwd.c: Don't include "error.h".
94308         (save_cwd): Don't call error.  Ensure that errno is valid
94309         when returning nonzero.
94310
94311         * lib/save-cwd.h (restore_cwd): Update prototype.
94312         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94313         Simplify.  Don't call error upon failure.  Let callers do that.
94314         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94315         when auditing is enabled.  But don't bother updating the #if.
94316
94317 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94318
94319         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94320         it breaks C++ compilation.
94321         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94322
94323 2003-07-10  Simon Josefsson  <jas@extundo.com>
94324
94325         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94326
94327 2003-07-10  Jim Meyering  <jim@meyering.net>
94328
94329         * m4/clock_time.m4: Remove trailing blank.
94330         * m4/intmax_t.m4: Likewise.
94331
94332 2003-07-10  Jim Meyering  <jim@meyering.net>
94333
94334         * lib/vasnprintf.c: Remove trailing blanks.
94335         Make cpp indentation consistent.
94336
94337 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94338
94339         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94340         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94341         Switch from LGPL to GPL.
94342
94343 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94344
94345         * config/srclist.txt: Sort sublists.  Add
94346         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94347         that differ from gnulib for one reason or another; we'd like this list
94348         to be smaller but for now let's document what we have.
94349
94350 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94351
94352         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94353         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94354         and sweeter "eval x=$x".
94355         * config/srclist.txt: Get lib/argp* from glibc.
94356
94357 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94358
94359         * lib/mktime.c: Fix some boundary cases and remove need for floating
94360         point.
94361
94362         Issue a compile-time diagnostic if time_t is floating point, or if
94363         two's complement arithmetic is not in effect, or if arithmetic
94364         right shift does not propagate the sign.  These assumptions were
94365         all in the original code but they weren't checked.
94366
94367         (TIME_T_MIDPOINT, verify): New macros.
94368         (__isleap): Remove; it has integer overflow problems.
94369         (leapyear): New function, without those problems.
94370         (ydhms_tm_diff): Remove; splitting into two parts.
94371         (ydhms_diff): New function, containing the arithmetic part of
94372         the old ydhms_tm_diff function.  Issue a compile-time
94373         diagnostic if we are not using C99 integer division.
94374         Avoid casts when possible.
94375         (guess_time_tm): New function, containing the checking part of
94376         the old ydhms_tm_diff function.  Return the new value, rather than
94377         the difference between it and the old.  Accept a new argument T
94378         so that *T specifies the old value.  Check for overflow in the result.
94379
94380         (__mktime_internal): Use a time_t offset, not a long int offset.
94381         This undoes the 2003-06-04 change, which is no longer needed now
94382         that we have better overflow checking.
94383         (localtime_offset): Likewise.
94384
94385         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94386         and long are 64-bit but int is only 32-bit.
94387         (ydhms_diff): Use long int to store year1 and yday1.
94388         Issue a compile-time diagnostic if long int is not wide enough.
94389
94390         (__mktime_internal): Use long int to store adjusted year and yday.
94391         Use plain C rather than preprocessor commands, if that doesn't
94392         affect efficiency.
94393         Check for overflow (and try to repair) after each probe
94394         rather than checking only at the very end.  This avoids some bugs
94395         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94396         does not equal GMT offset at maximum time).
94397         Use integer to check for overflow rather than floating point; this
94398         is more portable to non-IEEE hosts, and is a tad faster.
94399         When we detect that we are oscillating between two values,
94400         don't check whether tm_isdst has the requested value, since
94401         we already know the answer.  When tm_isdst has the wrong value,
94402         use a different heuristic to find the right one, based on the
94403         extreme values actually observed in practice in tz2003a,
94404         rather than the (overly optimistic) "previous 3 calendar quarters".
94405
94406         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94407         "T const" to accommodate glibc style.
94408         (check_result): Use less-confusing report format.  "long" -> "long int.
94409         (main): Likewise.
94410         Don't loop if the iteration overflows time_t.
94411         Allow a negative step in the iteration.
94412
94413 2003-07-06  Karl Berry  <karl@gnu.org>
94414
94415         * config/depcomp: update from automake.
94416         * config/config.sub: update from prep.
94417
94418 2003-07-03  Karl Berry  <karl@gnu.org>
94419
94420         * config/config.guess: update from prep.
94421
94422 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94423
94424         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94425         xreadlink.c now includes it unconditionally.
94426
94427 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94428
94429         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94430         having it depend on HAVE_SYS_TYPES_H.
94431
94432 2003-07-01  Bruno Haible  <bruno@clisp.org>
94433
94434         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94435         <sys/types.h> should be sufficient.
94436         Reported by Paul Eggert.
94437
94438 2003-06-26  Karl Berry  <karl@gnu.org>
94439
94440         * config/depcomp: update from automake.
94441
94442 2003-06-26  Bruno Haible  <bruno@clisp.org>
94443
94444         * modules/human: Depend on module stdbool.
94445
94446 2003-06-25  Bruno Haible  <bruno@clisp.org>
94447
94448         * modules/readlink: New file.
94449         * modules/xreadlink: Depend on it.
94450         * MODULES.html.sh (func_all_modules): Add readlink.
94451
94452 2003-06-25  Bruno Haible  <bruno@clisp.org>
94453
94454         * m4/readlink.m4: New file.
94455
94456 2003-06-25  Bruno Haible  <bruno@clisp.org>
94457
94458         * lib/readlink.c: New file.
94459
94460 2003-06-22  Karl Berry  <karl@gnu.org>
94461
94462         * config/srclist.txt: update mkinstalldirs from automake.
94463         * config/mkinstalldirs: update.
94464
94465 2003-06-22  Bruno Haible  <bruno@clisp.org>
94466
94467         Portability to mingw32.
94468         * m4/ssize_t.m4: New file, from GNU gettext.
94469         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94470         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94471
94472 2003-06-22  Bruno Haible  <bruno@clisp.org>
94473
94474         * modules/safe-read: Add m4/ssize_t.m4.
94475         * modules/xreadlink: Add m4/ssize_t.m4.
94476
94477 2003-06-20  Bruno Haible  <bruno@clisp.org>
94478
94479         Assume C89, so PARAMS isn't needed.
94480         * lib/unicodeio.h (PARAMS): Remove.
94481         * lib/unicodeio.c: Don't use PARAMS.
94482
94483 2003-06-18  Karl Berry  <karl@gnu.org>
94484
94485         * config/config.{guess,sub}: update from prep.
94486
94487 2003-06-18  Jim Meyering  <jim@meyering.net>
94488
94489         Merge changes from coreutils.
94490         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94491         Remove explicit declarations of xmalloc and realloc.
94492         Include xalloc.h.
94493         (read_utmp): Remove anachronistic cast of xmalloc.
94494
94495 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94496
94497         Assume C89, so PARAMS isn't needed.
94498         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94499         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94500         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94501         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94502         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94503         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94504         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94505         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94506         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94507         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94508         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94509         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94510         no longer needed. Anyway, config.h should always be included before any
94511         other file.
94512
94513 2003-06-11  Simon Josefsson  <jas@extundo.com>
94514
94515         * modules/sysexits: New file.
94516         * MODULES.html.sh (func_all_modules): Add sysexits.
94517
94518 2003-06-11  Simon Josefsson  <jas@extundo.com>
94519
94520         * lib/sysexit_.h: New file.
94521
94522 2003-06-11  Derek Price  <derek@ximbiot.com>
94523
94524         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94525         necessary.
94526
94527 2003-06-11  Bruno Haible  <bruno@clisp.org>
94528
94529         * m4/sysexits.m4: New file.
94530
94531 2003-06-10  Simon Josefsson  <jas@extundo.com>
94532
94533         * lib/argp.h: New file, from glibc.
94534         * lib/argp-ba.c: New file, from glibc.
94535         * lib/argp-eexst.c: New file, from glibc.
94536         * lib/argp-fmtstream.c: New file, from glibc.
94537         * lib/argp-fmtstream.h: New file, from glibc.
94538         * lib/argp-fs-xinl.c: New file, from glibc.
94539         * lib/argp-help.c: New file, from glibc.
94540         * lib/argp-namefrob.h: New file, from glibc.
94541         * lib/argp-parse.c: New file, from glibc.
94542         * lib/argp-pv.c: New file, from glibc.
94543         * lib/argp-pvh.c: New file, from glibc.
94544         * lib/argp-xinl.c: New file, from glibc.
94545
94546 2003-06-10  Simon Josefsson  <jas@extundo.com>
94547
94548         * modules/strchrnul: New file.
94549
94550 2003-06-10  Simon Josefsson  <jas@extundo.com>
94551
94552         * modules/argp: New file.
94553
94554 2003-06-10  Simon Josefsson  <jas@extundo.com>
94555
94556         * m4/strchrnul.m4: New file.
94557
94558 2003-06-10  Simon Josefsson  <jas@extundo.com>
94559
94560         * lib/strchrnul.h: New file.
94561         * lib/strchrnul.c: New file.
94562
94563 2003-06-10  Bruno Haible  <bruno@clisp.org>
94564
94565         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94566
94567 2003-06-07  Karl Berry  <karl@gnu.org>
94568
94569         * config/config.{guess,sub}: update from prep.
94570
94571 2003-06-07  Jim Meyering  <jim@meyering.net>
94572
94573         * modules/strtod: Use $(...) notation, not @...@ for
94574         AC_REPLACE'd variables.
94575         * modules/localcharset: Likewise.
94576
94577 2003-06-07  Jim Meyering  <jim@meyering.net>
94578
94579         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94580         in place of my name in the copyright comment.
94581         Remove definition and uses of __P.
94582
94583         From coreutils.
94584         * lib/stat.c: Don't declare xmalloc explicitly.
94585         Instead, include "xalloc.h".
94586         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94587         xrealloc, and xcalloc return values.
94588         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94589         Improve comment.
94590         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94591
94592 2003-06-07  Bruno Haible  <bruno@clisp.org>
94593
94594         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94595         avoid AC_CONFIG_LINKS.
94596         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94597         fnmatch.h, to avoid AC_CONFIG_LINKS.
94598         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94599
94600 2003-06-07  Bruno Haible  <bruno@clisp.org>
94601
94602         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94603         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94604         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94605         directory.
94606         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94607         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94608         directory.
94609
94610 2003-06-06  Jim Meyering  <jim@meyering.net>
94611
94612         Merge from coreutils.
94613         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94614         Consolidate declarations and initializations of *_base* locals.
94615
94616         Merge from coreutils.
94617         This avoids a core dump on systems without GNU putenv,
94618         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94619         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94620         (unsetenv): New static function, from GNU libc.
94621         (rpl_putenv): Use it.
94622
94623         * lib/modechange.c: Remove trailing blanks.
94624
94625         Merge from coreutils.
94626         * lib/fsusage.c: Remove declaration of statfs.
94627         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94628
94629         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94630
94631 2003-06-06  Jim Meyering  <jim@meyering.net>
94632
94633         * lib/stdbool_.h: Renamed from stdbool.h.in.
94634
94635 2003-06-06  Jim Meyering  <jim@meyering.net>
94636             Bruno Haible  <bruno@clisp.org>
94637
94638         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94639         Adjust Makefile.am snippet not to redirect directly to target.
94640         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94641
94642 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94643
94644         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94645         mismatch, look in future quarters as well as past.  This fixes a
94646         bug when processing fall-backwards gaps immediately after a long
94647         period of daylight-saving time.
94648
94649         * lib/mktime.c: Assume freestanding C89 or better.
94650         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94651         (__P): Remove; not used.
94652         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94653         (mktime, not_equal_tm, print_tm, check_result,
94654         main): Use prototypes.  Use const * where appropriate.
94655         (main): Fix typo in testing code that uncovered by above changes.
94656         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94657
94658 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94659
94660         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94661         locale.h, localeconv.  This merges changes from coreutils.
94662
94663         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94664         It can be removed after the next Autoconf is released.
94665         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94666         needed.
94667
94668 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94669
94670         * lib/mktime.c: Fix Debian bug 177940
94671         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94672         (localtime_offset): Now long int, not time_t, because we want it
94673         to be guaranteed to be signed.  All uses changed.
94674         (__mktime_internal): If overflow would occur when adding offset,
94675         don't add it.
94676
94677         Merge 'human' changes from coreutils.  Rewrite to support
94678         locale-specific notations like thousands separators.
94679         * lib/human.c: Simplify authorship notice.
94680         Include human.h immediately after config.h.
94681         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94682         <limits.h>: Do not include, since human.h does.
94683         (SIZE_MAX, UINTMAX_MAX): New macros.
94684         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94685         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94686         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94687         (power_letter): Renamed from suffixes.
94688         (generate_suffix_backwards): Remove.
94689         (adjust_value): Now takes int style (because of human.h changes)
94690         and long double value (for greater precision on some platforms).
94691         (group_number): New function.
94692         (human_readable): Use it.  Use integer options, not enum.
94693         Put the options before the sizes in the arg list.
94694         Support all the new options.
94695         The old human_readable function has been removed;
94696         use inttostr.h instead.
94697         (human_readable, default_block_size, humblock):
94698         Use uintmax_t, not int, for block sizes.
94699         (human_readable_inexact, block_size_types): Remove.
94700         (block_size_opts): New constant.
94701         (human_options): Renamed from human_block_size, with new signature
94702         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94703         * lib/human.h: Add copyright and authorship notice.
94704         Include <limits.h> and <stdbool.h> unconditionally.
94705         (PARAMS): Remove.  All uses removed.
94706         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94707         (enum human_inexact_style): Remove tag; now a nameless enum.
94708         (human_floor, human_ceiling, human_round_to_even): Now have
94709         values 2, 0, 1 rather than -1, 1, 0.
94710         (human_group_digits, human_suppress_point_zero, human_autoscale,
94711         human_base_1024, human_SI, human_B): New constants.
94712         (human_readable_inexact, human_block_size): Remove.
94713         (human_readable): Size args are now uintmax_t, not int.
94714         (human_options): New decl.
94715
94716         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94717         unnecessary now that we assume C89 or better.  This change
94718         imported from coreutils.
94719
94720         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94721         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94722         in the 2003-05-30 sync from glibc.
94723
94724         .h files should stand alone, but we shouldn't include <sys/types.h>
94725         if we can get away with just <stddef.h>.
94726
94727         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94728         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94729         rather than <sys/types.h>, as we merely need size_t.
94730         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94731         to get size_t.
94732         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94733         Include <stdio.h>, to get FILE.
94734         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94735         memcasecmp.h has included <stddef.h> and all we need is size_t.
94736         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94737         our interface, instead of including <sys/types.h>
94738
94739 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94740
94741         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94742         now, as glibc mktime is buggy on non-glibc systems.
94743
94744 2003-06-03  Karl Berry  <karl@gnu.org>
94745
94746         * config/config.sub: update from prep.
94747
94748 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94749
94750         [from coreutils]
94751         Fix some minor time-related bugs with POSIX time arguments.
94752         Some valid time stamps were being rejected (notably -1, and
94753         time stamps before 1900 on 64-bit hosts).  And some invalid
94754         time stamps were being accepted, e.g. September 31.
94755
94756         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94757         that we can return (time_t) -1 successfully.
94758         * lib/posixtm.c: Likewise.
94759         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94760         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94761         (t): Remove static var.
94762         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94763         of static var.  All uses changed.
94764         (year): Do not reject years before 1900; they can occur with
94765         64-bit time_t.
94766         (posix_time_parse): Do not check for out-of-range components;
94767         that is now the caller's responsibility, since our checks were
94768         only approximations.
94769         (posixtime): Use mktime to check for out-of-range components,
94770         since it knows them exactly.
94771         If mktime returns (time_t) -1, check whether an error actually occurred
94772         by invoking localtime on -1.
94773         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94774         posixtime failures better.
94775         Improve the test data (in comments only).
94776
94777 2003-06-02  Karl Berry  <karl@gnu.org>
94778
94779         * config/mkinstalldirs (version): new variable.
94780         (--version): new option.
94781         (usage): improve message.
94782
94783 2003-05-30  Karl Berry  <karl@gnu.org>
94784
94785         * lib/mktime.c: update from libc.
94786
94787 2003-05-30  Bruno Haible  <bruno@clisp.org>
94788
94789         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94790         * config/config.rpath: Upgrade to gettext-0.12.1.
94791
94792 2003-05-30  Bruno Haible  <bruno@clisp.org>
94793
94794         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94795         * m4/nls.m4: New file, from gettext-0.12.1.
94796         * m4/po.m4: New file, from gettext-0.12.1.
94797         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94798
94799 2003-05-30  Bruno Haible  <bruno@clisp.org>
94800
94801         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94802         * lib/localcharset.h: Likewise.
94803         * lib/localcharset.c: Likewise.
94804
94805 2003-05-29  Karl Berry  <karl@gnu.org>
94806
94807         * config/config.rpath: update from gettext.
94808
94809 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94810
94811         Assume the headers required for C89 freestanding compilers.
94812         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94813         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94814         * m4/human.m4 (gl_HUMAN): Likewise.
94815         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94816         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94817         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94818         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94819         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94820         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94821
94822 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94823
94824         Assume the headers required for C89 freestanding compilers.
94825         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94826         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94827         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94828         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94829         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94830         define, since <limits.h> is guaranteed to do that.
94831         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94832         * lib/exclude.c: Include <stdbool.h> unconditionally.
94833         * lib/tempname.c: Include <stddef.h> unconditionally.
94834         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94835         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94836         <stddef.h> does that.
94837         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94838         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94839         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94840         needed.
94841         * lib/xstrtol.c: Likewise.
94842         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94843         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94844
94845         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94846         warnings on some platforms.
94847
94848         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94849         arbitrarily.
94850
94851 2003-05-26  Jim Meyering  <jim@meyering.net>
94852
94853         Merge in a change from coreutils:
94854         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94855         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94856         that condition, rather than `-1' which is slightly misleading.
94857         Change the name of the cache variable to have the gl_ prefix.
94858         Prompted by a patch from Richard Dawe for DJGPP.
94859
94860 2003-05-24  Karl Berry  <karl@gnu.org>
94861
94862         * config/config.guess: update from prep.
94863
94864 2003-05-22  Karl Berry  <karl@gnu.org>
94865
94866         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94867
94868 2003-05-20  Karl Berry  <karl@gnu.org>
94869
94870         * config/config.guess: update from prep.
94871
94872 2003-05-18  Karl Berry  <karl@gnu.org>
94873
94874         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94875         might actually be set by the user.
94876
94877         * config/depcomp, install-sh, mdate-sh: update from automake.
94878
94879 2003-05-17  Bruno Haible  <bruno@clisp.org>
94880
94881         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94882         invalid expansion for AC_EGREP_CPP.
94883         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94884         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94885         Suggested by Akim Demaille <akim@epita.fr> in
94886         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94887
94888 2003-05-12  Jim Meyering  <jim@meyering.net>
94889
94890         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94891         the space-padded-by-default conversion specifiers, %e, %k, %l.
94892
94893 2003-05-12  Bruno Haible  <bruno@clisp.org>
94894
94895         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94896         the string is longer than 4 KB.
94897
94898 2003-05-11  Karl Berry  <karl@gnu.org>
94899
94900         * config/config.{guess,sub}: update from prep.
94901
94902 2003-05-09  Bruno Haible  <bruno@clisp.org>
94903
94904         * modules/error: Add m4/strerror_r.m4 to file list.
94905
94906 2003-05-03  Bruno Haible  <bruno@clisp.org>
94907
94908         Upgrade to Unicode-4.0.
94909         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94910         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94911         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94912         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94913         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94914         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94915         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94916         Change width of U+E0100..U+E01EF from 1 to 0.
94917
94918 2003-04-25  Jim Meyering  <jim@meyering.net>
94919
94920         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94921         of type size_t, not int.
94922
94923 2003-04-25  Bruno Haible  <bruno@clisp.org>
94924
94925         * lib/copy-file.c: Include <stddef.h>, for size_t.
94926
94927 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94928
94929         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94930         code which expansion is under static control.  Patch imported from
94931         Akim Demaille's patch to Bison; see
94932         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94933
94934 2003-04-14  Bruno Haible  <bruno@clisp.org>
94935
94936         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94937
94938 2003-04-11  Jim Meyering  <jim@meyering.net>
94939
94940         Merge changes from Coreutils.
94941
94942         2003-03-22  Jim Meyering  <jim@meyering.net>
94943
94944         * lib/strftime.c (widen): Cast alloca return value to proper type.
94945
94946         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94947
94948         From GNU libc.
94949         * lib/strftime.c (my_strftime): Handle very large width
94950         specifications for numeric values correctly.  Improve checks for
94951         overflow.
94952
94953         2003-01-19  Jim Meyering  <jim@meyering.net>
94954
94955         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94956         definitions.
94957         (nl_get_alt_digit) [! defined my_strftime]: Define.
94958         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94959         _nl_get_alt_digit and _nl_get_walt_digit.
94960
94961         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94962         libc. These changes have no effect outside of _LIBC.
94963
94964 2003-04-10  Bruno Haible  <bruno@clisp.org>
94965
94966         * modules/findprog: New file.
94967         * MODULES.html.sh (func_all_modules): Add it.
94968
94969 2003-04-10  Bruno Haible  <bruno@clisp.org>
94970
94971         * m4/findprog.m4: New file.
94972         * m4/eaccess.m4: New file.
94973
94974 2003-04-10  Bruno Haible  <bruno@clisp.org>
94975
94976         * lib/findprog.h: New file, from GNU gettext.
94977         * lib/findprog.c: New file, from GNU gettext.
94978
94979 2003-04-05  Jim Meyering  <jim@meyering.net>
94980
94981         Merge changes from Coreutils.
94982
94983         * lib/exclude.h (PARAMS): Remove definition and uses.
94984         * lib/exclude.c: Remove uses of `PARAMS'.
94985
94986         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94987         Add test-cases for DOS filenames. Declare program_name.
94988         (main): Set up program_name.  Patch by Rich Dawe.
94989
94990         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94991         error from mntctl.
94992         Use mntctl's return value to drive the entry-processing loop, since
94993         we can't rely on the value of the vmt_length member in the last
94994         entry.  On some systems doing so could result in exhausting
94995         virtual memory.  Based in part on a patch from Mike Jetzer.
94996
94997 2003-04-04  Bruno Haible  <bruno@clisp.org>
94998
94999         * modules/linebreak: New file.
95000         * MODULES.html.sh (func_all_modules): Add it.
95001
95002 2003-04-04  Bruno Haible  <bruno@clisp.org>
95003
95004         * m4/linebreak.m4: New file.
95005
95006 2003-04-04  Bruno Haible  <bruno@clisp.org>
95007
95008         * lib/linebreak.h: New file, from GNU gettext.
95009         * lib/linebreak.c: New file, from GNU gettext with slight
95010         modifications.
95011         * lib/lbrkprop.h: New file, from GNU gettext.
95012
95013 2003-04-03  Bruno Haible  <bruno@clisp.org>
95014
95015         * modules/utf8-ucs4: New file.
95016         * modules/utf16-ucs4: New file.
95017         * modules/ucs4-utf8: New file.
95018         * modules/ucs4-utf16: New file.
95019         * MODULES.html.sh (func_all_modules): Add them.
95020
95021 2003-04-03  Bruno Haible  <bruno@clisp.org>
95022
95023         * m4/utf-ucs4.m4: New file.
95024         * m4/ucs4-utf.m4: New file.
95025
95026 2003-04-03  Bruno Haible  <bruno@clisp.org>
95027
95028         * lib/utf8-ucs4.h: New file, from GNU gettext.
95029         * lib/utf16-ucs4.h: New file, from GNU gettext.
95030         * lib/ucs4-utf8.h: New file, from GNU gettext.
95031         * lib/ucs4-utf16.h: New file, from GNU gettext.
95032
95033 2003-04-02  Bruno Haible  <bruno@clisp.org>
95034
95035         * modules/binary-io: New file.
95036         * MODULES.html.sh (func_all_modules): Add it.
95037
95038 2003-04-02  Bruno Haible  <bruno@clisp.org>
95039
95040         * lib/binary-io.h: New file, from GNU gettext.
95041
95042 2003-04-01  Bruno Haible  <bruno@clisp.org>
95043
95044         * modules/pathname: New file.
95045         * MODULES.html.sh (func_all_modules): Add it.
95046
95047 2003-04-01  Bruno Haible  <bruno@clisp.org>
95048
95049         * lib/pathname.h: New file, from GNU gettext.
95050         * lib/concatpath.c: New file, from GNU gettext.
95051
95052 2003-03-30  Bruno Haible  <bruno@clisp.org>
95053
95054         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95055
95056 2003-03-30  Bruno Haible  <bruno@clisp.org>
95057
95058         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95059         function chown() doesn't exist.
95060
95061 2003-03-28  Bruno Haible  <bruno@clisp.org>
95062
95063         * modules/copy-file: New file.
95064         * MODULES.html.sh (func_all_modules): Add it.
95065
95066 2003-03-28  Bruno Haible  <bruno@clisp.org>
95067
95068         * m4/copy-file.m4: New file.
95069
95070 2003-03-28  Bruno Haible  <bruno@clisp.org>
95071
95072         * lib/copy-file.h: New file, from GNU gettext.
95073         * lib/copy-file.c: New file, from GNU gettext.
95074
95075 2003-03-18  Jim Meyering  <jim@meyering.net>
95076
95077         * lib/quote.c (quote_n): Fix typo in comment.
95078
95079 2003-03-18  Bruno Haible  <bruno@clisp.org>
95080
95081         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95082         checking.
95083         * m4/onceonly_2_57.m4: Likewise.
95084
95085 2003-03-17  Bruno Haible  <bruno@clisp.org>
95086
95087         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95088         (m4_quote): Remove macro.
95089         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95090
95091 2003-03-14  Jim Meyering  <jim@meyering.net>
95092
95093         Merge changes from Coreutils.
95094         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95095         to be const, in order to avoid warnings.
95096         (obstack_room): Likewise.
95097         (obstack_empty_p): Likewise.
95098
95099 2003-03-14  Bruno Haible  <bruno@clisp.org>
95100
95101         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95102         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95103
95104 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95105
95106         Merge changes from Bison.
95107         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95108         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95109         when compiling Bison 1.875's `bitset bset = obstack_alloc
95110         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95111         * lib/hash.c: Include <stdbool.h> unconditionally.
95112
95113 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95114
95115         * m4/onceonly.m4 (m4_quote): New macro.
95116         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95117         Quote AC_FOREACH variable-expansions properly.
95118
95119 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95120
95121         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95122
95123 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95124
95125         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95126         Reported by Bruce Becker; see:
95127         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95128
95129 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95130             Bruno Haible  <bruno@clisp.org>
95131
95132         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95133         Reported by John Hughes, see
95134         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95135
95136 2003-02-20  Bruno Haible  <bruno@clisp.org>
95137
95138         * MODULES.html.sh (func_all_modules): Add poll.
95139
95140 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95141
95142         * modules/poll: New file.
95143
95144 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95145
95146         * lib/poll_.h: New file.
95147         * lib/poll.c: New file.
95148
95149 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95150
95151         * m4/poll.m4: New file.
95152
95153 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95154
95155         * modules/mathl: New file.
95156
95157 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95158
95159         * lib/mathl.h: New file.
95160         * lib/acosl.c: New file.
95161         * lib/asinl.c: New file.
95162         * lib/atanl.c: New file.
95163         * lib/ceill.c: New file.
95164         * lib/cosl.c: New file.
95165         * lib/expl.c: New file.
95166         * lib/floorl.c: New file.
95167         * lib/frexpl.c: New file.
95168         * lib/ldexpl.c: New file.
95169         * lib/logl.c: New file.
95170         * lib/sincosl.c: New file.
95171         * lib/sinl.c: New file.
95172         * lib/sqrtl.c: New file.
95173         * lib/tanl.c: New file.
95174         * lib/trigl.c: New file.
95175         * lib/trigl.h: New file.
95176
95177 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95178
95179         * m4/mathl.m4: New file.
95180
95181 2003-02-18  Bruno Haible  <bruno@clisp.org>
95182
95183         * MODULES.html.sh (func_all_modules): Add mathl.
95184
95185 2003-02-17  Bruno Haible  <bruno@clisp.org>
95186
95187         * modules/mkdtemp: New module.
95188         * MODULES.html.sh (func_all_modules): Add it.
95189
95190 2003-02-17  Bruno Haible  <bruno@clisp.org>
95191
95192         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95193
95194 2003-02-17  Bruno Haible  <bruno@clisp.org>
95195
95196         * lib/mkdtemp.h: New file, from GNU gettext.
95197         * lib/mkdtemp.c: New file, from GNU gettext.
95198
95199 2003-02-02  Jim Meyering  <jim@meyering.net>
95200
95201         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95202         e.g. glibc-2.2.93.
95203
95204 2003-01-31  Bruno Haible  <bruno@clisp.org>
95205
95206         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95207         'rpl_rename'.
95208         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95209         'rpl_strnlen'.
95210         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95211         'rpl_strtod'.
95212         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95213         'rpl_utime'.
95214
95215 2003-01-31  Bruno Haible  <bruno@clisp.org>
95216
95217         * lib/rename.c: #undef rename before defining rpl_rename.
95218         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95219
95220 2003-01-30  Bruno Haible  <bruno@clisp.org>
95221
95222         * modules/vasnprintf, modules/vasprintf: New modules.
95223         * MODULES.html.sh (func_all_modules): Add them.
95224
95225 2003-01-30  Bruno Haible  <bruno@clisp.org>
95226
95227         * m4/signed.m4: New file, from GNU gettext.
95228         * m4/longdouble.m4: New file, from GNU gettext.
95229         * m4/wchar_t.m4: New file, from GNU gettext.
95230         * m4/wint_t.m4: New file, from GNU gettext.
95231         * m4/vasnprintf.m4: New file.
95232         * m4/vasprintf.m4: New file.
95233
95234 2003-01-30  Bruno Haible  <bruno@clisp.org>
95235
95236         * lib/printf-args.h: New file, from GNU gettext.
95237         * lib/printf-args.c: New file, from GNU gettext.
95238         * lib/printf-parse.h: New file, from GNU gettext.
95239         * lib/printf-parse.c: New file, from GNU gettext.
95240         * lib/vasnprintf.h: New file, from GNU gettext.
95241         * lib/vasnprintf.c: New file, from GNU gettext.
95242         * lib/asnprintf.c: New file, from GNU gettext.
95243         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95244         * lib/vasprintf.c: New file, from GNU gettext.
95245         * lib/asprintf.c: New file, from GNU gettext.
95246
95247 2003-01-29  Bruno Haible  <bruno@clisp.org>
95248
95249         * modules/stpncpy: New module.
95250         * MODULES.html.sh (func_all_modules): Add it.
95251
95252 2003-01-29  Bruno Haible  <bruno@clisp.org>
95253
95254         * m4/stpncpy.m4: New file.
95255
95256 2003-01-29  Bruno Haible  <bruno@clisp.org>
95257
95258         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95259         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95260
95261 2003-01-28  Bruno Haible  <bruno@clisp.org>
95262
95263         * modules/c-ctype: New module.
95264         * MODULES.html.sh (func_all_modules): Add it.
95265
95266 2003-01-28  Bruno Haible  <bruno@clisp.org>
95267
95268         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95269         Paul Eggert.
95270         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95271         Paul Eggert.
95272
95273 2003-01-27  Bruno Haible  <bruno@clisp.org>
95274
95275         * modules/xsetenv: New module.
95276         * MODULES.html.sh (func_all_modules): Add it.
95277
95278 2003-01-27  Bruno Haible  <bruno@clisp.org>
95279
95280         * lib/xsetenv.h: New file, from GNU gettext.
95281         * lib/xsetenv.c: New file, from GNU gettext.
95282
95283 2003-01-23  Jim Meyering  <jim@meyering.net>
95284
95285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95286         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95287
95288 2003-01-23  Bruno Haible  <bruno@clisp.org>
95289
95290         * modules/minmax: New module.
95291         * MODULES.html.sh (func_all_modules): Add it.
95292
95293 2003-01-23  Bruno Haible  <bruno@clisp.org>
95294
95295         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95296         Eggert.
95297
95298 2003-01-22  Bruno Haible  <bruno@clisp.org>
95299
95300         * modules/exit: New module.
95301         * MODULES.html.sh (func_all_modules): Add it.
95302
95303 2003-01-22  Bruno Haible  <bruno@clisp.org>
95304
95305         * lib/exit.h: New file, from GNU gettext.
95306
95307 2003-01-19  Bruno Haible  <bruno@clisp.org>
95308
95309         * gnulib-tool: Recognize option --extract-maintainer.
95310         (func_get_maintainer): New function.
95311         * modules/*: Add Maintainer entry.
95312
95313 2003-01-16  Jim Meyering  <jim@meyering.net>
95314
95315         * m4/regex.m4: The `regex' struct is both input and output.
95316         Initialize it before each use.  Patch by Tim Waugh.
95317
95318 2003-01-16  Bruno Haible  <bruno@clisp.org>
95319
95320         * MODULES.html.sh: Add a table of contents. Add the module name as
95321         leftmost column. Add hyperlinks.
95322
95323 2003-01-15  Bruno Haible  <bruno@clisp.org>
95324
95325         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95326
95327 2003-01-15  Bruno Haible  <bruno@clisp.org>
95328
95329         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95330         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95331         suffix.
95332
95333 2003-01-15  Bruno Haible  <bruno@clisp.org>
95334
95335         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95336
95337 2003-01-15  Bruno Haible  <bruno@clisp.org>
95338
95339         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95340         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95341
95342 2003-01-14  Jim Meyering  <jim@meyering.net>
95343
95344         * lib/same.c (same_name): Tweak a comment.
95345
95346 2003-01-14  Bruno Haible  <bruno@clisp.org>
95347
95348         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95349         when a string comparison is sufficient.
95350
95351 2003-01-14  Bruno Haible  <bruno@clisp.org>
95352
95353         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95354         'unsigned int'.
95355
95356 2003-01-14  Bruno Haible  <bruno@clisp.org>
95357
95358         * lib/hash-pjw.c: Add comment about low quality of this function.
95359
95360 2003-01-13  Bruno Haible  <bruno@clisp.org>
95361
95362         * modules/stpcpy: Distribute lib/stpcpy.h.
95363         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95364
95365 2003-01-13  Bruno Haible  <bruno@clisp.org>
95366
95367         * modules/*: Add a description.
95368         * modules/strpbrk: Fix Makefile.am snippet.
95369         * modules/strtoimax: Fix dependencies.
95370         * modules/strtoumax: Likewise.
95371
95372 2003-01-13  Bruno Haible  <bruno@clisp.org>
95373
95374         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95375         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95376         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95377
95378 2003-01-13  Bruno Haible  <bruno@clisp.org>
95379
95380         * gnulib-tool (func_create_testdir): Store config/* files in the main
95381         directory.
95382         * config.rpath: Move to ...
95383         * config/config.rpath: ... here.
95384         * modules/gettext: Contains config/config.rpath, not config.rpath.
95385         * modules/iconv: Likewise.
95386
95387 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95388
95389         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95390         to avoid collisions with libcurses and libreadline.
95391
95392         * m4/getstr.m4: Remove.
95393         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95394
95395 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95396
95397         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95398         to avoid collisions with libcurses and libreadline.
95399
95400         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95401         * lib/getstr.h, getstr.c: Remove.
95402         * lib/getline.c: Include "getline.h", to check interface.
95403         Move body of old getstr.c here: this defines MIN_CHUNK and
95404         declares getdelim2, which is renamed from getstr.
95405         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95406
95407         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95408         All uses changed.
95409         * lib/linebuffer.h: Likewise.
95410         (readline): Remove backward-compatibility macro.
95411
95412 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95413
95414         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95415         to avoid collisions with libcurses and libreadline.
95416         * getstr: Remove.
95417         * MODULES.html.sh: Remove getstr.
95418         * modules/getline: Depend on unlocked-io, not getstr.
95419
95420 2003-01-12  Jim Meyering  <jim@meyering.net>
95421
95422         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95423
95424 2003-01-10  Bruno Haible  <bruno@clisp.org>
95425
95426         * modules/alloca: Change Makefile.am requirements. Simplify Include
95427         requirements. Add lib/alloca_.h to file list.
95428
95429 2003-01-10  Bruno Haible  <bruno@clisp.org>
95430
95431         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95432
95433 2003-01-10  Bruno Haible  <bruno@clisp.org>
95434
95435         * lib/alloca_.h: New file.
95436         * lib/getdate.y: Unconditionally include alloca.h.
95437         * lib/makepath.c: Likewise.
95438         * lib/setenv.c: Likewise.
95439         * lib/userspec.c: Likewise.
95440
95441 2003-01-09  Karl Berry  <karl@gnu.org>
95442
95443         * MODULES.html.sh: include `dirname $0` in PATH, to find
95444         gnulib-tool.
95445
95446 2003-01-09  Bruno Haible  <bruno@clisp.org>
95447
95448         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95449         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95450
95451 2003-01-09  Bruno Haible  <bruno@clisp.org>
95452
95453         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95454
95455 2003-01-09  Bruno Haible  <bruno@clisp.org>
95456
95457         * lib/stdbool.h.in: New file.
95458
95459 2003-01-09  Bruno Haible  <bruno@clisp.org>
95460
95461         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95462         * MODULES.html.sh: Likewise.
95463
95464 2003-01-08  Jim Meyering  <jim@meyering.net>
95465
95466         * lib/full-write.c: Undefine and define-away `const' after inclusion
95467         of errno.h, not before.  Suggestion from Bruno Haible.
95468
95469 2003-01-08  Bruno Haible  <bruno@clisp.org>
95470
95471         * modules/full-read: Depend on full-write.
95472
95473 2003-01-08  Bruno Haible  <bruno@clisp.org>
95474
95475         * lib/safe-read.c: Include specification header first, to ensure its
95476         selfcontainedness.
95477         * lib/full-write.c: Likewise.
95478
95479 2003-01-07  Jim Meyering  <jim@meyering.net>
95480
95481         * lib/full-write.c: Rework so that it may serve to define full_read,
95482         too.
95483         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95484
95485 2003-01-07  Bruno Haible  <bruno@clisp.org>
95486
95487         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95488         <inttypes.h>.
95489         * lib/xstrtol.h: Likewise.
95490         * lib/xstrtoimax.c: Likewise.
95491         * lib/xstrtoumax.c: Likewise.
95492         * lib/human.h: Likewise.
95493
95494         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95495         on systems that have <inttypes.h> but not <stdint.h>.
95496
95497 2003-01-07  Bruno Haible  <bruno@clisp.org>
95498
95499         * MODULES.html.sh: Add copyright notice.
95500         (missed_files): Omit CVS directory entries.
95501         (func_module): Make it work with sed-3.02.
95502         * MODULES.txt: Remove file.
95503
95504 2003-01-06  Jim Meyering  <jim@meyering.net>
95505
95506         * lib/version-etc.c: Update year in translatable copyright string.
95507
95508 2003-01-03  Karl Berry  <karl@gnu.org>
95509
95510         * config/config.{guess,sub}: update from prep.
95511
95512 2003-01-02  Karl Berry  <karl@gnu.org>
95513
95514         * doc/COPYING.DOC: belatedly updated to 1.2.
95515
95516 2003-01-01  Karl Berry  <karl@gnu.org>
95517
95518         * gnulib-tool (func_verify_module): report module name $module in
95519         error message, not $1.
95520         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95521         be created, only if it doesn't exist.
95522         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95523
95524 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95525
95526         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95527
95528 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95529
95530         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95531         memcmp if strcoll doesn't work.
95532
95533 2002-12-31  Bruno Haible  <bruno@clisp.org>
95534
95535         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95536         nonempty.
95537
95538 2002-12-31  Bruno Haible  <bruno@clisp.org>
95539
95540         * lib/memcoll.c (STRCOLL): New macro.
95541         (memcoll): Use it.
95542
95543 2002-12-31  Bruno Haible  <bruno@clisp.org>
95544
95545         * lib/localcharset.h: New file.
95546         * lib/localcharset.c: Include it.
95547         * lib/unicodeio.c: Likewise.
95548
95549 2002-12-31  Bruno Haible  <bruno@clisp.org>
95550
95551         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95552         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95553
95554 2002-12-31  Bruno Haible  <bruno@clisp.org>
95555
95556         * lib/getline.h: Include <stddef.h>, for size_t.
95557
95558         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95559         * lib/unicodeio.c: Don't include <stddef.h>.
95560
95561 2002-12-31  Bruno Haible  <bruno@clisp.org>
95562
95563         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95564         HAVE_TM_ZONE.
95565
95566 2002-12-24  Karl Berry  <karl@gnu.org>
95567
95568         * config/config.guess: update from prep.
95569
95570 2002-12-24  Bruno Haible  <bruno@clisp.org>
95571
95572         General infrasructure.
95573         * m4/README: Rewritten.
95574         * m4/onceonly.m4: New file.
95575         * m4/onceonly_2_57.m4: New file.
95576
95577         Module atexit.
95578         * m4/atexit.m4: New file.
95579
95580         Module strtod.
95581         * m4/strtod.m4: New file.
95582
95583         Module strtol.
95584         * m4/strtol.m4: New file.
95585
95586         Module strtoul.
95587         * m4/strtoul.m4: New file.
95588
95589         Module memchr.
95590         * m4/memchr.m4: New file.
95591
95592         Module memcmp.
95593         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95594         (jm_FUNC_MEMCMP): Invoke it.
95595
95596         Module memcpy.
95597         * m4/memcpy.m4: New file.
95598
95599         Module memmove.
95600         * m4/memmove.m4: New file.
95601
95602         Module memset.
95603         * m4/memset.m4: New file.
95604
95605         Module strcspn.
95606         * m4/strcspn.m4: New file.
95607
95608         Module strpbrk.
95609         * m4/strpbrk.m4: New file.
95610
95611         Module strstr.
95612         * m4/strstr.m4: New file.
95613
95614         Module strerror.
95615         * m4/strerror.m4: New file.
95616
95617         Module mktime.
95618         * m4/mktime.m4: Renamed from jm-mktime.m4.
95619         (gl_PREREQ_MKTIME): New macro.
95620         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95621
95622         Module malloc.
95623         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95624         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95625         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95626
95627         Module realloc.
95628         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95629         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95630         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95631
95632         Module strftime.
95633         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95634         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95635         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95636         gl_TM_GMTOFF.
95637         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95638
95639         Module xalloc.
95640         * m4/xalloc.m4: New file.
95641
95642         Module alloca.
95643         * m4/alloca.m4: New file.
95644
95645         Module putenv.
95646         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95647         (jm_FUNC_PUTENV): Invoke it.
95648
95649         Module setenv.
95650         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95651         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95652         when invoked twice.
95653         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95654         gt_FUNC_SETENV.
95655
95656         Module memrchr.
95657         * m4/memrchr.m4: New file.
95658
95659         Module stpcpy.
95660         * m4/stpcpy.m4: New file.
95661
95662         Module strcase.
95663         * m4/strcase.m4: New file.
95664
95665         Module strdup.
95666         * m4/strdup.m4: New file.
95667
95668         Module strnlen.
95669         * m4/strnlen.m4: New file.
95670
95671         Module strndup.
95672         * m4/strndup.m4: New file.
95673
95674         Module xstrtod.
95675         * m4/xstrtod.m4: New file.
95676
95677         Module xstrtol.
95678         * m4/xstrtol.m4: New file.
95679
95680         Module getdate.
95681         * m4/getdate.m4: New file.
95682
95683         Module unlocked-io.
95684         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95685         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95686         * m4/jm-glibc-io.m4n: Remove file.
95687
95688         Module long-options.
95689         * m4/long-options.m4: New file.
95690
95691         Module md5.
95692         * m4/md5.m4: New file.
95693
95694         Module sha.
95695         * m4/sha.m4: New file.
95696
95697         Module getstr.
95698         * m4/getstr.m4: New file.
95699
95700         Module getline.
95701         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95702         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95703         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95704         simply getline. Infoke gl_PREREQ_GETLINE.
95705
95706         Module obstack.
95707         * m4/obstack.m4: New file.
95708
95709         Module hash.
95710         * m4/hash.m4: New file.
95711
95712         Module readtokens.
95713         * m4/readtokens.m4: New file.
95714
95715         Module strverscmp.
95716         * m4/strverscmp.m4: New file.
95717
95718         Module stdbool.
95719         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95720         OSF/1.
95721
95722         Module strtoll.
95723         * m4/strtoll.m4: New file.
95724
95725         Module strtoull.
95726         * m4/strtoull.m4: New file.
95727
95728         Module strtoimax.
95729         * m4/strtoimax.m4: New file.
95730
95731         Module strtoumax.
95732         * m4/strtoumax.m4: New file.
95733
95734         Module xstrtoimax.
95735         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95736         jm_AC_PREREQ_XSTRTOIMAX.
95737         Moved the strtol prerequisites to strtol.m4.
95738         Moved the strtoll prerequisites to strtoll.m4.
95739         Moved the strtoimax prerequisites to strtoimax.m4.
95740
95741         Module xstrtoumax.
95742         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95743         jm_AC_PREREQ_XSTRTOUMAX.
95744         Moved the strtoul prerequisites to strtoul.m4.
95745         Moved the strtoull prerequisites to strtoull.m4.
95746         Moved the strtoumax prerequisites to strtoumax.m4.
95747
95748         Module chown.
95749         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95750         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95751
95752         Module dup2.
95753         * m4/dup2.m4: New file.
95754
95755         Module ftruncate.
95756         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95757         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95758
95759         Module getgroups.
95760         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95761         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95762
95763         Module gettimeofday.
95764         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95765         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95766         gl_PREREQ_GETTIMEOFDAY.
95767
95768         Module mkdir.
95769         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95770         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95771
95772         Module mkstemp.
95773         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95774         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95775         jm_AC_TYPE_UINTMAX_T.
95776         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95777
95778         Module stat.
95779         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95780         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95781
95782         Module lstat.
95783         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95784         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95785
95786         Module timespec.
95787         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95788         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95789         * m4/st_mtim.m4: Indentation.
95790
95791         Module nanosleep.
95792         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95793         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95794         gl_PREREQ_NANOSLEEP.
95795
95796         Module regex.
95797         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95798         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95799         (gl_REGEX): New macro.
95800
95801         Module rename.
95802         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95803         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95804
95805         Module rmdir.
95806         * m4/rmdir.m4: New file.
95807
95808         Module utime.
95809         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95810         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95811         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95812
95813         Module dirname.
95814         * m4/dirname.m4: New file.
95815
95816         Module getopt.
95817         * m4/getopt.m4: New file.
95818
95819         Module unistd-safer.
95820         * m4/unistd-safer.m4: New file.
95821
95822         Module fnmatch.
95823         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95824         declaration.
95825         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95826         (gl_FUNC_FNMATCH_POSIX): New macro.
95827         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95828         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95829         simply fnmatch.
95830
95831         Module exclude.
95832         * m4/exclude.m4: New file.
95833
95834         Module human.
95835         * m4/human.m4: New file.
95836
95837         Module acl.
95838         * m4/acl.m4: Nop.
95839
95840         Module backupfile.
95841         * m4/backupfile.m4: New file.
95842         * m4/d-ino.m4: Indentation.
95843
95844         Module fsusage.
95845         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95846         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95847         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95848
95849         Module dirfd.
95850         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95851         requirements.
95852
95853         Module euidaccess.
95854         * m4/euidaccess.m4: New file.
95855
95856         Module file-type.
95857         * m4/file-type.m4: New file.
95858
95859         Module fileblocks.
95860         * m4/fileblocks.m4: New file.
95861
95862         Module filemode.
95863         * m4/filemode.m4: New file.
95864
95865         Module isdir.
95866         * m4/isdir.m4: New file.
95867
95868         Module lchown.
95869         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95870         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95871
95872         Module makepath.
95873         * m4/makepath.m4: New file.
95874
95875         Module modechange.
95876         * m4/modechange.m4: New file.
95877
95878         Module mountlist.
95879         * m4/mountlist.m4: New file.
95880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95881         Indentation.
95882
95883         Module path-concat.
95884         * m4/path-concat.m4: New file.
95885
95886         Module pathmax.
95887         * m4/pathmax.m4: New file.
95888
95889         Module same.
95890         * m4/same.m4: New file.
95891
95892         Module save-cwd.
95893         * m4/save-cwd.m4: New file.
95894
95895         Module savedir.
95896         * m4/savedir.m4: New file.
95897
95898         Module xgetcwd.
95899         * m4/xgetcwd.m4: New file.
95900         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95901
95902         Module xreadlink.
95903         * m4/xreadlink.m4: New file.
95904
95905         Module safe-read.
95906         * m4/safe-read.m4: New file.
95907
95908         Module safe-write.
95909         * m4/safe-write.m4: New file.
95910
95911         Module closeout.
95912         * m4/closeout.m4: New file.
95913
95914         Module stdio-safer.
95915         * m4/stdio-safer.m4: New file.
95916
95917         Module getpass.
95918         * m4/getpass.m4: New file.
95919
95920         Module getugroups.
95921         * m4/getugroups.m4: New file.
95922
95923         Module group-member.
95924         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95925         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95926
95927         Module idcache.
95928         * m4/idcache.m4: New file.
95929
95930         Module userspec.
95931         * m4/userspec.m4: New file.
95932
95933         Module gettime.
95934         * m4/clock_time.m4: New file.
95935         * m4/gettime.m4: New file.
95936
95937         Module settime.
95938         * m4/settime.m4: New file.
95939
95940         Module posixtm.
95941         * m4/posixtm.m4: New file.
95942
95943         Module gethostname.
95944         * m4/gethostname.m4: New file.
95945
95946         Module canon-host.
95947         * m4/canon-host.m4: New file.
95948
95949         Module gettext.
95950         * m4/codeset.m4: New file, from gettext-0.11.5.
95951         * m4/gettext.m4: New file, from gettext-0.11.5.
95952         * m4/glibc21.m4: New file, from gettext-0.11.5.
95953         * m4/iconv.m4: New file, from gettext-0.11.5.
95954         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95955         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95956         * m4/inttypes.m4: New file, from gettext-0.11.5.
95957         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95958         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95959         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95960         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95961         * m4/lib-link.m4: New file, from gettext-0.11.5.
95962         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95963         * m4/progtest.m4: New file, from gettext-0.11.5.
95964         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95965         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95966         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95967
95968         Module localcharset.
95969         * m4/localcharset.m4: New file.
95970
95971         Module hard-locale.
95972         * m4/hard-locale.m4: New file.
95973
95974         Module mbswidth.
95975         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95976         onceonly macros.
95977         * m4/mbrtowc.m4: Add comment.
95978
95979         Module memcasecmp.
95980         * m4/memcasecmp.m4: New file.
95981
95982         Module memcoll.
95983         * m4/memcoll.m4: New file.
95984
95985         Module unicodeio.
95986         * m4/unicodeio.m4: New file.
95987
95988         Module rpmatch.
95989         * m4/rpmatch.m4: New file.
95990
95991         Module yesno.
95992         * m4/yesno.m4: New file.
95993
95994         Module exitfail.
95995         * m4/exitfail.m4: New file.
95996
95997         Module c-stack.
95998         * m4/c-stack.m4 (gl_C_STACK): New macro.
95999         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96000
96001         Module error.
96002         * m4/error.m4 (gl_ERROR): New macro.
96003         (jm_PREREQ_ERROR): Use onceonly macros.
96004
96005         Module fatal.
96006         * m4/fatal.m4: New file.
96007
96008         Module getloadavg.
96009         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96010         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96011
96012         Module getpagesize.
96013         * m4/getpagesize.m4: New file.
96014
96015         Module getusershell.
96016         * m4/getusershell.m4: New file.
96017
96018         Module physmem.
96019         * m4/physmem.m4: New file.
96020
96021         Module posixver.
96022         * m4/posixver.m4: New file.
96023
96024         Module quotearg.
96025         * m4/quotearg.m4: New file.
96026
96027         Module quote.
96028         * m4/quote.m4: New file.
96029
96030         Module readutmp.
96031         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96032
96033         Module sig2str.
96034         * m4/sig2str.m4: New file.
96035
96036         Other.
96037         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96038         ulonglong.m4.
96039         * m4/intmax_t.m4: New file.
96040         * m4/d-type.m4: Indentation.
96041         * m4/jm-macros.m4: Update.
96042         * m4/prereq.m4 (jm_PREREQ): Update.
96043         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96044         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96045         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96046         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96047         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96048         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96049         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96050         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96051         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96052         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96053         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96054         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96055         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96056         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96057         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96058         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96059         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96060         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96061         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96062
96063 2002-12-24  Bruno Haible  <bruno@clisp.org>
96064
96065         * MODULES.txt: Update according to m4/ changes.
96066
96067         Module gettext.
96068         * config.rpath: New file, from gettext-0.11.5.
96069
96070         * modules/*: New module descriptions.
96071         * gnulib-tool: New file.
96072         * MODULES.html.sh: New file.
96073
96074 2002-12-21  Karl Berry  <karl@gnu.org>
96075
96076         * doc/fdl.texi: update to version 1.2.
96077
96078 2002-12-19  Karl Berry  <karl@gnu.org>
96079
96080         * config/config.guess: update from prep.
96081
96082 2002-12-18  Bruno Haible  <bruno@clisp.org>
96083
96084         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96085         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96086
96087 2002-12-17  Bruno Haible  <bruno@clisp.org>
96088
96089         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96090         stdlib.h, string.h.
96091
96092 2002-12-17  Bruno Haible  <bruno@clisp.org>
96093
96094         * lib/canon-host.c (strdup): Remove unused declaration.
96095
96096         * lib/fsusage.c: Include full_read.h.
96097         (get_fs_usage): Use full_read instead of safe_read.
96098
96099         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96100
96101 2002-12-12  Karl Berry  <karl@gnu.org>
96102
96103         * config/config.guess: update from prep.
96104
96105 2002-12-11  Bruno Haible  <bruno@clisp.org>
96106
96107         * m4/setenv.m4: New file, from gettext-0.11.5.
96108
96109 2002-12-11  Bruno Haible  <bruno@clisp.org>
96110
96111         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96112         not unsetenv().
96113         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96114         modifications:
96115
96116         2002-12-11  Bruno Haible  <bruno@clisp.org>
96117
96118                 * setenv.c (alloca): Fall back to malloc.
96119                 (freea): New macro.
96120                 (setenv): Use freea() to free memory allocated with alloca().
96121
96122         2002-11-13  Bruno Haible  <bruno@clisp.org>
96123
96124                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96125                 function declarations.
96126                 * unsetenv.c (unsetenv): Likewise.
96127
96128         2002-03-04  Bruno Haible  <bruno@clisp.org>
96129
96130                 Portability to AIX 4.3.3.
96131                 * unsetenv.c: New file, extracted from setenv.c.
96132                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96133
96134         2001-12-20  Bruno Haible  <bruno@clisp.org>
96135
96136                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96137                 use malloc instead. For SunOS 4.
96138
96139         2001-12-11  Bruno Haible  <bruno@clisp.org>
96140
96141                 * setenv.c: Declare alloca.
96142                 (compar_fn_t): New typedef.
96143                 (KNOWN_VALUE, STORE_VALUE): Use it.
96144
96145         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96146         setenv.h.
96147
96148 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96149
96150         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96151         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96152         Choose values that are less likely to collide with system fnmatch
96153         options.
96154         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96155         defined (e.g., a pure POSIX system).
96156         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96157         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96158
96159 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96160
96161         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96162         a pain in practice to deal with generated m4 files.  This change
96163         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96164
96165         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96166         and jm-glibc-io.m4, as they are no longer a special case.
96167         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96168         kludge and the auto-generation stuff.  Check only whether the
96169         functions are declared, not whether they exist, since older hosts
96170         that don't declare the functions can't use the optimization anyway.
96171
96172 2002-12-06  Jim Meyering  <jim@meyering.net>
96173
96174         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96175
96176         Merge in changes from libc's misc/error.c, in preparation
96177         for the merge of gnulib's changes back into libc.
96178
96179         * lib/error.c (_): Define only if not already defined.
96180         Move definition to follow all #include directives.
96181         Include unlocked-io.h only if !_LIBC.
96182         [_LIBC]: Include <libio/libioP.h>.
96183         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96184         (fflush): Tweak definition to use INTUSE.
96185         (putc): Define.
96186
96187 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96188
96189         * lib/alloca.c [defined emacs]: Include "lisp.h".
96190         (xalloc_die) [defined emacs]: New macro.
96191         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96192         [! defined emacs]: Include <xalloc.h>.
96193         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96194         (pointer): Typedef to POINTER_TYPE *.
96195         (malloc): Remove decl; we now always use xmalloc.
96196         (alloca): Use old-style definition, since Emacs needs this.
96197         Check for arithmetic overflow when computing combined size.
96198
96199 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96200
96201         Do not generate unlocked-io.h automatically, since it's easier to
96202         maintain it by hand.
96203
96204         * lib/unlocked-io.h: New file, from GNU diffutils,
96205         but with proper copyright notice and attribution.
96206         * lib/gen-uio: Remove.
96207         * lib/Makefile.am: Add copyright notice.
96208         (libfetish_a_SOURCES): Add unlocked-io.h.
96209         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96210         (DISTCLEANFILES, io_functions): Remove macros.
96211         (EXTRA_DIST): Remove gen_uio.
96212         (unlocked-io.h): Remove rule.
96213
96214 2002-12-04  Jim Meyering  <jim@meyering.net>
96215
96216         Reflect the fact that stat.c and lstat.c are no longer generated.
96217         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96218         (DISTCLEANFILES): Likewise.
96219         (EXTRA_DIST): Likewise.
96220         (all_local): Don't depend on stat.c or lstat.c.
96221         (stat.c, lstat.c): Remove rules.
96222         (EXTRA_DIST): Remove xstat.in.
96223
96224         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96225         * lib/stat.c: New file.  Contents mostly from xstat.in.
96226         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96227         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96228
96229         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96230         too.
96231         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96232
96233 2002-12-03  Jim Meyering  <jim@meyering.net>
96234
96235         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96236         but not semantics, to minimize the differences between these two files.
96237         (safe_read): Change comment to mention SAFE_READ_ERROR.
96238
96239         * lib/safe-read.c (IS_EINTR): Define.
96240         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96241
96242 2002-12-02  Jim Meyering  <jim@meyering.net>
96243
96244         * lib/safe-read.c (EINTR): Define.
96245         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96246         (INT_MAX): Provide fallback.
96247         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96248
96249         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96250
96251 2002-12-02  Bruno Haible  <bruno@clisp.org>
96252
96253         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96254         Define, taken from safe-read.c.
96255         (INT_MAX): Provide fallback.
96256         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96257         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96258
96259         * lib/safe-read.c (EINTR): Remove definition.
96260         (safe_read): Don't use EINTR if it is absent.
96261
96262 2002-12-01  Jim Meyering  <jim@meyering.net>
96263
96264         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96265         zero.
96266         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96267
96268 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96269
96270         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96271         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96272         with `if (! (value < limit)) abort ();', for readability.
96273
96274 2002-11-26  Karl Berry  <karl@gnu.org>
96275
96276         * lib/strdup.c: copy from libc again, with jim's ok.
96277         * lib/.cppi-disable: re-add strdup.c
96278
96279 2002-11-25  Karl Berry  <karl@gnu.org>
96280
96281         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96282         instead of "strtol.c".
96283
96284 2002-11-25  Karl Berry  <karl@gnu.org>
96285
96286         * config/install-sh: update from automake for variable quoting, $0 in
96287         error msgs, etc.
96288
96289         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96290         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96291         entry.
96292
96293 2002-11-25  Jim Meyering  <jim@meyering.net>
96294
96295         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96296
96297 2002-11-24  Karl Berry  <karl@gnu.org>
96298
96299         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96300         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96301
96302 2002-11-24  Jim Meyering  <jim@meyering.net>
96303
96304         Update from coreutils:
96305
96306         * lib/mktime.c: Merge in changes from libc.
96307
96308         Avoid a link-time failure on some Linux systems.
96309         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96310         (otherwise).
96311         (__mon_yday): Declare with the STATIC attribute.
96312         (__mktime_internal): Likewise.
96313         Based on a report from Greg Schafer.
96314
96315 2002-11-23  Jim Meyering  <jim@meyering.net>
96316
96317         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96318         Use `unsigned', not `int', as type of index.
96319
96320         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96321
96322         * lib/fsusage.c: Remove unneeded parentheses around operands of
96323         `defined'.
96324
96325 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96326
96327         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96328         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96329         so that we can be included first.
96330         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96331         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96332         No need to include stddef.h or sys/types.h any more.
96333         Surround local include files with "", not "<>".
96334         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96335         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96336         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96337         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96338         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96339         (ISPRINT): Remove; no longer needed now that we assume C89.
96340
96341         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96342         Preserve errno.
96343
96344         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96345         quotearg_char): Use SIZE_MAX rather than
96346         (size_t) -1 when we are talking about "infinity".
96347
96348         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96349
96350 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96351
96352         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96353         hint that one should use `if (! x) abort ();' rather than `assert
96354         (x);', and anyway it's one less thing to worry about configuring.
96355         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96356         hash_rehash, hash_insert): Use abort rather than assert.
96357
96358 2002-11-22  Bruno Haible  <bruno@clisp.org>
96359
96360         * lib/safe-read.h: Assume C89. Add comments.
96361         (safe_read): Change return type to size_t.
96362         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96363         byte counts > SSIZE_MAX correctly.
96364         * lib/safe-write.h: New file.
96365         * lib/safe-write.c: New file.
96366         * lib/full-read.h: New file.
96367         * lib/full-read.c: New file.
96368         * lib/full-write.h: Assume C89. Add comments.
96369         * lib/full-write.c: Include safe-write.h.
96370         (full_write): Rewritten to use safe_write.
96371         Suggested by Jim Meyering and Paul Eggert.
96372
96373 2002-11-21  Jim Meyering  <jim@meyering.net>
96374
96375         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96376
96377         Merge in changes from the coreutils.
96378
96379         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96380         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96381         <stdint.h>.
96382         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96383         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96384         int.  Work more efficiently if X is the same width as uintmax_t.
96385         Do not compare X to -1, to avoid bogus compiler warning.
96386         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96387         Don't assume that f_frsize and f_bsize are the same type.
96388
96389         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96390         warning on FreeBSD.
96391
96392         * lib/makepath.c (make_path): Restore umask *before* creating the final
96393         component.
96394         (make_path): Minor reformatting.
96395
96396         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96397         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96398         HAVE_MALLOC/HAVE_REALLOC.
96399
96400         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96401         dummy ones.  At least on GNU/Linux systems, `auto' means something
96402         else.
96403         From Michael Stone.
96404
96405 2002-11-21  Bruno Haible  <bruno@clisp.org>
96406
96407         Remove case insensitive option matching.
96408         * lib/argmatch.h (argcasematch): Remove declaration.
96409         (ARGCASEMATCH): Remove macro.
96410         (__xargmatch_internal): Remove case_sensitive argument.
96411         (XARGMATCH): Update.
96412         (XARGCASEMATCH): Remove macro.
96413         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96414         case_sensitive argument.
96415         (argcasematch): Remove function.
96416         (__xargmatch_internal): Remove case_sensitive argument.
96417         (main): Use XARGMATCH instead of XARGCASEMATCH.
96418
96419         * lib/xmalloc.c: Change compile-time error message. Add comment about
96420         required autoconf version.
96421
96422 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96423
96424         Merge argmatch cleanups from Bison.  Assume C89.
96425
96426         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96427         Include stdlib.h, for EXIT_FAILURE.
96428         Always include <string.h>, since we assume C89.
96429         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96430         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96431         Include <stddef.h> instead, since it's all we need for size_t.
96432         (PARAMS): Remove.  All uses removed.
96433         (ARRAY_CARDINALITY): Do not bother to #undef.
96434         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96435         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96436         Remove unnecessary parentheses.
96437         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96438         Insert necessary parentheses.
96439         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96440         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96441
96442 2002-11-19  Bruno Haible  <bruno@clisp.org>
96443
96444         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96445         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96446
96447         * lib/mbswidth.h (PARAMS): Remove macro.
96448         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96449         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96450
96451         * lib/gcd.h (PARAMS): Remove macro.
96452         (gcd): Use ANSI C function declarations.
96453         * lib/gcd.c (gcd): Likewise.
96454
96455 2002-11-15  Bruno Haible  <bruno@clisp.org>
96456
96457         * lib/strcspn.c: Include <stddef.h>.
96458         (strcspn): Use ANSI C function declaration. Change return type to
96459         size_t. Use NULL.
96460         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96461         (strpbrk): Use NULL.
96462         * lib/strpbrk.h (PARAMS): Remove macro.
96463         (strpbrk): Use ANSI C function declaration.
96464         * lib/strstr.c: Don't include <sys/types.h>.
96465         * lib/strstr.h (PARAMS): Remove macro.
96466         (strstr): Use ANSI C function declarations.
96467
96468 2002-11-14  Karl Berry  <karl@gnu.org>
96469
96470         * config/mkinstalldirs: `do' on separate line, instead of
96471         `for var; do'.
96472
96473 2002-11-06  Bruno Haible  <bruno@clisp.org>
96474
96475         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96476         * lib/gcd.c (gcd): Likewise.
96477
96478 2002-11-05  Bruno Haible  <bruno@clisp.org>
96479
96480         * lib/gcd.h: New file, from gettext-0.11.5.
96481         * lib/gcd.c: New file, from gettext-0.11.5.
96482
96483 2002-11-05  Bruno Haible  <bruno@clisp.org>
96484
96485         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96486         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96487         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96488         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96489
96490         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96491         <libintl.h>.
96492         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96493         <libintl.h>.
96494
96495         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96496         * lib/human.c: Include gettext.h instead of <libintl.h>.
96497         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96498         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96499         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96500         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96501         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96502         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96503         (textdomain): Remove definition.
96504         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96505
96506         * lib/long-options.c: Remove include of <libintl.h> and definition of
96507         _.
96508         * lib/same.c: Remove include of <libintl.h> and definition of _.
96509
96510 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96511
96512         * lib/config.charset: A few additions for Solaris.
96513
96514 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96515
96516         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96517         * lib/localcharset.c (locale_charset): Declare as extern "C".
96518
96519 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96520
96521         * lib/config.charset: msdos in uk_UA uses CP1125.
96522
96523 2002-11-04  Bruno Haible  <bruno@clisp.org>
96524
96525         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96526         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96527         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96528         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96529         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96530
96531 2002-11-04  Bruno Haible  <bruno@clisp.org>
96532
96533         * lib/localcharset.c (locale_charset): Don't return an empty string.
96534
96535 2002-11-04  Bruno Haible  <bruno@clisp.org>
96536
96537         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96538         aliases.
96539
96540 2002-11-04  Bruno Haible  <bruno@clisp.org>
96541
96542         * lib/config.charset: Update for newest glibc. Add canonical names
96543         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96544
96545 2002-11-04  Bruno Haible  <bruno@clisp.org>
96546
96547         * lib/config.charset: Add support for NetBSD.
96548
96549 2002-11-04  Bruno Haible  <bruno@clisp.org>
96550
96551         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96552
96553 2002-11-01  Bruno Haible  <bruno@clisp.org>
96554
96555         * configure.in: Add AC_CONFIG_AUX_DIR call.
96556         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96557         test/Makefile.
96558         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96559
96560 2002-09-28  Karl Berry  <karl@gnu.org>
96561
96562         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96563         installed automake until the next release, since changes have been
96564         made.
96565
96566 2002-09-25  Karl Berry  <karl@gnu.org>
96567
96568         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96569         * lib/getopt*: copy from libc/posix.
96570         * lib/gettext.h: copy from gettext.
96571         * lib/.cppi-disable: add strdup.c, gettext.h.
96572
96573 2002-09-25  Karl Berry  <karl@gnu.org>
96574
96575         * config/srclist.txt: enable gettext.h check.
96576         * config/config.{guess,sub}: update from prep.
96577         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96578                 from automake 1.6.3.
96579         See srclist*.
96580
96581 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96582
96583         * regex.c (PATFETCH): Remove the translating fetch.
96584         (PATFETCH_RAW): Rename to PATFETCH.
96585         (set_image_of_range): New fun.
96586         (SET_RANGE_TABLE_WORK_AREA): Use it.
96587         (regex_compile): Don't translate the pattern chars so eagerly.
96588         Only do it when inserting an `exactn' bytecode or when handling
96589         a char-range.
96590         (mutually_exclusive_p): Avoid empty statement.
96591
96592 2002-07-06  Jim Meyering  <meyering@lucent.com>
96593
96594         * m4/README: Don't mention Makefile.am.in.
96595         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96596
96597 2002-07-01  Jim Meyering  <meyering@lucent.com>
96598
96599         * lib/c-stack.c: Include sys/time.h.
96600         From Volker Borchert.
96601
96602 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96603
96604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96605
96606 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96607
96608         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96609         New macro.  Use it uniformly instead of
96610         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96611         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96612         reported by Vin Shelton.
96613
96614 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96615
96616         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96617         Do not assume SA_SIGINFO behavior.
96618         Bug reported by Jim Meyering on NetBSD 1.5.2.
96619
96620 2002-06-22  Jim Meyering  <meyering@lucent.com>
96621
96622         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96624
96625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96626         now that configure.ac uses AC_GNU_SOURCE.
96627         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96628         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96629
96630         Update to latest tools.  Suggestions from Paul Eggert.
96631         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96632         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96633         * m4/fnmatch.m4: Likewise.
96634         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96635         to AC_HEADER_STDBOOL
96636
96637 2002-06-22  Jim Meyering  <meyering@lucent.com>
96638
96639         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96640         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96641
96642 2002-06-22  Jim Meyering  <meyering@lucent.com>
96643
96644         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96645
96646         * lib/exitfail.c, exitfail.h: Likewise.
96647         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96648
96649         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96650         of fnmatch.h.
96651         (EXTRA_DIST): Add fnmatch_loop.c.
96652         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96653
96654         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96655         * lib/fnmatch.c: Update from diffutils-2.8.2.
96656         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96657         * lib/fnmatch.h: Remove file.
96658
96659 2002-06-21  Jim Meyering  <meyering@lucent.com>
96660
96661         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96662         * m4/mbrtowc.m4: Likewise.
96663
96664         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96665         * m4/mbswidth.m4: Reflect name change:
96666         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96668
96669         * m4/lib-link.m4: Update from gettext-0.11.2.
96670         * m4/gettext.m4: Likewise.
96671
96672         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96673         From Alfred M. Szmidt.
96674
96675 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96676
96677         * lib/file-type.h: Report an error if neither S_ISREG nor
96678         S_IFREG is defined, instead of using a test specific to glibc
96679         2.2.  This should be safe, since POSIX requires S_ISREG and
96680         Unix Version 7 had S_IFREG.  We don't need to check for
96681         <sys/types.h> since we don't use any symbols that it defines.
96682
96683 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96684
96685         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96686         $@-t, so that each temporary file name is unique and valid in the first
96687         8 characters, for operation under DOS.
96688
96689 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96690
96691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96692
96693 2002-06-15  Jim Meyering  <meyering@lucent.com>
96694
96695         Work even with DJGPP 2.03, which lacks support for symlinks.
96696         From Richard Dawe.
96697         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96698         is defined.
96699         * lib/lchown.c (S_ISLNK): Likewise.
96700
96701 2002-06-15  Jim Meyering  <meyering@lucent.com>
96702
96703         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96704         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96705         have been included before this file.
96706
96707 2002-06-14  Jim Meyering  <meyering@lucent.com>
96708
96709         * lib/file-type.h: Use the version from diffutils-2.8.2.
96710         * lib/file-type.c: Likewise.
96711
96712 2002-06-07  Jim Meyering  <meyering@lucent.com>
96713
96714         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96715         They're needed at least for NetBSD 1.5.2.
96716         ($statxfs_includes): Include those same headers.
96717         ($statxfs_includes): Include sys/vfs.h if available.
96718         ($statxfs_includes): Likewise for sys/statvfs.h.
96719         Check for the following members in both structs statfs and statvfs:
96720         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96721
96722 2002-06-01  Jim Meyering  <meyering@lucent.com>
96723
96724         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96725         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96726
96727 2002-05-28  Jim Meyering  <meyering@lucent.com>
96728
96729         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96730         Reported by Volker Borchert.
96731
96732 2002-05-27  Jim Meyering  <meyering@lucent.com>
96733
96734         Fix a problem seen only on nonconforming systems whereby ls.c's
96735         use of localtime, and then of gettimeofday would cause trouble:
96736         the localtime call used to initialize rpl_gettimeofday's save
96737         mechanism would clobber ls's current local time information so
96738         that in any long listing the first file would always be listed
96739         with date 1970-01-01.  Analysis by Volker Borchert.
96740
96741         * lib/gettimeofday.c (localtime): Undefine.
96742         (rpl_localtime): New function.
96743
96744 2002-05-27  Jim Meyering  <meyering@lucent.com>
96745
96746         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96747         localtime.
96748
96749         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96750         use the replacement function; it wouldn't resolve at link time.
96751         Reported by Volker Borchert.
96752
96753 2002-05-22  Jim Meyering  <meyering@lucent.com>
96754
96755         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96756         file-type.h.
96757         * lib/file-type.h: New file.
96758         * lib/file-type.c (file_type): New file/function.  Extracted from
96759         diffutils.
96760
96761 2002-04-30  Jim Meyering  <meyering@lucent.com>
96762
96763         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96764
96765 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96766
96767         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96768
96769 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96770
96771         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96772         Do not check for alloca.h (no longer used) or stdbool.h (was never
96773         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96774
96775 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96776
96777         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96778
96779 2002-04-29  Jim Meyering  <meyering@lucent.com>
96780
96781         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96782         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96783         Use AC_FUNC_STRNLEN here instead.
96784
96785         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96786         With autoconf-2.53a, it's part of AC_PROG_CC.
96787
96788 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96789
96790         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96792
96793 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96794
96795         * lib/sig2str.h, lib/sig2str.c: New files.
96796         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96797
96798 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96799
96800         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96801         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96802         of 127, since 64 is the largest conceivable number for ancient
96803         nonstandard hosts.
96804         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96805
96806 2002-04-28  Jim Meyering  <meyering@lucent.com>
96807
96808         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96809
96810 2002-04-24  Jim Meyering  <meyering@lucent.com>
96811
96812         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96813         (jm_PREREQ): Use it.
96814
96815         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96816         mach/mach.h fcntl.h.
96817         Check for this function: setlocale.
96818
96819 2002-04-24  Jim Meyering  <meyering@lucent.com>
96820
96821         * lib/gettext.h: New file, from Gettext.
96822         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96823         (libfetish_a_SOURCES): Add gettext.h.
96824
96825 2002-04-16  Jim Meyering  <meyering@lucent.com>
96826
96827         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96828         ut_pid, ut_id, ut_exit.
96829
96830 2002-04-16  Jim Meyering  <meyering@lucent.com>
96831
96832         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96833         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96834         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96835
96836 2002-04-12  Jim Meyering  <meyering@lucent.com>
96837
96838         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96839         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96840         existence of the getmntinfo function.  Needed for Darwin 5.3.
96841
96842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96843         This is necessary at least on Darwin 5.3.
96844
96845         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96846         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96847         strnlen.o in the library, and that makes some versions of ranlib
96848         object.
96849
96850 2002-04-12  Jim Meyering  <meyering@lucent.com>
96851
96852         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96853
96854 2002-04-09  Jim Meyering  <meyering@lucent.com>
96855
96856         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96857         to be more precise.  Rather than saying we're checking whether the
96858         function `works', say what we're testing.
96859         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96860         Reported by Bruno Haible.
96861
96862 2002-03-10  Jim Meyering  <meyering@lucent.com>
96863
96864         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96865         Suggestion from Santiago Vila.
96866
96867 2002-03-08  Jim Meyering  <meyering@lucent.com>
96868
96869         * lib/rename.c: Mention that this wrapper is needed also on
96870         mips-dec-ultrix4.4 systems.
96871
96872 2002-03-02  Jim Meyering  <meyering@lucent.com>
96873
96874         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96875         not HAVE_CLOCK_SETTIME.
96876
96877 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96878
96879         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96880         Check for clock_settime.
96881
96882 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96883
96884         * lib/nanosleep.h: Rename to....
96885         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96886
96887         * lib/gettime.c: New file.
96888         * lib/settime.c: New file.
96889         * lib/stime.c: Remove.
96890
96891         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96892         timespec.h.  Remove nanosleep.h.
96893
96894 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96895
96896         * m4/acl.m4: New file.
96897         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96898         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96899
96900 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96901
96902         * lib/acl.c, lib/acl.h: New files.
96903         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96904
96905 2002-02-24  Jim Meyering  <meyering@lucent.com>
96906
96907         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96908         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96909         cause trouble.  Reported by Nelson Beebe.
96910
96911 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96912
96913         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96914         compilers that don't know that xalloc_die never returns.
96915
96916 2002-02-20  Jim Meyering  <meyering@lucent.com>
96917
96918         * lib/getdate.c: Regenerate using bison-1.33.
96919
96920 2002-02-17  Jim Meyering  <meyering@lucent.com>
96921
96922         * config/config.guess (main): Don't use `head -1'; it's no longer
96923         portable. Use `sed 1q' instead.
96924
96925 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96926
96927         * m4/codeset.m4: Upgrade to gettext-0.11.
96928         * m4/gettext.m4: Upgrade to gettext-0.11.
96929         * m4/glibc21.m4: Upgrade to gettext-0.11.
96930         * m4/iconv.m4: Upgrade to gettext-0.11.
96931         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96932         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96933         * m4/lib-ld.m4: New file, from gettext-0.11.
96934         * m4/lib-link.m4: New file, from gettext-0.11.
96935         * m4/lib-prefix.m4: New file, from gettext-0.11.
96936         * m4/progtest.m4: Upgrade to gettext-0.11.
96937
96938 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96939
96940         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96941         (jm_PREREQ): Use it.
96942
96943 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96944
96945         * lib/posixver.c, lib/posixver.h: New files.
96946         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96947
96948 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96949             Bruno Haible  <bruno@clisp.org>
96950
96951         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96952         (fwrite_success_callback): New declaration.
96953         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96954         print_unicode_char. Call failure callback instead of error.
96955         (fwrite_success_callback): New function.
96956         (exit_failure_callback): New function.
96957         (fallback_failure_callback): New function.
96958         (print_unicode_char): Call unicode_to_mb.
96959
96960 2002-01-26  Jim Meyering  <meyering@lucent.com>
96961
96962         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96963         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96964
96965 2002-01-26  Jim Meyering  <meyering@lucent.com>
96966
96967         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96968
96969 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96970
96971         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96972
96973 2002-01-22  Jim Meyering  <meyering@lucent.com>
96974
96975         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96976         Otherwise, some versions of automake would omit the rule that makes
96977         Makefile from Makefile.in.
96978
96979 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96980
96981         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96982         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96983         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96984         (memcoll): Set errno to zero if there is no error.
96985
96986         * lib/quotearg.c (quotearg_buffer_restyled):
96987         Fix bug with quoting buffers containing NUL when backslashing escapes.
96988         This bug was exposed by the other changes in this patch.
96989         (quotearg_n_options): New arg ARGSIZE.
96990         All callers changed.
96991         (quoting_options_from_style): New function.
96992         (quotearg_n_style): Use it.
96993         (quotearg_n_style_mem): New function.
96994
96995         * lib/quotearg.h (quotearg_n_style_mem): New function.
96996
96997 2002-01-19  Jim Meyering  <meyering@lucent.com>
96998
96999         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97000         Remove useless quotes: DF_PROG="df".
97001         * m4/strnlen.m4: New file.
97002
97003 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97004
97005         * lib/backupfile.c (ISDIGIT): Comment fix.
97006         * lib/getdate.y (ISDIGIT): Likewise.
97007         * lib/posixtm.c (ISDIGIT, year): Likewise.
97008         * lib/strverscmp.c (ISDIGIT): Likewise.
97009         * lib/userspec.c (ISDIGIT): Likewise.
97010
97011 2002-01-16  Jim Meyering  <meyering@lucent.com>
97012
97013         * lib/getdate.y: Add three semicolons, each just before a closing
97014         brace. Bison (as of version 1.31) no longer papers over that mistake.
97015
97016 2002-01-05  Jim Meyering  <meyering@lucent.com>
97017
97018         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97019
97020 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97021
97022         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97023         not silently exit merely because the output buffer happens to
97024         have nothing pending.
97025
97026 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97027
97028         See the big note in ../ChangeLog.
97029         * lib/human.c (suffixes): Prefer K to k for 1024.
97030         (generate_suffix_backwards): New function.
97031         (human_readable_inexact): Use it.
97032         * lib/xstrtol.c (__xstrtol): If there is no number but there
97033         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97034         Accept 'K' as well as 'k'.
97035
97036 2001-12-15  Jim Meyering  <meyering@lucent.com>
97037
97038         * lib/regex.h (__restrict_arr): Update from libc.
97039
97040         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97041         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97042         (STREQ): Define.
97043
97044 2001-12-14  Jim Meyering  <meyering@lucent.com>
97045
97046         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97047         Suggestion from Bruno Haible.
97048
97049 2001-12-10  Jim Meyering  <meyering@lucent.com>
97050
97051         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97052         xrealloc, Instead, include "xalloc.h".
97053         (initbuffer): Don't cast xmalloc return value to char*.
97054         (readline): Reword comment.
97055         Don't cast xrealloc return value to char*
97056         Return NULL, not 0.
97057
97058 2001-12-09  Jim Meyering  <meyering@lucent.com>
97059
97060         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97061         about `signed and unsigned type in conditional expression'.
97062         * lib/posixtm.c (posix_time_parse): Likewise.
97063
97064         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97065
97066         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97067         to avoid a pedantic warning.
97068
97069         * lib/getstr.c: Don't include assert.h.
97070         (getstr): Remove warning-evoking assertions.
97071         Return -1 if offset parameter is out of bounds.
97072         Change the type of a local from int to size_t.
97073
97074         * lib/strftime.c (my_strftime_localtime_r): Include this function
97075         definition in the `#if ! HAVE_TM_GMTOFF' block.
97076
97077         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97078         Include xalloc.h instead.
97079
97080 2001-12-02  Jim Meyering  <meyering@lucent.com>
97081
97082         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97083         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97084         included.
97085
97086         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97087         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97088
97089 2001-11-30  Akim Demaille  <akim@epita.fr>
97090
97091         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97092         before being defined.
97093
97094 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97095
97096         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97097         First arg is int, not unsigned.
97098         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97099         (SIZE_MAX, UINT_MAX): New macros.
97100         (quotearg_n_options): Abort if N is negative.
97101         Avoid overflow check on hosts where size_t is 64 bits and int
97102         is 32 bits, as overflow is impossible there.
97103         Fix off-by-one typo that caused unnecessary reallocation.
97104
97105 2001-11-27  Jim Meyering  <meyering@lucent.com>
97106
97107         * lib/tempname.c: Merge with version from libc.
97108         * lib/regex.c: Likewise.
97109
97110         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97111         systems for which STDC_HEADERS is 0, it was not included, resulting in
97112         a warning about an integer-to-pointer conversion problem with getenv.
97113         Reported by Volker Borchert.
97114
97115 2001-11-26  Jim Meyering  <meyering@lucent.com>
97116
97117         * lib/gtod.h: Remove file.
97118         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97119         * lib/gettimeofday.c: Don't include gtod.h.
97120         (GTOD_init): Remove function.
97121         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97122         Suggestion from Volker Borchert.
97123
97124 2001-11-23  Jim Meyering  <meyering@lucent.com>
97125
97126         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97127         it.
97128         * lib/hash.c (struct hash_table): Define it here instead.
97129
97130 2001-11-22  Jim Meyering  <meyering@lucent.com>
97131
97132         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97133
97134 2001-11-20  Jim Meyering  <meyering@lucent.com>
97135
97136         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97137         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97138
97139 2001-11-19  Jim Meyering  <meyering@lucent.com>
97140
97141         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97142         directory.  Use "conftestXXXXXX" as the template.
97143         Suggestion from Paul Eggert.
97144
97145         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97146         immediately, so the test doesn't mistakenly hit the max-open-files
97147         limit.
97148
97149 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97150
97151         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97152         (TEMPORARIES): New macro.
97153         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97154         removes an artificial limitation (e.g. HP-UX 10.20, where
97155         TMP_MAX is 17576).
97156
97157 2001-11-18  Jim Meyering  <meyering@lucent.com>
97158
97159         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97160
97161 2001-11-18  Jim Meyering  <meyering@lucent.com>
97162
97163         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97164         on SunOS 4.
97165
97166         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97167         files will be created before anything else.
97168
97169 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97170
97171         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97172         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97173
97174 2001-11-17  Jim Meyering  <meyering@lucent.com>
97175
97176         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97177         Prompted by a report from Bob Proulx.
97178
97179         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97180         Instead, require UTILS_FUNC_MKSTEMP.
97181
97182 2001-11-17  Jim Meyering  <meyering@lucent.com>
97183
97184         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97185         Now, that's done as part of AC_FUNC_STRTOD.
97186
97187 2001-11-17  Jim Meyering  <meyering@lucent.com>
97188
97189         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97190         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97191         rather than group writable.  Patch by Juan F. Codagnone.
97192
97193         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97194         xrealloc, Instead, include "xalloc.h".
97195
97196         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97197         Remove explicit declarations of xmalloc, xrealloc,
97198         and xstrdup.  Instead, include "xalloc.h".
97199
97200         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97201         unlocked-io.h.
97202         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97203         Likewise.
97204         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97205
97206         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97207         Reported by Padraig Brady.
97208
97209         * lib/mkstemp.c: #undef mkstemp.
97210         Include config.h.
97211         (rpl_mkstemp): Rename from mkstemp.
97212         Protoize.
97213
97214 2001-11-16  Jim Meyering  <meyering@lucent.com>
97215
97216         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97217         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97218         determine the amount of total physical memory, use pstat_getstatic.
97219         HPUX-11 doesn't define _SC_PHYS_PAGES.
97220         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97221         If sysconf couldn't be used to determine the amount of available
97222         physical memory, use both pstat_getstatic and pstat_getdynamic.
97223         Based on a patch from Bob Proulx.
97224
97225 2001-11-10  Jim Meyering  <meyering@lucent.com>
97226
97227         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97228         (jm_PREREQ): Use it.
97229
97230 2001-11-09  Jim Meyering  <meyering@lucent.com>
97231
97232         * m4/jm-macros.m4: Require autoconf-2.52f.
97233         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97234         Use these AC_-prefixed names, not the AM_-prefixed ones.
97235
97236         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97237
97238 2001-11-05  Jim Meyering  <meyering@lucent.com>
97239
97240         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97241
97242 2001-11-04  Jim Meyering  <meyering@lucent.com>
97243
97244         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97245         $DEFS.
97246
97247 2001-11-03  Jim Meyering  <meyering@lucent.com>
97248
97249         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97250         of AC_DEFUN.
97251
97252         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97253         know the name of the variable in the macro definition.
97254
97255 2001-11-03  Jim Meyering  <meyering@lucent.com>
97256
97257         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97258         in argmatch_to_argument call.
97259
97260         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97261         argument.
97262
97263         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97264         e.g., a fault due to an attempt to free a NULL pointer.
97265
97266 2001-11-01  Jim Meyering  <meyering@lucent.com>
97267
97268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97269         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97270
97271 2001-11-01  Jim Meyering  <meyering@lucent.com>
97272
97273         * lib/dirfd.c, lib/dirfd.h: New files.
97274         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97275
97276         * lib/hash.c (hash_print) [TESTING]: Clean up.
97277
97278 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97279
97280         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97281         to avoid a warning if -Wall.
97282
97283 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97284
97285         * README: New file
97286         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97287         (per RMS's instructions, this is now the canonical source)
97288         * lgpl/, gpl/: New directories.
97289
97290 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97291
97292         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97293
97294 2001-10-21  Jim Meyering  <meyering@lucent.com>
97295
97296         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97297         this code would end up calling gettext even in packages built
97298         with --disable-nls.
97299         * lib/getopt.c (_): Likewise.
97300         * lib/regex.c (_): Likewise.
97301
97302 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97303
97304         * m4/error.m4 (jm_PREREQ_ERROR):
97305         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97306         AC_FUNC_STRERROR_R does that.
97307         Check for strerror declaration.
97308
97309         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97310         are supposed to have them these days.
97311         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97312         Merge changes from latest Autoconf CVS.
97313         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97314         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97315         POSIX decided to standardize on the int flavor of strerror_r.
97316
97317 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97318
97319         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97320         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97321         Use strerror_r that is only a macro, even if it is not a function.
97322         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97323         (private_strerror): Use prototypes, not old-style function definition.
97324         (print_errno_message): New function.
97325         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97326         char*-flavored one.
97327         (error_tail, error, error_at_line): Use it.
97328
97329 2001-10-11  Jim Meyering  <meyering@lucent.com>
97330
97331         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97332         and quote_n (1, ... to avoid clobbering a buffer.
97333
97334 2001-10-05  Jim Meyering  <meyering@lucent.com>
97335
97336         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97337         hash-pjw.h.
97338         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97339         * lib/hash-pjw.h: New file.
97340
97341 2001-09-30  Jim Meyering  <meyering@lucent.com>
97342
97343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97344         `struct fsstat' has the `f_fstypename' member.
97345         Use that to define FS_TYPE, which is now used to make
97346         the getfsstat link test tighter.
97347
97348 2001-09-30  Jim Meyering  <meyering@lucent.com>
97349
97350         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97351         Include <sys/ucred.h>, for Apple Darwin.
97352         Include sys/mount.h and sys/fs_types.h only if available.
97353         (FS_TYPE): Define.
97354         (read_filesystem_list): Use FS_TYPE.
97355
97356 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97357
97358         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97359         a boolean context.
97360
97361 2001-09-29  Jim Meyering  <meyering@lucent.com>
97362
97363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97364         [one-argument getmntent function]): Include stdio.h before mntent.h.
97365         SunOS 4.1.x needs it for the declaration of `FILE'.
97366         Patch by Volker Borchert.
97367
97368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97369         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97370         sys/fs_types.h, and make the link-test for getfsstat guard #include
97371         directives with appropriate #if HAVE_*_H tests so that we can
97372         detect getfsstat on Apple Darwin1.3.7 systems.
97373         Reported by Nelson Beebe.
97374         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97375
97376 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97377
97378         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97379         #defines strtoimax.  Also treat the other strto* functions
97380         like strtoimax.
97381
97382         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97383         Check for strtoul and strtoumax,
97384         as those declarations are made even in the signed case.
97385         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97386         Likewise, for strtol and strtoimax.
97387
97388 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97389
97390         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97391         #defines strtoimax.  Also treat the other strto* functions
97392         like strtoimax.
97393
97394         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97395         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97396         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97397
97398 2001-09-26  Jim Meyering  <meyering@lucent.com>
97399
97400         Most macros in unlocked-io.h had the wrong number of arguments.
97401         * lib/gen-uio: New script.
97402         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97403         * lib/unlocked-io.hin: Remove file.
97404         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97405         rather than trying to embed it here.
97406         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97407         Reported by Padraig Brady.
97408
97409 2001-09-25  Volker Borchert  <bt@teknon.de>
97410
97411         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97412         `result'.
97413
97414 2001-09-24  Jim Meyering  <meyering@lucent.com>
97415
97416         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97417
97418 2001-09-23  Jim Meyering  <meyering@lucent.com>
97419
97420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97421         instead of the mere test for existence of mntent.h.  The latter
97422         would get a false-positive on AIX 3.4 systems.
97423         In the outer getmntent if-block, don't die if neither of the getmntent
97424         tests succeeds.  Instead, just fall through and continue with the
97425         remaining tests.
97426
97427 2001-09-23  Jim Meyering  <meyering@lucent.com>
97428
97429         * lib/mountlist.c: Remove useless parentheses in #if directives.
97430         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97431         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97432
97433 2001-09-22  Jim Meyering  <meyering@lucent.com>
97434
97435         * m4/gettext.m4: New file.  From gettext.
97436         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97437         * m4/progtest.m4: Likewise
97438         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97439         * m4/glibc21.m4: Likewise.
97440
97441         * m4/libintl.m4: Remove.  No longer used.
97442
97443 2001-09-22  Jim Meyering  <meyering@lucent.com>
97444
97445         * lib/localcharset.c: Update from latest gettext.
97446         * lib/config.charset: Likewise.
97447
97448 2001-09-20  Jim Meyering  <meyering@lucent.com>
97449
97450         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97451         strtoimax.
97452         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97453         strtoumax.
97454
97455 2001-09-20  Jim Meyering  <meyering@lucent.com>
97456
97457         * lib/xstrtol.c (strtoimax): Guard declaration with
97458         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97459         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97460         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97461         (strtoumax): Likewise, for completeness (it wasn't necessary).
97462
97463 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97464
97465         * lib/strtoimax.c (HAVE_LONG_LONG):
97466         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97467         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97468         to work around bug in IBM C compiler.
97469
97470 2001-09-17  Jim Meyering  <meyering@lucent.com>
97471
97472         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97473         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97474         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97475         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97476         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97477         whenever the right hand side need not be expanded by the shell.
97478
97479 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97480
97481         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97482         library.  It's not correct, as some older glibcs are buggy.
97483         fnmatch wasn't fixed until glibc 2.2.
97484
97485         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97486         special shell magic here.
97487
97488 2001-09-16  Jim Meyering  <meyering@lucent.com>
97489
97490         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97491         * m4/jm-macros.m4: Require it.
97492
97493 2001-09-16  Jim Meyering  <meyering@lucent.com>
97494
97495         * lib/mkdir.c: New file.
97496
97497 2001-09-15  Jim Meyering  <meyering@lucent.com>
97498
97499         * m4/jm-macros.m4: Check for help2man.
97500
97501 2001-09-11  Jim Meyering  <meyering@lucent.com>
97502
97503         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97504         The body, by Paul Eggert, was moved here from configure.in.
97505         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97506
97507 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97508
97509         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97510         (jm_PREREQ): Use it.
97511
97512 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97513
97514         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97515         Use ssize_t, not int, to store result of readlink.
97516         Check for ssize_t overflow as well as size_t overflow,
97517         as POSIX says the result of readlink is implementation-defined
97518         when ssize_t overflows.
97519         Remove unnecessary cast to char*.
97520         Use free+malloc instead of realloc, as the storage doesn't need
97521         to be preserved and it's clearer and can be more efficient that way.
97522         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97523         * lib/xreadlink.h (xreadlink): Update prototype.
97524
97525 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97526
97527         * lib/xgetcwd.c: Revert some of the previous change; intead,
97528         fix the HAVE_GETCWD_NULL code to behave more like the
97529         !HAVE_GETCWD_NULL code used to.
97530
97531         Include "xalloc.h".
97532         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97533         invoke xalloc_die.
97534
97535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97536
97537         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97538         sys/param.h, as pathmax.h includes them.
97539
97540 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97541
97542         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97543         (jm_PREREQ_XGETCWD): New macro.
97544
97545         * m4/getcwd.m4: New file.
97546
97547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97548
97549         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97550         like the HAVE_GETCWD_NULL code.
97551         Include pathmax.h if not HAVE_GETCWD.
97552         Do not include xalloc.h.
97553         (INITIAL_BUFFER_SIZE): New symbol.
97554         Do not use xmalloc / xrealloc, since the caller is responsible for
97555         handling errors.  Preserve errno around `free' during failure.
97556         Do not overrun buffer when using getwd.
97557
97558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97559
97560         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97561         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97562         getcwd (NULL, 0).
97563
97564 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97565
97566         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97567         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97568         spotted by Jim Meyering.
97569
97570 2001-09-03  Jim Meyering  <meyering@lucent.com>
97571
97572         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97573         failure.
97574
97575 2001-09-02  Jim Meyering  <meyering@lucent.com>
97576
97577         * lib/error.c: Update from GNU libc.
97578
97579 2001-09-01  Jim Meyering  <meyering@lucent.com>
97580
97581         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97582         Used by df.
97583
97584 2001-09-01  Jim Meyering  <meyering@lucent.com>
97585
97586         * lib/xreadlink.c: New file.
97587         * lib/xreadlink.h: New file.
97588         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97589         xreadlink.h.
97590
97591         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97592         doesn't conflict with sparc Solaris 7's definition in
97593         /usr/include/sys/int_types.h.
97594
97595         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97596         files.
97597         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97598         and strncasecmp as r-values.  Unixware didn't have declarations.
97599
97600 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97601
97602         * lib/xstrtol.h: Add copyright notice.
97603         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97604         LONGINT_INVALID_SUFFIX_CHAR.
97605
97606 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97607
97608         * lib/xstrtol.c (strtoimax): New decl.
97609
97610 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97611
97612         * lib/xgetcwd.c: Don't include pathmax.h.
97613         Include stdlib.h and unistd.h if available.
97614         Include xalloc.h.
97615         (xmalloc, xstrdup, free): Remove decls.
97616         (xgetcwd): Don't assume sizes fit in unsigned.
97617         Check for overflow when computing sizes.
97618         Simplify reallocation code.
97619
97620 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97621
97622         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97623         a directory's st_size can have an arbitrary value, so the old
97624         usage could waste an arbitrary amount of memory.  All uses
97625         changed.
97626         * lib/savedir.h: Update prototype.
97627
97628 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97629
97630         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97631
97632         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97633         old strtoimax.c.
97634
97635         Also, make the following further changes to make this file's
97636         configuration more similar to that of strtol.c:
97637         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97638         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97639         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97640         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97641         changed to signed values.
97642
97643         And make the following changes as well:
97644         Fix copyright notice, as 1999 was missing.
97645         (verify): New macro.
97646         (strtoimax): Check sizes at compile-time, not run-time.
97647         Prefer strtol to strtoll if both work.
97648         (main): Remove; it was not that useful and was a pain to maintain.
97649
97650         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97651
97652 2001-08-31  Jim Meyering  <meyering@lucent.com>
97653
97654         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97655         Use an initial, malloc'd, buffer of length 128 rather than
97656         a statically allocated one of length 1024.
97657
97658 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97659
97660         Simplify code, partly by assuming autoconf 2.52 semantics.
97661
97662         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97663
97664         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97665         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97666         All uses removed.
97667         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97668         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97669         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97670         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97671         jm_AC_HEADER_INTTYPES_H.
97672         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97673
97674         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97675
97676         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97677         Quote first arg of AC_DEFUN.
97678         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97679         since they are needed to parse the include file even if we need
97680         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97681         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97682         but with opposite signedness.
97683
97684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97685
97686         Merge 'exclude' changes from tar 1.13.22.
97687         This fixes one or two unlikely storage allocation overflow bugs,
97688         but doesn't change user-visible behavior otherwise.
97689
97690 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97691
97692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97693         (jm_PREREQ_EXCLUDE): New macro.
97694
97695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97696
97697         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97698         tm to be declared.
97699
97700 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97701
97702         * lib/hash.c: Remove '2001' from copyright notice.
97703
97704 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97705
97706         * lib/full-write.h: New file.
97707         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97708         * lib/full-write.c: Correct credits, as cccp.c no longer
97709         exists and anyway it was so heavily changed from the old cccp
97710         code as to be unrecognizable.  Include full-write.h.
97711         (full_write): Return size_t, with short writes meaning failure.
97712         All callers changed.  This fixes a bug with large buffers
97713         on 64-bit hosts.
97714         * lib/utime.c: Include full-write.h.
97715
97716 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97717
97718         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97719         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97720         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97721         Include if available.
97722         (<xalloc.h>): Include
97723         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97724         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97725         collide with FNM macros.
97726         (struct patopts): New struct.
97727         (struct exclude): Use it, as exclude patterns now come with options.
97728         (new_exclude): Support above changes.
97729         (new_exclude, add_exclude_file):
97730         Initial size must now be a power of two to simplify overflow checking.
97731         (free_exclude, fnmatch_no_wildcards): New function.
97732         (excluded_filename): No longer requires options arg, as the options
97733         are determined by add_exclude.  Now returns bool, not int.
97734         (excluded_filename, add_exclude):
97735         Add support for the fancy new exclusion options.
97736         (add_exclude, add_exclude_file): Now takes int options arg.
97737         Check for arithmetic overflow when computing sizes.
97738         (add_exclude_file): xrealloc might modify errno, so don't
97739         realloc until after errno might be used.
97740
97741         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97742         New macros.
97743         (free_exclude): New decl.
97744         (add_exclude, add_exclude_file): Now takes int options arg.
97745         (excluded_filename): No longer requires options arg, as the options
97746         are determined by add_exclude.  Now returns bool, not int.
97747
97748 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97749
97750         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97751
97752 2001-08-27  Jim Meyering  <meyering@lucent.com>
97753
97754         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97755
97756         * lib/version-etc.c (N_): Remove definition.
97757         Revert most of last change.
97758         Instead, simply don't mark the `Copyright...' string for translation.
97759         Based on advice from Paul Eggert.
97760
97761         * lib/strtoxmax.c: Tweak comment.
97762
97763 2001-08-26  Jim Meyering  <meyering@lucent.com>
97764
97765         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97766
97767         * m4/xstrtoimax.m4: New file.
97768         * m4/xstrtoumax.m4: Add comments explaining why we
97769         AC_REPLACE_FUNCS(strtol).
97770
97771 2001-08-26  Jim Meyering  <meyering@lucent.com>
97772
97773         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97774         of copyright with `%s' so translators don't get an untranslated
97775         message in 2002.
97776         (COPYRIGHT_YEAR): Define.
97777         (version_etc): Use fprintf rather than fputs.
97778         Suggestion from Ulrich Drepper.
97779
97780         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97781
97782         * lib/strtoll.c: New file, from GNU libc.
97783         * lib/xstrtoimax.c: New file.
97784
97785         * lib/xstrtol.h: Add xstrtoimax.
97786         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97787         * lib/strtoimax.c: New file.  Likewise, but first define
97788         STRTOUXMAX_SIGNED.
97789
97790         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97791         ...
97792         * lib/strtoxmax.c: ... then renamed to this.
97793
97794 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97795
97796         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97797         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97798         (jm_AC_TYPE_INTMAX_T): New macro.
97799         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97800
97801         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97802
97803         * m4/longlong.m4: Renamed from ulonglong.m4.
97804         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97805         * m4/uintmax_t.m4: Removed.
97806
97807 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97808
97809         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97810         Port to Solaris 8, where 'sed' requires a space after the 'r'
97811         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97812         Redirect output to $tmp just once.
97813
97814 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97815
97816         * lib/addext.c (<errno.h>): Include.
97817         (errno): Declare if not defined.
97818         (addext): Work correctly when pathconf returns -1 and leaves
97819         errno alone because there is no limit.  Also, work even if
97820         pathconf returns a value greater than SIZE_MAX.
97821
97822 2001-08-12  Jim Meyering  <meyering@lucent.com>
97823
97824         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97825         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97826         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97827         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97828         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97829         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97830         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97831         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97832         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97833         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97834         utime.m4, utimes.m4, xstrtoumax.m4:
97835         Quote the first argument in each use of AC_DEFUN.
97836
97837 2001-08-12  Jim Meyering  <meyering@lucent.com>
97838
97839         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97840         Simply `return getcwd (NULL, 0);'.
97841         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97842         Use 1300 as initial value for length, not PATH_MAX.
97843
97844         * lib/pathmax.h: Clean up cpp syntax.
97845
97846 2001-08-12  Jim Meyering  <meyering@lucent.com>
97847
97848         * lib/gettimeofday.c: New file.
97849         * lib/gtod.h: New file.
97850         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97851
97852 2001-08-05  Jim Meyering  <meyering@lucent.com>
97853
97854         * m4/jm-macros.m4: Require autoconf-2.52.
97855
97856 2001-08-04  Jim Meyering  <meyering@lucent.com>
97857
97858         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97859         stmt, to get in sync with glibc.
97860
97861 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97862
97863         The following changes are from gettext 0.10.39 as maintained by
97864         Bruno Haible.
97865
97866         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97867         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97868         with inverted sense.  All uses changed.
97869
97870         * lib/mbswidth.c: Don't include <limits.h>.
97871         Include <stdlib.h> and <string.h> unconditionally.
97872         (iswcntrl, mbsinit, ISCNTRL): New macros.
97873         (mbsnwidth): Use K&R style function declarations.
97874         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97875         can optimize it when MB_CUR_MAX == 1.
97876         The width of control characters is zero, not 1.
97877
97878 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97879
97880         The following changes are from gettext 0.10.39 as maintained by
97881         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97882
97883         * m4/codeset.m4: Upgrade to serial AM1.
97884         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97885         all uses changed.  Quote first arg of AC_DEFUN.
97886         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97887
97888         * m4/iconv.m4: Upgrade to serial AM2.
97889         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97890         Add --with-libconv-prefix.
97891         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97892         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97893         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97894         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97895         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97896
97897         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97898         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97899         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97900         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97901         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97902         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97903         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97904         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97905         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97906
97907         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97908         string.h any more.
97909
97910         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97911         not the default value.
97912
97913         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97914         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97915         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97916         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97917         Also check for iswcntrl, used for wcwidth fallback.
97918         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97919         to Autoconf 2.13.
97920
97921 2001-08-03  Jim Meyering  <meyering@lucent.com>
97922
97923         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97924         as it was in the original.  Reported by Paul Eggert.
97925
97926 2001-07-16  Jim Meyering  <meyering@lucent.com>
97927
97928         * m4/gettimeofday.m4: New file.
97929         Prompted by a report from Bernhard Baehr.
97930
97931 2001-07-15  Jim Meyering  <meyering@lucent.com>
97932
97933         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97934         stuff. Now it's in ../Makefile.cfg.
97935
97936 2001-07-15  Jim Meyering  <meyering@lucent.com>
97937
97938         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97939         (BUILT_SOURCES): Add unlocked-io.h.
97940         (io_functions): Define.
97941         (unlocked-io.h): New rule.
97942         (DISTCLEANFILES): Add unlocked-io.h.
97943         (all-local): Depend on unlocked-io.h, to ensure it is created.
97944
97945         * lib/unlocked-io.hin: New file
97946
97947         * lib/regex.c: Update from glibc.
97948
97949 2001-07-05  Jim Meyering  <meyering@lucent.com>
97950
97951         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97952         recommendation.
97953         (libfetish_a_SOURCES): Put all .h files here instead.
97954         Remove a thus-exposed (better checks in automake) duplicate and
97955         two unnecessary .h files.
97956
97957 2001-07-04  Jim Meyering  <meyering@lucent.com>
97958
97959         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97960         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97961         distcheck failure.
97962
97963 2001-07-02  Jim Meyering  <meyering@lucent.com>
97964
97965         The following changes were prompted by suggestions from Bruno Haible.
97966
97967         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97968         is now generated.
97969         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97970         definition of EXTRA_DIST.
97971         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97972         ensure that the generated file is created/updated whenever the list
97973         of $(unlocked_functions) is changed.
97974         (jm-glibc-io.m4): New rule.
97975         (unlocked-io.h): New rule -- currently unused.
97976
97977 2001-06-24  Jim Meyering  <meyering@lucent.com>
97978
97979         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97980         unmatched right bracket, rather than kludging it with an extra,
97981         falsely-matching quote in a comment.  Patch by Akim Demaille.
97982
97983 2001-06-11  Jim Meyering  <meyering@lucent.com>
97984
97985         * lib/regex.c: Update from GNU libc.
97986
97987 2001-05-27  Jim Meyering  <meyering@lucent.com>
97988
97989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97990         Check for ut_type in struct utmp.
97991
97992 2001-05-27  Jim Meyering  <meyering@lucent.com>
97993
97994         * lib/readutmp.h (UT_TYPE): Define.
97995
97996 2001-05-24  Jim Meyering  <meyering@lucent.com>
97997
97998         * lib/argmatch.c: Include "quote.h".
97999         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98000         quote function.  Reported by Göran Uddeborg.
98001
98002 2001-05-22  Jim Meyering  <meyering@lucent.com>
98003
98004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98005         now that we use the package-supplied version unconditionally.
98006         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98007
98008 2001-05-21  Jim Meyering  <meyering@lucent.com>
98009
98010         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98011         shell syntax errors.
98012
98013 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98014
98015         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98016
98017 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98018
98019         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98020         Don't bother to check library strftime, since
98021         we'll be using our own my_strftime function anyway.
98022         Define my_strftime instead of strftime.
98023
98024 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98025
98026         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98027         which is not yet declared.
98028
98029 2001-05-15  Jim Meyering  <meyering@lucent.com>
98030
98031         * m4/regex.m4: Use proper quoting so brackets appear in the test
98032         program.
98033         Reported by, and with help from, Bruno Haible.
98034
98035 2001-05-13  Jim Meyering  <meyering@lucent.com>
98036
98037         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98038         undefined.
98039
98040 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98041
98042         dirname code cleanup.  base_name now behaves more compatibly
98043         with POSIX basename when given file names that have trailing
98044         slashes, and similarly for dir_name.  Add new primitives
98045         base_len and dir_len.  Put the directory-name-related decls
98046         into dirname.h.
98047
98048         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98049         * lib/backupfile.c (base_name): Likewise.
98050         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98051         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98052         * lib/makepath.c (strip_trailing_slashes): Likewise.
98053         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98054         ISSLASH): Likewise.
98055         * lib/rename.c (strip_trailing_slashes): Likewise.
98056         * lib/same.c (base_name): Likewise.
98057         * lib/stripslash.c (ISSLASH): Likewise.
98058
98059         * lib/addext.c: Include <dirname.h> after size_t is defined.
98060         * lib/backupfile.c: Likewise.
98061
98062         * lib/addext.c (addext): Use base_len to trim redundant
98063         trailing slashes instead of doing it ourselves.
98064         But do not trim the last slash if it is not redundant.
98065
98066         * lib/backupfile.c (find_backup_file_name,
98067         max_backup_version): Use base_len instead of rolling it ourselves.
98068         Handle the case of "" and (on DOS) "C:" correctly.
98069
98070         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98071         needed. Include <string.h>, <dirname.h>.
98072         (base_name): Allow file names ending in slashes, other than names
98073         that are all slashes.  In this case, return the basename followed
98074         by the slashes.  This is more general, and can be used in places
98075         where the original base_name purposely had an assertion failure.
98076         (base_len): New function.
98077
98078         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98079         Do not include <assert.h>; no longer needed.
98080         Include xalloc.h.
98081         (memrchr): Remove decl.
98082         (dir_name_r): Remove.
98083         (dir_len): Renamed from dirlen.  All callers changed.
98084         Rewrite in terms of base_name, for simplicity and consistency.
98085         (dir_name): Never return NULL.  All callers changed.
98086         Do not include <stdlib.h> in test program; no longer needed.
98087         return 0; is fine for test program.
98088
98089         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98090         New macros.
98091         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98092
98093         * lib/path-concat.c (path_concat): Use base_len to compute
98094         base length, not strlen; this means we cannot rely on memcpy
98095         to null-terminate.
98096
98097         * lib/same.c (STREQ): Remove.
98098         (same_name): Handle the case where the basename ends in trailing '/'.
98099
98100         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98101         a slash was stripped.  Do not strip the last slash after a
98102         file system prefix.
98103
98104 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98105
98106         * lib/Makefile.am (libfetish_a_SOURCES):
98107         Add strftime.c, since we now compile it on all hosts.
98108
98109         * lib/strftime.c (my_strftime):
98110         Define to nstrftime if emacs, but only if my_strftime is not defined.
98111         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98112         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98113         Add one more extra argument: a nanoseconds value.
98114         All uses changed.
98115         (ns): New macro.
98116         (my_strftime function): Add %N format.
98117         (emacs_strftimeu): Renamed from emacs_strftime,
98118         with extra ut argument.
98119
98120 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98121
98122         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98123
98124 2001-04-21  Jim Meyering  <meyering@lucent.com>
98125
98126         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98127         doesn't interfere.
98128
98129 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98130
98131         * m4/ftruncate.m4: Check for chsize.
98132         Link with ftruncate.o unconditionally if ftruncate is missing.
98133         This was required when cross-compiling to i586-mingw32msvc.
98134
98135 2001-04-08  Jim Meyering  <meyering@lucent.com>
98136
98137         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98138         recomputed; that's necessary when the offset spans a DST transition.
98139         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98140
98141 2001-04-02  Jim Meyering  <meyering@lucent.com>
98142
98143         * lib/regex.h, regex.c: Update from GNU libc.
98144
98145 2001-03-24  Jim Meyering  <meyering@lucent.com>
98146
98147         * m4/jm-macros.m4: Require autoconf-2.49d.
98148
98149 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98150
98151         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98152
98153 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98154
98155         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98156
98157 2001-03-17  Jim Meyering  <meyering@lucent.com>
98158
98159         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98160         now that the version in autoconf is equivalent.
98161         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98162
98163         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98164         Suggestion from Akim Demaille.
98165
98166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98167         (jm_PREREQ_TEMPNAME): New function.
98168
98169 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98170
98171         * lib/tempname.c (uint64_t): Define to uintmax_t if
98172         not defined, and if UINT64_MAX is not defined.
98173         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98174         Reported by John David Anglin.
98175
98176 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98177
98178         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98179         resolve alias if codeset is empty.
98180         * lib/config.charset (BeOS): Use wildcard syntax.
98181
98182 2001-03-13  Jim Meyering  <meyering@lucent.com>
98183
98184         * lib/path-concat.c (path_concat)
98185         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98186         concatenating e.g., `C:' and `foo'.
98187         From Bruno Haible.
98188
98189 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98190
98191         * lib/localcharset.c (locale_charset): Don't use
98192         setlocale(LC_CTYPE,NULL). Don't return NULL.
98193         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98194
98195 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98196
98197         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98198         support for DOS/DJGPP.
98199
98200 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98201
98202         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98203         lacks mkstemp.  Compile our own tempname.c if we compile our own
98204         mkstemp.c, as mkstemp relies on tempname.
98205
98206 2001-03-01  Jim Meyering  <meyering@lucent.com>
98207
98208         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98209         AH_VERBATIM really does output its argument verbatim.
98210
98211 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98212
98213         * lib/Makefile.am (libfetish_a_SOURCES):
98214         Add dup-safer.c, fopen-safer.c.
98215         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98216
98217         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98218         * lib/unistd-safer.h: New files.
98219
98220 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98221
98222         The mkstemp replacement is taken from glibc 2.2.2, with some
98223         portability fixes for use outside glibc, as follows:
98224
98225         * lib/tempname.c (struct_stat64): New macro.
98226         (direxists, __gen_tempname): Use it.
98227         This avoids a portability problem with Solaris 8.
98228
98229         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98230         (<stddef.h>, <stdint.h>, <string.h>):
98231         Include only if STDC_HEADERS || _LIBC.
98232         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98233         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98234         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98235         (__set_errno): Define this macro if <errno.h> doesn't.
98236         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98237         Define these macros if <stdio.h> doesn't.
98238         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98239         Define these macros if <sys/stat.h>
98240         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98241         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98242         __xstat64): Define if not _LIBC.
98243         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98244         (__gen_tempname): Invoke gettimeofday only if
98245         HAVE_GETTIMEOFDAY || _LIBC;
98246         otherwise, fall back on plain "time".
98247         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98248
98249         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98250
98251         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98252
98253 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98254
98255         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98256
98257 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98258
98259         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98260         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98261         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98263
98264 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98265
98266         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98267         Remove workaround macros for hosts that have mbrtowc but not
98268         mbstate_t, as we now insist on proper declarations for both
98269         before using mbrtowc.
98270
98271 2001-02-17  Jim Meyering  <meyering@lucent.com>
98272
98273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98274         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98275         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98276         UnixWare 7.1.1.
98277
98278         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98279         rather than AC_CACHE_VAL.
98280
98281 2001-02-17  Jim Meyering  <meyering@lucent.com>
98282
98283         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98284         around included file name.
98285
98286         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98287
98288         * lib/strftime.c: Update from GNU libc (the only changes were to
98289         comments).
98290
98291 2001-02-17  Jim Meyering  <meyering@lucent.com>
98292
98293         * lib/regex.c: Update from libc.
98294
98295 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98296
98297         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98298         clash.
98299
98300 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98301
98302         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98303         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98304         Reported by Mark Hounschell via Paul Eggert.
98305
98306 2001-02-07  Jim Meyering  <meyering@lucent.com>
98307
98308         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98309
98310 2001-02-05  Jim Meyering  <meyering@lucent.com>
98311
98312         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98313         it includes the patch required for `large file' support with at least
98314         HP-UX's 10.20 /bin/cc.
98315
98316 2001-02-03  Jim Meyering  <meyering@lucent.com>
98317
98318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98319         AS_IF, now that it works once again (mysteriously).
98320         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98321
98322 2001-01-30  Jim Meyering  <meyering@lucent.com>
98323
98324         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98325         * m4/chown.m4: Rename conftestchown to conftest.chown.
98326         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98327         s/conftestdir2/conftest.d2/.
98328         * m4/utimes.m4: s/conftestdata/conftest.data/
98329         Inspired by Pavel Roskin's change in autoconf.
98330
98331 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98332
98333         * lib/config.charset: Update for FreeBSD 4.2.
98334
98335 2001-01-27  Jim Meyering  <meyering@lucent.com>
98336
98337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98338         a use of AS_IF.
98339         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98340
98341 2001-01-26  Jim Meyering  <meyering@lucent.com>
98342
98343         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98344         quotearg.c includes it.
98345
98346 2001-01-26  Jim Meyering  <meyering@lucent.com>
98347
98348         * lib/quotearg.c: Include stddef.h.
98349         * lib/quote.c: Include stddef.h.
98350         Reported by Axel Kittenberger.
98351
98352         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98353         line in double quotes so that it evokes a better diagnostic.
98354         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98355         Reported by Axel Kittenberger.
98356
98357 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98358
98359         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98360         as if it was a `charset'.
98361
98362 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98363
98364         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98365         has const.
98366
98367 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98368
98369         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98370         to avoid a warning.  Add back 'const' to inptr.
98371
98372 2001-01-20  Jim Meyering  <meyering@lucent.com>
98373
98374         Be sure that headers are checked before used in code compiled
98375         for the type checks.
98376         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98377         In place of that, invoke jm_CHECK_ALL_TYPES.
98378         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98379         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98380         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98381         The check for ssize_t was mistakenly run before the test for unistd.h.
98382
98383         The configure-time check for stdbool.h was missing.
98384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98385         (jm_PREREQ_HASH): New function.
98386
98387 2001-01-17  Jim Meyering  <meyering@lucent.com>
98388
98389         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98390         for autoconf-2.49c.
98391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98392
98393 2001-01-16  Jim Meyering  <meyering@lucent.com>
98394
98395         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98396         From Bruno Haible.
98397
98398 2001-01-14  Jim Meyering  <meyering@lucent.com>
98399
98400         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98401         foo and bar.  Create conftestdir/ in the script, not in the C code.
98402         Remove directories in the script, not in the C code.
98403         Remove conftestdir{,2} before trying to create the directory.
98404         Make the entire configure script fail if the mkdir fails.
98405
98406 2001-01-14  Jim Meyering  <meyering@lucent.com>
98407
98408         * lib/rename.c: New file.  From Volker Borchert.
98409         Include stdlib.h, string.h or strings.h, and xalloc.h.
98410         Use strip_trailing_slashes rather than open-coding it.
98411
98412 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98413
98414         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98415
98416 2001-01-03  Jim Meyering  <meyering@lucent.com>
98417
98418         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98419         of local `inptr' to avoid warning with some system declarations of
98420         iconv.
98421
98422 2001-01-02  Volker Borchert  <bt@teknon.de>
98423
98424         * m4/rename.m4: New file.
98425         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98426
98427 2001-01-01  Jim Meyering  <meyering@lucent.com>
98428
98429         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98430         even on systems with utmpx.h.  It's necessary for the declaration of
98431         utmp's ut_user member.  Reported by Andreas Jaeger.
98432
98433         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98434         available. They are required for the declarations of getgrgid and
98435         getpwuid resp.
98436         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98437         Reported by Andreas Jaeger.
98438
98439 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98440
98441         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98442         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98443         so `make install' also works in VPATH builds.
98444
98445 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98446
98447         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98448         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98449         can be used in subdirectories.
98450
98451 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98452
98453         * lib/modechange.c: Do not assume that mode_t uses the
98454         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98455         the other-execute bit of FOO even if S_IXOTH != 1.
98456
98457         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98458         WOTH, XOTH, ALLM): New macros.
98459         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98460          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98461         Use them.
98462         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98463         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98464         (mode_compile):
98465         No need to use uintmax_t; unsigned long is long enough.
98466         Don't bother to get suffix since we don't use it.
98467
98468 2000-12-26  Jim Meyering  <meyering@lucent.com>
98469
98470         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98471         better with autoheader.
98472
98473 2000-12-24  Jim Meyering  <meyering@lucent.com>
98474
98475         * lib/hash.c (is_prime): Return explicit boolean values.
98476         (hash_get_first): Return NULL to appease Irix5.6's 89.
98477         Reported by Nelson Beebe.
98478
98479 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98480
98481         * lib/localcharset.c (locale_charset): Add support for Win32.
98482
98483 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98484
98485         * lib/physmem.h, lib/physmem.c: New files.
98486
98487         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98488         (noinst_HEADERS): Add physmem.h.
98489
98490         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98491         't' for compatibility with Solaris 8 sort.
98492
98493 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98494
98495         * lib/config.charset: Add support for BeOS.
98496
98497 2000-12-17  Jim Meyering  <meyering@lucent.com>
98498
98499         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98500         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98501
98502 2000-12-16  Jim Meyering  <meyering@lucent.com>
98503
98504         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98505         N and M) would have treated it like `chown N:N FILE'.
98506
98507         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98508
98509 2000-12-16  Jim Meyering  <meyering@lucent.com>
98510
98511         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98512         SHELLS_FILE to a file name that's useful on djgpp systems.
98513         Include stdlib.h.
98514         (ADDITIONAL_DEFAULT_SHELLS): Define.
98515         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98516         Based mostly on a patch from Prashant TR.
98517
98518 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98519
98520         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98521         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98522         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98523
98524 2000-12-08  Andreas Schwab  <schwab@suse.de>
98525
98526         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98527         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98528
98529 2000-12-07  Jim Meyering  <meyering@lucent.com>
98530
98531         * lib/stripslash.c (ISSLASH): Define.
98532         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98533         `/'.
98534         From Prashant TR.
98535
98536         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98537         (dir_name_r): Declare this function as static.
98538         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98539         manifest itself on a name containing a mix of slashes and
98540         backslashes.
98541         Make this function work with names starting with a DOS-style
98542         drive letter and colon prefix.
98543         (dir_name): Append `.' if necessary.
98544         Based mostly on patches from Prashant TR and Eli Zaretskii.
98545
98546         * lib/dirname.h (dir_name_r): Remove prototype.
98547
98548 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98549
98550         * m4/off_t-format.m4: Remove this file.
98551         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98552
98553 2000-12-06  Jim Meyering  <meyering@lucent.com>
98554
98555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98556         replacement strtoull, we may well need the replacement strtoul, too.
98557         Check for declarations of strtoul and strtoull.
98558         Check for strtol.  Mainly as a cue to cause automake to include
98559         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98560         Check for limits.h -- strtol.c needs it.
98561
98562 2000-12-05  Jim Meyering  <meyering@lucent.com>
98563
98564         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98565
98566 2000-12-04  Jim Meyering  <meyering@lucent.com>
98567
98568         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98569         Also include memory.h, stdlib.h, unistd.h if appropriate.
98570         Reported by Andreas Jaeger (conflicting declaration of malloc).
98571
98572 2000-12-02  Jim Meyering  <meyering@lucent.com>
98573
98574         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98575         * m4/jm-macros.m4 (jm_MACROS): require it.
98576
98577 2000-12-02  Jim Meyering  <meyering@lucent.com>
98578
98579         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98580
98581 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98582
98583         * lib/memrchr.c: Include <config.h> before any system include file.
98584
98585 2000-11-30  Jim Meyering  <meyering@lucent.com>
98586
98587         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98588
98589 2000-11-30  Jim Meyering  <meyering@lucent.com>
98590
98591         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98592
98593 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98594
98595         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98596
98597 2000-11-26  Jim Meyering  <meyering@lucent.com>
98598
98599         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98600
98601 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98602
98603         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98604         size of (size_t) -1; it's not portable.
98605
98606 2000-11-17  Jim Meyering  <meyering@lucent.com>
98607
98608         * lib/strstr.c: Update from GNU libc.
98609
98610 2000-11-17  Akim Demaille  <akim@epita.fr>
98611
98612         * lib/obstack.h: Formatting changes.
98613         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98614         prevent type checking.
98615         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98616         cast the value to (void *): assigning a `foo *' to a `void *'
98617         variable is valid.
98618         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98619
98620 2000-11-16  Jim Meyering  <meyering@lucent.com>
98621
98622         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98623
98624 2000-11-11  Jim Meyering  <meyering@lucent.com>
98625
98626         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98627
98628 2000-11-10  Jim Meyering  <meyering@lucent.com>
98629
98630         * lib/obstack.h: Update from GNU libc.
98631         * lib/obstack.c: Likewise.
98632
98633 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98634
98635         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98636
98637 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98638
98639         * lib/getusershell.c (setusershell): Use rewind rather than
98640         fseek/fseeko, to avoid configuration hassles with fseeko.
98641         Don't bother opening SHELLS_FILE if shellstream is NULL;
98642         it's not necessary.
98643
98644 2000-11-05  Jim Meyering  <meyering@lucent.com>
98645
98646         * lib/makepath.h (make_dir): Declare.
98647         * lib/makepath.c (make_dir): Remove `static' attribute.
98648         Tweak a comment.
98649
98650 2000-11-04  Jim Meyering  <meyering@lucent.com>
98651
98652         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98653
98654 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98655
98656         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98657         last one in a bucket, advance to the next bucket.
98658
98659 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98660
98661         * lib/fnmatch.c: Do not comment out all the code if we are using
98662         the GNU C library, because in some cases we are replacing buggy
98663         code in the GNU C library itself.
98664
98665 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98666
98667         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98668         (regex_compile): Catch bogus \(\1\).
98669
98670 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98671
98672         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98673         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98674         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98675
98676 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98677
98678         * lib/error.h, getline.h, modechange.h:
98679         Remove "2000" from Copyright line, as the file hasn't been
98680         changed this year other than in the copyright notice.
98681
98682         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98683         was changed this year.
98684
98685 2000-10-29  Jim Meyering  <meyering@lucent.com>
98686
98687         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98688         renaming.
98689         * m4/ls-mntd-fs.m4: Likewise
98690
98691 2000-10-29  Jim Meyering  <meyering@lucent.com>
98692
98693         * lib/xstat.in: Fix grammar in comment.
98694
98695 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98696
98697         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98698         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98699         doesn't define __restrict_arr.
98700
98701 2000-10-28  Jim Meyering  <meyering@lucent.com>
98702
98703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98704         (jm_PREREQ_MEMCHR): New function.
98705
98706 2000-10-28  Jim Meyering  <meyering@lucent.com>
98707
98708         * lib/memchr.c: Update from libc.
98709         Adjust for portability:
98710         [HAVE_STDLIB_H]: Include stdlib.h.
98711         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98712         Undef __memchr, too.
98713         [!weak_alias]: Define __memchr to memchr.
98714
98715         * lib/regex.c: Update from libc.
98716         * lib/regex.h: Likewise.
98717         * lib/getopt1.c: Likewise.
98718         * lib/memcmp.c: Likewise.
98719
98720         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98721         Avoid using fseek, when possible -- it's broken by design.
98722         Patch by Ulrich Drepper.
98723
98724 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98725
98726         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98727         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98728         Giving in to popular pressure to shut up the compiler with casts.
98729
98730 2000-10-26  Jim Meyering  <meyering@lucent.com>
98731
98732         * lib/strftime.c: Update from libc.
98733
98734 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98735
98736         * regex.c: More `unsigned char' -> `re_char' changes.
98737         Also change several `int' into `re_wchar_t'.
98738         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98739         (PUSH_FAILURE_POINTER): Don't cast any more.
98740         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98741         We want GCC to complain, since this piece of code makes
98742         re_match non-reentrant, which *should* be fixed.
98743         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98744         (EXTEND_BUFFER): Use RETALLOC.
98745         (SET_LIST_BIT): Don't cast.
98746         (re_wchar_t): New type.
98747         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98748         that those two functions will always properly return.
98749         (IMMEDIATE_QUIT_CHECK): Cast to void.
98750         (analyse_first): Use recursion rather than an explicit stack.
98751         (re_compile_fastmap): Can't fail anymore.
98752         (re_search_2): Don't check re_compile_fastmap for failure.
98753         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98754         Now also sets the new value (passed in a new argument).
98755         (re_match_2_internal): Use it.
98756         Also, use a new var `reg' of type size_t when looping through regs
98757         rather than reuse the inappropriate `mcnt'.
98758
98759 2000-10-25  Jim Meyering  <meyering@lucent.com>
98760
98761         * lib/obstack.c: Update from libc.
98762
98763 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98764
98765         * regex.c (regex_compile): Change the way of handling a range from
98766         a char less than 256 to a char not less than 256.
98767
98768 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98769
98770         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98771         NT-Emacs only.
98772         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98773         so that re_search functions only quit when callers expect them to.
98774
98775 2000-10-23  Jim Meyering  <meyering@lucent.com>
98776
98777         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98778         wrong.  That set_locale call must not have any side effects.
98779         From Paul Eggert.
98780
98781 2000-10-22  Jim Meyering  <meyering@lucent.com>
98782
98783         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98784         [CYCLIC]: Remove now-unused definition.
98785
98786         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98787         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98788         Suggestion from Ulrich Drepper.
98789
98790 2000-10-21  Jim Meyering  <meyering@lucent.com>
98791
98792         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98793         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98794         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98795
98796 2000-10-21  Jim Meyering  <meyering@lucent.com>
98797
98798         * lib/dirname.c (memrchr): Declare if necessary.
98799         (dir_name): Remove the restriction that there be no
98800         trailing slashes.  Now, this code skips past them, effectively
98801         ignoring them.
98802         [TEST_DIRNAME] (main): New unit tests.
98803
98804         * lib/memrchr.c: New file from GNU libc.
98805         Undef __memrchr, too.
98806         [!weak_alias]: Define __memrchr to memrchr.
98807         Guard weak_alias use with `#ifdef weak_alias'.
98808
98809 2000-10-21  Jim Meyering  <meyering@lucent.com>
98810
98811         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98812         (dir_name): Use dir_name_r.
98813         * lib/dirname.h (dir_name_r): Declare it.
98814
98815 2000-10-17  Jim Meyering  <meyering@lucent.com>
98816
98817         * lib/quote.h (PARAMS): Define and use.
98818         Reported by Akim Demaille.
98819
98820         * lib/getopt.c: Update from libc.
98821
98822 2000-10-16  Jim Meyering  <meyering@lucent.com>
98823
98824         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98825         setlocale.
98826         From Jan Fedak.
98827
98828 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98829
98830         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98831
98832 2000-09-25  Jim Meyering  <meyering@lucent.com>
98833
98834         * lib/md5.h (rol): Define (from GnuPG).
98835
98836         * lib/sha.c: Give credit (GnuPG) where due.
98837         (M): Use rol rather than open-coding it.
98838         Add a FIXME comment.
98839
98840 2000-09-21  Jim Meyering  <meyering@lucent.com>
98841
98842         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98843         Reported by Michael Stone.
98844
98845 2000-09-20  Jim Meyering  <meyering@lucent.com>
98846
98847         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98848         (noinst_HEADERS): Add sha.h.
98849         Based on code from Scott G. Miller and from GnuPG.
98850
98851 2000-09-18  Jim Meyering  <meyering@lucent.com>
98852
98853         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98854         LIBS. Otherwise, everyone ends up linking with -lelf for some
98855         configurations.
98856         Reported by Mike Stone.
98857
98858 2000-09-15  Jim Meyering  <meyering@lucent.com>
98859
98860         * lib/regex.c: Update from libc.
98861
98862 2000-09-10  Jim Meyering  <meyering@lucent.com>
98863
98864         * lib/getopt.c (_getopt_internal): Update from glibc.
98865
98866 2000-09-09  Jim Meyering  <meyering@lucent.com>
98867
98868         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98869         think it should be used as a general replacement for isascii.
98870         * lib/fnmatch.c: Likewise.
98871         * lib/mbswidth.c: Likewise
98872         * lib/regex.c: Likewise.
98873
98874         Don't use atoi.
98875         * lib/userspec.c: Include sys/param.h and limits.h.
98876         Include xstrtol.h.
98877         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98878         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98879         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98880         UID, GID.  Check range.
98881
98882 2000-09-06  Jim Meyering  <meyering@lucent.com>
98883
98884         * lib/getopt.c (_getopt_internal): Update from glibc.
98885
98886 2000-08-30  Jim Meyering  <meyering@lucent.com>
98887
98888         * lib/strftime.c: Merge in changes from GNU libc.
98889
98890 2000-08-26  Jim Meyering  <meyering@lucent.com>
98891
98892         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98893         * m4/fpending.m4: New file.
98894
98895 2000-08-26  Jim Meyering  <meyering@lucent.com>
98896
98897         * lib/closeout.c: Include "__fpending.h".
98898         (close_stdout_status): Return right away if there's nothing to flush.
98899
98900         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98901         * lib/__fpending.c: New file.
98902         * lib/__fpending.h: New file.
98903
98904 2000-08-20  Jim Meyering  <meyering@lucent.com>
98905
98906         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98907         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98908         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98909
98910 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98911
98912         Improve fileutils installation on systems where running
98913         programs (like install) can't be unlinked.
98914         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98915         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98916
98917 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98918
98919         Standardize on "memory exhausted" instead of "Memory exhausted"
98920         or "virtual memory exhausted".
98921         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98922         "virtual memory exhausted".
98923         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98924         our own message.
98925         * lib/userspec.c (parse_user_spec): Likewise.
98926         * lib/bumpalloc.h: comment fix
98927         * lib/same.c, userspec.c: Include xalloc.h.
98928
98929         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98930         not char *const and pointing to a constant array.
98931         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98932         (xrealloc): Comment fix.
98933
98934         * lib/userspec.c (parse_user_spec):
98935         Don't translate a message until just before returning,
98936         to avoid unnecessary translation.
98937
98938 2000-08-07  Jim Meyering  <meyering@lucent.com>
98939
98940         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98941         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98942         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98943         getgroups.c, gethostname.c, getopt.h, group-member.c,
98944         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98945         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98946         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98947         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98948         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98949         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98950         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98951         yesno.c: Back out Copyright date changes for each file with no change
98952         this year.  This eases coordination with other programs using the same
98953         source code modules.  From Paul Eggert.
98954
98955 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98956
98957         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98958         not char, for compatibility with glibc 2.1.3 strftime.c.
98959
98960 2000-08-03  Greg McGary  <greg@mcgary.org>
98961
98962         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98963         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98964         (EXTEND_BUFFER): Use them.
98965
98966 2000-08-01  Jim Meyering  <meyering@lucent.com>
98967
98968         * lib/dirname.c (ISSLASH): Define.
98969         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98970         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98971         both `\' and `/' may be use as path separators.
98972         Based on a patch from Prashant TR.
98973
98974 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98975
98976         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98977         slot vector a constant, since it might get modified.
98978
98979 2000-07-31  Jim Meyering  <meyering@lucent.com>
98980
98981         * lib/xmalloc.c: Use `virtual memory exhausted', not
98982         `Memory exhausted'.
98983         * lib/obstack.c (print_and_abort): Likewise.
98984
98985 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98986
98987         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98988         buffer, so that the caller can always quote one small
98989         component of a "memory exhausted" message in slot 0.
98990         From a suggestion by Jim Meyering.
98991
98992 2000-07-30  Jim Meyering  <meyering@lucent.com>
98993
98994         * lib/makepath.c (make_path): Quote the other instance, too.
98995
98996         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98997         (STATIC_BUF_SIZE): Define.
98998         (quotearg_n_options): Use only statically allocated storage when
98999         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99000         than STATIC_BUF_SIZE.
99001
99002 2000-07-29  Jim Meyering  <meyering@lucent.com>
99003
99004         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99005         * lib/dirname.c (dir_name): Likewise.
99006
99007         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99008         `/'.
99009
99010         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99011         (dir_name): Assert that there are no trailing slashes.
99012
99013 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99014
99015         * lib/mbswidth.h (mbswidth): Add a flags argument.
99016         (mbswidth): New declaration.
99017         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99018         * lib/mbswidth.c (mbswidth): Add a flags argument.
99019         (mbsnwidth): New function.
99020
99021 2000-07-24  Jim Meyering  <meyering@lucent.com>
99022
99023         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99024
99025 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99026
99027         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99028
99029 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99030
99031         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99032         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99033         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99034         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99035         invoke multibyte primitives.
99036
99037 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99038
99039         * lib/quotearg.c:
99040         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99041         so that mbstate_t is always defined.
99042
99043         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99044         be 1 in at least one GCC installation, and this configuration
99045         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99046         performance on hosts that have mbrtowc but have only unibyte
99047         locales, but I assume these hosts are rare.
99048
99049 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99050
99051         * lib/mbswidth.c (_XOPEN_SOURCE):
99052         Don't define; this causes problems on Solaris 7.
99053         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99054
99055 2000-07-23  Jim Meyering  <meyering@lucent.com>
99056
99057         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99058         too: getgrgid, getpwuid, getuid.
99059
99060 2000-07-23  Jim Meyering  <meyering@lucent.com>
99061
99062         * lib/basename.c (base_name): Add an assertion.
99063
99064 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99065
99066         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99067         shadow its mbsinit function.
99068
99069 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99070
99071         * lib/mbswidth.h: New file.
99072         * lib/mbswidth.c: New file.
99073         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99074         (noinst_HEADERS): Add mbswidth.h.
99075
99076 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99077
99078         * lib/config.charset: Add support for FreeBSD. Improve support for
99079         HP-UX and IRIX 6.
99080
99081 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99082
99083         * m4/mbswidth.m4: New file.
99084         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99085
99086 2000-07-15  Jim Meyering  <meyering@lucent.com>
99087
99088         * lib/makepath.c: Include quote.h.
99089         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99090         corresponding argument in a `quote (...)' call.
99091         Give better diagnostics.
99092
99093         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99094         (noinst_HEADERS): Add quote.h.
99095
99096         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99097         from tar's src/misc.c.
99098         * lib/quote.h: New file.  Prototypes for same.
99099
99100 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99101
99102         From a suggestion by Bruno Haible.
99103         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99104         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99105         to decide whether to define the BeOS workaround macro;
99106         this adjusts to the change to AC_MBSTATE_T.
99107
99108 2000-07-14  Jim Meyering  <meyering@lucent.com>
99109
99110         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99111         jm_AC_TYPE_UINTMAX_T.
99112
99113 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99114
99115         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99116
99117         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99118         quotearg_buffer_restyled): Add support for
99119         clocale_quoting_style.  Undo previous change to
99120         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99121         and "{RIGHT QUOTATION MARK}" msgids.
99122
99123 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99124
99125         From a suggestion by Bruno Haible.
99126         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99127         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99128         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99129         and mbstate_t, to a single-part test that simply defines mbstate_t.
99130         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99131         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99132
99133 2000-07-10  Jim Meyering  <meyering@lucent.com>
99134
99135         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99136
99137         * m4/gnu-source.m4: Output to confdefs.h directly.
99138         Suggestion from Akim Demaille.
99139
99140 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99141
99142         The old behavior of quoting `like this' doesn't look good with
99143         newer, ISO-style fonts.  See:
99144         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99145
99146         Instead, quote "like this" by default.  Let the translator
99147         tailor the locale-specific quoting behavior by providing
99148         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99149
99150         * lib/quotearg.c (N_): New macro.
99151         (gettext_default): New function.
99152         (quotearg_buffer_restyled): Use
99153         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99154         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99155
99156 2000-07-09  Jim Meyering  <meyering@lucent.com>
99157
99158         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99159         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99160
99161         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99163
99164 2000-07-09  Jim Meyering  <meyering@lucent.com>
99165
99166         * lib/Most files: Update copyright dates to include 2000.
99167
99168 2000-07-08  Jim Meyering  <meyering@lucent.com>
99169
99170         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99171         if not defined.
99172         (xgethostname): Remove now-unnecessary #ifdef.
99173         Move declaration of `err' into loop where it's used.
99174
99175 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99176         and Bruno Haible  <haible@clisp.cons.org>
99177
99178         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99179         only if the test for an object-type mbstate_t fails.  This
99180         prevents us from mistakenly reporting that mbstate_t is a
99181         system object type after we "#define mbstate_t int" to work
99182         around its lack.
99183
99184 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99185         and Bruno Haible  <haible@clisp.cons.org>
99186
99187         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99188
99189 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99190
99191         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99192         to strerror_r.
99193         Include <ctype.h> for use of isalpha.
99194
99195 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99196
99197         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99198         by allocating a larger buffer. Test the gethostname return value for
99199         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99200         returns an error and ENAMETOOLONG isn't defined.
99201
99202 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99203
99204         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99205         dimension.
99206
99207 2000-07-04  Jim Meyering  <meyering@lucent.com>
99208
99209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99210         of the deprecated AC_CHECKING.
99211
99212 2000-07-04  Jim Meyering  <meyering@lucent.com>
99213
99214         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99215         Reported by Bruno Haible.
99216
99217 2000-07-04  Jim Meyering  <meyering@lucent.com>
99218
99219         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99220         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99221         lacks mbrtowc.
99222
99223 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99224
99225         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99226         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99227
99228 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99229         and Bruno Haible  <haible@clisp.cons.org>
99230
99231         * lib/quotearg.c (mbrtowc):
99232         Assign to *pwc, and return 1 only if result is nonzero.
99233         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99234
99235 2000-07-03  Jim Meyering  <meyering@lucent.com>
99236
99237         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99238
99239 2000-07-03  Jim Meyering  <meyering@lucent.com>
99240
99241         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99242         This is necessary to get a definition of e.g., UTMP_FILE on
99243         HP-UX 10.20.
99244         From Bob Proulx.
99245
99246 2000-07-02  Jim Meyering  <meyering@lucent.com>
99247
99248         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99249
99250         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99251         AC_LIBOBJ(function_name).
99252         * m4/chown.m4: Likewise.
99253         * m4/fnmatch.m4: Likewise.
99254         * m4/ftruncate.m4: Likewise.
99255         * m4/getgroups.m4: Likewise.
99256         * m4/getline.m4: Likewise.
99257         * m4/group-member.m4: Likewise.
99258         * m4/jm-macros.m4: Likewise.
99259         * m4/lstat.m4: Likewise.
99260         * m4/malloc.m4: Likewise.
99261         * m4/memcmp.m4: Likewise.
99262         * m4/nanosleep.m4: Likewise.
99263         * m4/putenv.m4: Likewise.
99264         * m4/realloc.m4: Likewise.
99265         * m4/regex.m4: Likewise.
99266         * m4/stat.m4: Likewise.
99267         * m4/strftime.m4: Likewise.
99268
99269 2000-07-02  Jim Meyering  <meyering@lucent.com>
99270
99271         * lib/quotearg.c (mbstate_t): Don't define here.
99272
99273 2000-07-02  Jim Meyering  <meyering@lucent.com>
99274
99275         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99276
99277 2000-07-01  Jim Meyering  <meyering@lucent.com>
99278
99279         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99280
99281 2000-07-01  Jim Meyering  <meyering@lucent.com>
99282
99283         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99284         problem.
99285
99286 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99287
99288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99289         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99290
99291 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99292
99293         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99294         per change in ../m4/ls-mntd-fs.m4.
99295         (read_filesystem_list): Ignore symbolic links.
99296
99297 2000-06-29  Jim Meyering  <meyering@lucent.com>
99298
99299         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99300         for declaration of strcmp.
99301
99302         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99303
99304         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99305         Avoid warning by casting result to `char *' to remove `const'.
99306
99307 2000-06-28  Jim Meyering  <meyering@lucent.com>
99308
99309         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99310         included by quotearg.c, for which we perform this test.  From
99311         Bruno Haible.
99312
99313 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99314
99315         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99316         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99317         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99318
99319 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99320
99321         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99322
99323 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99324
99325         savedir now sets errno on failure and invokes xmalloc to get memory.
99326         Fix a couple of other minor bugs while we're at it.
99327
99328         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99329         (NAMLEN): Remove macro.
99330         (malloc, realloc): Remove decls.
99331         (stpcpy): Likewise.
99332         ("xalloc.h"): Include.
99333         (NAME_SIZE_DEFAULT): New macro.
99334         (savedir): Use xmalloc / xrealloc to allocate memory.
99335         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99336         Skip "" directory entries.
99337         Use strlen to calculate directory entry length, since the old method
99338         is rarely used these days and isn't worth supporting.
99339         Don't use a pointer after freeing it.
99340         Check for integer overflow when calculating allocation size.
99341         Use memcpy to copy entries, instead of stpcpy.
99342         Set errno properly when returning NULL.
99343         Check for readdir error.
99344
99345 2000-06-26  Jim Meyering  <meyering@lucent.com>
99346
99347         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99348
99349 2000-06-25  Jim Meyering  <meyering@lucent.com>
99350
99351         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99352         Linux header bug when _XOPEN_SOURCE is defined to 500.
99353
99354 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99355
99356         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99357         deficiency.
99358
99359 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99360
99361         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99362         Include xalloc.h.
99363         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99364
99365 2000-06-24  Jim Meyering  <meyering@lucent.com>
99366
99367         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99368         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99369         for which strerror does return char*, but which lacks a conveniently
99370         accessible declaration of the function.  If the compile-test says
99371         strerror_r doesn't work, then resort to a `run'-test that works on
99372         BeOS and segfaults on DEC Unix.
99373
99374 2000-06-24  Jim Meyering  <meyering@lucent.com>
99375
99376         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99377
99378 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99379
99380         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99381         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99382
99383 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99384
99385         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99386         (mbrtowc, mbstate_t): Define substitutes if
99387         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99388         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99389         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99390
99391 2000-06-23  Jim Meyering  <meyering@lucent.com>
99392
99393         * m4/afs.m4: Add missing AC_MSG_RESULT.
99394         Reported by Bruno Haible.
99395
99396         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99397         Suggestion from Bruno Haible.
99398
99399 2000-06-23  Jim Meyering  <meyering@lucent.com>
99400
99401         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99402
99403 2000-06-21  Jim Meyering  <meyering@lucent.com>
99404
99405         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99406
99407 2000-06-21  Jim Meyering  <meyering@lucent.com>
99408
99409         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99410         (noinst_HEADERS): Add getstr.h.
99411
99412         * lib/getline.c (getstr): Move into a separate file.
99413         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99414         the following changes: new parameter, delim2; both delim[12]
99415         parameters have type `int', not `char'.  The latter would lose
99416         with 8-bit delimiters.
99417         * lib/getstr.h: New file.
99418
99419 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99420
99421         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99422         than 1024, return a memory chunk of least possible size, instead
99423         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99424         Use free/xmalloc instead of xrealloc to avoid copying for very long
99425         paths.
99426
99427 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99428
99429         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99430         the empty string.
99431
99432 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99433
99434         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99435         address, not strdup.  Include <stdlib.h> and don't declare free().
99436
99437 2000-06-19  Jim Meyering  <meyering@lucent.com>
99438
99439         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99440
99441 2000-06-18  Jim Meyering  <meyering@lucent.com>
99442
99443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99444
99445         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99446         `checking whether...' message to be consistent with that of the
99447         lstat test.
99448
99449 2000-06-18  Jim Meyering  <meyering@lucent.com>
99450
99451         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99452         Besides, these days every porting target provides a mkdir function.
99453
99454         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99455         needed. (this snippet comes from src/system.h).
99456
99457 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99458
99459         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99460
99461 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99462
99463         * lib/human.c (adjust_value): New function.
99464         (human_readable_inexact): Apply rounding style even when
99465         printing approximate values.
99466
99467 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99468
99469         * lib/human.c (human_readable_inexact): Allow an input block
99470         size that is not a multiple of the output block size, and vice versa.
99471         Reported by Piergiorgio Sartor.
99472
99473 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99474
99475         * lib/getdate.y (get_date): Apply relative times after time
99476         zone indicator, not before.  Reported by Todd A. Jacobs.
99477
99478 2000-06-13  Jim Meyering  <meyering@lucent.com>
99479
99480         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99481
99482         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99483
99484 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99485
99486         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99487
99488 2000-06-12  Jim Meyering  <meyering@lucent.com>
99489
99490         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99491         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99492         optional argument.
99493         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99494         the optional argument, `lib'.
99495
99496 2000-06-08  Jim Meyering  <meyering@lucent.com>
99497
99498         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99499
99500 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99501
99502         Rewrite largefile configuration so that we don't need to run
99503         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99504         AC_CANONICAL_HOST in configure.in -- jmm]
99505
99506         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99507         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99508         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99509         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99510         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99511         All uses changed.
99512         Instead of inspecting the output of getconf, try to compile the
99513         test program without and with the macro definition.
99514         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99515         for getconf.  Instead, check for the needed flags by compiling
99516         test programs.
99517
99518 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99519
99520         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99521
99522 2000-06-04  Jim Meyering  <meyering@lucent.com>
99523
99524         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99525         SunOS 4.1.4 for which gid_t is an unsigned type.
99526
99527 2000-06-03  Jim Meyering  <meyering@lucent.com>
99528
99529         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99530         now that autoconf requires that.
99531
99532         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99533         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99534         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99535
99536 2000-06-03  Jim Meyering  <meyering@lucent.com>
99537
99538         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99539
99540 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99541
99542         * m4/glibc21.m4: New file.
99543         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99544
99545 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99546
99547         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99548         newer, don't install charset.alias.
99549         * lib/config.charset: Change the Linux/glibc rules so they become empty
99550         on glibc-2.1 or newer.
99551
99552 2000-06-02  Jim Meyering  <meyering@lucent.com>
99553
99554         * lib/mountlist.c: Back out last change.  Instead, do this...
99555         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99556         me_dummy member using the same `ignore'-testing code.
99557         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99558         fs_type strings.
99559         From Mark D. Roth.
99560
99561 2000-05-29  Jim Meyering  <meyering@lucent.com>
99562
99563         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99564         mounts with the `ignore' attribute.  Based on a patch from
99565         Mark D. Roth.
99566
99567 2000-05-28  Jim Meyering  <meyering@lucent.com>
99568
99569         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99570         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99571         * m4/stat.m4: Likewise.
99572         * m4/lstat.m4: Likewise.
99573         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99574
99575         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99576         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99577
99578 2000-05-26  Jim Meyering  <meyering@lucent.com>
99579
99580         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99581
99582 2000-05-24  Jim Meyering  <meyering@lucent.com>
99583
99584         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99585         autoconf requires that.
99586         * m4/lib-check.m4: Likewise.
99587         * m4/jm-macros.m4: Likewise.
99588         * m4/strftime.m4: Likewise.
99589
99590         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99591         AC_CHECK_DECLS, now that autoconf requires that.
99592
99593 2000-05-22  Jim Meyering  <meyering@lucent.com>
99594
99595         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99596         * m4/lstat.m4: Likewise.
99597
99598 2000-05-22  Jim Meyering  <meyering@lucent.com>
99599
99600         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99601
99602 2000-05-20  Jim Meyering  <meyering@lucent.com>
99603
99604         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99605         (jm_PREREQ): Use it.
99606
99607 2000-05-18  Jim Meyering  <meyering@lucent.com>
99608
99609         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99610         back, too, since it may have been modified by allocate_entry.
99611         (hash_delete): Rewrite to use neither the assignment operator
99612         nor the comma operator in an if-expression.
99613
99614 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99615
99616         * lib/closeout.c:
99617         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99618         Remove; no longer needed.
99619         "quotearg.h": Add include.
99620         (file_name): Do not bother to explicitly initialize to NULL; it's less
99621         efficient on some hosts.
99622         (close_stdout_status): Remove test as to whether stdout was already
99623         closed; it breaks for the case "echo x | sort >&-".
99624         Quote file name colons.
99625         Do not assume that _("write error") lacks format strings.
99626
99627 2000-05-15  Jim Meyering  <meyering@lucent.com>
99628
99629         * lib/version-etc.c (version_etc_copyright): Update the copyright
99630         string used in all --version output.
99631
99632 2000-05-14  Jim Meyering  <meyering@lucent.com>
99633
99634         * lib/closeout.c (close_stdout_set_file_name): New function.
99635         (close_stdout_status): Use new file-scoped global.
99636         Return right away if fstat says the stdout file descriptor is invalid.
99637         * lib/closeout.h (close_stdout_set_file_name): Declare.
99638
99639 2000-05-10  Jim Meyering  <meyering@lucent.com>
99640
99641         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99642         (close_stdout_set_status): New function.
99643         * lib/closeout.h (close_stdout_set_status): Declare.
99644
99645 2000-05-09  Jim Meyering  <meyering@lucent.com>
99646
99647         * m4/gettext.m4: Rename this...
99648         * m4/libintl.m4: ...to this.
99649
99650 2000-05-08  Jim Meyering  <meyering@lucent.com>
99651
99652         * lib/long-options.c: Don't include closeout.h.
99653         (parse_long_options): Don't call close_stdout for --version.
99654
99655 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99656
99657         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99658         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99659         2.1.3 bug.  This avoids a clash when files like regex.c define
99660         _GNU_SOURCE.
99661
99662 2000-05-06  Jim Meyering  <meyering@lucent.com>
99663
99664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99665         (AC_REPLACE_FUNCS): Add strnlen.
99666
99667         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99668         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99669
99670         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99671         AC_SEARCH_LIBS call for nanosleep.
99672         (LIB_NANOSLEEP): Set and AC_SUBST.
99673
99674 2000-05-06  Jim Meyering  <meyering@lucent.com>
99675
99676         * lib/strnlen.c: Undefine __strnlen and strnlen.
99677         [!weak_alias]: Define __strnlen to strnlen.
99678
99679         * lib/atexit.c: New file, from libiberty.
99680
99681 2000-05-06  Jim Meyering  <meyering@lucent.com>
99682
99683         * lib/closeout.c (close_stdout_status): Also check for errors on the
99684         stderr stream.
99685
99686 2000-05-05  Jim Meyering  <meyering@lucent.com>
99687
99688         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99689         AC_SEARCH_LIBS call for clock_gettime.
99690         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99691
99692         * m4/search-libs.m4: Update from autoconf.
99693
99694         su doesn't work on Solaris 2.6.
99695         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99696         <shadow.h>.  Reported by Dragos Harabor.
99697
99698 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99699
99700         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99701         memcpy instead of xmalloc, xrealloc, path_concat.
99702         (locale_charset): Treat empty environment variables as absent.
99703         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99704
99705 2000-05-04  Jim Meyering  <meyering@lucent.com>
99706
99707         * lib/getopt.c: Update from glibc.
99708         * lib/obstack.c: Likewise.
99709         * lib/obstack.h: Likewise.
99710         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99711         file
99712
99713         * lib/regex.h: Likewise.
99714         * lib/strndup.c: Likewise.
99715         * lib/strnlen.c: New file, from glibc.
99716
99717 2000-05-03  Jim Meyering  <meyering@lucent.com>
99718
99719         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99720
99721 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99722
99723         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99724         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99725         compile-time test, rather than inspecting host and OS, to
99726         decide whether to define _LARGEFILE_SOURCE.
99727
99728 2000-05-01  Jim Meyering  <meyering@lucent.com>
99729
99730         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99731
99732         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99733         Based on a patch from Bruno Haible.
99734
99735 2000-05-01  Jim Meyering  <meyering@lucent.com>
99736
99737         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99738
99739 2000-04-29  Jim Meyering  <meyering@lucent.com>
99740
99741         * lib/path-concat.c: Declare strdup only if it's not defined.
99742         * lib/canon-host.c: Likewise.
99743
99744 2000-04-28  Jim Meyering  <meyering@lucent.com>
99745
99746         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99747         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99748         is included first, then limits.h is included by locale.h by libintl.h.
99749         From John David Anglin.
99750
99751 2000-04-25  Jim Meyering  <meyering@lucent.com>
99752
99753         * lib/makepath.c (S_IRWXUGO): Define.
99754         (make_path): Always perform explicit chmod if MODE specifies any
99755         of the `special' permission bits.  Prompted by a bug report against
99756         install from Mate Wierdl and Joost van Baal.
99757
99758 2000-04-18  Jim Meyering  <meyering@lucent.com>
99759
99760         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99761         (jm_PREREQ): Use it.
99762
99763 2000-04-18  Jim Meyering  <meyering@lucent.com>
99764
99765         * lib/README: New file.
99766
99767         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99768         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99769
99770 2000-04-17  Jim Meyering  <meyering@lucent.com>
99771
99772         Get it right :-)
99773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99774         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99775         Suggestion from Akim Demaille.
99776
99777 2000-04-17  Jim Meyering  <meyering@lucent.com>
99778
99779         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99780         the definition of it to rpl_strftime also defined-away the system's
99781         declaration.
99782
99783 2000-04-15  Jim Meyering  <meyering@lucent.com>
99784
99785         Use `C' to denote so-called `contiguous' files, the same way
99786         that tar does.
99787         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99788         (ftypelet): Use S_ISCTG.
99789         From Michael Deutschmann.
99790
99791 2000-04-14  Jim Meyering  <meyering@lucent.com>
99792
99793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99794         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99795         clobbered.
99796
99797 2000-04-14  Jim Meyering  <meyering@lucent.com>
99798
99799         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99800
99801 2000-04-13  Jim Meyering  <meyering@lucent.com>
99802
99803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99804         AH_VERBATIM to insert required #ifndef into config.h.in.
99805         Suggestion from Akim Demaille.
99806
99807 2000-04-12  Jim Meyering  <meyering@lucent.com>
99808
99809         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99810         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99811         Christian Krackowizer.
99812
99813         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99814         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99815         (AC_SYS_LARGEFILE): Require.
99816         (AM_C_PROTOTYPES): Require.
99817
99818 2000-04-08  Jim Meyering  <meyering@lucent.com>
99819
99820         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99821         names don't conflict.  Reported by Eli Zaretskii.
99822
99823 2000-04-07  Jim Meyering  <meyering@lucent.com>
99824
99825         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99826         sys/types.h, to work around system header problems on AIX 3.2.5.
99827         From Bruno Haible.
99828
99829 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99830
99831         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99832         bug.  Deal with the different error behavior of Irix iconv.
99833
99834 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99835
99836         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99837         IRIX if the installer said otherwise.
99838
99839 2000-04-05  Jim Meyering  <meyering@lucent.com>
99840
99841         Portability tweaks required for ultrix4.3.
99842         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99843         (jm_CHECK_DECLS): Add getutent to the list of functions.
99844         (_jm_DECL_HEADERS): Add utmpx.h.
99845         From John David Anglin.
99846
99847         * m4/strftime.m4: Back out the 2000-04-02 change.
99848         Instead of that change, simply undefine putenv in the test program.
99849
99850 2000-04-05  Jim Meyering  <meyering@lucent.com>
99851
99852         Portability tweaks required for ultrix4.3.
99853         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99854         getutent.
99855         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99856         * lib/canon-host.c: Declare strdup.
99857         * lib/path-concat.c: Likewise.
99858         From John David Anglin.
99859
99860 2000-04-04  Jim Meyering  <meyering@lucent.com>
99861
99862         Be more DOS 8.3-friendly.
99863         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99864         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99865         * lib/Makefile.am: Reflect renaming.
99866         Reported by Eli Zaretskii.
99867
99868         Use a temporary file name that won't clash with `charset.alias'
99869         in the DOS 8.3 name space.
99870         * lib/Makefile.am (charset_tmp): Define.
99871         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99872         (uninstall-local): Likewise.
99873         Reported by Eli Zaretskii.
99874
99875 2000-04-03  Jim Meyering  <meyering@lucent.com>
99876
99877         * m4/gettext.m4: Fix typo in comment.
99878
99879         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99880         textutils/configure.in).  Suggestion from Paul Eggert.
99881         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99882
99883 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99884
99885         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99886         variable in the shell rather than using putenv, which isn't
99887         portable.  This avoids the configure-time inter-test dependency
99888         on the potentially-renamed putenv function.
99889
99890 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99891
99892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99893         before checking struct stat.st_blksize, so that
99894         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99895
99896 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99897
99898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99899         since strftime.c uses HAVE_STRFTIME to decide whether to use
99900         the underlying strftime.
99901
99902 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99903
99904         * lib/time/strftime.c (my_strftime): Make sure we call the system
99905         strftime, not ourselves, when invoking the underlying strftime.
99906
99907 2000-03-24  Jim Meyering  <meyering@lucent.com>
99908
99909         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99910         (charset_alias): Define.
99911         (install-exec-local): Factor out common code.
99912         (uninstall-local): Split lines longer than 80.
99913         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99914         (SUFFIXES): Define.
99915         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99916         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99917
99918 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99919
99920         * lib/config.charset: Output a line containing "Packages using this
99921         file".
99922         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99923         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99924         ref-del.sed): New rules.
99925
99926 2000-03-17  Jim Meyering  <meyering@lucent.com>
99927
99928         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99929         Otherwise, include <strings.h>
99930
99931 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99932
99933         * lib/unicodeio.c (utf8_wctomb): New function.
99934         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99935         format instead of in UCS-4 with platform dependent endianness.
99936
99937 2000-03-10  Jim Meyering  <meyering@lucent.com>
99938
99939         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99940         From Marco Franzen.
99941
99942 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99943
99944         * lib/savedir.c (savedir): Work even if directory size is
99945         negative; this can happen with some screwy NFS configurations.
99946
99947 2000-03-06  Jim Meyering  <meyering@lucent.com>
99948
99949         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99950         if it's NULL (because we ran out of memory).  From Bruno Haible.
99951
99952 2000-03-05  Jim Meyering  <meyering@lucent.com>
99953
99954         * lib/localcharset.c ("path-concat.h"): Include.
99955         (get_charset_aliases): Use path_concat instead of ANSI string
99956         concatenation.
99957
99958         * lib/unicodeio.h (PARAMS): Define.
99959         Use it to guard prototype.
99960
99961 2000-03-04  Jim Meyering  <meyering@lucent.com>
99962
99963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99964         for lib/localcharset.c.
99965
99966 2000-03-04  Jim Meyering  <meyering@lucent.com>
99967
99968         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99969         installing into it.
99970         (uninstall-local): Uncomment this rule so `make distcheck' works
99971         once again.
99972
99973         * lib/unicodeio.c (<errno.h>): Include it.
99974         (errno): Declare if not defined.
99975
99976         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99977
99978         * lib/config.charset: New version, incorporating remarks from a linux
99979         i18n mailing list.  From Bruno Haible.
99980
99981 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99982
99983         * m4/codeset.m4: New file.
99984         * m4/iconv.m4: New file.
99985         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99986
99987 2000-03-03  Jim Meyering  <meyering@lucent.com>
99988
99989         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99990
99991 2000-03-02  Jim Meyering  <meyering@lucent.com>
99992
99993         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99994         the messages come out on separate lines.
99995
99996         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99997         rather than jm_CHECK_DECLARATIONS.
99998         * m4/decl.m4: Remove now-unused file.
99999
100000         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100001         geteuid.
100002
100003 2000-03-02  Jim Meyering  <meyering@lucent.com>
100004
100005         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100006
100007 2000-03-01  Jim Meyering  <meyering@lucent.com>
100008
100009         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100010         * lib/unicodeio.c: Likewise.
100011
100012 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100013
100014         * lib/config.charset: New file.
100015         * lib/localcharset.c: New file.
100016         * lib/unicodeio.h, lib/unicodeio.c: New files.
100017         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100018         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100019         (noinst_HEADERS): Add unicodeio.h.
100020         (all-local, install-exec-local, charset.alias): New targets.
100021
100022 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100023
100024         * lib/quotearg.c (ALERT_CHAR): New macro.
100025         (quotearg_buffer_restyled): Use it.
100026
100027 2000-02-27  Jim Meyering  <meyering@lucent.com>
100028
100029         * m4/check-decl.m4: Add getenv to the list.
100030
100031 2000-02-27  Jim Meyering  <meyering@lucent.com>
100032
100033         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100034         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100035
100036         * lib/backupfile.c: Guard inclusion of stdlib.h with
100037         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100038         Declare malloc if needed.
100039
100040         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100041         `#ifndef HAVE_DECL..'
100042         now that autoconf always defines the HAVE_DECL_ symbols.
100043         * lib/human.c: Likewise.
100044         * lib/same.c: Likewise.
100045         * lib/strtoumax.c: Likewise.
100046
100047         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100048         declaration check was not run.
100049         * lib/hash.c: Likewise.
100050         * lib/human.c: Likewise.
100051         * lib/same.c: Likewise.
100052         * lib/strtoumax.c: Likewise.
100053
100054         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100055         `.', then first look up the entire `.'-containing string as a login
100056         name.
100057
100058 2000-02-23  Jim Meyering  <meyering@lucent.com>
100059
100060         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100061         in place of my hack.
100062
100063 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100064
100065         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100066         (textint): New typedef.
100067         (parser_control): Member year changed from int to textint.
100068         All uses changed.
100069         (YYSTYPE): Removed; replaced by %union with int and textint members.
100070         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100071         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100072         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100073         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100074         (date, number, to_year): Use width of number in digits, not its value,
100075         to determine whether it's a 2-digit year, or a 2-digit time.
100076         (yylex): Store number of digits of numeric tokens.
100077         Reported by John Kendall.
100078
100079         (parser_control): Changed from struct parser_control to typedef (for
100080         consistency).  All uses changed.
100081
100082         (tID): Removed; not used.
100083         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100084
100085 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100086
100087         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100088         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100089
100090 2000-02-12  Jim Meyering  <meyering@lucent.com>
100091
100092         * lib/userspec.c (ISDIGIT): Define it.
100093         (isdigit): Remove definition.
100094         (is_number): Use ISDIGIT, not isdigit.
100095         <libintl.h>: Include.
100096         (_ and N_): Define.
100097         (parse_user_spec): Mark translatable strings.
100098
100099 2000-02-10  Jim Meyering  <meyering@lucent.com>
100100
100101         With these changes, nanosleep.[ch] are finally enough like the other
100102         lib/* replacement files to compile on a few more losing systems.
100103
100104         * lib/nanosleep.h: Don't include config.h.
100105         Remove prototype from declaration of nanosleep.
100106         (PARAMS): Remove now-unneeded definition.
100107         * lib/nanosleep.c: #undef nanosleep.
100108         (rpl_nanosleep): Rename from nanosleep.
100109
100110 2000-02-10  Jim Meyering  <meyering@lucent.com>
100111
100112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100113         gnu_nanosleep to rpl_nanosleep.
100114
100115 2000-02-09  Jim Meyering  <meyering@lucent.com>
100116
100117         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100118         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100119
100120 2000-02-08  Akim Demaille  <akim@epita.fr>
100121
100122         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100123         `[' and `]' and remove uses of `changequote'.
100124         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100125         (AC_SYS_LARGEFILE): Likewise.
100126         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100127         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100128         of changequote.
100129         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100130         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100131         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100132         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100133
100134 2000-02-05  Jim Meyering  <meyering@lucent.com>
100135
100136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100137         Remove explicit use of AC_HEADER_TIME.  It is required by
100138         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100139         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100140         in autoconf whereby the expansion of the latter ended up preceding
100141         the expansion of its prerequisite, AC_HEADER_TIME.
100142         Reported by Volker Borchert.
100143
100144 2000-02-03  Jim Meyering  <meyering@lucent.com>
100145
100146         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100147
100148 2000-02-03  Jim Meyering  <meyering@lucent.com>
100149
100150         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100151         rather than with `#if HAVE_UTMPNAME'.
100152
100153 2000-02-02  Jim Meyering  <meyering@lucent.com>
100154
100155         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100156         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100157         Reported by Eli Zaretskii.
100158
100159 2000-02-01  Jim Meyering  <meyering@lucent.com>
100160
100161         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100162
100163 2000-01-31  Jim Meyering  <meyering@lucent.com>
100164
100165         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100166         functions.  Add the time.h and sys/time.h headers along with the
100167         AC_REQUIRE'ment of AC_HEADER_TIME.
100168
100169 2000-01-31  Jim Meyering  <meyering@lucent.com>
100170
100171         * lib/nanosleep.h (nanosleep): Guard declaration with
100172         `#if ! HAVE_DECL_NANOSLEEP'.
100173         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100174         the declaration in that vendor's sys/timers.h.
100175         Reported by Christian Krackowizer.
100176
100177         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100178         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100179         (ISPRINT): Likewise.
100180         Reported by Tom Tromey.
100181
100182 2000-01-30  Jim Meyering  <meyering@lucent.com>
100183
100184         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100185
100186         * m4/prereq.m4 (utmp_includes): Define.
100187         Check for ut_user and ut_name members in both struct utmpx
100188         and struct utmp.
100189
100190 2000-01-30  Jim Meyering  <meyering@lucent.com>
100191
100192         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100193         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100194         header files where only utmpx.ut_user is declared.
100195
100196         * lib/readutmp.h (UT_USER): Define.
100197
100198 2000-01-29  Jim Meyering  <meyering@lucent.com>
100199
100200         * m4/lib-check.m4: New file containing library-related checks from
100201         fileutils and sh-utils (textutils had none).
100202
100203 2000-01-28  Jim Meyering  <meyering@lucent.com>
100204
100205         * m4/perl.m4: Change format of warning message to look more like that
100206         from the missing script.  Suggestion from François Pinard.
100207
100208 2000-01-25  Jim Meyering  <meyering@lucent.com>
100209
100210         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100211         well as time.h in the compile check.
100212         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100213         Fix typo in cross-compiling case: s/yes/no/.
100214
100215 2000-01-23  Jim Meyering  <meyering@lucent.com>
100216
100217         * m4/jm-macros.m4: Move df-related tests here from
100218         fileutils/configure.in
100219
100220         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100221         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100222
100223         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100224         s/space/ac_fsusage_space/.
100225         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100226
100227         * m4/ftruncate.m4: New file (derived from part of
100228         fileutils/configure.in).
100229         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100230         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100231
100232         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100233         AC_SUBST these here, rather than just in sh-util/configure.in, so
100234         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100235         all the same.
100236         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100237         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100238         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100239         (AC_SUBST(POW_LIBM)): Likewise.
100240         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100241
100242 2000-01-23  Jim Meyering  <meyering@lucent.com>
100243
100244         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100245         obstack.c.
100246
100247 2000-01-22  Jim Meyering  <meyering@lucent.com>
100248
100249         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100250
100251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100252
100253         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100254         configure.in
100255         (AC_CHECK_HEADERS): Likewise for sh-utils.
100256         (AC_CHECK_HEADERS): Likewise for textutils.
100257         Merge the three lists of headers.
100258
100259         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100260         from fileutils' configure.in.
100261
100262         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100263         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100264         check-decl.m4.
100265
100266         * m4/check-decl.m4: Use #if rather than #ifdef.
100267         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100268         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100269         (_jm_DECL_HEADERS): Define new function.
100270         (jm_CHECK_DECLARATIONS): Require it.
100271
100272 2000-01-22  Jim Meyering  <meyering@lucent.com>
100273
100274         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100275         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100276         Required for some AIX systems.  Reported by Christian Krackowizer.
100277         [TESTING] (main): New function.
100278
100279         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100280         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100281         letters.
100282
100283         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100284         iswprint.
100285
100286         * lib/strverscmp.c (ISDIGIT): Define.
100287         (strverscmp): Use ISDIGIT, not isdigit.
100288
100289 2000-01-19  Jim Meyering  <meyering@lucent.com>
100290
100291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100292         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100293         defines `struct timespec' in <sys/time.h>
100294
100295         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100296         Thanks to Akim for explaining.
100297
100298 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100299
100300         * lib/nanosleep.c (nanosleep):
100301         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100302         POSIX.1 doesn't require SA_INTERRUPT and some systems
100303         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100304         it's been part of POSIX.1 since day 1 (in 1988).
100305
100306 2000-01-17  Jim Meyering  <meyering@lucent.com>
100307
100308         * lib/interlock: Remove unused file.  Reported by François Pinard.
100309
100310 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100311
100312         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100313         alert, backslash, formfeed, and vertical tab unnecessarily in
100314         shell quoting style.
100315
100316 2000-01-16  Jim Meyering  <meyering@lucent.com>
100317
100318         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100319         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100320         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100321         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100322
100323 2000-01-16  Jim Meyering  <meyering@lucent.com>
100324
100325         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100326         because the latter didn't work.
100327
100328 2000-01-15  Jim Meyering  <meyering@lucent.com>
100329
100330         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100331         (AC_REPLACE_FUNCS): Add memcpy and memset.
100332         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100333         Add strpbrk.
100334         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100335
100336 2000-01-12  Jim Meyering  <meyering@lucent.com>
100337
100338         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100339         (jm_PREREQ): Use it.
100340         (jm_PREREQ_READUTMP): New macro.
100341         (jm_PREREQ): Use it.
100342
100343 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100344
100345         Quote multibyte characters correctly.
100346         * m4/c-bs-a.m4: New file.
100347         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100348         (jm_PREREQ): Use it.
100349
100350 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100351
100352         * m4/uintmax_t.m4: Port to autoconf 2.13.
100353
100354 2000-01-08  Jim Meyering  <meyering@ascend.com>
100355
100356         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100357         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100358
100359 2000-01-04  Jim Meyering  <meyering@ascend.com>
100360
100361         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100362         jm_STRUCT_DIRENT_D_TYPE.
100363         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100364         jm_STRUCT_DIRENT_D_INO.
100365         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100366         jm_STRUCT_UTIMBUF.
100367         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100368         renamings.
100369         * m4/utime.m4: Likewise.
100370
100371         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100372         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100373
100374 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100375
100376         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100377         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100378
100379 2000-01-02  Jim Meyering  <meyering@ascend.com>
100380
100381         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100382         remember if this is necessary.
100383
100384 1999-12-26  Jim Meyering  <meyering@ascend.com>
100385
100386         * m4/jm-macros.m4: Use it here.
100387         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100388
100389 1999-12-23  Jim Meyering  <meyering@ascend.com>
100390
100391         * m4/jm-macros.m4: Check for clock_gettime (moved from
100392         fileutils/configure.in)
100393         Check for gettimeofday.
100394
100395 1999-12-20  Jim Meyering  <meyering@ascend.com>
100396
100397         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100398         autoconf-2.14a-1999-12-20.
100399
100400 1999-12-19  Jim Meyering  <meyering@ascend.com>
100401
100402         * m4/lstat-slash.m4: New file.
100403         * m4/jm-macros.m4: Use the new macro:
100404         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100405
100406 1999-12-07  Jim Meyering  <meyering@ascend.com>
100407
100408         * m4/perl.m4: Require that File::Compare be available, too.
100409         Too many systems seem to lack it.
100410
100411         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100412         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100413
100414 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100415
100416         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100417         problem with the QNX 4.25 shell, which doesn't propagate exit
100418         status of failed commands inside shell assignments.
100419
100420 1999-11-17  Jim Meyering  <meyering@ascend.com>
100421
100422         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100423
100424 1999-11-07  Jim Meyering  <meyering@ascend.com>
100425
100426         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100427
100428 1999-11-06  Jim Meyering  <meyering@ascend.com>
100429
100430         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100431         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100432
100433 1999-11-05  Jim Meyering  <meyering@ascend.com>
100434
100435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100436         configure.in of textutils, fileutils, and sh-utils into this one
100437         (shared between those packages) file.
100438         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100439         AC_STRUCT_ST_BLKSIZE.
100440
100441 1999-11-03  Jim Meyering  <meyering@ascend.com>
100442
100443         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100444         of AC_CHECK_TYPE checks includes unistd.h.
100445         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100446         Suggestion from Akim Demaille.
100447
100448 1999-10-30  Jim Meyering  <meyering@ascend.com>
100449
100450         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100451         m4-quoted string.
100452         * m4/ls-mntd-fs.m4: Likewise.
100453         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100454         * m4/jm-winsz1.m4: Likewise.
100455
100456         * m4/const.m4: Remove file, since the fix made it into the experimental
100457         version of autoconf.
100458         * m4/mktime.m4: Likewise.
100459
100460         * m4/check-type.m4: Remove file, now that the latest version of
100461         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100462
100463         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100464         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100465         AC_CHECK_TYPE.
100466
100467 1999-10-04  Jim Meyering  <meyering@ascend.com>
100468
100469         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100470
100471 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100472
100473         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100474         2.95.1 bug with HP-UX 10.20.
100475
100476 1999-09-17  Jim Meyering  <meyering@ascend.com>
100477
100478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100479         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100480         due to missing strdup (against sh-utils-2.0).
100481
100482 1999-08-29  Jim Meyering  <meyering@ascend.com>
100483
100484         * m4/jm-macros.m4: Require jm_BISON.
100485         * m4/bison.m4: New file.
100486
100487 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100488
100489         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100490         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100491
100492 1999-08-05  Jim Meyering  <meyering@ascend.com>
100493
100494         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100495         to avoid conflicts with `conftest' on 8+3 filesystems.
100496         Suggestion from Eli Zaretskii.
100497
100498 1999-08-04  Jim Meyering  <meyering@ascend.com>
100499
100500         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100501         fileutils and sh-utils (textutils's getline test was inadequate).
100502         (AM_FUNC_GETLINE): Run this test.
100503         (AC_CHECK_FUNCS): Check for getdelim.
100504         Reported by Bob Proulx.
100505
100506 1999-08-02  Jim Meyering  <meyering@ascend.com>
100507
100508         * m4/jm-macros.m4: Add a comment.
100509
100510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100511
100512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100513         <inttypes.h> defines strtoumax as a macro (and not as a
100514         function).
100515
100516 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100517
100518         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100519         that we can shift, multiply and divide unsigned long long
100520         values; Ultrix cc can't do it.
100521
100522 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100523
100524         * m4/mktime.m4: New file, which is a preview of what should appear
100525         in the next public autoconf release.
100526
100527 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100528
100529         * m4/lfs.m4: Remove this file.
100530         * m4/largefile.m4: New file.  It contains the old contents of
100531         lfs.m4, except that all names with prefix AC_LFS have been
100532         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100533         compatible with future autoconf versions.  Also, some minor m4
100534         quoting problems have been fixed.
100535
100536 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100537
100538         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100539         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100540         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100541         and simplify the shell code.
100542
100543 1999-08-01  Jim Meyering  <meyering@ascend.com>
100544
100545         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100546         m4.
100547
100548 1999-07-20  Jim Meyering  <meyering@ascend.com>
100549
100550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100551
100552 1999-07-15  Jim Meyering  <meyering@ascend.com>
100553
100554         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100555
100556 1999-05-22  Jim Meyering  <meyering@ascend.com>
100557
100558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100559
100560 1999-05-20  Jim Meyering  <meyering@ascend.com>
100561
100562         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100563         Add a colon after each `then' in case $4 is empty.
100564
100565 1999-05-16  Jim Meyering  <meyering@ascend.com>
100566
100567         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100568
100569 1999-05-10  Jim Meyering  <meyering@ascend.com>
100570
100571         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100572
100573         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100574         AC_FUNC_MKTIME.
100575
100576 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100577
100578         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100579
100580 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100581
100582         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100583         not CPPFLAGS, so that linking works correctly in IRIX.
100584
100585 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100586
100587         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100588
100589 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100590
100591         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100592         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100594         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100595         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100596
100597         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100598
100599 1999-04-20  Jim Meyering  <meyering@ascend.com>
100600
100601         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100602         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100603         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100604
100605 1999-04-18  Jim Meyering  <meyering@ascend.com>
100606
100607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100608         * m4/jm-macros.m4: Use it.
100609
100610 1999-04-06  Jim Meyering  <meyering@ascend.com>
100611
100612         * m4/strftime.m4: Remove test for %f.
100613
100614 1999-03-29  Jim Meyering  <meyering@ascend.com>
100615
100616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100617         superset of the AC_TYPE_* checks in the textutils, fileutils,
100618         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100619         AC_TYPE_PID_T.
100620
100621 1999-03-28  Jim Meyering  <meyering@ascend.com>
100622
100623         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100624         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100625         replaced e.g., in the *.sh files of the sh-utils.
100626
100627 1999-03-20  Jim Meyering  <meyering@ascend.com>
100628
100629         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100630         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100631         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100632
100633 1999-03-19  Jim Meyering  <meyering@ascend.com>
100634
100635         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100636
100637 1999-03-12  Jim Meyering  <meyering@ascend.com>
100638
100639         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100640
100641 1999-03-07  Jim Meyering  <meyering@ascend.com>
100642
100643         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100644         declared.
100645
100646 1999-02-17  Jim Meyering  <meyering@ascend.com>
100647
100648         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100649         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100650
100651 1999-02-07  Jim Meyering  <meyering@ascend.com>
100652
100653         * m4/group-member.m4: New file -- extracted from sh-utils'
100654         configure.in.
100655
100656         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100657         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100658
100659 1999-02-06  Jim Meyering  <meyering@ascend.com>
100660
100661         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100662         * m4/fnmatch.m4: Likewise.
100663         * m4/getgroups.m4: Likewise.
100664         * m4/lstat.m4: Likewise.
100665         * m4/malloc.m4: Likewise.
100666         * m4/putenv.m4: Likewise.
100667         * m4/realloc.m4: Likewise.
100668         * m4/regex.m4: Likewise.
100669         * m4/stat.m4: Likewise.
100670         * m4/strftime.m4: Likewise.
100671         Suggestion from Alain Magloire.
100672
100673         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100674         * m4/fnmatch.m4: Likewise.
100675         * m4/getgroups.m4: Likewise.
100676         * m4/getline.m4: Likewise.
100677         * m4/lstat.m4: Likewise.
100678         * m4/malloc.m4: Likewise.
100679         * m4/memcmp.m4: Likewise.
100680         * m4/putenv.m4: Likewise.
100681         * m4/realloc.m4: Likewise.
100682         * m4/regex.m4: Likewise.
100683         * m4/stat.m4: Likewise.
100684         * m4/strftime.m4: Likewise.
100685         Suggestion from Alain Magloire.
100686
100687         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100688         an argument.
100689
100690         * m4/regex.m4: Add a run-time Test for proper operation of
100691         re_compile_pattern.
100692
100693 1999-01-31  Jim Meyering  <meyering@ascend.com>
100694
100695         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100696
100697 1999-01-30  Jim Meyering  <meyering@ascend.com>
100698
100699         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100700
100701         * m4/jm-mktime.m4: Make this a wrapper around the official
100702         AM_FUNC_MKTIME rather than my private copy, now that the official one
100703         is up to date.
100704         * m4/mktime.m4: Remove file.
100705
100706         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100707         * m4/uptime.m4: Likewise.
100708         * m4/uintmax_t.m4: Likewise.
100709
100710 1999-01-28  Jim Meyering  <meyering@ascend.com>
100711
100712         * m4/jm-macros.m4: Use jm_AFS.
100713         * m4/afs.m4: New file (from fileutils' configure.in).
100714
100715         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100716         * m4/chown.m4: Likewise.
100717         * m4/d-ino.m4: Likewise.
100718         * m4/d-type.m4: Likewise.
100719         * m4/fnmatch.m4: Likewise.
100720         * m4/getgroups.m4: Likewise.
100721         * m4/gettext.m4: Likewise.
100722         * m4/jm-mktime.m4: Likewise.
100723         * m4/jm-winsz2.m4: Likewise.
100724         * m4/lcmessage.m4: Likewise.
100725         * m4/ls-mntd-fs.m4: Likewise.
100726         * m4/malloc.m4: Likewise.
100727         * m4/memcmp.m4: Likewise.
100728         * m4/putenv.m4: Likewise.
100729         * m4/realloc.m4: Likewise.
100730         * m4/st_mtim.m4: Likewise.
100731         * m4/strftime.m4: Likewise.
100732
100733 1999-01-16  Jim Meyering  <meyering@ascend.com>
100734
100735         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100736         (ARGMATCH_DIE_DECL): Define.
100737
100738 1999-01-12  Jim Meyering  <meyering@ascend.com>
100739
100740         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100741         Reported by Lars Hecking.
100742
100743 1999-01-10  Jim Meyering  <meyering@ascend.com>
100744
100745         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100746         gross kludge.
100747         * m4/inttypes_h.m4: Likewise.
100748         * m4/lstat.m4: Likewise.
100749         * m4/malloc.m4: Likewise.
100750         * m4/readdir.m4: Likewise.
100751         * m4/realloc.m4: Likewise.
100752         * m4/st_dm_mode.m4: Likewise.
100753         * m4/stat.m4: Likewise.
100754         * m4/utimbuf.m4: Likewise.
100755         * m4/utimes.m4: Likewise.
100756
100757         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100758         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100759         comments in config.h.in are meaningful.
100760
100761         * m4/jm-macros.m4: Require autoconf-2.13 here.
100762
100763         * m4/regex.m4: By default, don't use the included regex.c on systems
100764         with glibc 2.  Suggestion from Uli Drepper.
100765
100766 1999-01-02  Jim Meyering  <meyering@ascend.com>
100767
100768         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100769
100770 1998-12-18  Jim Meyering  <meyering@ascend.com>
100771
100772         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100773         Based on a suggestion from Lars Hecking.
100774
100775 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100776
100777         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100778
100779 1998-11-16  Jim Meyering  <meyering@ascend.com>
100780
100781         * m4/lfs.m4: Double-quote the `uname...` expression.
100782
100783 1998-11-14  Jim Meyering  <meyering@ascend.com>
100784
100785         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100786         * m4/stat.m4: Likewise.
100787
100788 1998-11-03  Jim Meyering  <meyering@ascend.com>
100789
100790         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100791         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100792
100793 1998-10-18  Jim Meyering  <meyering@ascend.com>
100794
100795         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100796
100797 1998-10-17  Jim Meyering  <meyering@ascend.com>
100798
100799         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100800         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100801         calls for those previously hard-coded headers.  Instead, take a new
100802         parameter.
100803         (jm_CHECK_DECLARATIONS): Reflect interface change.
100804         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100805         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100806
100807         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100808
100809 1998-10-14  Jim Meyering  <meyering@ascend.com>
100810
100811         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100812         instead of "TZ=America/Vancouver".  From Paul Eggert.
100813
100814 1998-10-11  Jim Meyering  <meyering@ascend.com>
100815
100816         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100817         This adds a test for a recently added compatibility fix for mktime.c.
100818         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100819
100820 1998-09-27  Jim Meyering  <meyering@ascend.com>
100821
100822         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100823
100824         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100825         ../configure.in, including a change from Gordon Matzigkeit to allow
100826         cross-compiling for the Hurd.
100827
100828         * m4/glibc.m4: New file/macro to test for the GNU C Library
100829         versions 1 and 2.  From Gordon Matzigkeit.
100830         Indent.
100831
100832 1998-09-21  Jim Meyering  <meyering@ascend.com>
100833
100834         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100835
100836 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100837
100838         Port nanosecond-resolution times to UnixWare 2.1.2 and
100839         pedantic Solaris 2.6.
100840
100841         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100842         AC_STRUCT_ST_MTIM.
100843         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100844         Generate name of ns member, instead of just 1 or undef.
100845         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100846
100847 1998-08-15  Jim Meyering  <meyering@ascend.com>
100848
100849         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100850         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100851         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100852         instead of jm_TYPE_SSIZE_T.
100853
100854 1998-08-12  Jim Meyering  <meyering@ascend.com>
100855
100856         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100857
100858 1998-08-02  Jim Meyering  <meyering@ascend.com>
100859
100860         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100861         in acconfig.h manually.
100862
100863 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100864
100865         * m4/st_mtim.m4: New file.
100866
100867 1998-07-28  Jim Meyering  <meyering@ascend.com>
100868
100869         * m4/utimes.m4: Undef stat.
100870
100871 1998-07-25  Jim Meyering  <meyering@ascend.com>
100872
100873         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100874         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100875
100876 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100877
100878         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100879         uid and gid actually remain unchanged.
100880
100881 1998-07-07  Jim Meyering  <meyering@ascend.com>
100882
100883         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100884
100885 1998-07-04  Jim Meyering  <meyering@ascend.com>
100886
100887         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100888         to prove that this macro can be used in packages without regex.c.
100889
100890 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100891
100892         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100893         is to be used.
100894
100895 1998-07-03  Jim Meyering  <meyering@ascend.com>
100896
100897         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100898
100899         * m4/gettext.m4: New file -- from gettext-0.10.35.
100900         * m4/lcmessage.m4: Likewise.
100901         * m4/progtest.m4: Likewise.
100902
100903         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100904         * m4/jm-macros.m4: Require the new macro.
100905
100906 1998-06-29  Jim Meyering  <meyering@ascend.com>
100907
100908         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100909         for the definition of NGROUPS (used in a system header included
100910         by sys/mount.h).
100911
100912 1998-06-28  Jim Meyering  <meyering@ascend.com>
100913
100914         * m4/ls-mntd-fs.m4: New file.
100915         * m4/fstypename.m4: New file.
100916
100917         * m4/jm-macros.m4: Require the new macro.
100918         * m4/jm-glibc-io.m4: New file.
100919
100920 1998-05-19  Jim Meyering  <meyering@ascend.com>
100921
100922         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100923         * m4/lchown.m4: New file.
100924
100925         * m4/Makefile.am.in: New file.
100926         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100927
100928 1998-05-14  Jim Meyering  <meyering@ascend.com>
100929
100930         * m4/Makefile.am (EXTRA_DIST): Add them.
100931         * m4/jm-macros.m4: New file.
100932         * m4/utimbuf.m4: New file.
100933
100934 1998-05-12  Jim Meyering  <meyering@ascend.com>
100935
100936         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100937
100938 1998-05-11  Jim Meyering  <meyering@ascend.com>
100939
100940         * m4/isc-posix.m4: New file.
100941
100942 1998-05-10  Jim Meyering  <meyering@ascend.com>
100943
100944         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100945
100946 1998-05-09  Jim Meyering  <meyering@ascend.com>
100947
100948         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100949         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100950         with automake.
100951
100952         * m4/ssize_t.m4: New file.
100953         * m4/mktime.m4: Remove file -- the new automake has this now.
100954
100955 1998-04-26  Jim Meyering  <meyering@ascend.com>
100956
100957         * m4/assert.m4: New file.
100958         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100959
100960 1998-04-05  Jim Meyering  <meyering@ascend.com>
100961
100962         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100963         (jm_PREREQ): Use it here.
100964
100965 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100966
100967         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100968         in acconfig.h.
100969
100970 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100971
100972         * m4/prereq.m4: New file.
100973         * m4/error.m4: New file.
100974         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100975
100976 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100977
100978         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100979         cache-check for the same variable -- that defeated the purpose of
100980         the test; the test program was never run.  This was a problem only
100981         on systems with losing getline functions -- HP-UX 10.20 is one.
100982         Reported by Bjorn Helgaas.
100983
100984 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100985
100986         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100987
100988 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100989
100990         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100991
100992         * m4/const.m4: New file.  Use an initializer in this declaration
100993         typedef int charset[2]; const charset x;
100994         Reported by Bob Glickstein.
100995
100996 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100997
100998         * m4/chown.m4: Fix reversed types on -1 args to chown.
100999         From Kaveh Ghazi.
101000
101001 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101002
101003         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101004         Add lseek and memchr.
101005
101006         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101007         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101008         have a 20-character limit on names.
101009
101010 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101011
101012         * m4/inttypes_h.m4: New file.
101013         * m4/uintmax_t.m4: New file.
101014         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101015
101016
101017         -----
101018
101019         Local Variables:
101020         coding: utf-8
101021         End:
101022
101023         Copyright (C) 1997-2013 Free Software Foundation, Inc.
101024
101025         Copying and distribution of this file, with or without
101026         modification, are permitted provided the copyright notice
101027         and this notice are preserved.